-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 337
+#LyX 2.0 created this file. For more info see http://www.lyx.org/
+\lyxformat 413
\begin_document
\begin_header
\textclass scrbook
\mainmatter }
% provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
% enables calculation of values,
\usepackage{calc}
-% provides special table cell alignments
-\usepackage{dcolumn}
-
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
-% used for multirows
-\usepackage{multirow}
-%\renewcommand{\multirowsetup}{\centering}
-
% used for book-style tables
\usepackage{booktabs}
% number algorithm floats within chapters
\numberwithin{algorithm}{chapter}
-% redefine the greyed out note
-\renewenvironment{lyxgreyedout}
- {\textcolor{blue}\bgroup}{\egroup}
-
% ------------------------------------
% used to check for needed LaTeX packages
\usepackage{ifthen}
\newboolean{sidecap}
\IfFileExists{sidecap.sty}
{\usepackage{sidecap}
- \let\marginpar\marginnote
\setboolean{sidecap}{true}}
{\setboolean{sidecap}{false}}
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
- {LyX }}
+ {LyX}}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
+\use_default_options false
+\maintain_unincluded_children false
\language english
+\language_package default
\inputencoding auto
+\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
+\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
-\pdf_pagebackref false
\pdf_pdfusetitle false
-\pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
+\pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_amsmath 2
\use_esint 0
+\use_mhchem 1
+\use_mathdots 1
\cite_engine basic
\use_bibtopic false
+\use_indices false
\paperorientation portrait
+\suppress_date false
+\use_refstyle 0
+\notefontcolor #0000ff
+\index Index
+\shortcut idx
+\color #008000
+\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\bullet 3 2 7 -1
\tracking_changes false
\output_changes false
-\author ""
-\author ""
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
\end_header
\begin_body
\family sans
-Version 1.6svn
+Version 2.0.x
\end_layout
\begin_layout Standard
\begin_layout Chapter
Figures
-\begin_inset CommandInset label
-LatexCommand label
-name "cha:Figures"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Section
Graphics Dialog
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-The graphics dialog can be called at any time by right-clicking on an image.
+The graphics dialog can be called at any time by clicking on an image.
This dialog has three tabs:
\end_layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset Newline newline
\end_inset
-Images can be opened in a program of your choice when pressing the
+Images can be opened in a program of your choice by right-clicking on it
+ and choosing the entry
\family sans
Edit
+\begin_inset space ~
+\end_inset
+
+externally
\family default
- button.
+ in the context menu.
The program can be set for every image format in the file format settings
in LyX's preferences.
\end_layout
\begin_layout Description
\family sans
-Extra
+LaTeX
\begin_inset space ~
\end_inset
-options
-\family default
- In this tab you can modify the appearance of the image within LyX and set
- the image to be a subfigure of a figure float with an own caption.
- Subfigures are explained in section
+and
\begin_inset space ~
\end_inset
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Figure-Floats"
-
-\end_inset
-
-.
-\begin_inset Newline newline
+LyX
+\begin_inset space ~
\end_inset
- LaTeX experts can also specify on this tab additional LaTeX options.
+options
+\family default
+ In this tab you can modify the appearance of the image within LyX and LaTeX
+ experts can specify additional LaTeX options.
\begin_inset Newline newline
\end_inset
- The option
+The option
\family sans
Draft
\begin_inset space ~
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
\end_inset
that is needed by LaTeX for zipped graphics.
+\begin_inset Newline newline
+\end_inset
+
+The field
+\family sans
+Initialize
+\begin_inset space ~
+\end_inset
+
+Group
+\begin_inset space ~
+\end_inset
+
+Name
+\family default
+ allows you define or join an image settings group.
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Figures ! Settings grouping
+\end_layout
+
+\end_inset
+
+ Images within such a group share their settings, so adjusting one image
+ of the group automatically also adjusts all other images of the group in
+ the same way.
+ So you can for example change the size for a bunch of images without the
+ need to manually change each of them.
+ Joining an existing group can also be done using the context menu of the
+ image by checking the name of the desired group.
\end_layout
\begin_layout Standard
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Section
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
.
- More about the caption placement is described in section
+ More about caption placement is described in section
\begin_inset space ~
\end_inset
\end_layout
\begin_layout Standard
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset Quotes erd
\end_inset
-, because as LaTeX will reposition the floats in the final document, it
+, because LaTeX will reposition the floats in the final document and it
might not be
\begin_inset Quotes eld
\end_inset
\begin_inset Float figure
wide false
sideways false
-status open
+status collapsed
\begin_layout Plain Layout
\begin_inset Caption
filename clipart/escher-lsd.eps
width 45col%
scaleBeforeRotation
+ groupId distorted
\end_inset
\begin_inset Float figure
wide false
sideways false
-status open
+status collapsed
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
\begin_inset Graphics
filename clipart/platypus.eps
- lyxscale 60
width 45col%
scaleBeforeRotation
+ groupId distorted
\end_inset
\end_inset
+
+\begin_inset CommandInset label
+LatexCommand label
+name "fig2:Two-distorted-images-2"
+
+\end_inset
+
Two distorted images.
+ Both images are in the image settings group named
+\begin_inset Quotes eld
+\end_inset
+
+distorted
+\begin_inset Quotes erd
+\end_inset
+
+.
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Section
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-, every output document format allows only a few image formats.
+, each output document format allows only a few image formats.
LyX uses therefore the program
\family typewriter
-Imagemagick
+ImageMagick
\family default
in the background to convert the images to the right format.
To increase your work flow by avoiding these conversions in the background,
\end_inset
images consist of pixel values, often in a compressed form.
- They are therefore not fully scalable and look pixeled in large zooms.
+ They are therefore not fully scalable and look pixelated in large zooms.
Well-known bitmap image formats are
\begin_inset Quotes eld
\end_inset
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
)
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
, because you can convert any bitmap image to a PDF or EPS-image and the
result will still be a bitmap image.
- In this cases only a header with the image properties is added to the original
+ In such cases only a header with the image properties is added to the original
image
\begin_inset Foot
-status open
+status collapsed
\begin_layout Plain Layout
In the case of PDF, the original image is additionally compressed.
\begin_layout Chapter
Tables
-\begin_inset CommandInset label
-LatexCommand label
-name "cha:Tables"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Section
Introduction
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Table
\family default
.
- The toolbar button offers you a graphical selection: Move the mouse to
+ The toolbar button offers you a graphical selection: move the mouse to
set the column/row number of the table that should be created and then
press a mouse button.
When you use the menu to create a table, a dialog will appear, asking you
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="4">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Section
Table Dialog
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
contents
\emph default
of the cell, and the cell itself.
- You can alter tables with the following tabs of the table dialog:
+\begin_inset Newline newline
+\end_inset
+
+With the dialog option
+\family sans
+Immediate
+\begin_inset space ~
+\end_inset
+
+Apply
+\family default
+ every change you make in the dialog is directly applied.
+ If you move the cursor to another table cell the dialog will then also
+ be updated with the parameters of the new cell.
+ If you change length values in the dialog you must press return to get
+ the change applied.
+\begin_inset Newline newline
+\end_inset
+
+You can alter tables with the following tabs of the table dialog:
\end_layout
\begin_layout Description
Settings
\family default
- Here you can set the horizontal alignment and the width of the current
- column.
+ Here you can set the table width
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Table ! Width
+\end_layout
+
+\end_inset
+
+, and the horizontal alignment and the width of the current column.
+ The alignment
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+ is described in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Special-Cell-Alignment"
+
+\end_inset
+
+.
When you have set a width you can also adjust the vertical alignment of
the current row.
A given width will allow the cell to have line breaks and multiple paragraphs
\end_inset
.
- If you set no width, the column is as wide as their widest cell content
- is.
+ If you set no width, the column is as wide as the content of its widest
+ cell.
\begin_inset Newline newline
\end_inset
LatexCommand ref
reference "sub:Multicolumns"
+\end_inset
+
+ or the cells of one column as multirow cell, see section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Multirows"
+
\end_inset
.
\begin_inset Newline newline
\end_inset
-The rotate check boxes rotates the current cell, a selection, or the whole
+The rotate check boxes rotate the current cell, a selection, or the whole
table counter-clockwise by 90°.
The rotation is not shown within LyX, only in the output.
\begin_inset Newline newline
\end_inset
+\begin_inset Newline newline
+\end_inset
+
+The table-wide vertical alignment is used for tables within text lines:
+\begin_inset Newline newline
+\end_inset
+
+A line with tables with different alignments:
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="top">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+1
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+A
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+1
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+A
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="bottom">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+1
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+A
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
\begin_inset Newline newline
\end_inset
\begin_inset Newline newline
\end_inset
-You can also add here space to table rows as decribed in section
+You can also add here space to table rows as described in section
\begin_inset space ~
\end_inset
\end_inset
that can run over several pages.
- Section
+ Sections
\begin_inset space ~
\end_inset
describe the longtable features in detail.
\end_layout
-\begin_layout Standard
-When the table toolbar is opened, you can move the cursor with the arrow
- keys from cell to cell and the property of the current cell will immediately
- be displayed in the dialog.
-\end_layout
-
\begin_layout Section
Table Toolbar
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
adds lines around the current or selected cells - if the current cell no
- multicolumn this also affects the current row and column
+ multicolumn cell this also affects the current row and column
\end_layout
\begin_layout Labeling
\end_inset
deletes all lines of the current or selected cells - if the current cell
- no multicolumn this also affects the current row and column
+ no multicolumn cell this also affects the current row and column
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_align-left.png
+ filename ../images/tabular-feature_m-align-left.png
scaleBeforeRotation
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_align-center.png
+ filename ../images/tabular-feature_m-align-center.png
scaleBeforeRotation
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_align-right.png
+ filename ../images/tabular-feature_m-align-right.png
scaleBeforeRotation
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_valign-top.png
+ filename ../images/tabular-feature_align-decimal.png
+ scaleBeforeRotation
+
+\end_inset
+
+ aligns the content of the current column at a character
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+\begin_inset Graphics
+ filename ../images/tabular-feature_m-valign-top.png
scaleBeforeRotation
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_valign-middle.png
+ filename ../images/tabular-feature_m-valign-middle.png
scaleBeforeRotation
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
\begin_inset Graphics
- filename ../images/tabular-feature_valign-bottom.png
+ filename ../images/tabular-feature_m-valign-bottom.png
scaleBeforeRotation
\end_inset
sets the current cell or selection as a multicolumn
\end_layout
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+\begin_inset Graphics
+ filename ../images/tabular-feature_multirow.png
+ scaleBeforeRotation
+
+\end_inset
+
+ sets the current cell or selection as a multirow
+\end_layout
+
\begin_layout Standard
\begin_inset Note Greyedout
status open
\begin_layout Section
Edit Table Menu
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
\color none
\begin_inset Formula $\left[\begin{array}{cc}
a & b\\
-c & d\end{array}\right]$
+c & d
+\end{array}\right]$
\end_inset
\end_inset
(# is the actual table number).
- You can insert tables to the float above or below the caption.
+ You can insert tables in the float above or below the caption.
\end_layout
\begin_layout Standard
\begin_layout Standard
Having the caption above the table is the common rule that is unfortunately
not supported in LaTeX's standard classes.
- That means if you are using the document classes
+ This means that, if you are using the document classes
\family sans
article
\family default
\family sans
report
\family default
- there will be no space between the caption and the table.
+, there will be no space between the caption and the table.
To insert the needed space, add the following option to the load command
of the LaTeX-package
\series bold
caption
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
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
-
-\family sans
-Header
-\family default
-: The current row and all rows above, that don't have any special options
- defined, are defined to be the header rows of all pages of the longtable;
- except for the first page, if
+Header: The current row is defined to be a header row that appears on all
+ pages of the longtable; except for the first page, if
\family sans
First
\begin_inset space ~
header
\family default
is defined.
- This therefore called the main header.
+ This is therefore called the main header.
\end_layout
\begin_layout Description
-
-\family sans
First
\begin_inset space ~
\end_inset
-header
-\family default
-: The current row and all rows above, that don't have any special options
- defined, are defined to be the header rows of the first page of the longtable.
+header: The current row is defined to be a header row that appears on the
+ first page of the longtable.
\end_layout
\begin_layout Description
-
-\family sans
-Footer
-\family default
-: The current row and all rows below, that don't have any special options
- defined, are defined to be the footer rows of all pages of the longtable;
- except for the last page, if
+Footer: The current row is defined to be a footer row that appears on all
+ pages of the longtable; except for the last page, if
\family sans
Last
\begin_inset space ~
\end_layout
\begin_layout Description
-
-\family sans
Last
\begin_inset space ~
\end_inset
-footer
-\family default
-: The current row and all rows below, that don't have any special options
- defined, are defined to be the footer rows of the last page of the longtable.
+footer: The current row is defined to be a footer row that appears on the
+ last page of the longtable.
\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
- of the fact that only the first one is used in the given table row.
- The others will then be defined as
-\emph on
-empty
-\emph default
-.
- In this context, first means first in this order:
-\family sans
-Header,
-\family default
-
-\family sans
-First
-\begin_inset space ~
+\begin_layout Description
+Caption: The current row contains the table caption.
+ The row is reset as single column and a caption is inserted.
+ More about longtable captions is explained in sec.
+\begin_inset space \thinspace{}
\end_inset
-header, Footer, Last
-\begin_inset space ~
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Longtable-Captions"
+
\end_inset
-footer.
+.
+\end_layout
-\family default
+\begin_layout Standard
+You can also specify a row where the table is split.
See the following longtable to see how it works:
\end_layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="69" columns="3">
-<features islongtable="true">
+<features islongtable="true" longtabularalignment="center">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
</cell>
</row>
<row endfoot="true">
-<cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
+<cell multicolumn="1" alignment="right" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
status collapsed
\begin_layout Plain Layout
-See greyed-out note in section
+See the first greyed-out note in section
\begin_inset space ~
\end_inset
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Subsection
Longtable Alignment
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Longtables are by default centered.
- In contrary to the alignment of the table columns and row, the table alignment
- can currently not be changed in the table dialog.
- To change the alignment of longtables you have to change the value of the
- lengths
+The horizontal alignment of longtables can be set in the table settings
+ dialog.
+ For left- and right-alignment the table will be directly at the page border.
+ To add space between the table and the border one has to set the alignment
+ to center and change the value of the LaTeX-lengths
\series bold
\backslash
LTleft
\series default
-and
+or
\series bold
\backslash
LTright
\series default
- by inserting this line as TeX-Code before the corresponding longtable:
+ by inserting this line as TeX-Code before the longtable:
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Where the value can have any of the units listed in Table
+The value can have any of the units listed in Table
\begin_inset space ~
\end_inset
\end_layout
\begin_layout Standard
-The following longtable was left-aligned by setting
+The following longtable was centered and
\series bold
\backslash
LTleft
\series default
- to 0
-\begin_inset space \thinspace{}
-\end_inset
-
-pt.
+ set to
+\family sans
+0.1
+\backslash
+columnwidth
+\family default
+:
\begin_inset ERT
status collapsed
\backslash
setlength{
\backslash
-LTleft}{0pt}
+LTleft}{0.1
+\backslash
+columnwidth}
\end_layout
\end_inset
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="5">
-<features islongtable="true">
-<column alignment="center" valignment="top" width="0">
+<features islongtable="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\end_inset
-\end_layout
-
-\begin_layout Subsection
-Longtable Captions
-\begin_inset Index
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-Longtables ! Captions
+
+
+\backslash
+addtocounter{table}{-1}
\end_layout
\end_inset
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Longtable-Captions"
+\begin_inset Note Note
+status collapsed
+\begin_layout Plain Layout
+See the first greyed-out note in section
+\begin_inset space ~
\end_inset
-\end_layout
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Longtable-Captions"
-\begin_layout Standard
-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
+\end_inset
-\begin_layout Standard
-As LyX does not yet fully support captions in longtables, a hack is needed
- to create them:
+ for an explanation of this command.
\end_layout
-\begin_layout Enumerate
-Create a longtable
-\family sans
-.
-\end_layout
+\end_inset
+
-\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
+\begin_layout Subsection
+Longtable Captions
+\begin_inset Index idx
+status collapsed
-You can also add a short title for the caption.
+\begin_layout Plain Layout
+Longtables ! Captions
\end_layout
-\begin_layout Enumerate
-Insert a
-\begin_inset Quotes eld
\end_inset
-\series bold
-
-\backslash
-
-\backslash
-%
-\series default
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Longtable-Captions"
-\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
+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 when
+ you use the longtable option
+\family sans
+Caption
+\family default
+ as described in sec.
+\begin_inset space \thinspace{}
+\end_inset
-\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
- table starts with the second row.
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Longtables"
+
+\end_inset
+
+.
+ Only one table row can contain the caption.
\end_layout
\begin_layout Standard
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="5">
-<features islongtable="true">
+<features islongtable="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Plain Layout
Longtable with caption
-\begin_inset OptArg
+\begin_inset Argument
status open
\begin_layout Plain Layout
\begin_layout Plain Layout
\series bold
-Note:
+Note
+\begin_inset space ~
+\end_inset
+
+1:
\series default
- The table number is increased for every longtable, also if you didn't set
- a caption for it.
- For this reason you could have the case that e.g.
- Table
+ The table number is increased for for every longtable, even if you did
+ not set a caption for it.
+ For this reason you could have the case that e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+Table
\begin_inset space ~
\end_inset
-2.4 follows on Table
+2.4 follows Table
\begin_inset space ~
\end_inset
2.1 in the list of tables if there are two longtables without captions.
- To avoid this you can add the following command in TeX-Code behind every
+ To avoid this you can add the following command in TeX-Code after every
longtable without a caption:
\end_layout
addtocounter{table}{-1}
\end_layout
+\begin_layout Plain Layout
+This is not needed when none of your longtables have a caption and you add
+ the following code to the document preamble:
+\end_layout
+
+\begin_layout Plain Layout
+
+\series bold
+
+\backslash
+let
+\backslash
+myEnd
+\backslash
+endlongtable
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+renewcommand{
+\backslash
+endlongtable}{
+\backslash
+myEnd
+\backslash
+addtocounter{table}{-1}}
+\end_layout
+
\end_inset
\begin_layout Plain Layout
\series bold
-Note:
+Note
+\begin_inset space ~
+\end_inset
+
+2:
\series default
- If you are using the LaTeX-package
+ If you are using
\series bold
-hyperref
+ hyperref
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
- to link cross-references, the link to a longtable caption will always point
- to the beginning of the document.
-\end_layout
-
-\end_inset
-
-
+ 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
-\begin_layout Standard
-\begin_inset Newpage newpage
\end_inset
\begin_layout Subsubsection
References to Longtables
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="5">
-<features islongtable="true">
+<features islongtable="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\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
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Subsubsection
Caption Width
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="5">
-<features islongtable="true">
+<features islongtable="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Plain Layout
long full title with default width long full title with default width long
full title with default width
-\begin_inset OptArg
-status open
+\begin_inset Argument
+status collapsed
\begin_layout Plain Layout
caption with default width
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="5">
-<features islongtable="true">
+<features islongtable="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\end_inset
cm
-\begin_inset OptArg
-status open
+\begin_inset Argument
+status collapsed
\begin_layout Plain Layout
caption with width
caption
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset space \thinspace{}
\end_inset
-in, e.g.
- 3.99
+in, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+3.99
\begin_inset space \thinspace{}
\end_inset
\begin_layout Subsubsection
Different Captions for Table Pages
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-When the other captions should differ from the one of the first table page,
- insert a caption with a non-empty short title in a dummy caption row marked
- as first header.
- The caption used for the other table pages is inserted as caption without
- a short title in a dummy caption row that is marked as main header.
- When this caption shouldn't include the table number, use the command
+When the table captions for the following pages should differ from the one
+ of the first table page, insert a caption with the TeX code command
\end_layout
\begin_layout Standard
\backslash
caption*{caption text}
+\backslash
+
+\backslash
+%
\end_layout
\begin_layout Standard
-instead of LyX's caption box.
- The label to reference the table is inserted into the caption of the first
- header.
+in a dummy caption row that is marked as a header.
Table
\begin_inset space ~
\end_inset
\end_inset
- is an example for a longtable with different heading where the second caption
+ is an example of a longtable with different heading where the second caption
doesn't include the table number.
\end_layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="59" columns="3">
-<features islongtable="true">
+<features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
-<row endfirsthead="true" caption="true">
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<row caption="true">
+<cell multicolumn="1" alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
</row>
-<row endhead="true" caption="true">
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<row endhead="true">
+<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
</cell>
</row>
<row endhead="true">
-<cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
+<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series default
\begin_inset Foot
-status collapsed
+status open
\begin_layout Plain Layout
Example footnote
\begin_layout Subsection
Longtable Calculation
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
LaTeX calculates the height of table pages and their page breaks using so
called chunks.
- Chunks are pieces of the tables that are at once in LaTeX's memory.
- The default value is historically set to only 20 table rows.
+ Chunks are parts of tables that held at the same time in LaTeX's memory.
+ The default value was historically set to only 20 table rows.
If you are using longtables with many pages this may slow down the creation
of your document.
You can safely increase the chunk size to values of 100-1000 by adding
\begin_layout Subsection
Floats and Longtables
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
There might be problems when a float appears on the same page where a longtable
starts.
- To avoid such situation, add the command
-\series bold
+ To avoid such a situation, insert a
+\begin_inset Quotes eld
+\end_inset
-\backslash
-clearpage
-\series default
- as TeX-Code before your longtable.
+clear page
+\begin_inset Quotes erd
+\end_inset
+
+ (menu
+\family sans
+Insert\SpecialChar \menuseparator
+Formatting\SpecialChar \menuseparator
+Clear
+\begin_inset space ~
+\end_inset
+
+Page
+\family default
+) before your longtable.
\end_layout
\begin_layout Subsection
Forced Page Breaks
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset Quotes erd
\end_inset
- as TeX-Code at this point of the cell where it should be broken.
+ as TeX-Code at the point of the cell where it can be broken.
Before the
\series bold
\backslash
\series default
- command you have to insert in TeX-Code so many
+ command you have to insert in TeX-Code as many
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- characters like the number of the following table columns.
+ characters as the number of the following table columns.
The
\series bold
&
\begin_inset Newline newline
\end_inset
-Behind the the
+After the
\series bold
\backslash
\backslash
\series default
- command, insert so many
+ command, insert as many
\series bold
&
\series default
- characters like the number of table columns before the current column.
+ characters as the number of table columns before the current column.
In Table
\begin_inset space ~
\end_inset
the cell that should be broken is in the second column followed by another
column.
- Therefore the following command was inserted in the cell as TeX-Code behind
+ Therefore the following command was inserted in the cell as TeX-Code after
\begin_inset Quotes eld
\end_inset
\backslash
\backslash
-
+
+\backslash
+newpage
\begin_inset Newline newline
\end_inset
\begin_inset Quotes erd
\end_inset
- in the third columns of the row was deleted.
+ in the third column of the row was deleted.
+
+\series bold
+
+\backslash
+newpage
+\series default
+ is only needed when a page break should definitely occur at this position,
+ otherwise it would be a conditional break.
If your footer row of the longtable has for a certain reason no upper line
but you would have a horizontal line where the cell is broken, use this
command instead:
\begin_layout Standard
must be inserted as TeX-Code at the beginning of the cell.
- This assures that the part of the cell that will be displayed on the new
+ This ensures that the part of the cell that will be displayed on the new
page appears with the full width.
\end_layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="38" columns="3">
-<features islongtable="true">
+<features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="3cm">
<column alignment="center" valignment="top" width="0pt">
-<row endfirsthead="true" caption="true">
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<row caption="true">
+<cell multicolumn="1" alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
</row>
-<row endhead="true" caption="true">
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<row endhead="true">
+<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\backslash
-caption*{Continued table with forced page break in table cell}
+caption*{Continued Example Phone List}
\backslash
\backslash
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
</cell>
</row>
<row endhead="true">
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+
\series bold
Example Phone List
\end_layout
\backslash
\backslash
-
+
+\backslash
+newpage
\end_layout
\begin_layout Plain Layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Section
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-\align center
+\noindent
\begin_inset Float table
placement H
wide false
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="2.5cm">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="middle" width="0">
\end_layout
\begin_layout Standard
-Adjusting a fixed width for a column, enables to enter text as a paragraph
- with multiple lines and hyphenations.
+Setting a fixed width for a column enables you to enter text as a paragraph
+ with multiple lines and hyphenation.
\end_layout
\begin_layout Standard
cm and choose centered for the vertical and horizontal alignment.
The vertical alignment is used for all cells of the row.
- As our text is smaller than than 2.5
+ As our text is smaller than 2.5
\begin_inset space \thinspace{}
\end_inset
cm, only one line will appear.
To get two lines, a justified line break (shortcut
-\family sans
-Ctrl-Shift-Return
-\family default
+\begin_inset Info
+type "shortcut"
+arg "newline-insert linebreak"
+\end_inset
+
) was added.
If the text is wider than the set cell width, it will automatically be
broken to several lines.
\begin_layout Standard
If you have a long word in a cell with a fixed width, it cannot be hyphenated
by LaTeX if it is the first entry.
- Therefore you need to insert something, to make the word not being the
+ Therefore you need to insert something to prevent the word not being the
first entry.
So add a horizontal space of 0
\begin_inset space \thinspace{}
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="2.5cm">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="middle" width="0">
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="2.5cm">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="middle" width="0">
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-To span a cell over multiple columns, mark as much cells within a line that
- should be one spanned cell and use either the table-toolbar button
+To merge cells over multiple columns, select as many cells within a row
+ as you want to merge and use either the table-toolbar button
\begin_inset Graphics
filename ../images/tabular-feature_multicolumn.png
scale 85
Table\SpecialChar \menuseparator
Multicolumn
\family default
-, or right click on the marked cells and choose multicolumn in the appearing
- table dialog under the tab
+, or right click on the marked cells and choose
\family sans
-Table Settings
+Multicolumn
\family default
-.
+ in the context menu.
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="4">
-<features firstHeadTopDL="true" firstHeadBottomDL="true">
+<features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="top" width="0in">
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-LyX supports multicolumns directly, but we have to take notice of the cell
+LyX supports multicolumns directly, but we have to take account of the cell
width of the columns spanned by the multicolumn cell.
\end_layout
Table with centered multicolumn text above two columns that have exactly
half the width of the multicolumn cell
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="top" width="0">
\end_inset
cm in the table dialog.
- The spanned columns should have exactly half the width of the multicolumn
- cell, so that you would adjust a width of 1.25
+ The merged columns should have exactly half the width of the multicolumn
+ cell, so that you would set a width of 1.25
\begin_inset space \thinspace{}
\end_inset
\end_inset
-Table where the spanned table columns have not exactly half the width of
+Table where the spanned table columns are not exactly half the width of
the multicolumn cell
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="1.25cm">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\end_layout
\begin_layout Standard
-You can see that the first column has not the half width of the multicolumn
+You can see that the first column is not half the width of the multicolumn
cell, it is a bit bigger.
- The reason is that the given width of a cell
+ The reason is that the specified width of a cell
\begin_inset Formula $W_{g}$
\end_inset
\begin_inset Formula $W_{\mathrm{tot}}$
\end_inset
- because a cell is always a bit larger than its given width.
+ because a cell is always a bit larger than specified.
Appendix
\begin_inset space ~
\end_inset
\end_inset
- explains it in detail.
+ explains this in detail.
\end_layout
\begin_layout Standard
-The needed given width
+The width
\begin_inset Formula $W_{g\, n}$
\end_inset
- when
+ which the user needs to set when
\emph on
n
\emph default
\end_inset
:
-\begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
+\begin_inset Formula
+\begin{equation}
+W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
+\end{equation}
\end_inset
\end_inset
becomes
-\begin_inset Formula \begin{equation}
-W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
+\begin_inset Formula
+\begin{equation}
+W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
+\end{equation}
\end_inset
calc
\series default
must be loaded with the document preamble line
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-LyX does not allow to calculate lengths in the width-field of the table
- dialog.
+LyX does not allow you to calculate lengths in the
+\family sans
+Width
+\family default
+ field of the table dialog.
Therefore you have to format the column by inserting a LaTeX-argument in
the dialog.
Here is an overview about the arguments:
Although we have chosen centered alignment for the text of the multicolumn
cell, it is still left aligned.
This is because LyX only applies the alignment to single columns.
- So we have to use for the multicolumn the LaTeX-argument
+ So for the multicolumn cell we have to use the LaTeX-argument
\end_layout
\begin_layout Standard
\begin_layout Subsection
Multirows
-\begin_inset Index
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Multirows"
+
+\end_inset
+
+
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
-status collapsed
+\end_layout
+
+\begin_layout Standard
+To merge cells over multiple rows, select as many cells within a column
+ as you want to merge and use either the table-toolbar button
+\begin_inset Graphics
+ filename ../images/tabular-feature_multirow.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+, or the menu
+\family sans
+Edit\SpecialChar \menuseparator
+Table\SpecialChar \menuseparator
+Multirow
+\family default
+, or right click on the marked cells and choose
+\family sans
+Multirow
+\family default
+ in the context menu.
+\end_layout
+
+\begin_layout Standard
+Here is an example table with a multirow in the first column:
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
-LaTeX-packages ! multirow
+a long cell entry
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+b
+\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+c
\end_layout
-\begin_layout Standard
-In contrary to multicolumns multirows are not yet supported by LyX so a
- bit of TeX-Code needs to be used.
- To use multirows load the LaTeX-package
-\series bold
+\end_inset
+</cell>
+</row>
+<row>
+<cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
multirow
-\series default
- in your document preamble with the command
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+e
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+f
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+h
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+i
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
+The width of multirow cells is set by setting the width and alignment for
+ the whole column.
+ The
+\family sans
+Vertical Offset
+\family default
+ shifts the content of the multirow up/down if the offset is positive/negative.
+\end_layout
+\begin_layout Standard
+If the column of a multirow cell has no explicit width, the multirow cell
+ inherits the alignment of the column.
+ Otherwise it is by default left-aligned.
+ To override the default, renew the command
\series bold
\backslash
-usepackage{multirow}
+multirowsetup
+\series default
+ with the command
\end_layout
\begin_layout Standard
-Multirows are created with the command
+
+\series bold
+
+\backslash
+renewcommand{
+\backslash
+multirowsetup}{
+\backslash
+centering}
\end_layout
\begin_layout Standard
+in the document preamble.
+ Then all entries of multirow cells in the document are centered.
+ If centering is only needed for several tables, you can renew the command
+ in a TeX-Code box just before the table instead of the preamble.
+ If the text should be right-aligned, replace
+\series bold
+\backslash
+centering
+\series default
+ by
\series bold
\backslash
-multirow{number of rows}{cell width}{cell entry}
+raggedleft
+\series default
+.
+ To return to left-alignment
+\series bold
+
+\backslash
+raggedright
+\series default
+ is used.
\end_layout
\begin_layout Standard
-To create the following table:
+This is an example table with a right-aligned multirow cell that has a vertical
+ offset of -4
+\begin_inset space \thinspace{}
+\end_inset
+
+mm and is in a 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm wide column:
\end_layout
\begin_layout Standard
+\noindent
\align center
\begin_inset ERT
status collapsed
\backslash
multirowsetup}{
\backslash
-centering}
+raggedleft}
\end_layout
\end_inset
\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="3">
-<features>
-<column alignment="center" valignment="top" width="0">
+<lyxtabular version="3" rows="4" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="3cm">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Text
\begin_layout Plain Layout
-a
+a long cell entry
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
+t
+\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
-\backslash
-multirow{2}{2.5cm}{
+\begin_layout Plain Layout
+n
\end_layout
\end_inset
-
-multirow entry
-\begin_inset ERT
-status collapsed
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
-
-}
+m
\end_layout
\end_inset
+</cell>
+</row>
+<row>
+<cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
-
+\begin_layout Plain Layout
+multirow
\end_layout
\end_inset
</cell>
</row>
<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+<cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
-\begin_layout Standard
-create a 3×3 table.
- To get rid of the line above the last cell in the first column, the cell
- is marked as multicolumn and the upper border is unset.
- The multirow is now created in the second row of the first column by inserting
- there the command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-multirow{2}{2.5cm}{
-\end_layout
-
-\begin_layout Standard
-as TeX-Code.
- According to the command parameters the multirow spans now two rows and
- has a width of 2.5
-\begin_inset space \thinspace{}
-\end_inset
-
-cm.
- The content of the multirow cell follows outside the TeX-Code box and the
- command is finished with a right brace
-\series bold
-}
-\series default
- in another TeX-Code-box behind the text.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-multirow
-\series default
- left-aligns its content by default.
- To override the default, renew the command
-\series bold
-
-\backslash
-multirowsetup
-\series default
- with the command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-renewcommand{
-\backslash
-multirowsetup}{
-\backslash
-centering}
-\end_layout
-
-\begin_layout Standard
-in TeX-Code in the document preamble.
- Then all entries of multirow cells in the document are centered.
- If centering is only needed for several tables, you can renew the command
- in an TeX-Code box just before the table instead of the preamble.
- If the text should be right-aligned, replace
-\series bold
-
-\backslash
-centering
-\series default
- by
-\series bold
-
-\backslash
-raggedleft
-\series default
-.
- To return to left-alignment
-\series bold
-
-\backslash
-raggedright
-\series default
- is used.
-\end_layout
-
\begin_layout Section
Formal Tables
\begin_inset CommandInset label
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="4">
-<features booktabs="true">
+<features booktabs="true" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_inset Text
\begin_layout Plain Layout
-Medipix
-\begin_inset Formula $\,$
+Chip
+\begin_inset space \thinspace{}
\end_inset
1
\end_inset
</cell>
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-Medipix
-\begin_inset Formula $\,$
+Chip
+\begin_inset space \thinspace{}
\end_inset
2
\end_inset
-Detector thickness [µm]
+Detector thickness in µm
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Edge angle [°]
+Edge angle in °
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Spatial resolution [µm]
+Spatial resolution in µm
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-In contrary to normal tables, formal tables have no vertical table lines.
- The horizontal table lines can be set like for normal tables but they appear
- with different width in the output:
+Unlike normal tables, formal tables have no vertical table lines.
+ The horizontal table lines can be set as for normal tables but they appear
+ with different widths in the output:
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
-Lines that don't span over all table columns can be created by setting a
- table line for multicolumn cells.
+Lines that do not span all table columns can be created by setting a table
+ line for multicolumn cells.
LyX will then internally use the command
\series bold
\backslash
cmidrule
\series default
- are are currently not supported by LyX so you have to use TeX-Code to be
- able to use them.
+ are currently not supported by LyX so you have to use TeX-Code to be able
+ to use them.
\series bold
\backslash
cmidrule
\series default
-s can manually be created by inserting the command as TeX-Code as first
+s can manually be created by inserting the command as TeX-Code as the first
cell entry of the first cell of a row.
The line is then drawn in the output above the current row.
\end_layout
\end_layout
\begin_layout Standard
-at the beginning of the in the second row and
+at the beginning of the second row and
\end_layout
\begin_layout Standard
\backslash
cmidrule
\series default
-s like in Table
+s as in in Table
\begin_inset space ~
\end_inset
\end_layout
\begin_layout Standard
-For more informations about these specialties, we refer to the manual of
- the LaTeX-package
+For more information about these features, refer to the manual of the LaTeX-pack
+age
\series bold
booktabs
\series default
\end_inset
.
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="4">
-<features booktabs="true">
+<features booktabs="true" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_inset Text
\begin_layout Plain Layout
-Medipix
+Chip
\begin_inset space \thinspace{}
\end_inset
\end_inset
</cell>
-<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+<cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-Medipix
+Chip
\begin_inset space \thinspace{}
\end_inset
\end_inset
-Detector thickness [µm]
+Detector thickness in µm
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Edge angle [°]
+Edge angle in °
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Spatial resolution [µm]
+Spatial resolution in µm
\end_layout
\end_inset
\begin_layout Section
Vertical Table Alignment
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1in"
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1in"
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1in"
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1in"
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1in"
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\end_layout
\begin_layout Standard
-As you can see, the content of the first and last table row is not correctly
- aligned with the text line where the table is in.
+As you will see, the content of the first and last table row is not correctly
+ aligned.
To get this alignment, the minipage box must be set into a raisebox
\begin_inset Foot
status collapsed
\begin_layout Standard
before the box.
- Behind the box the closing brace
+ After the box the closing brace
\series bold
}
\series default
\series default
The alignment of the table row content to the surrounding text line is
not exact.
- The needed factor of the
+ The required value for the
\series bold
\backslash
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Subsection
Colored Cells
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
colortbl
\series default
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
colortbl
\series default
.
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\series bold
>{}
\series default
- is described in section
+ is contained in section
\begin_inset space ~
\end_inset
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
define the color "
\series bold
\backslash
-rowcolow{cyan}
+rowcolor{cyan}
\end_layout
\begin_layout Standard
colortbl
\series default
-\begin_inset OptArg
+\begin_inset Argument
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Subsection
Colored Lines
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0" special="Wc">
<column alignment="center" valignment="top" width="0" special="Wc">
<column alignment="center" valignment="top" width="0" special="WcW">
\begin_inset VSpace bigskip
\end_inset
-To color horizontal lines for example with red, like in Table
+To color horizontal lines for example with red, as in Table
\begin_inset space ~
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Standard
To return to the default line color black, insert this command in TeX-Code
- behind the table or table float:
+ after the table or table float:
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0" special="Wc">
<column alignment="center" valignment="top" width="0" special="Wc">
<column alignment="center" valignment="top" width="0" special="WcW">
\begin_layout Section
Table Customization
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="1">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Newline newline
\end_inset
-So inserting space to the top of row for normal tables is only useful when
+So inserting space in the top of row for normal tables is only useful when
you don't have vertical lines.
\end_layout
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="1">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
array
\series default
will be loaded automatically by LyX when you use self defined table formats.
- To avoid that it is loaded twice the command
+ To avoid that it being loaded twice the command
\series bold
\backslash
is used in the above command.)
\end_layout
+\begin_layout Standard
+If you are using font sizes larger than the normal size, the table borders
+ are often too close to the letters.
+ This can be corrected by inserting the command
+\series bold
+
+\backslash
+strut
+\series default
+ in TeX code at the beginning of a table row.
+ Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Vertical-alignment-of"
+
+\end_inset
+
+ illustrates the effect.
+\end_layout
+
+\begin_layout Standard
+\noindent
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Vertical-alignment-of"
+
+\end_inset
+
+Vertical alignment of text with large font sizes.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset space \hfill{}
+\end_inset
+
+
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Normal table.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="6" columns="1">
+<features tabularvalignment="middle">
+<column alignment="left" valignment="top" width="0">
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Normal, g
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size large
+Large
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size larger
+Larger
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size largest
+Largest
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size huge
+Huge
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size huge
+Huger
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset space \hfill{}
+\end_inset
+
+
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Table using the command
+\series bold
+
+\backslash
+strut
+\series default
+.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="6" columns="1">
+<features tabularvalignment="middle">
+<column alignment="left" valignment="top" width="0">
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Normal, g
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size large
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+strut
+\end_layout
+
+\end_inset
+
+Large
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size larger
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+strut
+\end_layout
+
+\end_inset
+
+Larger
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size largest
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+strut
+\end_layout
+
+\end_inset
+
+Largest
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size huge
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+strut
+\end_layout
+
+\end_inset
+
+Huge
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\size giant
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+strut
+\end_layout
+
+\end_inset
+
+
+\size huge
+Huger
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset space \hfill{}
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
\begin_layout Subsection
Special Cell Alignment
-\begin_inset Index
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Special-Cell-Alignment"
+
+\end_inset
+
+
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
with the decimal separator as in Table
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Table-cells-of"
+reference "tab:Table-cells-align"
\end_inset
.
+ This alignment is achieved by setting the cursor into the column and then
+ either pressing the toolbar button
+\begin_inset Graphics
+ filename ../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+ or setting the alignment in the table settings to
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+.
+ The alignment character can be a character of your choice and is specified
+ in the table settings.
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-cells-of"
+name "tab:Table-cells-align"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="." valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+heading
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12.6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0.68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123.0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-align-operator"
+
+\end_inset
+
+Table cells of a column aligned with the operators.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12.
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0.
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123.
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-This table was created with a 4×2 table.
+For alignments at characters in formulas this method does not work because
+ the field to specify the alignment character does not allow formulas.
+ In this case one need to use the method from Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
+ This table was created with a 4×2 table.
The heading is a centered multicolumn.
- The first column is right-aligned and contains the digits before the decimal
- point and the decimal point.
- The second column is left aligned and contains the digits after the decimal
- point.
- To omit the space that is normally between two table columns, use the following
- LaTeX-argument for the second column:
+ The first column is right-aligned and contains the first part including
+ the operator.
+ The second column is left aligned and contains the rest.
+ A small space was added at the beginning of each cell of the second column
+ to get the space that is usually around operators.
+ To omit the space that is normally between two table columns, the following
+ LaTeX-argument was used for the second column:
\end_layout
\begin_layout Standard
\end_inset
shows some example alignments.
- For the alignment with the relation sign, you must add the second smallest
- math-space at the beginning of the last column to get the correct space
- surrounding the relation sign.
+ For the alignment with the relation sign, a small space was added like
+ for the second column of Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\begin_inset Float table
+placement h
wide false
sideways false
status open
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="6">
-<features>
+<features tabularvalignment="middle">
<column alignment="right" valignment="top" width="0">
<column alignment="left" valignment="top" width="0" special="@{}l">
<column alignment="right" valignment="top" width="0">
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-There is also the LaTeX-package
-\series bold
-dcolumn
-\series default
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! dcolumn
-\end_layout
-
-\end_inset
-
- that provides table cell alignments.
- But this unfortunately treats the cell entries as math and doesn't allow
- formulas in table cells: The first column of Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Several-table-cell"
-
-\end_inset
-
- will look with
-\series bold
-dcolumn
-\series default
- like the first column in Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Alignments-when"
-
-\end_inset
-
- and only with some tricks like the expected.
- The alignment of the second and third column of Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Several-table-cell"
-
-\end_inset
-
- is not possible with
-\series bold
-dcolumn
-\series default
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Alignments-when"
-
-\end_inset
-
-Alignments when LaTeX-package dcolumn is used.
- For all column alignments tricks have to be used to get the output.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features>
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-bottles
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24~
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-Pixels
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768~
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6~
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Calculating the needed width for spanned columns like in section
+Calculating the required width for spanned columns as in section
\begin_inset space ~
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
-
-\backslash
-phantom{
-\end_layout
-
-\end_inset
-
+\series bold
\backslash
newcolumntype
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
\end_inset
- to calculate the needed width so that each spanned cell has the same width.
+ to calculate the required width so that each spanned cell has the same
+ width.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-for the the last column, and
+for the last column, and
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="4">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
<column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
<column alignment="center" valignment="middle" width="0">
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset space \thinspace{}
\end_inset
-pt, like in Table
+pt, as in Table
\begin_inset space ~
\end_inset
\begin_layout Standard
in TeX-Code before the table or table float.
- The changed thickness is valid for all following tables.
+ The changed thickness is valid for all subsequent tables.
To use the default value again, set
\series bold
\begin_inset space \thinspace{}
\end_inset
-pt in TeX-Code behind the table or table float.
+pt in TeX-Code after the table or table float.
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_inset space \thinspace{}
\end_inset
-pt only for horizontal lines, like in Table
+pt only for horizontal lines, as in Table
\begin_inset space ~
\end_inset
\begin_layout Standard
To return to the default line thickness, insert this command in TeX-Code
- behind the table or table float:
+ after the table or table float:
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0" special="Vc">
<column alignment="center" valignment="top" width="0" special="Vc">
<column alignment="center" valignment="top" width="0" special="VcV">
\begin_layout Subsection
Dashed Lines
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="5">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0" special=":c">
\end_layout
\begin_layout Standard
-LyX doesn't natively support dashed lines, so you have to use TeX-Code.
- As prerequisite the LaTeX-package
+LyX does not natively support dashed lines, so you have to use TeX-Code.
+ As a prerequisite the LaTeX-package
\series bold
arydshln
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-in TeX-Code as first element of the first cell in the table row.
- If you have for example a multicolumn spanning over columns 2 to 4 and
- you want to have a dashed line above, add the command
+in TeX-Code as the first element of the first cell in the table row.
+ If you have for example a multicolumn spanning columns 2 to 4 and you want
+ to have a dashed line above, add the command
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-as first element of the first cell in the row of the multicolumn.
+as the first element of the first cell in the row of the multicolumn.
\end_layout
\begin_layout Standard
\backslash
hdashline
\series default
- was inserted to the first cell of the third row and the the TeX-Code command
+ was inserted in the first cell of the third row and the TeX-Code command
\begin_inset Newline newline
\end_inset
\backslash
cdashline{4-5}
\series default
- was inserted to the first cell of the fourth row.
+ was inserted in the first cell of the fourth row.
\end_layout
\begin_layout Standard
\series bold
Note:
\series default
- The used LaTeX-package
+ The LaTeX-package
\series bold
arydshln
\series default
colortbl
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Chapter
Floats
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset CommandInset label
-LatexCommand label
-name "cha:Floats"
-
-\end_inset
-
-
\end_layout
\begin_layout Section
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Notes
\family default
are also floats, because they can float to the next page when there are
- too many notes at the page.
+ too many notes on the page.
\end_layout
\begin_layout Standard
Floats allow a high quality layout.
- Images and tables can evenly be spread to the pages to avoid white space
+ Images and tables can be spread evenly to the pages to avoid white space
and pages without text.
As the floating often destroys the context between the text and the image/table
, every float can be referenced in the text.
inset, a box with a label.
The label will automatically be translated to the document language in
the output.
- Behind the label you can insert the caption text.
+ After the label you can insert the caption text.
The image or table is inserted above or below the caption in a separate
paragraph within the float.
- More about the caption placement is described in section
+ More about the caption placement is contained in section
\begin_inset space ~
\end_inset
\end_inset
- -- a gray button with a red label.
+ – a gray button with a red label.
\end_layout
\begin_layout Standard
-It is recommended to insert floats as a separate paragraph to avoid possible
- LaTeX-errors that can occur when the surrounding text is specially formatted.
+It is recommended that you insert floats as a separate standard paragraph
+ to avoid possible LaTeX-errors that can occur when the surrounding text
+ is specially formatted.
\end_layout
\begin_layout Standard
-Existing figures or tables can be put into a float by marking them and then
- pressing the corresponding toolbar button for a new float.
+Existing figures or tables can be put into a float by highlighting them
+ and then pressing the corresponding toolbar button for a new float.
\end_layout
\begin_layout Section
\end_layout
\begin_layout Standard
-Besides figure and table floats that are described in section
+Besides figure and table floats that are described in sections
\begin_inset space ~
\end_inset
\end_inset
-, respectively, LyX offers the float types
+ respectively, LyX offers the float types
\series bold
Algorithm
\series default
and
\series bold
-Text
-\begin_inset space ~
-\end_inset
-
Wrap
-\begin_inset space ~
-\end_inset
-
-Float
\series default
.
\end_layout
\begin_layout Subsection
Algorithm Floats
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Algorithm-Floats"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
Algorithm
\family default
.
- It is used for program codes and descriptions of algorithms.
+ It is used for program codes and descriptions of algorithms and can be
+ seen as an alternative to program code listings that are explained in chapter
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "cha:Program-Code-Listings"
+
+\end_inset
+
+.
A possible environment for algorithms is the
\family sans
LyX-Code
\end_layout
\begin_layout Standard
-To insert the list of algorithms you can in this case not use the menu
+To insert the list of algorithms you can use the menu
\family sans
Insert\SpecialChar \menuseparator
List
TOC\SpecialChar \menuseparator
List of Algorithms
\family default
- when your document is an English one.
- For non-English documents, use this command in TeX-Code instead:
+ when your document has the same language as LyX's menu names.
+ In other cases use this command in TeX-Code instead:
\end_layout
\begin_layout Standard
\begin_inset Quotes erd
\end_inset
- like it is the case for table and figure floats in many document-classes.
+ as is the case for table and figure floats in many document-classes.
To number algorithm floats in the same scheme, add this command to your
document preamble:
\end_layout
\end_layout
\begin_layout Subsection
-Text Wrap Floats
-\begin_inset Index
+Wrap Floats
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Floats ! Text Wrap Floats
+Floats ! Wrap Floats
\end_layout
\end_inset
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:floatflt-wrap-float"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Wrap figure
lines 0
placement l
-overhang 0col%
+overhang 1cm
width "40col%"
status open
\end_inset
-This is a wrapped figure, and this is the brilliant caption that describes
- it.
-\begin_inset VSpace medskip
-\end_inset
-
-
+This is a figure wrap float.
\end_layout
\end_inset
\end_inset
-This float type is used if you want to
-\begin_inset Quotes eld
+ This float type is used if you want to wrap text around a figure or table
+ so that it only occupies some fraction of the column width.
+ It can be inserted using the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Floats\SpecialChar \menuseparator
+Figure
+\begin_inset space ~
\end_inset
-wrap
-\begin_inset Quotes erd
+Wrap
+\begin_inset space ~
\end_inset
- text around a figure so that it only occupies some fraction of the column
- width.
- It can be inserted using the menu
+Float
+\family default
+ or
\family sans
-Insert\SpecialChar \menuseparator
-Floats\SpecialChar \menuseparator
-Text
+Table
\begin_inset space ~
\end_inset
wrapfig
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-vspace
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-4mm
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
+vspace{4mm}
\end_layout
\end_inset
\end_inset
- The width and placement of the float is adjusted by right-clicking on the
- float box.
+ The settings of the float can be modified by right-clicking on the float
+ box.
+ The mandatory settings are the float
+\family sans
+Placement
+\family default
+ and its
+\family sans
+Width
+\family default
+.
+ Optional are the
+\family sans
+Overhang
+\family default
+ that specifies how much the float is set into the paragraph
+\begin_inset space \thinspace{}
+\end_inset
+
+/
+\begin_inset space \thinspace{}
+\end_inset
+
+page margin, and the
+\family sans
+Line
+\begin_inset space ~
+\end_inset
+
+span
+\family default
+ that specifies how many text lines the float will approximately need.
+ The line span is often hard to approximate; so it is better only to use
+ it when you encounter float placement problems.
+ You can furthermore decide if LaTeX is allowed to let the float float within
+ the paragraph or to surrounding paragraphs.
Figure
\begin_inset space ~
\end_inset
\begin_inset space \thinspace{}
\end_inset
-col%.
+col%, 1
+\begin_inset space \thinspace{}
+\end_inset
+
+cm overhang, set to the left.
\begin_inset Foot
status collapsed
\end_inset
- Some space was added under the caption to separate it better from the surroundi
-ng text.
-\end_layout
-
-\begin_layout Standard
-The LaTeX-package
-\series bold
-wrapfig
-\series default
- also supports table wrap floats, but they are not yet supported by LyX.
- If you need this, read the documentation of
-\series bold
-wrapfig
-\series default
-
-\begin_inset CommandInset citation
-LatexCommand cite
-key "wrapfig"
-
-\end_inset
-.
\end_layout
\begin_layout Standard
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
having a figure too close to the bottom of the page can mess things up in
- the way that the float doesn't appear in the output or that it is placed
+ such a way that the float does not appear in the output or that it is placed
over some other text.
\end_layout
\begin_layout Itemize
Wrap floats should not be placed in paragraphs that run over a page break.
- That means that wrap floats should better be inserted to the exact place
- when the document is nearly finished and you are able to estimate where
- page breaks will appear.
+ That means that wrap floats are better inserted in their exact place when
+ the document is almost finished and you are able to estimate where page
+ breaks will appear.
\end_layout
\begin_layout Itemize
-Wrap floats should either be placed in an own paragraph before the paragraph
+Wrap floats should either be placed in their own paragraph before the paragraph
where they should wrap into or within a paragraph.
\end_layout
\begin_layout Itemize
-Wrap floats in consecutive paragraphs may cause troubles, so assure that
+Wrap floats in consecutive paragraphs may cause troubles, so ensure that
there is a text paragraph between them as separator.
\end_layout
\begin_layout Section
Float Numbering
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Float-Numbering"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Floats are usually numbered either independent from the sections the floats
+Floats are usually numbered either independently from the sections the floats
are in, or in the scheme
\begin_inset Quotes eld
\end_inset
\end_inset
.
- This depends on the used document class.
+ This depends on the document class used.
\end_layout
\begin_layout Standard
-To change the section independent numbering, you can use this command in
- the document preamble:
+To change section-independent numbering, you can use this command in the
+ document preamble:
\end_layout
\begin_layout Standard
thefigure
\series default
.
- The command
+
\series bold
\backslash
roman
\series default
- prints in the command above the table number as small roman number.
+ in the command above prints the table number as small roman number.
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-References
+References ! to Floats
\end_layout
\end_inset
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
for figure floats the prefix will be "
\end_layout
\begin_layout Standard
-It is recommended to use a protected space between the cross-reference name
- and its number to avoid line breaks between them.
+It is recommended that you use a protected space between the cross-reference
+ name and its number to avoid line breaks between them.
If a cross-reference refers to a non-existing label, you will see two question
marks in the output instead of the reference.
\end_layout
Back and you can use it to set the cursor back to the cross-reference.
Right-clicking on a cross-reference box also sets the cursor before the
- referenced label but without a possibility to go back.
+ referenced label but without the possibility of going back.
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset space ~
\end_inset
-reference: prints a self defined cross-reference format.
-
+reference: prints a self-defined cross-reference format.
+\begin_inset Newline newline
+\end_inset
+
+
\begin_inset Note Greyedout
status open
\series bold
prettyref
\series default
+ or
+\series bold
+refstyle
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! prettyref
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! refstyle
+\end_layout
+
+\end_inset
+
installed.
\end_layout
\end_inset
+\begin_inset Newline newline
+\end_inset
+
+You can select which LaTeX-package should be used for this feature by setting
+ the option
+\family sans
+Use refstyle (not prettyref) for cross-references
+\family default
+ in the menu
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Document Class
+\family default
+.
+ The format is specified by adding the command
+\series bold
+
+\backslash
+newrefformat
+\series default
+ (prettyref) or
+\series bold
+
+\backslash
+newref
+\series default
+ (refstyle) to the preamble of the document.
+ For example redefining all references to figures (which have the label
+ shortcut
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+fig
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+) can be done with this command
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+newref{fig}{refcmd={Image on page
+\backslash
+pageref{#1}}}
+\series default
+
+\begin_inset Newline newline
+\end_inset
+
+For more information about the format, have a look at the package documentations
+,
+\begin_inset CommandInset citation
+LatexCommand cite
+key "prettyref,refstyle"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Description
+Textual
+\begin_inset space ~
+\end_inset
+
+reference: prints the caption of the reference:
+\begin_inset CommandInset ref
+LatexCommand nameref
+reference "fig:Two-distorted-images"
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
-Note that the style <page> won't print the page number if the label is on
- the previous, the same, or the next page.
+
+\family sans
+<page>
+\family default
+ will not print the page number if the label is on the previous, the same,
+ or the next page.
You will e.
\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
see the text
\end_inset
instead.
+ The style
+\family sans
+<reference> on page <page>
+\family default
+ will not print anything about the page if the label is on the same page.
\end_layout
\begin_layout Standard
-The number and current page of the referred document part in the output,
- is automatically calculated by LaTeX.
+The number and current page of the part of the document referred to in the
+ output is automatically calculated by LaTeX.
The varieties are adjusted in the field
\family sans
Format
\family default
- of the cross-reference window, that appear when you click on the cross-referenc
+ of the cross-reference window that appears when you click on the cross-referenc
e box.
\end_layout
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ It is recommended to use the LaTeX-package
+\series bold
+refstyle
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! refstyle
+\end_layout
+
+\end_inset
+
+ because
+\series bold
+prettyref
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! prettyref
+\end_layout
+
+\end_inset
+
+ does not know all of LyX's possible label shortcuts
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Quotes eld
+\end_inset
+
+fig:
+\begin_inset Quotes erd
+\end_inset
+
+ is for example LyX's shortcut for labels in figure captions.
+\end_layout
+
+\end_inset
+
+ and is not internationalized.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Due to a bug in the LaTeX-package
+\series bold
+varioref
+\series default
+ version 1.4w, some cross-reference formats will cause LaTeX errors for document
+ languages that make the period character active (like French).
+ For a workaround, see
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset CommandInset href
+LatexCommand href
+target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
+
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
\begin_layout Subsection
Automatic Reference Naming
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\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 idx
+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 having to write e.
\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
the name
\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
- in the document preamble with
+
+\begin_inset Quotes eld
+\end_inset
+
+, you can redefine the name by inserting this in 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]{
-\backslash
-mbox{
+sectionautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Phantom HPhantom
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+\begin_inset space ~
+\end_inset
+
+
+\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 language used.
+\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 Phantom HPhantom
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+\begin_inset space ~
+\end_inset
+
+
+\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
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
hyperref
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\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
hypcap
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
oberdiek
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\series bold
hypcap
\series default
- for all floats but this isn't recommended for stability reasons.
- For more informations, have a look at
+ for all float types but this is not recommended for stability reasons.
+ For more information, have a look at
\series bold
hypcap
\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
- has no effect for references to subfigures.
+ has no effect on references to subfigures.
\end_layout
\end_inset
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
columns
\family default
is only useful for two-column documents: If you select it, the float will
- span across both columns on the page instead of being confined to just
- one.
+ span both columns on the page instead of being confined to just one.
\begin_inset Newline newline
\end_inset
\begin_inset space ~
\end_inset
-possible try to place the float on the position where it is inserted
+possible try to place the float on the position where it has been inserted
\end_layout
\begin_layout Description
\begin_inset space ~
\end_inset
-page try to place the float on the top of the current page
+page try to place the float at the top of the current page
\end_layout
\begin_layout Description
\begin_inset space ~
\end_inset
-page try to place the float on the bottom of the current page
+page try to place the float at the bottom of the current page
\end_layout
\begin_layout Description
\begin_inset space ~
\end_inset
-floats try to place the float on an own page
+floats try to place the float on its own page
\end_layout
\begin_layout Standard
page
\family default
, and then the others.
- If you don't use the default, LaTeX will try only the checked options but
- in the same order.
- If none of the 4 placements are possible the procedure is internally repeated
- but it is tried to put the float on the following page.
+ If you do not use the default, LaTeX will try only the checked options
+ but in the same order.
+ If none of the 4
+\begin_inset space ~
+\end_inset
+
+placements are possible the procedure is internally repeated but it is tried
+ to put the float on the following page.
\end_layout
\begin_layout Standard
\end_inset
You can also redefine the rules with LaTeX-commands that are given in parenthese
-s behind the rules description above.
+s after the rules description above.
To increase for example the often too small default of the bottom-rule
to 50
\begin_inset space \thinspace{}
definitely
\family default
.
- Use this option very rarely and only if the document is nearly ready to
- be printed.
- Because the float is then no longer able to
+ Use this option very rarely and only if the document is almost ready to
+ be printed, because the float is then no longer able to
\begin_inset Quotes eld
\end_inset
\series default
can be used.
It suppresses a given float placement for the page where it is inserted
- and can therefore be used to avoid that floats could be set before a section
- starts.
+ and can therefore be used to avoid floats being set before a section starts.
To get this, add these commands to your document preamble:
\end_layout
\begin_layout Standard
You can define the same for all section headings, like chapters and subsections.
This definition is not recommended to be used for small text parts like
- subsubsections because LaTeX may then have problems to find a suitable
+ subsubsections because LaTeX may then have problems finding a suitable
placement.
\end_layout
endfloat
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
was developed.
- It puts all figure and table floats at the end of the document into own
- sections.
+ It puts all figure and table floats at the end of the document into their
+ own sections.
At the original float position a text hint like
\begin_inset Quotes eld
\end_inset
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Rotated floats are always placed on its own page (or column, when you have
- a two-column document).
- They are rotated so that you can read them from the outside margin.
+Rotated floats are always placed on a page of their own (or column of their
+ own; in case you have a multi-column document).
+ You can let them span several columns using the float settings option
+\family sans
+Span
+\begin_inset space ~
+\end_inset
+
+columns
+\family default
+.
+ Floats are rotated so that you can read them from the outside margin.
To force a certain rotation direction for all pages, you can add either
the option
\series bold
\end_layout
\begin_layout Standard
-Referencing rotated floats is the same like for normal floats, the caption
+Referencing rotated floats is the same as for normal floats, the caption
format is also the same: Table
\begin_inset space ~
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="5">
-<features>
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+b
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+d
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+e
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Subfloats
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Floats ! Subfloats
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Subfloats are for example used when a figure consists of several images.
+ They are created by inserting a float into an existing float.
+ The placement of the subfloats can be controlled in the same way as for
+ paragraphs as shown in table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Two-subtables-side"
+
+\end_inset
+
+ and
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Two-subtables-upon"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+Referencing subfloats works as for normal floats: Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:This-is-subtable-a"
+
+\end_inset
+
+ and
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:This-is-subtable-b"
+
+\end_inset
+
+ are subtables of table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Two-subtables-side"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Two-subtables-side"
+
+\end_inset
+
+Two subtables placed side by side.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset space \hfill{}
+\end_inset
+
+
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:This-is-subtable-a"
+
+\end_inset
+
+This is subtable a.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="1" columns="5">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+b
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+d
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+e
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset space \hfill{}
+\end_inset
+
+
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:This-is-subtable-b"
+
+\end_inset
+
+This is subtable b.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="1" columns="5">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+e
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+d
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+b
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset space \hfill{}
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Two-subtables-upon"
+
+\end_inset
+
+Two subtables placed one above the other.
+ (a) table with 4 cells, (b) table with 5 cells.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="1" columns="4">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+test
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Float table
+wide false
+sideways false
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="1" columns="5">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+a
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
\begin_layout Plain Layout
b
\end_layout
\end_inset
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Section
Floats Side by Side
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-To place floats side by side, like for Figure
+To place floats side by side, as in Figures
\begin_inset space ~
\end_inset
has_inner_box 1
inner_pos "t"
use_parbox 0
+use_makebox 0
width "45col%"
special "none"
height "1in"
has_inner_box 1
inner_pos "t"
use_parbox 0
+use_makebox 0
width "45col%"
special "none"
height "1in"
\begin_layout Section
Caption Formatting
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\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"
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
caption
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
To have for example the label and the number in sans-serif bold font and
- the table captions always above the table like in this document, use the
+ the table captions always above the table as in this document, use the
following command:
\end_layout
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
\backslash
-hphantom{
-\backslash
-
-\backslash
-captionsetup[figure]
-\backslash
-{}
+captionsetup[figure]{
\end_layout
\end_inset
- labelsep=period}
+labelsep=period}
\begin_inset Newline newline
\end_inset
\series default
has no effect when a
\series bold
-koma-script
+KOMA-Script
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-LaTeX-packages ! koma-script
+LaTeX-packages ! KOMA-Script
\end_layout
\end_inset
document class is used.
In this case the document class option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
must be used.
\end_layout
we refer to its documentation
\begin_inset CommandInset citation
LatexCommand cite
-key "caption,caption-de"
+key "caption"
\end_inset
\end_layout
\begin_layout Standard
-To change the label name from e.g.
-
+To change the label name from e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+
\begin_inset Quotes eld
\end_inset
If you are using a
\series bold
-koma-script
+KOMA-Script
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-LaTeX-packages ! koma-script
+LaTeX-packages ! KOMA-Script
\end_layout
\end_inset
document class (
\family sans
-article (koma-script)
+article (KOMA-Script)
\family default
,
\family sans
-book (koma-script)
+book (KOMA-Script)
\family default
,
\family sans
-letter (koma-script)
+letter (KOMA-Script)
\family default
, or
\family sans
-report (koma-script)
+report (KOMA-Script)
\family default
\begin_inset space \thinspace{}
\series default
package use
\series bold
-koma-script
+KOMA-Script
\series default
's built-in command
\series bold
\series default
we refer to the
\series bold
-koma-script
+KOMA-Script
\series default
documentation
\begin_inset CommandInset citation
LatexCommand cite
-key "koma-script"
+key "KOMA-Script"
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="5">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Section
Caption Placement
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
report
\family default
there will be no space between the caption and the table.
- To insert the needed space, add the following option to the load command
+ To insert the necessary space, add the following option to the load command
of the LaTeX-package
\series bold
caption
\begin_layout Standard
If you are using a
\series bold
-koma-script
+KOMA-Script
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-LaTeX-packages ! koma-script
+LaTeX-packages ! KOMA-Script
\end_layout
\end_inset
document class (
\family sans
-article (koma-script)
+article (KOMA-Script)
\family default
,
\family sans
-book (koma-script)
+book (KOMA-Script)
\family default
,
\family sans
-letter (koma-script)
+letter (KOMA-Script)
\family default
, or
\family sans
-report (koma-script)
+report (KOMA-Script)
\family default
\begin_inset space \thinspace{}
\series default
package set the document class option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
.
\end_layout
sidecap
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
If you set no option, the caption is placed on the side of the outer page
- margin -- to the right on odd pages, to the left on even pages.
+ margin – to the right on odd pages, to the left on even pages.
You can change the placement to inner margin with the option
\series bold
innercaption
\end_layout
\begin_layout Standard
+\noindent
+\begin_inset CommandInset line
+LatexCommand rule
+offset "0.5ex"
+width "100line%"
+height "1pt"
+
+\end_inset
-\lyxline
\end_layout
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_layout
\begin_layout Standard
+\noindent
+\begin_inset CommandInset line
+LatexCommand rule
+offset "0.5ex"
+width "100line%"
+height "1pt"
+
+\end_inset
-\lyxline
\end_layout
\begin_layout Standard
in TeX-Code before the float.
- Behind the float insert the command
+ After the float insert the command
\end_layout
\begin_layout Standard
hypcap
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="5">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_layout Section
Listings of Floats
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Listings-of-Floats"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Similar to the the table of contents where the sections of the document
- are listed, there are listings for all float types, like the figures of
- the documents.
+Similar to the table of contents where the sections of the document are
+ listed, there are listings for all float types, like the figures of the
+ documents.
You can insert them via the
\family sans
Insert\SpecialChar \menuseparator
\begin_layout Section
LyX Notes
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:LyX-Notes"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Note
\family default
.
- There are five types of notes:
+ There are three types of notes:
\end_layout
\begin_layout Description
indented and greyed out notes can have footnotes.
\end_layout
-\begin_layout Description
-Framed This note will appear in the output as framed text.
- Its note-box looks like this:
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset Graphics
- filename clipart/FramedNoteImageQt4.png
- display false
- scale 85
- scaleBeforeRotation
-
-\end_inset
-
-
-\begin_inset Box Framed
-position "t"
-hor_pos "c"
-has_inner_box 0
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-This is text in a note box that appears framed in the output.
-\end_layout
-
-\end_inset
-
- In contrary to framed boxes
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-Framed boxes are described in section
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Framed-Boxes"
-
-\end_inset
-
-.
-\end_layout
-
-\end_inset
-
- the frame uses always the whole text width and the note is set into its
- own paragraph.
-\end_layout
-
-\begin_layout Description
-Shaded This note will appear in the output with red background color.
- Its note box looks like this:
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset Graphics
- filename clipart/ShadedNoteImageQt4.png
- display false
- scale 85
- scaleBeforeRotation
-
-\end_inset
-
-
-\begin_inset Box Shaded
-position "t"
-hor_pos "c"
-has_inner_box 0
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-This text in a note box appears in the output with red background.
-\end_layout
-
-\end_inset
-
-In contrary to colored boxes
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-Colored boxes are described in section
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Colored-Boxes"
-
-\end_inset
-
-.
-\end_layout
-
-\end_inset
-
- the note uses always the whole text width and the note is set into its
- own paragraph.
-\end_layout
-
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
\bar default
.
To change a note to text, press the backspace key when the cursor is in
- the first position of a note, or press the deletey key when the cursor
- is in the very last position of the note, respectively.
+ the first position of a note, or press the delete key when the cursor is
+ in the very last position of the note, respectively.
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-The available colors and the method to define own colors is explained in
- section
+The available colors and the method to define colors is explained in section
\begin_inset space ~
\end_inset
with blue text.
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
+\begin_layout Section
+Footnotes
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Footnotes"
+
\end_inset
-\end_layout
+\begin_inset Index idx
+status collapsed
-\begin_layout Standard
-The text style of
-\family sans
-Framed
-\family default
- and
-\family sans
-Shaded
-\family default
- notes can be set in the
-\family sans
-Text Style
-\family default
- dialog.
+\begin_layout Plain Layout
+Notes ! Footnotes
\end_layout
-\begin_layout Standard
-The default frame width for
-\family sans
-Framed
-\family default
- notes is 0.4
-\begin_inset space \thinspace{}
\end_inset
-pt; it can be changed by changing the size
-\series bold
-
-\backslash
-FrameRule
-\series default
-.
- The default space between the note content and the frame is 9
-\begin_inset space \thinspace{}
-\end_inset
-pt; it can be changed by changing the size
-\series bold
+\begin_inset Index idx
+status collapsed
-\backslash
-FrameSep
-\series default
-.
- For example the frame appearance of the following
-\family sans
-Framed
-\family default
- note is set with the TeX-Code commands
+\begin_layout Plain Layout
+Footnotes
\end_layout
-\begin_layout Standard
+\end_inset
-\series bold
-\backslash
-FrameRule 5pt
-\backslash
-FrameSep 0.5cm
\end_layout
\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
+Footnotes can be inserted using the toolbar button
+\begin_inset Graphics
+ filename ../images/footnote-insert.png
+ scale 85
+ scaleBeforeRotation
+\end_inset
-\backslash
-FrameRule 5pt
-\backslash
-FrameSep 0.5cm
-\end_layout
+ or the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Footnote
+\family default
+.
+
+\family roman
+\series medium
+\bar no
+You'll see
+\family default
+\series default
+\bar default
+ then the following footnote-box:
+\begin_inset Graphics
+ filename clipart/footnoteQt4.png
+ scale 80
+ scaleBeforeRotation
\end_inset
+
+\family roman
+\series medium
+\bar no
+where you can enter the footnote text.
+ If you want to turn existing text into a footnote, mark it and click on
+ the footnote
+\family default
+\series default
+\bar default
+ toolbar
+\family roman
+\series medium
+\bar no
+button
+\family default
+\series default
+\bar default
+.
+ To change a
+\family roman
+\series medium
+\bar no
+footnote
+\family default
+\series default
+\bar default
+ to text, press the Backspace key when the cursor is in the first position
+ of a
+\family roman
+\series medium
+\bar no
+footnote
+\family default
+\series default
+\bar default
+, or press the Delete key when the cursor is in the very last position of
+ the
+\family roman
+\series medium
+\bar no
+footnote
+\family default
+\series default
+\bar default
+, respectively.
+\end_layout
-\begin_inset Box Framed
-position "t"
-hor_pos "c"
-has_inner_box 0
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
+\begin_layout Standard
+Here is an example footnote:
+\family roman
+\series medium
+\bar no
+
+\begin_inset Foot
status open
\begin_layout Plain Layout
-This is text in a
-\family sans
-Framed
-\family default
- note.
+\begin_inset CommandInset label
+LatexCommand label
+name "foot:This-is-an"
+
+\end_inset
+
+This is an example footnote.
\end_layout
\end_inset
+\family default
+\series default
+\bar default
+
\begin_inset ERT
status collapsed
\backslash
-FrameRule 0.4pt
-\backslash
-FrameSep 9pt
+newcounter{MyRepeatFoot}
\end_layout
-\end_inset
+\begin_layout Plain Layout
+\backslash
+setcounter{MyRepeatFoot}{
+\backslash
+thefootnote}
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
\end_inset
\end_layout
\begin_layout Standard
-For
-\family sans
-Shaded
-\family default
- notes the default space between the note content and the note border is
- 3
-\begin_inset space \thinspace{}
-\end_inset
-
-pt; it can be changed by changing the size
-\series bold
-
-\backslash
-fboxsep
-\series default
-.
-\begin_inset Newline newline
-\end_inset
-
-The default background color red can be changed with the command
-\series bold
-
-\backslash
-definecolor{shadebox}
-\series default
-.
- The scheme of the
-\series bold
+The footnote will appear in the output as a superscript number at the text
+ position where the footnote box is placed.
+ The footnote text is placed at the bottom of the current page.
+ The footnote number is calculated by LaTeX; the numbers are consecutive.
+ It depends on your document-class, whether the footnote number is reset
+ for every chapter.
+\end_layout
-\backslash
-definecolor
-\series default
- command is explained in section
+\begin_layout Standard
+Footnotes can be referenced like floats: Insert a label into the footnote
+ and cross-reference this label in the text as described in section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Colored-Tables"
+reference "sec:Referencing-Floats"
\end_inset
+.
+\begin_inset Newline newline
+\end_inset
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-Note that
-\series bold
-
-\backslash
-def
-\series default
-\SpecialChar \textcompwordmark{}
-
-\series bold
-inecolor
-\series default
- requires the LaTeX-package
-\series bold
-color
-\series default
- in the preamble, see section
+This is a cross-reference of Footnote
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Colored-Boxes"
-
-\end_inset
-
-.
-\end_layout
+reference "foot:This-is-an"
\end_inset
\end_layout
\begin_layout Standard
-For example the appearance of the following
-\family sans
-Shaded
-\family default
- note is set with the TeX-Code commands
-\end_layout
-
-\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+Footnotes in tables are not printed by LaTeX due to technical reasons.
+ However there exists another method to print them: Instead of the footnote
+ the command
\series bold
\backslash
-fboxsep 0.5cm
+footnotemark{}
\series default
+ is inserted as TeX-code.
+ The text of the footnote is entered as an argument of the TeX-code command
+
+\series bold
+\backslash
+footnotetext
+\series default
+ after the table.
\begin_inset Newline newline
\end_inset
+This was done for the following table with the command
+\end_layout
+
+\begin_layout Standard
\series bold
\backslash
-definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
+footnotetext{
+\series default
+Printed table footnote.
+\series bold
+}
\end_layout
\begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="1">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
+This an example text.
+\begin_inset Foot
+status open
+
+\begin_layout Plain Layout
+This footnote will not be printed!
+\end_layout
+
+\end_inset
-\backslash
-fboxsep 0.5cm
\end_layout
\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
-
+\begin_layout Plain Layout
+This an example text.
\begin_inset ERT
status collapsed
\backslash
-definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
+footnotemark{}
\end_layout
\end_inset
-\begin_inset Box Shaded
-position "t"
-hor_pos "c"
-has_inner_box 0
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-
-\color yellow
-This is yellow text in a
-\color none
-
-\family sans
-\color yellow
-Shaded
-\family default
-\color none
-
-\color yellow
-note with darkgreen background.
\end_layout
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
\end_inset
\backslash
-fboxsep 3pt
+footnotetext{
\end_layout
\end_inset
-
+Printed table footnote.
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-
-\backslash
-definecolor{shadecolor}{rgb}{1,0,0}
+}
\end_layout
\end_inset
\end_layout
-\begin_layout Section
-Footnotes
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Footnotes"
-
+\begin_layout Standard
+Footnotes in longtables are described in section
+\begin_inset space ~
\end_inset
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Notes ! Footnotes
-\end_layout
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Footnotes-in-Longtables"
\end_inset
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Footnotes
+.
\end_layout
+\begin_layout Standard
+Footnotes in minipage boxes are printed, but inside the box and with a different
+ numbering because a minipage box is like a page inside a page.
+ (For more about minipages, see section
+\begin_inset space ~
\end_inset
-\end_layout
-
-\begin_layout Standard
-Footnotes can be inserted using the toolbar button
-\begin_inset Graphics
- filename ../images/footnote-insert.png
- scale 85
- scaleBeforeRotation
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Minipages"
\end_inset
- or the menu
-\family sans
-Insert\SpecialChar \menuseparator
-Footnote
-\family default
-.
-
-\family roman
-\series medium
-\bar no
-You'll see
-\family default
-\series default
-\bar default
- then the following footnote-box:
-\begin_inset Graphics
- filename clipart/footnoteQt4.png
- scale 80
- scaleBeforeRotation
-
-\end_inset
+.) To get a footnote in the minipage that is output at the bottom of the
+ page like normal footnotes, also use the method of
+\series bold
-
-\family roman
-\series medium
-\bar no
-where you can enter the footnote text.
- If you want to turn existing text into a footnote, mark it and click on
- the footnote
-\family default
+\backslash
+footnotemark{}
\series default
-\bar default
- toolbar
-\family roman
-\series medium
-\bar no
-button
-\family default
+ and
+\series bold
+
+\backslash
+footnotetext
\series default
-\bar default
.
- To change a
-\family roman
-\series medium
-\bar no
-footnote
-\family default
-\series default
-\bar default
- to text, press the Backspace key when the cursor is in the first position
- of a
-\family roman
-\series medium
-\bar no
-footnote
-\family default
-\series default
-\bar default
-, or press the Delete key when the cursor is in the very last position of
- the
-\family roman
-\series medium
-\bar no
-footnote
-\family default
-\series default
-\bar default
-, respectively.
\end_layout
\begin_layout Standard
-Here is an example footnote:
-\family roman
-\series medium
-\bar no
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width "100col%"
+special "none"
+height "1in"
+height_special "totalheight"
+status open
+\begin_layout Plain Layout
+This an example text in a minipage.
\begin_inset Foot
status open
\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "foot:This-is-an"
-
-\end_inset
-
-This is an example footnote.
+Footnote in the minipage.
\end_layout
\end_inset
-\family default
-\series default
-\bar default
+\end_layout
+\begin_layout Plain Layout
+This an example text in a minipage.
\begin_inset ERT
status collapsed
\backslash
-newcounter{MyRepeatFoot}
+footnotemark{}
\end_layout
-\begin_layout Plain Layout
+\end_inset
-\backslash
-setcounter{MyRepeatFoot}{
-\backslash
-thefootnote}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-The footnote will appear in the output as a superscript number at the text
- position where the footnote box is placed.
- The footnote text is placed at the bottom of the current page.
- The footnote number is calculated by LaTeX, the numbers are consecutive.
- It depends on your document-class, if the footnote number is reset for
- every chapter.
-\end_layout
-
-\begin_layout Standard
-Footnotes can be referenced like floats: Insert a label into the footnote
- and cross-reference this label in the text as described in section
-\begin_inset space ~
-\end_inset
+\begin_inset ERT
+status collapsed
+\begin_layout Plain Layout
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Referencing-Floats"
-\end_inset
+\backslash
+footnotetext{
+\end_layout
-.
-\begin_inset Newline newline
\end_inset
-This is a cross-reference of Footnote
-\begin_inset space ~
-\end_inset
+Footnote outside the minipage.
+\begin_inset ERT
+status collapsed
+\begin_layout Plain Layout
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "foot:This-is-an"
+}
+\end_layout
\end_inset
-.
+
\end_layout
\begin_layout Standard
\begin_inset VSpace defskip
\end_inset
-To use footnotes within tables, you have to use minipages, see section
-\begin_inset space ~
-\end_inset
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Minipages"
-
-\end_inset
-
-.
- Footnotes within longtables are described in section
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Footnotes-in-Longtables"
-
-\end_inset
-
-.
\end_layout
\begin_layout Standard
-\begin_inset VSpace defskip
-\end_inset
-
-To create only a mark for a footnote, use the command
+To refer to the same footnote several times without printing the footnote
+ text every time, use the command
\series bold
\backslash
footnotemark[number]
\series default
- in TeX-Code.
- This is used when you have the same annotation several times in a text
- but doesn't want to print the footnote text every time.
+ in TeX-code.
\begin_inset Newline newline
\end_inset
-As you don't know the number of the repeating footnote while you are writing
+As you do not know the number of the repeating footnote while you are writing
the text, you have to store its number.
For the following footnote mark example, these commands were inserted in
- TeX-Code behind Footnote
+ TeX-code after Footnote
\begin_inset space ~
\end_inset
\end_layout
\begin_layout Standard
-Here is an example footnote mark:
+Here is a repeated footnote:
\family roman
\series medium
\bar no
\end_inset
+\end_layout
+
+\begin_layout Standard
+If you want to repeat the previous footnote, you can omit the storage of
+ the footnote number and just use this command instead:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+footnotemark[
+\backslash
+thefootnote]
+\end_layout
+
+\begin_layout Standard
+Here is another repeated footnote:
+\family roman
+\series medium
+\bar no
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+footnotemark[
+\backslash
+thefootnote]
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-To return to the default numbering style when you changed to another one,
- use
+To return to the default numbering style after you have changed to another
+ one, use
\series bold
\backslash
\begin_layout Subsection
Footnote Placement
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
If you have several footnotes in one page, they appear without vertical
space between them at the bottom of the page.
- To make them better readable you can e.
+ To make them more readable you can e.
\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
add 1.5
ftnright
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
In some scientific literature it is usual to collect the footnotes and print
- them in a separate paragraph at the the end of a section, like in Figure
+ them in a separate paragraph at the end of a section, as in Figure
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "fig:Endnotes----footnotes"
+reference "fig:Endnotes"
\end_inset
.
- They are then so called
+ They are then called
\begin_inset Quotes eld
\end_inset
\end_inset
.
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
- To use endnotes instead of footnotes in your document, load the LaTeX-package
+ To use endnotes instead of footnotes in your document, load in the menu
-\series bold
-endnotes
-\series default
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! endnotes
-\end_layout
-
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Modules
+\family default
+the module
+\family sans
+Foot
+\begin_inset space ~
\end_inset
- with the document preamble lines
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-usepackage{endnotes}
-\begin_inset Newline newline
+to
+\begin_inset space ~
\end_inset
-
-\backslash
-let
-\backslash
-footnote
-\backslash
-endnote
-\end_layout
-
-\begin_layout Standard
-To insert the collected footnotes, insert the command
+End
+\family default
+.
+ To insert the collected footnotes, insert the command
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-in TeX-Code at the the end of a section or chapter.
+in TeX-Code at the end of a section or chapter.
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "fig:Endnotes----footnotes"
+name "fig:Endnotes"
\end_inset
-Endnotes -- footnotes are printed in a separate paragraph at the end of
- sections or chapters.
+Endnotes – footnotes are printed in a separate paragraph at the end of sections
+ or chapters.
\end_layout
\end_inset
The paragraph heading for the endnotes isn't automatically translated into
the document language, this must be done manually.
- The following preamble command translate the default English name
+ The following preamble command translates the default English
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- to the German translation
+ into the German
\begin_inset Quotes eld
\end_inset
\end_layout
\begin_layout Standard
-To create only a mark for an endnote, use the command
+For endnotes there is the command
\series bold
\backslash
\backslash
footnotemark
\series default
-, described in section
+, that is described in section
\begin_inset space ~
\end_inset
footmisc
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Section
Margin Notes
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
Margin notes appear at the right side in single-sided documents.
- In double-sided documents they appear in the outer margin -- left on even
+ In double-sided documents they appear in the outer margin – left on even
pages, right on odd pages.
- The text of margin notes is aligned opposite to the outer margin -- right-align
-ed when the note appears in the left margin.
+ The text of margin notes is aligned opposite to the outer margin – right-aligne
+d when the note appears in the left margin.
The first line of the margin note is placed at the position of the text
line where it is inserted in the document.
\end_layout
\begin_layout Standard
in TeX-Code before a margin note.
- The new placement is valid for all following margin notes.
+ The new placement is valid for all subsequent margin notes.
\begin_inset ERT
status collapsed
marginnote
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
has another useful feature: You can set a vertical offset for the note.
This is often needed when too many margin notes are too close together
or for a better page layout.
- The offset is set in LyX as TeX-Code directly behind the margin note in
+ The offset is set in LyX as TeX-Code directly after the margin note in
the scheme
\end_layout
\series bold
marginnote
\series default
- we refer to its documentation
+ refer to its documentation
\begin_inset CommandInset citation
LatexCommand cite
key "marginnote"
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\begin_layout Section
Introduction
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Framed-Boxes"
+reference "sec:Decoration"
\end_inset
-, to prevent words to be hyphenated, see section
+, to prevent words from being hyphenated, see section
\begin_inset space ~
\end_inset
\end_inset
-, will be inserted.
- The box type can be specified by right-clicking on the box.
- The appearing box dialog offers the
+ will be inserted.
+ The box type can be specified by right-clicking on the box and selecting
+
+\family sans
+Settings
+\family default
+.
+ The box dialog offers the
\family sans
Inner
\begin_inset space ~
\family default
types
\family sans
+Makebox
+\family default
+,
+\family sans
Parbox
\family default
and
LatexCommand ref
reference "sec:Parboxes"
+\end_inset
+
+ and the type
+\family sans
+Makebox
+\family default
+ in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Prevent-Hyphenation"
+
\end_inset
.
\end_layout
\begin_layout Standard
-Boxes aren't numbered and can therefore not be referenced like floats or
+Boxes are not numbered and can therefore not be referenced like floats or
footnotes.
\end_layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Subsection
Size
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
.
The field
\family sans
-Heigth
+Height
\family default
offers the following additional sizes:
\end_layout
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1in"
\end_layout
\begin_layout Description
-Height This is the heigth of the text that is inside the box.
+Height This is the height of the text that is inside the box.
A value of e.
\begin_inset space \thinspace{}
\end_inset
g.
+\begin_inset space \space{}
+\end_inset
+
+2 for this size will set the box height to 2
\begin_inset space ~
\end_inset
-2 for this size will set the box heigth to 2 times the text height:
+times the text height:
\begin_inset Box Boxed
position "c"
hor_pos "c"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "2in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
\end_layout
\begin_layout Description
-Width This sets the width of the box as heigth:
+Width This sets the width of the box as height:
\begin_inset Box Boxed
position "c"
hor_pos "c"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1in"
\begin_layout Subsection
Alignment
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1in"
\series bold
Note:
\series default
- The vertical box aligment can be lost in the output when you have two boxes
- in a line and one has e.
+ The vertical box alignment can be lost in the output when you have two
+ boxes in a line and one has e.
\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
a shadow and the other one not.
Box
\family default
-, the box content can be vertical aligned to:
+, the box content can be aligned vertically to:
\end_layout
\begin_layout Description
has_inner_box 1
inner_pos "t"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1.5in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1.5in"
has_inner_box 1
inner_pos "b"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1.5in"
has_inner_box 1
inner_pos "s"
use_parbox 0
+use_makebox 0
width "12col%"
special "none"
height "1.5in"
has_inner_box 1
inner_pos "s"
use_parbox 0
+use_makebox 0
width "15col%"
special "none"
height "1.25in"
\end_layout
\begin_layout Standard
-If you haven't set an
+If you have not set an
\family sans
Inner
\begin_inset space ~
has_inner_box 0
inner_pos "s"
use_parbox 0
+use_makebox 0
width "90col%"
special "none"
height "1.25in"
\end_layout
-\begin_layout Section
-Framed Boxes
+\begin_layout Subsection
+Decoration
\begin_inset CommandInset label
LatexCommand label
-name "sec:Framed-Boxes"
+name "sec:Decoration"
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Boxes ! Frames
+Boxes ! Decoration
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-The frame style of the box can be specified in the box-dialog in the drop-down
+The type of the box can be specified in the box dialog in the drop-down
list
\family sans
-Type
+Decoration
\family default
.
- The following frame types are possible:
+ The following types are possible:
\end_layout
\begin_layout Description
-Rectangular
+No
\begin_inset space ~
\end_inset
-box This draws a rectangle frame around the box.
+frame Nothing is drawn.
+\end_layout
+
+\begin_layout Description
+Simple
+\begin_inset space ~
+\end_inset
+
+rectangular
+\begin_inset space ~
+\end_inset
+
+frame This draws a rectangular frame around the box.
The frame line thickness has the size of
\series bold
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
\end_layout
\begin_layout Description
-Shadow
+Drop
\begin_inset space ~
\end_inset
-box This draws a rectangle frame with a shadow around the box.
+shadow This draws a rectangular frame with a shadow around the box.
The frame line thickness has the size of
\series bold
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
\end_inset
+\end_layout
+
+\begin_layout Description
+Shaded
+\begin_inset space ~
+\end_inset
+
+background This draws a box with a red background.
+ Unlike colored boxes
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Colored-Boxes"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+, it always uses the whole column width and the box is set as its own paragraph.
+
+\begin_inset Box Shaded
+position "t"
+hor_pos "c"
+has_inner_box 0
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width "50col%"
+special "none"
+height "1in"
+height_special "totalheight"
+status collapsed
+
+\begin_layout Plain Layout
+Shaded background box
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Description
\begin_inset space ~
\end_inset
-box This draws a double-line rectangle frame around the box.
+rectangular
+\begin_inset space ~
+\end_inset
+
+frame This draws a double-line rectangular frame around the box.
The line thickness of the inner frame is 0.75
\begin_inset space \thinspace{}
\end_inset
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "20col%"
special "none"
height "1in"
\begin_layout Plain Layout
\align center
-Double box
+Double rectangular box
\end_layout
\end_inset
\begin_inset VSpace bigskip
\end_inset
-LyX's box label will change to the used frame style when you set a frame.
- To be able to use the different frame styles, the LaTeX-package
+LyX's box label will reflect the different frame types.
+ To be able to use all types, the LaTeX-package
\series bold
fancybox
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset VSpace bigskip
\end_inset
+When you use the decoration
+\family sans
+simple rectangular frame
+\family default
+ and no inner box, you can allow page breaks within a box.
+ Note that then, unlike other framed boxes, the frame always uses the whole
+ column width, the box is set as its own paragraph, and
+\series bold
+
+\backslash
+fboxrule
+\series default
+ and
+\series bold
+
+\backslash
+fboxsep
+\series default
+ have no effect on this box type.
+ The frame line thickness has the size of
+\series bold
+
+\backslash
+FrameRule
+\series default
+.
+
+\begin_inset Box Framed
+position "t"
+hor_pos "c"
+has_inner_box 0
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width "100col%"
+special "none"
+height "1in"
+height_special "totalheight"
+status collapsed
+
+\begin_layout Plain Layout
+Allow page break box
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Box Customization
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Boxes ! Customization
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
The default value for the size
\series bold
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
2
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "25col%"
special "none"
height "1in"
height_special "totalheight"
-status collapsed
+status open
\begin_layout Plain Layout
\align center
\begin_inset space \thinspace{}
\end_inset
-pt, like for the following box:
+pt, as with the following box:
\end_layout
\begin_layout Standard
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "25col%"
special "none"
height "1in"
height_special "totalheight"
-status collapsed
+status open
\begin_layout Plain Layout
\align center
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "25col%"
special "none"
height "1in"
height_special "totalheight"
-status collapsed
+status open
\begin_layout Plain Layout
\align center
has_inner_box 1
inner_pos "c"
use_parbox 0
+use_makebox 0
width "25col%"
special "none"
height "1in"
height_special "totalheight"
-status collapsed
+status open
\begin_layout Plain Layout
\align center
\begin_inset VSpace bigskip
\end_inset
-Changed lengths and widths are valid for all boxes following the commands
- that change them.
+
\end_layout
-\begin_layout Section
-Minipages
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Minipages"
+\begin_layout Standard
+The default value for the size
+\series bold
+\backslash
+FrameRule
+\series default
+ is 0.4
+\begin_inset space \thinspace{}
\end_inset
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Boxes ! Minipages
-\end_layout
-
+pt.
+ The default space between the note content and the frame is 9
+\begin_inset space \thinspace{}
\end_inset
+pt and can be changed with the value of
+\series bold
+\backslash
+FrameSep
+\series default
+.
+ For example the frame appearance of the following
+\family sans
+box
+\family default
+ is set with the TeX-Code commands
\end_layout
\begin_layout Standard
-Minipages are treated by LaTeX as pages within pages and can therefore for
- example have their own footnotes.
-\end_layout
-
-\begin_layout Standard
-Minipages are useful when you write documents with different languages.
-\end_layout
-\begin_layout Standard
-Below are two example minipages side by side.
- Their width is set to 45
-\begin_inset space \thinspace{}
-\end_inset
+\series bold
-col% and they are separated by a horizontal fill, that was inserted via
- the menu
-\family sans
-Insert\SpecialChar \menuseparator
-Special
-\begin_inset space ~
+\backslash
+setlength{
+\backslash
+FrameRule}{5pt}
+\begin_inset Newline newline
\end_inset
-Formatting\SpecialChar \menuseparator
-Horizontal
-\begin_inset space ~
-\end_inset
-Fill
-\family default
-.
+\backslash
+setlength{
+\backslash
+FrameSep}{0.5cm}
\end_layout
\begin_layout Standard
-\begin_inset Box Frameless
-position "t"
-hor_pos "c"
-has_inner_box 1
-inner_pos "c"
-use_parbox 0
-width "45col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-
-\lang german
-Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text
-\begin_inset Foot
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-\lang german
-Dies ist eine deutsche Fußnote.
-\end_layout
-\end_inset
-
-.
- Dies ist ein deutscher Text.
- Dies ist ein deutscher Text.
+\backslash
+setlength{
+\backslash
+FrameRule}{5pt}
\end_layout
-\end_inset
+\begin_layout Plain Layout
-\begin_inset space \hfill{}
+\backslash
+setlength{
+\backslash
+FrameSep}{0.5cm}
+\end_layout
+
\end_inset
-\begin_inset Box Frameless
+\begin_inset Box Framed
position "t"
hor_pos "c"
-has_inner_box 1
-inner_pos "c"
+has_inner_box 0
+inner_pos "t"
use_parbox 0
-width "45col%"
+use_makebox 0
+width "100col%"
special "none"
height "1in"
height_special "totalheight"
status open
\begin_layout Plain Layout
-This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
- This is an English Text.
-\begin_inset Foot
+This is text in an
+\family sans
+allow page break
+\family default
+ box.
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-This is an English footnote.
+
+
+\backslash
+setlength{
+\backslash
+FrameRule}{0.4pt}
\end_layout
-\end_inset
+\begin_layout Plain Layout
- This is an English Text.
-
+
+\backslash
+setlength{
+\backslash
+FrameSep}{9pt}
\end_layout
\end_inset
\begin_inset VSpace bigskip
\end_inset
-Another application for minipages are footnotes within tables.
- Due to a LaTeX restriction footnotes within tables doesn't appear at the
- bottom of the current page.
- But when you put the table with the footnote to a minipage, the footnote
- will appear at its bottom, numbered with Latin letters.
- The footnote number is reset to 1 in every minipage but not outside the
- minipages.
+
\end_layout
\begin_layout Standard
-The footnote of this table doesn't appear:
-\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="4">
-<features>
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+For
+\family sans
+shaded background
+\family default
+ boxes the default space between the box content and the box border is 3
+\begin_inset space \thinspace{}
+\end_inset
-\begin_layout Plain Layout
-1
-\end_layout
+pt and can be changed with the value of
+\series bold
+
+\backslash
+fboxsep
+\series default
+.
+ The default background color red can either be changed locally with the
+ command
+\series bold
+\backslash
+definecolor{shadecolor}
+\series default
+ or globally with the menu
+\family sans
+Tools\SpecialChar \menuseparator
+Preferences\SpecialChar \menuseparator
+Colors\SpecialChar \menuseparator
+shaded
+\begin_inset space ~
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-2
-\end_layout
+box
+\family default
+.
+ The scheme of the
+\series bold
+\backslash
+definecolor
+\series default
+ command is explained in section
+\begin_inset space ~
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-3
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Colored-Tables"
+
+\end_inset
+
+.
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
-This is a footnote within a table.
-\end_layout
+Note that
+\series bold
+\backslash
+definecolor
+\series default
+ requires the LaTeX-package
+\series bold
+color
+\series default
+ in the preamble, see section
+\begin_inset space ~
\end_inset
-\end_layout
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Colored-Boxes"
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-4
+.
\end_layout
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-a
+ For example the appearance of the following shaded background box is set
+ with the TeX-Code commands
\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+\begin_layout Standard
-\begin_layout Plain Layout
-b
-\end_layout
+\series bold
+\backslash
+setlength{
+\backslash
+fboxsep}{0.5cm}
+\series default
+
+\begin_inset Newline newline
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-c
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
+\series bold
-\begin_layout Plain Layout
-d
+\backslash
+definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
\end_layout
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
-e
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-f
+\backslash
+setlength{
+\backslash
+fboxsep}{0.5cm}
\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
\begin_layout Plain Layout
-g
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-h
+\backslash
+definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
\end_layout
\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-\end_layout
-\begin_layout Standard
-\align center
-\begin_inset Box Frameless
+\begin_inset Box Shaded
position "t"
hor_pos "c"
-has_inner_box 1
-inner_pos "c"
+has_inner_box 0
+inner_pos "t"
use_parbox 0
-width "30col%"
+use_makebox 0
+width "100col%"
special "none"
height "1in"
height_special "totalheight"
status open
\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="4">
-<features>
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top" width="0pt">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-1
+\color yellow
+This is yellow text in a
+\color none
+
+\family sans
+\color yellow
+shaded background
+\family default
+\color none
+
+\color yellow
+box with dark green background.
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-2
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
-3
-\begin_inset Foot
-status collapsed
+
+
+\backslash
+setlength{
+\backslash
+fboxsep}{3pt}
+\end_layout
\begin_layout Plain Layout
-This is a footnote within a table.
+
+
+\backslash
+definecolor{shadecolor}{rgb}{1,0,0}
\end_layout
\end_inset
\end_layout
+\begin_layout Standard
+\begin_inset VSpace bigskip
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-4
+Changed lengths and widths are valid for all boxes following the commands
+ that change them.
\end_layout
+\begin_layout Section
+Minipages
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Minipages"
+
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+
+
+\begin_inset Index idx
+status collapsed
\begin_layout Plain Layout
-a
+Boxes ! Minipages
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-b
+
\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+\begin_layout Standard
+Minipages are treated by LaTeX as pages within pages and can therefore for
+ example have their own footnotes.
+\end_layout
-\begin_layout Plain Layout
-c
+\begin_layout Standard
+Minipages are useful when you write documents with different languages.
\end_layout
+\begin_layout Standard
+Below are two example minipages side by side.
+ Their width is set to 45
+\begin_inset space \thinspace{}
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-d
-\end_layout
+col% and they are separated by a horizontal fill, that was inserted via
+ the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Special
+\begin_inset space ~
+\end_inset
+Formatting\SpecialChar \menuseparator
+Horizontal
+\begin_inset space ~
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-e
+Fill
+\family default
+.
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
+\begin_layout Standard
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 0
+use_makebox 0
+width "45col%"
+special "none"
+height "1in"
+height_special "totalheight"
+status open
\begin_layout Plain Layout
-f
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
+\lang german
+Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text
+\begin_inset Foot
+status collapsed
\begin_layout Plain Layout
-g
+
+\lang german
+Dies ist eine deutsche Fußnote.
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-h
+.
+ Dies ist ein deutscher Text.
+ Dies ist ein deutscher Text.
\end_layout
\end_inset
-</cell>
-</row>
-</lyxtabular>
+
+\begin_inset space \hfill{}
\end_inset
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 0
+use_makebox 0
+width "45col%"
+special "none"
+height "1in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+ This is an English Text.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+This is an English footnote.
+\end_layout
+
+\end_inset
+
+ This is an English Text.
+
\end_layout
\end_inset
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
Parboxes are very similar to minipages with the difference that they cannot
have footnotes.
- The main difference to minipages is that minipages are in contrary to parboxes
- no real boxes but LaTeX-environments.
\end_layout
\begin_layout Standard
has_inner_box 1
inner_pos "t"
use_parbox 1
+use_makebox 0
width "33col%"
special "none"
height "1in"
\begin_layout Section
Boxes for Words and Characters
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-You can use a special kind of boxes to prevent words or text to be hyphenated.
+You can use the box type
+\family sans
+Makebox
+\family default
+ to prevent words or text from being hyphenated.
\begin_inset Newline newline
\end_inset
\begin_inset Quotes erd
\end_inset
-, add the command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-mbox{
-\end_layout
-
-\begin_layout Standard
-in TeX-Code before the word.
- Behind the word insert a closing brace
-\begin_inset Quotes eld
+, put the word into a box, set the
+\family sans
+Inner
+\begin_inset space ~
\end_inset
-
-\series bold
-}
-\series default
-
-\begin_inset Quotes erd
+box
+\family default
+ to
+\family sans
+Makebox
+\family default
+ and its width to 1
+\begin_inset space \thinspace{}
\end_inset
- in TeX-Code.
+Width.
\end_layout
\begin_layout Standard
\begin_layout Standard
This line is an example to show how you can prevent the hyphenation of
-\begin_inset ERT
-status collapsed
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 1
+width "1in"
+special "width"
+height "1in"
+height_special "totalheight"
+status open
\begin_layout Plain Layout
-
-
-\backslash
-mbox{
-\end_layout
-
-\end_inset
-
-
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
-.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-}
\end_layout
\end_inset
-
+.
\end_layout
\begin_layout Standard
Break
\family default
(shortcut
-\series bold
-Ctrl-Return
-\series default
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
) a line break before the word:
\end_layout
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 1
+width "1in"
+special "width"
+height "1in"
+height_special "totalheight"
+status open
\begin_layout Plain Layout
-
-
-\backslash
-mbox{
-\end_layout
-
-\end_inset
-
-
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
-.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-}
\end_layout
\end_inset
-
+.
\end_layout
\begin_layout Subsection
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\backslash
raisebox
\series default
- you can align words, characters or other boxes vertically to the surrounding
- text.
+ you can align words, characters or other boxes vertically relative to the
+ surrounding text.
\series bold
\begin_layout Standard
in TeX-Code before the word.
- Behind the word insert a closing brace
+ After the word insert a closing brace
\begin_inset Quotes eld
\end_inset
\end_inset
- as raised word.
+ as a raised word.
\end_layout
\begin_layout Standard
\end_inset
- as lowered word.
+ as a lowered word.
\begin_inset Newline newline
\end_inset
\end_inset
- as raised word.
+ as a raised word.
\end_layout
\begin_layout Standard
\end_inset
- as lowered word.
+ as a lowered word.
\begin_inset Newline newline
\end_inset
\end_inset
- as raised word.
+ as a raised word.
\end_layout
\begin_layout Section
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Subsection
Color for Text
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
color
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\series bold
color
\series default
- will be loaded automatically by LyX when you color text
+ will be loaded automatically by LyX when you color text.
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
-To avoid that it is loaded twice the command
+To avoid it being loaded twice the command
\series bold
\backslash
-@ifundef\SpecialChar \textcompwordmark{}
-ined
+@ifundefined
\series default
is used.
\end_layout
\end_inset
-.
+
\end_layout
\begin_layout Standard
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
a red background for a word, insert the command
\begin_layout Standard
before the word in TeX-Code.
- Behind the word insert a closing brace
+ After the word insert a closing brace
\begin_inset Quotes eld
\end_inset
\begin_inset VSpace bigskip
\end_inset
-If you would have the box frame in a different color, you can use the command
+If you would like the box frame in a different color, you can use the command
\series bold
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Framed-Boxes"
+reference "sec:Decoration"
\end_inset
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
in TeX-Code.
- Behind the minipage insert a closing brace
+ After the minipage insert a closing brace
\begin_inset Quotes eld
\end_inset
has_inner_box 1
inner_pos "t"
use_parbox 0
+use_makebox 0
width "100col%"
special "none"
height "1in"
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\end_layout
\begin_layout Standard
-To use the the commands described in this section, the LaTeX-package
+To use the commands described in this section, the LaTeX-package
\series bold
graphicx
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
+\series bold
+\begin_inset space ~
+\end_inset
+
-\backslash
-hphantom{ }
\end_layout
\end_inset
\begin_layout Subsection
Rotated Boxes
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\emph on
t
\emph default
- (top), and also expedient combinations of the four base positions.
+ (top), along with meaningful combinations of the four base positions.
For example
\emph on
lt
\emph default
- means, that the rotation origin is at the top left corner of the box.
+ means that the rotation origin is at the top left corner of the box.
When no rotation origin is specified, the position
\emph on
l
has_inner_box 0
inner_pos "c"
use_parbox 0
+use_makebox 0
width "1in"
special "width"
height "1in"
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_layout Subsection
Scaled Boxes
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_layout Standard
Horizontal and vertical are the corresponding scaling factors.
If no vertical scaling factor is given, the horizontal factor will also
- be used as vertical one.
+ be used as the vertical one.
\end_layout
\begin_layout Standard
\end_inset
-, compared to the document text size.
+, compared with the document text size.
\end_layout
\begin_layout Standard
\backslash
scalebox{2}[1]{Hello}
\series default
- in contrary distorts the
+ on the other hand distorts the
\begin_inset ERT
status collapsed
\end_layout
\begin_layout Standard
-If a the scaling factor is negative, the box content will be mirrored.
+If the scaling factor is negative, the box content will be mirrored.
Therefore the command
\series bold
\end_layout
\begin_layout Standard
-Is one of the two command arguments given as exclamation mark
+If one of the two command arguments given is an exclamation mark
\series bold
!
\series default
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
the command
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\end_inset
-, also display formulas can be scaled.
+, display style formulas can also be scaled.
\end_layout
\begin_layout Chapter
-External Stuff
-\begin_inset Index
+External Document Parts
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-External Stuff
+External Document Parts
\end_layout
\end_inset
\begin_inset space ~
\end_inset
-Text A text document; every of its text lines is inserted to your document
- as own paragraph.
+Text A text document; each line is inserted in your document as a separate
+ paragraph.
\end_layout
\begin_layout Description
\begin_inset space ~
\end_inset
-Lines A text document; its text lines are inserted as they are.
- Empty text lines creates a new paragraph in your document.
+Lines A text document; text lines are inserted in your document continuously
+ but an empty text line creates a new paragraph.
\end_layout
\begin_layout Description
\begin_layout Section
External Material
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-External Stuff ! External Material
+External Document Parts ! External Material
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-The external material feature allows you to insert files to your document
- without converting them previously to a format that can be read by the
- document output format because LyX takes care of needed conversions.
+The external material feature allows you to insert files in to your document
+ without converting them to a format that can be read by the document output
+ format.
+ LyX takes care of the necessary conversions.
This is similar to images that can be inserted in various image formats
- to LyX documents.
+ in LyX documents.
+ When you have enabled Instant Preview in LyX's preferences under
+\family sans
+Look
+\begin_inset space ~
+\end_inset
+
+and
+\begin_inset space ~
+\end_inset
+
+feel\SpecialChar \menuseparator
+Graphics
+\family default
+, the external material types Dia and Xfig are directly shown in LyX.
\end_layout
\begin_layout Standard
\begin_layout Description
ChessDiagram This template supports chess position diagrams made with the
- programas
+ program
\series bold
\begin_inset CommandInset href
.
\end_layout
+\begin_layout Description
+Dia This template supports diagrams created with the program
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "Dia"
+target "http://en.wikipedia.org/wiki/Dia_(software)"
+
+\end_inset
+
+
+\series default
+.
+\end_layout
+
\begin_layout Description
LilyPond This template is used for music notation typeset with the program
\begin_inset Newline linebreak
.
\end_layout
+\begin_layout Description
+PDFPages With this template you can insert PDF documents to your document.
+ To insert certain or all pages of a PDF, use the
+\emph on
+pages
+\emph default
+ option in the
+\family sans
+Option
+\family default
+ field in the
+\family sans
+LaTeX and LyX options
+\family default
+ tab according to the template description in the dialog.
+ When no
+\emph on
+pages
+\emph default
+ option is given, only the first page of the PDF will be inserted.
+\end_layout
+
\begin_layout Description
RasterImage This can be used for bitmap images.
Nearly all popular image formats are supported.
\end_inset
.
- The difference is that only raster images are allowed, that means that
+ The difference is that only raster images are allowed; that means that
PDF and EPS-images are not supported.
\end_layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="4">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_inset Newline newline
\end_inset
-External material is displayed in LyX either as box like this:
+External material is displayed in LyX either as a box like this:
\begin_inset Graphics
filename clipart/ExternalMaterialQt4.png
scale 85
\end_inset
- or as image, depending on the setting in the
+ or as image, depending on the option
\family sans
-LyX
-\begin_inset space ~
-\end_inset
-
-View
+Show in LyX
\family default
- tab of the
+ in the
\family sans
-External Material
+LaTeX and LyX options
\family default
- dialog.
+ tab of the dialog.
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-External Stuff ! Child Documents
+External Document Parts ! Child Documents
\end_layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Standard
-Child documents are used when you have a long document consisting of several
+Child documents are used if you have a long document consisting of several
larger parts or sections.
For maintenance it is often useful and sometimes even required to split
- the document in several files that can be revised separately.
- The different documents are then the so called child documents and a master
- document connects them to print the full document or parts of it.
+ the document into several files that can be revised separately.
+ The different documents are then the so called
+\begin_inset Quotes eld
+\end_inset
+
+child documents
+\begin_inset Quotes erd
+\end_inset
+
+, and a master document connects them to print the full document or parts
+ of it.
+ A child document inherits elements of its master, for example the LaTeX
+ preamble, the bibliography, and labels for cross-references.
+\end_layout
+
+\begin_layout Standard
+To be able to work on child documents without the need to open their master,
+ specify in the child document the master in the menu
+\family sans
+ Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Document
+\begin_inset space ~
+\end_inset
+
+Class
+\family default
+.
+ This master document will then be used in the background by LyX when you
+ edit the child document.
\end_layout
\begin_layout Standard
\end_inset
- To include child documents to a master document use the menu
+ To include child documents in a master document use the menu
\family sans
Insert\SpecialChar \menuseparator
File\SpecialChar \menuseparator
\end_layout
\begin_layout Description
-Include You can include LyX and LaTeX-documents.
+Include You can include LyX- and LaTeX-documents.
When you press the
\family sans
Load
Child Document
\family default
dialog, the included documents will be opened in LyX in a new file tab
- so that you can modify it.
+ so that you can modify them.
\begin_inset Newline newline
\end_inset
The section numbering includes the sections of the included files in the
order they are inserted in the master document.
The included example document has for example a subsection that is numbered
- as subsection of this section.
+ as a subsection of this section.
Labels of included documents can be referenced: Subsection
\begin_inset space ~
\end_inset
\end_inset
-
+.
\end_layout
\begin_layout Standard
-The preamble of the child document is ignored, only the preamble of the
+The preamble of the child document is ignored; only the preamble of the
master document is used.
- Included documents are inserted starting on a new page and end with a page
- break.
-\end_layout
-
-\begin_layout Standard
-With the LaTeX-command
-\series bold
-
-\backslash
-includeonly
-\series default
-you can specify which included child documents are processed when the output
- is generated.
- This is useful when you are perhaps only working on a certain chapter of
- your large document as this saves compiling time.
-
-\series bold
-
-\backslash
-includeonly
-\series default
- is inserted to the master document preamble.
- It takes a comma-separated list of the filenames as argument, e.g.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-includeonly{chapter1,chapter5}
-\end_layout
-
-\begin_layout Standard
-will only process the included files named
-\begin_inset Quotes eld
-\end_inset
-
-chapter1.lyx
-\begin_inset Quotes erd
-\end_inset
-
- (or
-\begin_inset Quotes eld
-\end_inset
-
-chapter1.tex
-\begin_inset Quotes erd
-\end_inset
-
-) and
-\begin_inset Quotes eld
-\end_inset
-
-chapter5.lyx
-\begin_inset Quotes erd
-\end_inset
-
- .
+ Branches in child documents will be ignored by the master document when
+ the master document does not have a branch with the same name.
+ Included documents are inserted starting on a new page and ending with
+ a page break.
\end_layout
\begin_layout Standard
\series bold
Note:
\series default
- When you have included a LyX- or LaTeX-file, you are warned when you export/vie
-w the document in case that the child document uses another document class
- than the master document as this will lead to unexpected outputs.
+ If you have included a LyX- or LaTeX-file, you are warned when you export/view
+ the document in case the child document uses another document class than
+ the master document as this will lead to unexpected outputs.
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
-The LaTeX-command
-\series bold
-
-\backslash
-includeonly
-\series default
- cannot be used.
+You cannot exclude Input files via the menu
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Child Documents
+\family default
+.
\end_layout
\end_deeper
\end_layout
\begin_layout Description
-Verbatim With this method every text file can be included.
- The file is shown in the output with its source code, no command used in
+Verbatim With this method any text file can be included.
+ The file is shown in the output with its source code; no command used in
the text is invoked.
You can use the option
\family sans
\end_inset
for every space character in the source code.
- The difference to the method via the menu
+ The difference from the method via the menu
\family sans
Insert\SpecialChar \menuseparator
File\SpecialChar \menuseparator
\begin_inset VSpace bigskip
\end_inset
-Here is a child document inserted as Verbatim using the
+ Here is a child document inserted as Verbatim using the
\family sans
Mark spaces in output
\family default
\end_layout
+\begin_layout Standard
+If you want to view/export only selected children of your master document,
+ either because you want to save compiling time or because you want to distribut
+e single chapters of the book you are just writing, you can exclude children
+ from the output.
+ This is done via the menu
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Child Documents
+\family default
+.
+ You can exclude\SpecialChar \slash{}
+include children by double-clicking on the
+\family sans
+include to output
+\family default
+ column of the respective child document in the list (note that this only
+ works for documents embedded via
+\begin_inset Quotes eld
+\end_inset
+
+Include
+\begin_inset Quotes erd
+\end_inset
+
+, not with
+\begin_inset Quotes eld
+\end_inset
+
+Input
+\begin_inset Quotes erd
+\end_inset
+
+).
+ If the option
+\family sans
+Maintain counters and references
+\family default
+ is enabled, LyX will assure that all page numbers, references etc.
+\begin_inset space ~
+\end_inset
+
+are correct as if the whole document was processed.
+ This is useful if you want the selected sub-documents to look exactly as
+ in the context of the whole document.
+ However, LyX needs to process the whole document in the background for
+ this feature.
+ So if you want to save compile time and if counters and references do not
+ need to be correct, disable this checkbox.
+\end_layout
+
+\begin_layout Standard
+Alternatively, you can put each included file into a branch.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Branches are described in section
+\emph on
+Branches
+\emph default
+ of the LyX
+\emph on
+Userguide
+\emph default
+.
+\end_layout
+
+\end_inset
+
+ By enabling\SpecialChar \slash{}
+disabling branches you can decide which included files will
+ appear in the output.
+ This has the advantage that it also works with Input'ed sub-documents.
+ However, counters and references will not be maintained with this approach.
+\end_layout
+
\begin_layout Chapter
Program Code Listings
\begin_inset CommandInset label
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
listings
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
- provides a powerful and flexible way to insert program source code to your
- document.
+ provides a powerful and flexible way to insert program source code into
+ your document.
\end_layout
\begin_layout Standard
-When right-clicking on a listings inset a dialog pops up where you can set
- the listings format.
+Right-clicking on a listings inset opens the context menu containing where
+ you can set the listings format.
\end_layout
\begin_layout Standard
status open
\begin_layout Plain Layout
+
int a=5;
\end_layout
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
status open
\begin_layout Plain Layout
+
\begin_inset Caption
\begin_layout Plain Layout
\end_layout
\begin_layout Plain Layout
+
def func(param):
\end_layout
\begin_layout Plain Layout
+
'this is a python function'
\end_layout
\begin_layout Plain Layout
+
pass
\end_layout
\series bold
Note:
\series default
- If you don't get bold keywords when using typewriter fonts, your typewriter
+ If you don't get bold keywords when using typewriter fonts, your
+\family typewriter
+typewriter
+\family default
font probably doesn't provide a bold shape.
In this case select a different one in the menu
\family sans
numbering
\family default
of the listings dialog you can specify the line numbering style.
- You can insert a number to specify which lines are numbered to the field
+ You can insert a number to specify which lines are numbered in the field
\family sans
Step
\family default
.
- When you insert e.g.
-
+ When you insert e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+
\begin_inset Quotes eld
\end_inset
\end_layout
\begin_layout Standard
-You can furthermore specify a range of lines, only these will then appear
+You can furthermore specify a range of lines; only these will then appear
in the output.
The option
\family sans
-Extended
-\begin_inset space ~
-\end_inset
-
-chars
+Extended character table
\family default
should be used when you use national characters like the German umlauts
in the listing.
\begin_inset Quotes eld
\end_inset
-Extended
-\begin_inset space ~
-\end_inset
-
-chars
+Extended character table
\begin_inset Quotes erd
\end_inset
\begin_inset space ~
\end_inset
-Symbol
+symbol
\begin_inset Quotes erd
\end_inset
status open
\begin_layout Plain Layout
+
def func(param):
\end_layout
\begin_layout Plain Layout
+
'this is a python function'
\end_layout
\begin_layout Plain Layout
+
pass
\end_layout
\begin_layout Plain Layout
+
def func(param):
\end_layout
\begin_layout Plain Layout
+
'This is a German word: Tschüß'
\end_layout
\begin_layout Plain Layout
+
pass
\end_layout
\begin_layout Plain Layout
+
def func(param):
\end_layout
\begin_layout Plain Layout
+
'this is a python function'
\end_layout
\begin_layout Plain Layout
+
pass
\end_layout
\end_layout
+\begin_layout Standard
+When you have tabulators in your listing, you can specify the number of
+ characters that are spanned by a tabulator in the field
+\family sans
+Tabulator
+\begin_inset space ~
+\end_inset
+
+size
+\family default
+.
+\end_layout
+
\begin_layout Standard
\begin_inset Note Greyedout
status open
\begin_inset CommandInset include
LatexCommand lstinputlisting
filename "EmbeddedObjects.lyx"
-lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
+lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Inserting a formula into a listing can be done the following way:
+\end_layout
+
+\begin_layout Enumerate
+Open the listings dialog and add
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+to the field of the
+\family sans
+Advanced
+\family default
+ tab.
+\end_layout
+
+\begin_layout Enumerate
+Create a formula outside the listing
+\end_layout
+
+\begin_layout Enumerate
+Copy the content of the formula (not the formula inset) to the clipboard
+ (shortcut
+\begin_inset Info
+type "shortcut"
+arg "copy"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Enumerate
+In the listing write
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ and copy from the clipboard between the dollar-signs (shortcut
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Example Listing float containing a formula
+\end_layout
+
+\end_inset
+
+# Example listing float
+\end_layout
+
+\begin_layout Plain Layout
+
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+
+ pass
+\end_layout
\end_inset
\family sans
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
-Text Layout
+Listings
\family default
dialog.
To get there a list of available options, type in a question mark
\begin_inset Quotes erd
\end_inset
- in the
-\family sans
-Listings
-\begin_inset space ~
-\end_inset
-
-settings
-\family default
- field.
+.
\end_layout
\begin_layout Standard
\begin_layout Chapter
\start_of_appendix
Units available in LyX
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="20" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_layout Section
DVI
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\series bold
Note:
\series default
- DVI-files doesn't contain images, they will only be a linked.
+ DVI-files do not contain images; they will only be a linked.
\end_layout
\end_inset
.dvi
\family default
file to another computer.
- This property can also slow down your computer when you view the DVI.
- Because the DVI-viewer has to convert the image in the background to make
- it visible when you scroll in the DVI.
- So we recommend to use PDF for files with many images.
+ This property can also slow down your computer when you view the DVI, because
+ the DVI-viewer has to convert the image in the background to make it visible
+ when you scroll in the DVI.
+ So it is recommended that you use PDF for files with many images.
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\family typewriter
Adobe
\family default
- as printer language.
- The file contains therefore commands that the printer uses to print the
+ as a printer language.
+ The file therefore contains commands that the printer uses to print the
file.
- PostScript can be seen as
+ PostScript can be seen as a
\begin_inset Quotes eld
\end_inset
).
As LyX allows you to use any known image format in your document, it has
to convert images in the background to EPS.
- If you have e.g 50 images in your document, LyX has to do 50 conversions
- whenever you view or export your document.
+ If you have e.g.
+\begin_inset space ~
+\end_inset
+
+50
+\begin_inset space ~
+\end_inset
+
+images in your document, LyX has to do 50
+\begin_inset space ~
+\end_inset
+
+conversions whenever you view or export your document.
This will slow down your work flow with LyX drastically.
So if you plan to use PostScript, you can insert your images directly as
EPS to avoid this problem.
\begin_layout Section
PDF
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:PDF"
-
-\end_inset
-
-
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_inset
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\begin_inset Quotes erd
\end_inset
- (PDF) is developed by
+ (PDF) was developed by
\family typewriter
Adobe
\family default
- as derivative from PostScript.
- It is more compressed and it uses much less commands than PostScript.
+ as a derivative of PostScript.
+ It is more compressed and it uses fewer commands than PostScript.
As the name
\begin_inset Quotes eld
\end_inset
in the background to one of these formats.
But as described in the section about PostScript, the image conversion
will slow down your work flow.
- So it is recommended to use images in one of the three mentioned formats.
+ So it is recommended that you use images in one of the three mentioned
+ formats.
\end_layout
\begin_layout Standard
dvips
\family default
which uses a DVI-version as intermediate step.
- So this export variant consist of three conversions.
+ So this export variant consists of three conversions.
\end_layout
\begin_layout Description
\end_layout
\begin_layout Standard
-It is recommended to use
+It is recommended that you use
\family sans
PDF
\begin_inset space ~
\family typewriter
pdftex
\family default
- supports all features of actual PDF-versions, is quick and works stable
- without problems.
+ supports all features of actual PDF-versions, is quick and works stable.
The program
\family typewriter
dvipdfm
\begin_inset space ~
\end_inset
-
+(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-
+)
\begin_inset CommandInset label
LatexCommand label
name "cha:Explanation-of-Equation"
\end_layout
\begin_layout Standard
-The total width of
+We can calculate the total width of
\emph on
n
\emph default
\begin_inset Formula $W_{\mathrm{tot\, n}}$
\end_inset
- can be calculated to
+ as follows:
\end_layout
\begin_layout Standard
-\begin_inset Formula \begin{equation}
-W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
+\begin_inset Formula
+\begin{equation}
+W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
+\end{equation}
\end_inset
-
-\end_layout
-
-\begin_layout Standard
-Where
+where
\begin_inset Formula $W_{g\, n}$
\end_inset
- is the given width of all cells.
-
+ is the given width of all cells,
\series bold
\backslash
tabcolsep
\series default
- is the LaTeX-length between the cell text and the cell border, its default
+ is the LaTeX-length between the cell text and the cell border (its default
value is 6
\begin_inset space \thinspace{}
\end_inset
-pt.
+pt).
\series bold
\end_layout
\begin_layout Standard
-\begin_inset Formula \begin{equation}
-W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
+\begin_inset Formula
+\begin{equation}
+W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
+\end{equation}
\end_inset
\end_layout
\begin_layout Standard
-\begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
+\begin_inset Formula
+\begin{equation}
+W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
+\end{equation}
\end_inset
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "latexcompanion"
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "latexguide"
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "latexbook"
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "booktabs"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "caption"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "endfloat"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "wrapfig"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-vspace
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-4mm
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
+vspace{4mm}
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "footmisc"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "hypcap"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "hyperref"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "koma-script"
+key "KOMA-Script"
\end_inset
\begin_inset CommandInset href
LatexCommand href
-name "koma-script"
+name "KOMA-Script"
target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
\end_inset
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-LaTeX-packages ! koma-script
+LaTeX-packages ! KOMA-Script
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "listings"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "marginnote"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "pstricks"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "sidecap"
\series default
-\begin_inset Index
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\end_layout
\begin_layout Bibliography
+\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "prettyref"
\end_inset
+Documentation of the LaTeX-package
+\series bold
\begin_inset CommandInset href
LatexCommand href
-name "Wiki page"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+name "prettyref"
+target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
\end_inset
- about new features in
-\family sans
-LyX 1.6.0
-\family default
-.
-\end_layout
-\begin_layout Standard
-\begin_inset CommandInset index_print
-LatexCommand printindex
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! prettyref
+\end_layout
\end_inset
\end_layout
-\begin_layout Standard
-\begin_inset FloatList figure
+\begin_layout Bibliography
+\labelwidthstring Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "refstyle"
+
+\end_inset
+
+Documentation of the LaTeX-package
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "refstyle"
+target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
\end_inset
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! refstyle
\end_layout
-\begin_layout Standard
-\begin_inset FloatList table
+\end_inset
+
+
+\end_layout
+
+\begin_layout Bibliography
+\labelwidthstring Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "NewInLyX20"
\end_inset
+\begin_inset CommandInset href
+LatexCommand href
+name "Wiki page"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
+
+\end_inset
+
+ about new features in
+\family sans
+LyX 2.0
+\family default
+.
\end_layout
\begin_layout Standard
-\begin_inset FloatList algorithm
+\begin_inset CommandInset index_print
+LatexCommand printindex
+type "idx"
\end_inset