On Tue, Sep 11, 2001 at 04:32:22PM +0200, Herbert Voss wrote: > [EMAIL PROTECTED] wrote: > > > > In my document I have a table which is longer than one page, so I canīt use a > > float-environment. > > > > If I use a longtable-environment instead of a float, how can I place a > > caption in lyx? > > > > In Latex you simlpy add \caption{blabla}. > > http://www.educat.hu-berlin.de/~voss/lyx/floats/nonFloat.html#table Peter wanted to use the caption command which is defined by longtable. This can be done by puting \newcommand{\rem}[1]{} in the preamble, and in the table you put in the first cell of the first row \caption{The caption}\rem{ (in latex mode) and in the last cell put } (in latex mode). See example file.
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \begin_preamble \newcommand{\rem}[1]{} \end_preamble \language english \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 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 Tabular <lyxtabular version="2" rows="3" columns="5"> <features rotate="false" islongtable="true" endhead="0" endfirsthead="1" endfoot="0" endlastfoot="0"> <column alignment="center" valignment="top" leftline="true" rightline="false" width="" special=""> <column alignment="center" valignment="top" leftline="true" rightline="false" width="" special=""> <column alignment="center" valignment="top" leftline="true" rightline="false" width="" special=""> <column alignment="center" valignment="top" leftline="true" rightline="false" width="" special=""> <column alignment="center" valignment="top" leftline="true" rightline="true" width="" special=""> <row topline="false" bottomline="false" newpage="false"> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \latex latex \backslash caption{The caption} \backslash rem{ \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \latex latex } \end_inset </cell> </row> <row topline="true" bottomline="false" newpage="false"> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard 1 \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard 2 \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard 3 \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard 4 \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard 5 \end_inset </cell> </row> <row topline="true" bottomline="true" newpage="false"> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special=""> \begin_inset Text \layout Standard \end_inset </cell> </row> </lyxtabular> \end_inset \the_end