Dear Juergen, Well, now I'm having some time to come back to the caption / longtables thread from November. I finally found a kludge to get the stuff working right. One can enter the caption as ERT in the header and firstheader row. > > I don't like the solution to implement this feature. I don't want > text input fields for this type of stuff. The text should be inputed > directly in the tabular (as then one has all option open regarding > fonts etc.). > But the point you mention is one of the source of the problems: if I enter the following block (newlines compressed):
1 <cell> 2 \begin_inset Text 3 \layout Standard 4 \begin_inset ERT 5 status Collapsed 6 \layout Standard 7 \backslash 8 caption[lot-text]{caption-text} 9 \backslash 10 \backslash 11 \end_inset 12 \size scriptsize 13 column1 14 \end_inset 15 </cell> I get the desired latex output but if line 12 directly follows line 3 the backend produces latex-code with errors. (See the tho attached test files.) The appeareance of captions etc. is not controlled by the options in the table environment. It uses special packages like caption or caption2. Maybe the problem can easily be fixed by small modifications of the latex-code generator. Best wishes for the new Year Yours -- Dr. Joachim Heidemeier Tel. +49-30-8903-2780 Fachgebiet II 3.2 [EMAIL PROTECTED] Umweltbundesamt, Bismarckplatz 1 D-14191 Berlin
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass scrbook \begin_preamble \usepackage{ccaption} \usepackage{nonfloat} \newcommand{\rem}[1]{} \end_preamble \language german \inputencoding latin1 \fontscheme pslatex \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset FloatList table \end_inset \layout Standard \begin_inset Tabular <lyxtabular version="3" rows="3" columns="4"> <features islongtable="true"> <column alignment="left" valignment="top" width="1cm"> <column alignment="left" valignment="top" width="3.5cm"> <column alignment="left" valignment="top" width="3.5cm"> <column alignment="left" valignment="top" width="5cm"> <row bottomline="true" endfirsthead="true"> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash caption[lot-text]{caption-text} \backslash \backslash \end_inset \size scriptsize column1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column4 \end_inset </cell> </row> <row bottomline="true" endhead="true"> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash caption[]{caption-text} \backslash \backslash \end_inset \size scriptsize column1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column4 \end_inset </cell> </row> <row> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text4 \end_inset </cell> </row> </lyxtabular> \end_inset \the_end
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass scrbook \begin_preamble \usepackage{ccaption} \usepackage{nonfloat} \newcommand{\rem}[1]{} \end_preamble \language german \inputencoding latin1 \fontscheme pslatex \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset FloatList table \end_inset \layout Standard \begin_inset Tabular <lyxtabular version="3" rows="3" columns="4"> <features islongtable="true"> <column alignment="left" valignment="top" width="1cm"> <column alignment="left" valignment="top" width="3.5cm"> <column alignment="left" valignment="top" width="3.5cm"> <column alignment="left" valignment="top" width="5cm"> <row bottomline="true" endfirsthead="true"> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize \begin_inset ERT status Collapsed \layout Standard \size scriptsize \backslash caption[lot-text]{caption-text} \backslash \backslash \end_inset column1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column4 \end_inset </cell> </row> <row bottomline="true" endhead="true"> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash caption[]{caption-text} \backslash \backslash \end_inset column1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize column4 \end_inset </cell> </row> <row> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text1 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text2 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text3 \end_inset </cell> <cell alignment="right" valignment="top" usebox="none"> \begin_inset Text \layout Standard \size scriptsize text4 \end_inset </cell> </row> </lyxtabular> \end_inset \the_end