-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 339
+#LyX 1.6.0rc1 created this file. For more info see http://www.lyx.org/
+\lyxformat 340
\begin_document
\begin_header
\textclass scrbook
Longtable
\family default
of the table dialog to split the table automatically over more pages.
- Doing this enables some check boxes and you can now define:
+ Doing this enables the following options:
\end_layout
\begin_layout Description
defined, are defined to be the footer rows of the last page of the longtable.
\end_layout
+\begin_layout Description
+Caption: The first row is reset as single column.
+ You can now insert there the table caption via the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Caption
+\family default
+.
+ More about longtable captions is explained in sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Longtable-Captions"
+
+\end_inset
+
+.
+\end_layout
+
\begin_layout Standard
You can also specify a row where the table is splitted.
If you set more than one option in the same table row, you should be aware
A longtable cannot be put into a table float because floats can only be
on one page but the caption environment of floats can also be used for
longtables.
-\end_layout
-
-\begin_layout Standard
-As LyX does not yet fully support captions in longtables, a hack is needed
- to create them:
-\end_layout
-
-\begin_layout Enumerate
-Create a longtable
-\family sans
-.
-\end_layout
-
-\begin_layout Enumerate
-Mark the first row and disable its upper line.
-\end_layout
-
-\begin_layout Enumerate
-Insert a caption via the menu
-\family sans
-Insert\SpecialChar \menuseparator
-Caption
-\family default
- into the first table cell.
-\begin_inset Newline newline
-\end_inset
-
-You can also add a short title for the caption.
-\end_layout
-
-\begin_layout Enumerate
-Insert a
-\begin_inset Quotes eld
+ Therefore the caption is inserted as first row of the table, as explained
+ in sec.
+\begin_inset space \thinspace{}
\end_inset
-\series bold
-
-\backslash
-
-\backslash
-%
-\series default
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Longtables"
-\begin_inset Quotes erd
\end_inset
- as TeX-Code behind the caption.
-\end_layout
-
-\begin_layout Standard
-A short title that will appear in the LOT instead of the full title.
- The
-\series bold
-
-\backslash
-
-\backslash
-%
-\series default
- behind the caption omits the vertical lines between the following cells
- in the row.
- The first table row is now only a dummy row for the caption, the actual
+.
+ The first table row is then only a dummy row for the caption, the actual
table starts with the second row.
\end_layout
\series bold
Note:
\series default
- If you are using the LaTeX-package
+ If you are using
\series bold
-hyperref
+ hyperref
\series default
\begin_inset Index
\end_inset
- to link cross-references, the link to a longtable caption will always point
- to the beginning of the document.
+ in the
+\family sans
+PDF Properties
+\family default
+ of the
+\family sans
+Document Settings
+\family default
+ dialog to link cross-references, the link to a longtable caption will always
+ point to the beginning of the document.
\end_layout
\end_inset
\begin_layout Standard
To reference a longtable, insert a label into the caption.
- Note that you have to add the label prefix
-\begin_inset Quotes eld
-\end_inset
-
-
-\emph on
-tab:
-\emph default
-
-\begin_inset Quotes eld
-\end_inset
-
- manually in the label field.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-The caption layout can be set together with all other caption of your document
+The caption layout can be set together with all other captions of your document
using the LaTeX-package
\series bold
caption
\begin_layout Standard
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="59" columns="3">
+<lyxtabular version="3" rows="60" columns="3">
<features islongtable="true">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="0pt">
\series default
\begin_inset Foot
-status collapsed
+status open
\begin_layout Plain Layout
Example footnote
555
\end_layout
+\end_inset
+</cell>
+</row>
+<row endlastfoot="true">
+<cell multicolumn="1" alignment="left" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
\end_inset
</cell>
</row>
\begin_layout Standard
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="38" columns="3">
+<lyxtabular version="3" rows="39" columns="3">
<features islongtable="true">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="3cm">
111
\end_layout
+\end_inset
+</cell>
+</row>
+<row endlastfoot="true">
+<cell multicolumn="1" alignment="left" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
\end_inset
</cell>
</row>
\end_layout
\begin_layout Standard
-\align center
+\noindent
\begin_inset Float table
placement H
wide false
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! multirow
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\series bold
multirow
\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! multirow
+\end_layout
+
+\end_inset
+
in your document preamble with the command
\end_layout
status collapsed
\begin_layout Plain Layout
-References
+References ! to Floats
\end_layout
\end_inset
\series bold
hyperref
\series default
- provides a very useful feature that cross-references automatically include
- the name of the referenced floats (or text parts like sections).
- You save to write e.
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! hyperref
+\end_layout
+
+\end_inset
+
+, that is enabled in the
+\family sans
+PDF Properties
+\family default
+ of the
+\family sans
+Document Settings
+\family default
+ dialog, provides a very useful feature that cross-references automatically
+ include the name of the referenced floats (or text parts like
+\emph on
+section
+\emph default
+).
+ So you will save to write e.
\begin_inset space \thinspace{}
\end_inset
\begin_inset Quotes erd
\end_inset
- before every reference box.
- To get this automatic reference naming, you have to load the LaTeX-package
-
+ before every reference to a figure.
+ To use this feature, enable
\series bold
hyperref
\series default
+ and insert this line to the LaTeX preamble:
+\end_layout
-\begin_inset Index
-status collapsed
+\begin_layout Standard
-\begin_layout Plain Layout
-LaTeX-packages ! hyperref
+\series bold
+
+\backslash
+AtBeginDocument{
+\backslash
+renewcommand{
+\backslash
+ref}[1]{
+\backslash
+mbox{
+\backslash
+autoref{#1}}}}
\end_layout
+\begin_layout Standard
+When you prefer other reference names than the default ones, for example
+ you want instead of
+\begin_inset Quotes eld
+\end_inset
+
+section
+\begin_inset Quotes erd
+\end_inset
+
+ the name
+\begin_inset Quotes eld
+\end_inset
+
+sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset Quotes eld
\end_inset
- in the document preamble with
+, you can redefine the name by inserting this to the preamble:
\end_layout
\begin_layout Standard
\series bold
\backslash
-usepackage[pdfborder={0 0 0}]{hyperref}
-\begin_inset Newline newline
-\end_inset
-
-
+addto
\backslash
-AtBeginDocument{
+extrasenglish{
\backslash
renewcommand{
\backslash
-ref}[1]{
+sectionautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-mbox{
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{sec.
\backslash
-autoref{#1}}}}
+negthinspace}}
\end_layout
\begin_layout Standard
+When you are using another document language than English, replace
+\begin_inset Newline newline
+\end_inset
+
\series bold
-hyperref
+
+\backslash
+extrasenglish
\series default
- is used to link cross-references in the DVI- and PDF-output, this means
- that the reader of your document will be able to click on a table of content
- (TOC) entry or on a reference and he will be shown the referenced document
- part.
-
+ by
\series bold
-hyperref
+
+\backslash
+extras***
\series default
- also creates PDF-bookmarks for every section of your document to make it
- easier for readers to navigate through the document.
- This is also used in this document but when you have a look in the document
- preamble you will find various options in the load command of
+, where *** is the name of the used language.
+\end_layout
+
+\begin_layout Standard
+To get automatic names, but not for certain reference types, for example
+ not for equations, use this preamble code:
+\end_layout
+
+\begin_layout Standard
+
\series bold
-hyperref
-\series default
-.
- To learn more about the
+
+\backslash
+newlength{
+\backslash
+abc}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+settowidth{
+\backslash
+abc}{
+\backslash
+space}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+addto
+\backslash
+extrasenglish{
+\backslash
+renewcommand{
+\backslash
+equationautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
+\backslash
+hspace{-
+\backslash
+abc}}
+\end_layout
+
+\begin_layout Standard
+More about this topic can be found in
\series bold
hyperref
\series default
- package, we refer to its documentation
+'s documentation
\begin_inset CommandInset citation
LatexCommand cite
key "hyperref"
reference
\family default
- style, described in section
+ style, as described in section
\begin_inset space ~
\end_inset
\end_layout
+\begin_layout Standard
+The
+\emph on
+Math
+\emph default
+ manual is an example where automatic reference naming is used.
+\end_layout
+
\begin_layout Subsection
Reference Position
\begin_inset CommandInset label
\end_inset
- to link cross-references in the output, you will see that clicking on an
- image float reference jumps to the image label.
+ in the
+\family sans
+PDF Properties
+\family default
+ of the
+\family sans
+Document Settings
+\family default
+ dialog to link cross-references in the output, you will see that clicking
+ on an image float reference jumps to the image label.
The caption will be the first text part on the screen, so that you cannot
see the image without scrolling.
This is because the reference link anchor is placed at the position of
\series bold
hypcap
\series default
- for all floats but this isn't recommended for stability reasons.
+ for all float types but this is not recommended for stability reasons.
For more informations, have a look at
\series bold
hypcap
Note:
\series default
-\series bold
-hypcap
-\series default
- must be loaded after
-\series bold
-hyperref
-\series default
- in the document preamble.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
-
\series bold
hypcap
\series default
\end_inset
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! caption
-\end_layout
-
-\end_inset
-
-
\begin_inset CommandInset label
LatexCommand label
name "sec:Caption-Formatting"