#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 497
+\lyxformat 508
\begin_document
\begin_header
+\save_transient_properties true
\origin /systemlyxdir/doc/
\textclass scrbook
\begin_preamble
-% if pdflatex is used
-\usepackage{ifpdf}
-\ifpdf
-
-% set fonts for nicer pdf view
-\IfFileExists{lmodern.sty}
- {\usepackage{lmodern}}{}
-
-\fi % end if pdflatex is used
-
% that links to image floats jumps
% to the beginning of the float and
% not to its caption
% speed up the longtable calculation
\setcounter{LTchunksize}{100}
-% used for scaled and rotated boxes
-\@ifundefined{rotatebox}{\usepackage{graphicx}}{}
-
% used for colored tables
\@ifundefined{textcolor}
{\usepackage{color}}{}
\setboolean{diagbox}{true}}
{\setboolean{diagbox}{false}}
\end_preamble
-\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
+\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
\use_default_options false
\begin_modules
initials
+graphicboxes
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "lmodern" "default"
+\font_sans "lmss" "default"
+\font_typewriter "lmtt" "default"
+\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
\graphics default
-\default_output_format default
+\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\family sans
-Version 2.1.x
+Version 2.2.x
\end_layout
\begin_layout Standard
\series bold
-http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
+http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
\end_layout
\end_inset
\end_inset
within a separate, horizontally centered paragraph:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
This is the same image like the one above but in draft mode:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
have a line below them and the cells of the second row have a line above
them.
Here is an example table:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Description
-
-\family sans
Table
\begin_inset space ~
\end_inset
-Settings
-\family default
- Here you can set the table width
+Settings Here you can set the table width
\begin_inset Index idx
status collapsed
\end_layout
\begin_layout Description
-
-\family sans
-Borders
-\family default
- In this tab you can add and delete border lines for the current row/column.
+Borders In this tab you can add and delete border lines for the current
+ row/column.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Description
-
-\family sans
-Longtable
-\family default
- This tab is to make a table a so called
-\begin_inset Quotes eld
-\end_inset
-
-
-\emph on
-longtable
-\emph default
-
-\begin_inset Quotes erd
+Multi-page
+\begin_inset space ~
\end_inset
- that can run over several pages.
+table This tab is to make a table a multi-page table that can run over several
+ pages.
Sections
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Longtables"
+reference "sec:Multi-page-Tables"
\end_inset
\end_inset
- describe the longtable features in detail.
+ describe the multi-page table features in detail.
\end_layout
\begin_layout Section
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-row"
+arg "tabular-feature append-row"
\end_inset
adds a row below the current cell or selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-column"
+arg "tabular-feature append-column"
\end_inset
adds a column right beside the current cell or selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular delete-row"
+arg "tabular-feature delete-row"
\end_inset
deletes the current row or selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular delete-column"
+arg "tabular-feature delete-column"
\end_inset
deletes the current column or selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular move-row-up"
+arg "tabular-feature move-row-up"
\end_inset
moves the row up
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular move-column-left"
+arg "tabular-feature move-column-left"
\end_inset
moves the column to the left
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular move-row-down"
+arg "tabular-feature move-row-down"
\end_inset
moves the row down
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular move-column-right"
+arg "tabular-feature move-column-right"
\end_inset
moves the column to the right
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular toggle-line-top"
+arg "tabular-feature toggle-line-top"
\end_inset
adds a line at the top of the current cell / row or of a selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular toggle-line-bottom"
+arg "tabular-feature toggle-line-bottom"
\end_inset
adds a line at the bottom of the current cell / row or of a selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular toggle-line-left"
+arg "tabular-feature toggle-line-left"
\end_inset
adds a line at the left side of the current cell / row or of a selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular toggle-line-right"
+arg "tabular-feature toggle-line-right"
\end_inset
adds a line at the right side of the current cell / row or of a selection
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular set-all-lines"
+arg "tabular-feature set-all-lines"
\end_inset
adds lines around the current or selected cells - if the current cell no
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular unset-all-lines"
+arg "tabular-feature unset-all-lines"
\end_inset
deletes all lines of the current or selected cells - if the current cell
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-align-left"
+arg "tabular-feature m-align-left"
\end_inset
left-aligns the content of the current cell / column
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-align-center"
+arg "tabular-feature m-align-center"
\end_inset
centers the content of the current cell / column horizontally
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-align-right"
+arg "tabular-feature m-align-right"
\end_inset
right-aligns the content of the current cell / column
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular align-decimal"
+arg "tabular-feature align-decimal"
\end_inset
aligns the content of the current column at a character
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-valign-top"
+arg "tabular-feature m-valign-top"
\end_inset
aligns the content of the current cell vertically to the top
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-valign-middle"
+arg "tabular-feature m-valign-middle"
\end_inset
centers the content of the current cell vertically
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular m-valign-bottom"
+arg "tabular-feature m-valign-bottom"
\end_inset
aligns the content of the current cell vertically to the bottom
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular set-rotate-cell"
+arg "tabular-feature set-rotate-cell"
\end_inset
rotates the current cell or selection counter-clockwise by 90°
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular set-rotate-tabular"
+arg "tabular-feature set-rotate-tabular"
\end_inset
rotates the whole table counter-clockwise by 90°
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular multicolumn"
+arg "tabular-feature multicolumn"
\end_inset
sets the current cell or selection as a multicolumn
\labelwidthstring 00.00.0000
\begin_inset Info
type "icon"
-arg "inset-modify tabular multirow"
+arg "tabular-feature multirow"
\end_inset
sets the current cell or selection as a multirow
\end_inset
- in your document preamble
+ in your document preamble:
\begin_inset Foot
status collapsed
\end_inset
-:
+
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Section
-Longtables
+
+\family sans
+Multi-page Table
+\family default
+s
\begin_inset CommandInset label
LatexCommand label
-name "sec:Longtables"
+name "sec:Multi-page-Tables"
\end_inset
status collapsed
\begin_layout Plain Layout
-Longtables
+Multi-page Table
\end_layout
\end_inset
status collapsed
\begin_layout Plain Layout
-Table ! Longtables
+Table ! Multi-page Table
\end_layout
\end_inset
\begin_inset space ~
\end_inset
-long
+multi-page
+\family default
+ table in the tab
+\family sans
+Multi-page
\begin_inset space ~
\end_inset
table
-\family default
- in the tab
-\family sans
-Longtable
\family default
of the table dialog to split the table automatically over more pages.
Doing this enables the following options:
\begin_layout Description
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
+ pages of the multi-page table; except for the first page, if
\family sans
First
\begin_inset space ~
\end_inset
header: The current row is defined to be a header row that appears on the
- first page of the longtable.
+ first page of the multi-page table.
\end_layout
\begin_layout Description
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
+ pages of the multi-page table; except for the last page, if
\family sans
Last
\begin_inset space ~
\end_inset
footer: The current row is defined to be a footer row that appears on the
- last page of the longtable.
+ last page of the multi-page table.
\end_layout
\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.
+ More about multi-page table captions is explained in sec.
\begin_inset space \thinspace{}
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "subsec:Longtable-Captions"
+reference "subsec:Multi-page-Table-Captions"
\end_inset
\begin_layout Standard
You can also specify a row where the table is split.
- See the following longtable to see how it works:
-\begin_inset Separator parbreak
-\end_inset
-
-
+ See the following multi-page table to see how it works:
\end_layout
\begin_layout Standard
\begin_inset CommandInset ref
LatexCommand ref
-reference "subsec:Longtable-Captions"
+reference "subsec:Multi-page-Table-Captions"
\end_inset
\end_layout
\begin_layout Subsection
-Footnotes in Longtables
+Footnotes in Multi-page tables
\begin_inset CommandInset label
LatexCommand label
-name "subsec:Footnotes-in-Longtables"
+name "subsec:Footnotes-in-Multi-page"
\end_inset
status collapsed
\begin_layout Plain Layout
-Longtables ! Footnotes
+Table ! Multi-page Table ! Footnotes
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Footnotes can be inserted to every longtable cell.
+Footnotes can be inserted to every Multi-page table cell.
They appear at the bottom of the page where the table cell with the footnote
appears.
Table
\end_layout
\begin_layout Subsection
-Longtable Alignment
+Multi-page Table Alignment
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Longtables ! Alignment
+Table ! Multi-page Table ! Alignment
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-The horizontal alignment of longtables can be set in the table settings
+The horizontal alignment of multi-page tables 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
LTright
\series default
by inserting this line as \SpecialChar TeX
- Code before the longtable:
+ Code before the multi-page table:
\end_layout
\begin_layout Standard
\backslash
LTleft
\series default
- controls the horizontal distance from the left page border to the longtable,
-
+ controls the horizontal distance from the left page border to the multi-page
+ table,
\series bold
\backslash
\end_layout
\begin_layout Standard
-The following longtable was centered and
+The following multi-page table was centered and
\series bold
\backslash
\begin_inset CommandInset ref
LatexCommand ref
-reference "subsec:Longtable-Captions"
+reference "subsec:Multi-page-Table-Captions"
\end_inset
\end_layout
\begin_layout Subsection
-Longtable Captions
+Multi-page Table Captions
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Longtables ! Captions
+Table ! Multi-page Table ! Captions
\end_layout
\end_inset
\begin_inset CommandInset label
LatexCommand label
-name "subsec:Longtable-Captions"
+name "subsec:Multi-page-Table-Captions"
\end_inset
\end_layout
\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 when
- you use the longtable option
+A multi-page table 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 multi-page tables
+ when you use the multi-page table option
\family sans
Caption
\family default
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:Longtables"
+reference "sec:Multi-page-Tables"
\end_inset
\end_layout
\begin_layout Standard
-Here is a short longtable to see how it works:
+Here is a short multi-page table to see how it works:
\end_layout
\begin_layout Standard
\begin_inset Caption Standard
\begin_layout Plain Layout
-Longtable with caption
+Multi-page table with caption
\begin_inset Argument 1
status open
\begin_layout Plain Layout
-Longtable
+Multi-page table
\end_layout
\end_inset
1:
\series default
- The table number is increased for every longtable, even if you did not
- set a caption for it.
+ The table number is increased for every multi-page table, 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
\begin_inset space ~
\end_inset
-2.1 in the list of tables if there are two longtables without captions.
+2.1 in the list of tables if there are two multi-page tables without captions.
To avoid this you can add the following command in \SpecialChar TeX
- Code after every longtable
- without a caption:
+ Code after every multi-page
+ table without a caption:
\end_layout
\begin_layout Plain Layout
\end_layout
\begin_layout Plain Layout
-This is not needed when none of your longtables has a caption and you add
- the following code to the document preamble:
+This is not needed when none of your multi-page tables has a caption and
+ you add the following code to the document preamble:
\end_layout
\begin_layout Plain Layout
\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.
+ dialog to link cross-references, the link to a multi-page table caption
+ will always point to the beginning of the document.
\end_layout
\end_inset
\end_layout
\begin_layout Subsubsection
-References to Longtables
+References to multi-page tables
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Longtables ! References
+Table ! Multi-page Table ! References
\end_layout
\end_inset
\begin_inset Caption Standard
\begin_layout Plain Layout
-Referenced longtable
+Referenced multi-page table
\begin_inset CommandInset label
LatexCommand label
-name "tab:RefExample"
+name "tab:Referenced-multi-page-table"
\end_inset
\end_layout
\begin_layout Standard
-To reference a longtable, insert a label into the caption.
+To reference a multi-page table, insert a label into the caption.
\end_layout
\begin_layout Standard
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:RefExample"
+reference "tab:Referenced-multi-page-table"
\end_inset
status collapsed
\begin_layout Plain Layout
-Longtables ! Caption Width
+Table ! Multi-page Table ! Caption Width
\end_layout
\end_inset
in.
To change it add the following command to your document preamble or as
\SpecialChar TeX
- Code into your document before the longtable that should be affected
+ Code into your document before the multi-page table that should be affected
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-where the width could have one of the units listed in appendix
+where the
+\family sans
+width
+\family default
+ can have one of the units listed in appendix
\begin_inset space ~
\end_inset
\begin_inset Caption Standard
\begin_layout Plain Layout
-long full title with default width long full title with default width long
+Long full title with default width long full title with default width long
full title with default width
\begin_inset Argument 1
status collapsed
\begin_inset Caption Standard
\begin_layout Plain Layout
-long full title with width set to 5
+Long full title with width set to 5
\begin_inset space \thinspace{}
\end_inset
status collapsed
\begin_layout Plain Layout
-Longtables ! Different Captions for Pages
+Table ! Multi-page Table ! Different Captions for Pages
\end_layout
\end_inset
\begin_inset space ~
\end_inset
-(LongTableNoNumber)
+(Unnumbered)
\family default
.
Table
\end_inset
- is an example of a longtable with different heading where the second caption
- does not include the table number.
-\begin_inset Separator parbreak
-\end_inset
-
-
+ is an example of a multi-page table with different heading where the second
+ caption does not include the table number.
\end_layout
\begin_layout Standard
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Caption LongTableNoNumber
+\begin_inset Caption Unnumbered
\begin_layout Plain Layout
Continued Example Phone List
\end_layout
\begin_layout Section
-Special Longtable Issues
+Special Multi-page Table Issues
\begin_inset CommandInset label
LatexCommand label
name "sec:Special-Longtable-Issues"
\end_layout
\begin_layout Subsection
-Longtable Calculation
+Multi-page Table Calculation
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Longtables ! Calculation
+Table ! Multi-page Table ! Calculation
\end_layout
\end_inset
chunks.
Chunks are parts of tables that held at the same time in \SpecialChar 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
- this command line to your document preamble:
+ The default value was historically set to only 20
+\begin_inset space ~
+\end_inset
+
+table rows.
+ If you are using multi-page tables with many pages this may slow down the
+ creation of your document.
+ You can safely increase the chunk size to values of 100
+\begin_inset space \thinspace{}
+\end_inset
+
+--
+\begin_inset space \thinspace{}
+\end_inset
+
+1000 by adding this command line to your document preamble:
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Subsection
-Floats and Longtables
+Floats and Multi-page Tables
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Longtables ! Floats
+Table ! Multi-page Table ! Floats
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-There might be problems when a float appears on the same page where a longtable
- starts.
+There might be problems when a float appears on the same page where a multi-page
+ table starts.
To avoid such a situation, insert a
\begin_inset Quotes eld
\end_inset
Page
\family default
-) before your longtable.
+) before your multi-page table.
\end_layout
\begin_layout Subsection
status collapsed
\begin_layout Plain Layout
-Longtables ! Forced Page Breaks
+Table ! Multi-page Table ! Forced Page Breaks
\end_layout
\end_inset
\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:
+ If your footer row of the multi-page table has for a certain reason no
+ upper line but you would have a horizontal line where the cell is broken,
+ use this command instead:
\end_layout
\begin_layout Standard
Code at the beginning of the cell.
This ensures that the part of the cell that will be displayed on the new
page appears with the full width.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="38" columns="3">
-<features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
+<features islongtable="true" longtabularalignment="center">
<column alignment="left" valignment="top" width="0cm">
<column alignment="left" valignment="top" width="3cm">
<column alignment="center" valignment="top" width="0pt">
\end_inset
</cell>
</row>
-<row endhead="true">
-<cell alignment="left" valignment="top" leftline="true" usebox="none">
+<row endhead="true" caption="true">
+<cell multicolumn="1" alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
+\begin_inset Caption Unnumbered
\begin_layout Plain Layout
-
-
-\backslash
-caption*{Continued Example Phone List}
-\backslash
-
-\backslash
-%
+Continued Example Phone List
\end_layout
\end_inset
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+<cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
as you want to merge and use either the table-toolbar button
\begin_inset Info
type "icon"
-arg "inset-modify tabular multicolumn"
+arg "tabular-feature multicolumn"
\end_inset
, or the menu
\end_layout
\begin_layout Standard
-Multicolumns have there own cell settings.
+Multicolumns have their own cell settings.
That means changing cell borders, cell alignment, and the width only affects
the multicolumn.
Here is an example table with a multicolumn cell in the first row and one
in the last row without the upper border:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
as you want to merge and use either the table-toolbar button
\begin_inset Info
type "icon"
-arg "inset-modify tabular multirow"
+arg "tabular-feature multirow"
\end_inset
, or the menu
\begin_layout Standard
Here is an example table with a multirow in the first column:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
cm wide column:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
) but this will not respect the cell lines as demonstrated in this table:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
The 3-argument scheme is for example useful for cross-tables of sports leagues
or distances:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
For larger cross-tables one might use split cells in 2 or every corner of
the table like in this example:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\series default
,
\series bold
-DE
+SE
\series default
,
\series bold
The necessary width of split cells is automatically calculated.
Thus if you set a fixed column width smaller than the calculated one, the
cell's content will protrude the cell borders:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
in the first cell:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
Note that the split cell needs to be the widest one in the column.
Otherwise the length of the diagonal line cannot be calculated correctly
like in this table:
-\begin_inset Separator parbreak
+\end_layout
+
+\begin_layout Standard
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+diagbox{
+\end_layout
+
+\end_inset
+
+A
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}{
+\end_layout
+
+\end_inset
+
+B
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\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
+Thickness in nm
+\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
+Perfect Green
+\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
+45
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
\end_inset
\end_layout
+\begin_layout Standard
+In this case use the
+\series bold
+width
+\series default
+ option of the
+\series bold
+
+\backslash
+diagbox
+\series default
+ command.
+ It is then not necessary to add 2
+\backslash
+tabcolsep because the cell width is now the width of the column.
+ In this table a width of 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm is used:
+\end_layout
+
\begin_layout Standard
\noindent
\align center
\begin_layout Plain Layout
\begin_inset ERT
-status collapsed
+status open
\begin_layout Plain Layout
\backslash
-diagbox{
-\end_layout
-
-\end_inset
-
-A
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}{
-\end_layout
-
-\end_inset
-
-B
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\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
-Thickness in nm
-\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
-Perfect Green
-\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
-45
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-In this case use the
-\series bold
-width
-\series default
- option of the
-\series bold
-
-\backslash
-diagbox
-\series default
- command.
- It is then not necessary to add 2
-\backslash
-tabcolsep because the cell width is now the width of the column.
- In this table a width of 3
-\begin_inset space \thinspace{}
-\end_inset
-
-cm is used:
-\begin_inset Separator parbreak
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\noindent
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="2" columns="2">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-diagbox[width=3cm]{
+diagbox[width=3cm]{
\end_layout
\end_inset
\end_inset
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
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
+ To get this alignment, the minipage box must be set into a raisebox.
\begin_inset Foot
status collapsed
\end_inset
-.
In the example above the second table in the first item is aligned using
the \SpecialChar TeX
Code command
\end_layout
\begin_layout Standard
-If you add the options
+If you add the option
\end_layout
\begin_layout Standard
\series bold
-usenames,dvipsnames
+dvipsnames
\end_layout
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
-To color horizontal lines for example with red, as in Table
+To color all horizontal lines for example with red, as in Table
\begin_inset space ~
\end_inset
\end_inset
, insert these commands in \SpecialChar TeX
- Code before the table or table float:
+ code before the table or table float:
\end_layout
\begin_layout Standard
\begin_layout Standard
To return to the default line color black, insert this command in \SpecialChar TeX
- Code
+ code
after the table or table float:
\end_layout
\backslash
setlength{
\backslash
-arrayrulewidth}{0.4pt}
+arrayrulewidth}{1.2pt}
\end_layout
\end_inset
\end_layout
-\begin_layout Section
-Rotated Table Cells
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Rotated-Table-Cells"
-
-\end_inset
-
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Table ! Rotated Cells
+\begin_layout Standard
+To color only some of the table lines another strategy is necessary.
+ To color all following horizontal lines, insert this command as \SpecialChar TeX
+ code as
+ last thing in the row that should be above the first colored line:
\end_layout
-\end_inset
-
-
-\begin_inset Index idx
-status collapsed
+\begin_layout Standard
-\begin_layout Plain Layout
-Rotated Material
-\end_layout
+\series bold
-\end_inset
+\backslash
+\backslash
+\backslash
+arrayrulecolor{blue}%
\end_layout
\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- Not all DVI-viewers are able to display rotations.
+To go back to black lines, add this command as first thing in the row that
+ is above the black lines:
\end_layout
-\end_inset
+\begin_layout Standard
+\series bold
+\backslash
+arrayrulecolor{black}
\end_layout
\begin_layout Standard
-Table
+With this one can color table lines like in Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Table-with-rotated-multi"
-
-\end_inset
-
- is an example where 3
-\begin_inset space ~
-\end_inset
+reference "tab:Table-with-different-hor"
-cells were rotated by 45
-\begin_inset space \thinspace{}
\end_inset
-°.
+.
+ However, with this method it is not possible to color the line above the
+ first row of a table.
\end_layout
\begin_layout Standard
\begin_inset Float table
-placement h
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-with-rotated"
+name "tab:Table-with-different-hor"
\end_inset
-Table with rotated cells in the first row.
+Table with different horizontal line colors.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
-\noindent
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="2" columns="3">
+<lyxtabular version="3" rows="6" columns="7">
<features tabularvalignment="middle">
-<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">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
<row>
-<cell alignment="center" valignment="top" rotate="45" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-cups
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rotate="45" usebox="none">
+<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-plates
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" rotate="45" usebox="none">
+<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-saucers
+
\end_layout
\end_inset
</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-45
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-33
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-21
+
\end_layout
\end_inset
</cell>
-</row>
-</lyxtabular>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
-\end_inset
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
+\begin_layout Plain Layout
+
+
+\backslash
+\backslash
+
+\backslash
+arrayrulecolor{blue}%
\end_layout
\end_inset
\end_layout
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
+Y
+\end_layout
-\series bold
-Note:
-\series default
- Line breaks (shortcut
-\begin_inset Info
-type "shortcut"
-arg "newline-insert newline"
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
-) are not allowed in rotated cells.
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
-\begin_layout Standard
-If you want to rotate table cells containing line breaks, you have to put
- the cell content into a minipage or a parbox.
-\begin_inset Foot
-status collapsed
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
-For more about these boxes see sec.
-\begin_inset space \thinspace{}
+
+\end_layout
+
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Minipages"
+\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
- and
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:Parboxes"
+\begin_layout Plain Layout
+
+\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
-.
+\begin_layout Plain Layout
+Y
\end_layout
\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
- If you rotate this cell by 90
-\begin_inset space \thinspace{}
-\end_inset
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
-° the width of the box is the height of the cell.
- Table
-\begin_inset space ~
-\end_inset
+\begin_layout Plain Layout
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Table-with-rotated-multi"
+\backslash
+arrayrulecolor{black}
+\end_layout
\end_inset
- is an example for a rotated multiline cell where the box width was set
- to 3
-\begin_inset space \thinspace{}
-\end_inset
-cm.
\end_layout
-\begin_layout Standard
-\begin_inset Float table
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption Standard
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Table-with-rotated-multi"
-
-\end_inset
-Table with rotated multiline cell.
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
-\begin_layout Plain Layout
-\noindent
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="2" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top" width="0pt">
-<column alignment="center" valignment="top">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-a
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Box Frameless
-position "t"
-hor_pos "c"
-has_inner_box 1
-inner_pos "t"
-use_parbox 0
-use_makebox 0
-width "3cm"
-special "none"
-height "1in"
-height_special "totalheight"
-thickness "0.4pt"
-separation "3pt"
-shadowsize "4pt"
-framecolor "black"
-backgroundcolor "none"
-status open
-
-\begin_layout Plain Layout
-rotated cell
-\begin_inset Newline newline
-\end_inset
-with line break
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" 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">
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-e
+
\end_layout
\end_inset
</cell>
</row>
<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" 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">
+<cell alignment="center" valignment="top" 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" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-d
+
\end_layout
\end_inset
</cell>
-</row>
-</lyxtabular>
-
-\end_inset
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
-\begin_layout Section
-Table Width Calculation
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Table-Width-Calculation"
-
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
-\begin_layout Standard
-For wide tables it is sometimes difficult to assure that the table does
- not protrude over the page margin.
- Setting a fixed width for every column of the table is the solution, but
- what amount of space is needed for each column?
-\end_layout
-
-\begin_layout Standard
-The table width
-\begin_inset Formula $W_{\mathrm{table}}$
\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
- can be calculated: Every column has the width of the specified column width
-
-\begin_inset Formula $W_{\mathrm{column}}$
-\end_inset
- (that the content of the column can consume) plus two times the separation
- between the column content and the column border (\SpecialChar LaTeX
- length
-\series bold
-
\backslash
-tabcolsep
-\series default
-, default 6
-\begin_inset space \thinspace{}
-\end_inset
-pt) plus the width of a border line (\SpecialChar LaTeX
- length
-\series bold
+\backslash
\backslash
-arrayrulewidth
-\series default
-, default 0.4
-\begin_inset space \thinspace{}
-\end_inset
+arrayrulecolor{green}%
+\end_layout
-pt): So if all
-\begin_inset Formula $n$
\end_inset
-\begin_inset space ~
+\end_layout
+
\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
-columns have the same width, the table width is
-\begin_inset Formula
-\begin{equation}
-W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
-\end{equation}
+\begin_layout Plain Layout
+
+\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
\end_layout
-\begin_layout Standard
-The available width for a table is the space between the page margins or
- the width of a text column (for a two-column document) (\SpecialChar LaTeX
- length
-\series bold
-
-\backslash
-columnwidth
-\series default
-).
- If all table columns should have the same width and
-\begin_inset Formula $W_{\mathrm{table}}$
\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
- should be 1
-\begin_inset space \thinspace{}
-\end_inset
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+arrayrulecolor{black}
+\end_layout
+
+\end_inset
+
+B
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+
+\backslash
+
+\backslash
+arrayrulecolor{blue}%
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To change the color of vertical lines within a row, like in Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-different-ver"
+
+\end_inset
+
+, one needs to use multicolumns.
+ At first one needs to remove all vertical lines that don't run along the
+ whole column.
+ Now one colors all lines using the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+
+\backslash
+
+\backslash
+arrayrulecolor{blue}%
+\end_layout
+
+\begin_layout Standard
+as above.
+ Finally one inserts this command as \SpecialChar TeX
+ code to every cell in the row where
+ one needs a vertical line in a different color:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+multicolumn{1}{!{
+\backslash
+color{green}
+\backslash
+vline}c!{
+\backslash
+color{red}
+\backslash
+vline}}{
+\end_layout
+
+\begin_layout Standard
+This adds a vertical line to both sides of the cell.
+ The left one will be green, the right one red.
+ If no color change is necessary one can omit the
+\series bold
+
+\backslash
+color
+\series default
+ command in the above command.
+ To get for example a black left line and a blue right line you can write:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+multicolumn{1}{!{
+\backslash
+color{black}
+\backslash
+vline}c|}{
+\end_layout
+
+\begin_layout Standard
+because the color blue was already set for all lines.
+ The
+\series bold
+|
+\series default
+ creates hereby the vertical line while
+\series bold
+
+\backslash
+vline
+\series default
+ does this when
+\series bold
+
+\backslash
+color
+\series default
+ is used.
+ To set vertical lines without changing any color use
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+multicolumn{1}{|c|}{
+\end_layout
+
+\begin_layout Standard
+After this command insert the cell content the normal way and end the cell
+ with a closing brace
+\series bold
+}
+\series default
+ in \SpecialChar TeX
+ code.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption Standard
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-different-ver"
+
+\end_inset
+
+Table with different vertical line colors in one row.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="5" columns="7">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<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" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+
+\backslash
+
+\backslash
+arrayrulecolor{red}%
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{!{
+\backslash
+color{black}
+\backslash
+vline}c|}{
+\end_layout
+
+\end_inset
+
+Y
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c|}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{black}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+Y
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+arrayrulecolor{black}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+
+\backslash
+
+\backslash
+arrayrulecolor{magenta}%
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{|c!{
+\backslash
+color{red}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{green}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{yellow}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{blue}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{cyan}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c!{
+\backslash
+color{black}
+\backslash
+vline}}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+multicolumn{1}{c|}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+arrayrulecolor{black}
+\end_layout
+
+\end_inset
+
+B
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\noindent
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+setlength{
+\backslash
+arrayrulewidth}{0.4pt}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Rotated Table Cells
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Rotated-Table-Cells"
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Table ! Rotated Cells
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Rotated Material
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Not all DVI-viewers are able to display rotations.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-rotated-multi"
+
+\end_inset
+
+ is an example where 3
+\begin_inset space ~
+\end_inset
+
+cells were rotated by 45
+\begin_inset space \thinspace{}
+\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 Standard
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-rotated"
+
+\end_inset
+
+Table with rotated cells in the first row.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features tabularvalignment="middle">
+<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" rotate="45" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+cups
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rotate="45" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+plates
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rotate="45" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+saucers
+\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
+45
+\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
+33
+\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
+21
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Line breaks (shortcut
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+) are not allowed in rotated cells.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+If you want to rotate table cells containing line breaks, you have to put
+ the cell content into a minipage or a parbox.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+For more about these boxes see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Minipages"
+
+\end_inset
+
+ and
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Parboxes"
+
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+ If you rotate this cell by 90
+\begin_inset space \thinspace{}
+\end_inset
+
+° the width of the box is the height of the cell.
+ Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-rotated-multi"
+
+\end_inset
+
+ is an example for a rotated multiline cell where the box width was set
+ to 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption Standard
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-rotated-multi"
+
+\end_inset
+
+Table with rotated multiline cell.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top">
+<row>
+<cell alignment="center" valignment="top" topline="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" leftline="true" rotate="90" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width "3cm"
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
+
+\begin_layout Plain Layout
+rotated cell
+\begin_inset Newline newline
+\end_inset
+
+with line break
+\end_layout
+
+\end_inset
+
+
+\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
+e
+\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
+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" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+d
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Table Width Calculation
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Table-Width-Calculation"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+For wide tables it is sometimes difficult to assure that the table does
+ not protrude over the page margin.
+ Setting a fixed width for every column of the table is the solution, but
+ what amount of space is needed for each column?
+\end_layout
+
+\begin_layout Standard
+The table width
+\begin_inset Formula $W_{\mathrm{table}}$
+\end_inset
+
+ can be calculated: Every column has the width of the specified column width
+
+\begin_inset Formula $W_{\mathrm{column}}$
+\end_inset
+
+ (that the content of the column can consume) plus two times the separation
+ between the column content and the column border (\SpecialChar LaTeX
+ length
+\series bold
+
+\backslash
+tabcolsep
+\series default
+, default 6
+\begin_inset space \thinspace{}
+\end_inset
+
+pt) plus the width of a border line (\SpecialChar LaTeX
+ length
+\series bold
+
+\backslash
+arrayrulewidth
+\series default
+, default 0.4
+\begin_inset space \thinspace{}
+\end_inset
+
+pt): So if all
+\begin_inset Formula $n$
+\end_inset
+
+
+\begin_inset space ~
+\end_inset
+
+columns have the same width, the table width is
+\begin_inset Formula
+\begin{equation}
+W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
+\end{equation}
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The available width for a table is the space between the page margins or
+ the width of a text column (for a two-column document) (\SpecialChar LaTeX
+ length
+\series bold
+
+\backslash
+columnwidth
+\series default
+).
+ If all table columns should have the same width and
+\begin_inset Formula $W_{\mathrm{table}}$
+\end_inset
+
+ should be 1
+\begin_inset space \thinspace{}
+\end_inset
\backslash
setlength{
\backslash
extrarowheight}{height}
-\end_layout
+\series default
-\begin_layout Standard
-But this has the disadvantage that the cell texts are no longer exactly
- vertically centered.
- (The package
+\begin_inset Note Note
+status collapsed
+
+\begin_layout Plain Layout
+The package
\series bold
array
\series default
\backslash
@ifundefined
\series default
- is used in the above command.)
+ is used in the above command.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+where the
+\family sans
+height
+\family default
+ can have one of the units listed in appendix
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "cha:Units-available-in"
+
+\end_inset
+
+.
+ But this has the disadvantage that the cell texts are no longer exactly
+ vertically centered.
\end_layout
\begin_layout Standard
either pressing the toolbar button
\begin_inset Info
type "icon"
-arg "inset-modify tabular align-decimal"
+arg "tabular-feature align-decimal"
\end_inset
or setting the alignment in the table settings to
left-clicking on the box label.
A closed float box looks like this:
\begin_inset Graphics
- filename clipart/floatQt4.png
- scale 70
+ filename clipart/float.png
+ scale 95
scaleBeforeRotation
\end_inset
.
A grey label box like this one:
\begin_inset Graphics
- filename clipart/labelQt4.png
- scale 85
+ filename clipart/label.png
scaleBeforeRotation
\end_inset
You can now sort the labels alphabetically and then choose one.
A grey cross-reference box like this one:
\begin_inset Graphics
- filename clipart/referenceQt4.png
- scale 85
+ filename clipart/reference.png
scaleBeforeRotation
\end_inset
\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 \SpecialChar LaTeX
--package
-\series bold
-varioref
-\series default
- version 1.4w, some cross-reference formats will cause \SpecialChar 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
\end_layout
-\begin_layout Plain Layout
+\end_inset
+
\end_layout
+\begin_layout Standard
+An alternative and simpler solution is to use the module
+\family sans
+Variable-width Minipages
+\family default
+, see sec.
+\begin_inset space \thinspace{}
\end_inset
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Minipages"
+
+\end_inset
+
+.
+ Variable-width minipages adapt automatically to the width of the figures
+ and tables.
+ They do not require an explicit width to be given, and they improve the
+ horizontal alignment of the figures.
+ The LyX example file
+\emph on
+varwidth-floats-side-by-side
+\emph default
+ gives examples of how to do this.
\end_layout
\begin_layout Section
\begin_inset Graphics
- filename clipart/LyXNoteImageQt4.png
+ filename clipart/LyXNoteImage.png
display false
- scale 85
scaleBeforeRotation
\end_inset
\family sans
File\SpecialChar menuseparator
Export\SpecialChar menuseparator
-\SpecialChar LaTeX
- (pdflatex) / (plain)
+LaTeX
+\begin_inset space ~
+\end_inset
+
+(pdflatex) / (plain)
\family default
.
Its note-box looks like this:
\begin_inset Graphics
- filename clipart/CommentNoteImageQt4.png
+ filename clipart/CommentNoteImage.png
display false
- scale 85
scaleBeforeRotation
\end_inset
\begin_inset Graphics
- filename clipart/GreyedOutNoteImageQt4.png
+ filename clipart/GreyedOutNoteImage.png
display false
- scale 85
scaleBeforeRotation
\end_inset
status open
\begin_layout Plain Layout
-This is text
-\begin_inset Foot
-status open
-
-\begin_layout Plain Layout
-This is an example footnote within a greyed out note.
-\end_layout
-
-\end_inset
-
- of a comment that appears in the output as grey text.
+This is text of a comment that appears grey in the output.
\end_layout
\end_inset
.
You will then see the following footnote-box:
\begin_inset Graphics
- filename clipart/footnoteQt4.png
- scale 80
+ filename clipart/footnote.png
+ scale 95
scaleBeforeRotation
\end_inset
\end_layout
\begin_layout Standard
-Footnotes in longtables are described in section
+Footnotes in multi-page tables are described in section
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "subsec:Footnotes-in-Longtables"
+reference "subsec:Footnotes-in-Multi-page"
\end_inset
status open
\begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
+\noindent
+\align center
+\begin_inset Box Boxed
+position "t"
+hor_pos "c"
+has_inner_box 0
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
\begin_layout Plain Layout
-
-
-\backslash
-framebox{
-\end_layout
-
-\end_inset
-
-
\begin_inset Graphics
filename clipart/without_fntright.pdf
width 100col%
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
+\noindent
+\align center
+\begin_inset Box Boxed
+position "t"
+hor_pos "c"
+has_inner_box 0
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
\begin_layout Plain Layout
-
-
-\backslash
-framebox{
-\end_layout
-
-\end_inset
-
-
\begin_inset Graphics
filename clipart/with_fntright.pdf
width 100col%
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
status open
\begin_layout Plain Layout
+\noindent
\align center
-\begin_inset ERT
-status collapsed
+\begin_inset Box Boxed
+position "t"
+hor_pos "c"
+has_inner_box 0
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
\begin_layout Plain Layout
-
-
-\backslash
-framebox{
-\end_layout
-
-\end_inset
-
-
\begin_inset Graphics
filename clipart/endnotes.pdf
+ width 100col%
scaleBeforeRotation
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
\family default
:
\begin_inset Graphics
- filename clipart/BoxInsetDefaultQt4.png
- scale 85
+ filename clipart/BoxInsetDefault.png
+ scale 95
scaleBeforeRotation
\end_inset
Box
\family default
, you can align the box content horizontally in the box dialog.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_layout
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\SpecialChar LyX
+ has also basic support for minipages whose size is automatically determined
+ by the width of their contents, via the module
+\family sans
+Variable-width Minipages
+\family default
+.
+ The \SpecialChar LyX
+ example file
+\emph on
+varwidth-floats-side-by-side
+\emph default
+ gives examples of variable-width minipages used for placing two floats
+ side-by-side.
+\end_layout
+
\begin_layout Section
Parboxes
\begin_inset CommandInset label
\begin_layout Standard
Parboxes are very similar to minipages with the difference that they cannot
have footnotes.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-To use the commands described in this section, the \SpecialChar LaTeX
--package
-\series bold
-graphicx
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-\SpecialChar LaTeX
--packages ! graphicx
-\end_layout
-
-\end_inset
-
- needs to be loaded in the document preamble with the command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-@ifundefined{rotatebox}
-\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
-usepackage{graphicx}}{}
+To use the boxes described in this section, the module
+\family sans
+GraphicBoxes
+\family default
+ must be loaded in the document settings.
\end_layout
\begin_layout Standard
\series bold
Note:
\series default
- Not all DVI-viewers are able to display rotated or scaled material.
+ Not all DVI viewers are able to display rotated or scaled material.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-To rotate material, you can put it into a rotated box.
- Such a box is created using the command
-\series bold
-
-\backslash
-rotatebox
-\series default
- in \SpecialChar TeX
- Code with the following scheme:
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-rotatebox[rotation origin]{rotation angle}{box content}
+To rotate material, you can put it into a
+\family sans
+Rotatebox
+\family default
+.
+ Such a box is inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Rotatebox
+\family default
+.
\end_layout
\begin_layout Standard
-The rotation origin is specified in the form
+The rotation origin can be specified via the inset
+\family sans
+Origin
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Origin
+\family default
+) in the form
\series bold
origin=position
\series default
\end_layout
\begin_layout Standard
-In the following example the command
+In the following example
\series bold
-
-\backslash
-rotatebox[origin=c]{60}{
+origin=c
\series default
- was inserted as \SpecialChar TeX
- Code before the text
-\begin_inset Quotes eld
-\end_inset
-
-with rotated
-\begin_inset Quotes erd
-\end_inset
-
-; after the text the box was closed by a closing brace
+ was inserted to the
+\family sans
+Origin
+\family default
+ inset and
\series bold
-}
+60
\series default
- in \SpecialChar TeX
- Code.
+ was inserted to the
+\family sans
+Angle
+\family default
+ inset.
\end_layout
\begin_layout Standard
This is a line
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{60}{
+\begin_layout Plain Layout
+origin=c
\end_layout
\end_inset
-with rotated
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+60
+\end_layout
-}
+\end_inset
+
+with rotated
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-This is a line
-\begin_inset ERT
-status collapsed
+This is a line
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+\begin_layout Plain Layout
+origin=r
+\end_layout
-\backslash
-rotatebox[origin=r]{-60}{
+\end_inset
+
+
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+-60
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
framed text
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+\begin_layout Plain Layout
+origin=lb
+\end_layout
-\backslash
-rotatebox[origin=lb]{60}{
+\end_inset
+
+
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+60
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
+
+ and a formula.
+\end_layout
+
+\begin_layout Standard
+or an image or table:
+\end_layout
+
+\begin_layout Standard
+This is a line
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-}
+\begin_layout Plain Layout
+origin=lb
\end_layout
\end_inset
- and a formula.
-\end_layout
-
-\begin_layout Standard
-or an image or table:
-\end_layout
-\begin_layout Standard
-This is a line
-\begin_inset ERT
-status collapsed
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
-
-
-\backslash
-rotatebox[origin=lb]{90}{
+90
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
with a rotated image
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 2
+status open
-
-\backslash
-rotatebox[origin=l]{-90}{
+\begin_layout Plain Layout
+-90
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ If the
+\family sans
+Angle
+\family default
+ inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
+
+ errors when viewing/exporting the document.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\end_layout
\begin_layout Standard
-To scale material the commands
-\series bold
-
-\backslash
-scalebox
-\series default
- and
-\series bold
-
-\backslash
-resizebox
-\series default
- can be used as \SpecialChar TeX
- Code.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-scalebox
-\series default
- is used with the following scheme:
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-scalebox{horizontal}[vertical]{box content}
+To scale material put it into a
+\family sans
+Scalebox
+\family default
+.
+ Such a box is inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Scalebox
+\family default
+.
\end_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 the vertical one.
+The
+\family sans
+Scalebox
+\family default
+ inset has the mandatory inset
+\family sans
+H-Factor
+\family default
+ and the optional inset
+\family sans
+V-Factor
+\family default
+ (inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+V-Factor)
+\family default
+.
+ Input there the horizontal and vertical scale factor, respectively.
+ If no
+\family sans
+V-Factor
+\family default
+ inset is used, the horizontal factor will also be used as the vertical
+ one.
\end_layout
\begin_layout Standard
-The command
+To get for example the double text size, compared to the document text size,
+ insert
\series bold
-
-\backslash
-scalebox{2}{Hello}
+2
\series default
- creates for example a double size
-\begin_inset ERT
-status collapsed
+ into the
+\family sans
+H-Factor
+\family default
+ inset.
+ An example:
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{2}{
+\begin_layout Plain Layout
+2
\end_layout
\end_inset
Hello
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
-, compared with the document text size.
+
\end_layout
\begin_layout Standard
\series bold
-
-\backslash
-scalebox{2}[1]{Hello}
+2
\series default
- on the other hand distorts the
-\begin_inset ERT
-status collapsed
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+1
+\series default
+ as
+\family sans
+V-Factor
+\family default
+ distorts the
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{2}[1]{
+\begin_layout Plain Layout
+2
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_layout Standard
If the scaling factor is negative, the box content will be mirrored.
- Therefore the command
+ Therefore
\series bold
-
-\backslash
-scalebox{-1}[1]{Hello}
+-1
+\series default
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+1
\series default
+ as
+\family sans
+V-Factor
+\family default
can be used to create mirror writing:
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{-1}[1]{
+\begin_layout Plain Layout
+-1
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_layout Standard
\series bold
-
-\backslash
-scalebox{1}[-1]{Hello}
+1
+\series default
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+-1
\series default
+ as
+\family sans
+V-Factor
+\family default
reflects the
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{1}[-1]{
+\begin_layout Plain Layout
+1
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+-1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Equivalent to
+The
+\family sans
+Reflectbox
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Reflectbox
+\family default
+) is equivalent to
\series bold
-
-\backslash
-scalebox{-1}[1]{box content}
+-1
\series default
- there exists the command
-\begin_inset Newline newline
-\end_inset
-
-
+ as
+\family sans
+H-Factor
+\family default
+ and
\series bold
-
-\backslash
-reflectbox{box content}
+1
\series default
+ as
+\family sans
+V-Factor
+\family default
+for a
+\family sans
+Scalebox
+\family default
.
\end_layout
\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
+\begin_inset Note Greyedout
+status open
-The command
-\series bold
+\begin_layout Plain Layout
-\backslash
-resizebox
+\series bold
+Note:
\series default
- is used to scale the box to a defined width and height.
- The command scheme is:
+ If the
+\family sans
+H-Factor
+\family default
+ inset is empty or contains other characters than numbers you will get LaTeX
+ errors when viewing/exporting the document.
\end_layout
-\begin_layout Standard
+\end_inset
-\series bold
-\backslash
-resizebox{width}{height}{box content}
\end_layout
\begin_layout Standard
-If one of the two command arguments given is an exclamation mark
+\begin_inset VSpace bigskip
+\end_inset
+
+The
+\family sans
+Resizebox
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Resizebox
+\family default
+) is used to scale the content to a defined width and height.
+ The
+\family sans
+Resizebox
+\family default
+ inset has the mandatory inset
+\family sans
+Width
+\family default
+ and the optional inset
+\family sans
+Height
+\family default
+ (inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Height)
+\family default
+.
+ Input there the width and height, respectively, as value with a unit.
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Units"
+
+\end_inset
+
+ lists the possible units.
+ If there is an exclamation mark
\series bold
!
\series default
-, the size is set so that the aspect ratio of the box content is kept.
+ in of of the two insets, the size is set so that the aspect ratio of the
+ box content is kept.
+ If no
+\family sans
+Height
+\family default
+ inset is used an exclamation mark will internally be used for the height.
\end_layout
\begin_layout Standard
-The command
-\series bold
-\backslash
-resizebox{2cm}{1cm}{Hello}
+\series bold
+2cm
+\series default
+ as
+\family sans
+Width
+\family default
+ and
+\series bold
+1cm
\series default
+ as
+\family sans
+Height
+\family default
produces:
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-resizebox{2cm}{1cm}{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1cm
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
-The command
-\series bold
-\backslash
-resizebox{2cm}{!}{Hello}
+\series bold
+2cm
\series default
- produces:
-\begin_inset ERT
-status collapsed
+ as
+\family sans
+Width
+\family default
+ and
+\series bold
+!
+\series default
+ as
+\family sans
+Height
+\family default
+ (or no
+\family sans
+Height
+\family default
+) produces:
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-resizebox{2cm}{!}{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
-\begin_layout Plain Layout
+\begin_inset Argument 2
+status open
-}
+\begin_layout Plain Layout
+!
\end_layout
\end_inset
-
+Hello
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
\end_inset
+\end_layout
+
+\begin_layout Standard
\begin_inset Note Greyedout
status open
\series bold
Note:
\series default
- When arguments of
-\series bold
-
-\backslash
-scalebox
-\series default
- or
-\series bold
-
-\backslash
-resizebox
-\series default
- are set to zero, no \SpecialChar LaTeX
--errors occur when exporting the document but the exported
- files can not or only partly be displayed.
+ If the
+\family sans
+Width
+\family default
+ inset is empty or contains an invalid unit you will get LaTeX errors when
+ viewing/exporting the document.
\end_layout
\end_inset
\begin_layout Standard
The boxes can be combined in any order.
- E.
-\begin_inset space \thinspace{}
-\end_inset
+ As example a
+\family sans
+Reflectbox
+\family default
+ inside a
+\family sans
+Resizebox
+\family default
+ which is in turn inside a
+\family sans
+Rotatebox
+\family default
+:
+\end_layout
-g.
-\begin_inset space \space{}
-\end_inset
+\begin_layout Standard
+\noindent
+\align center
+\begin_inset Flex Rotatebox
+status open
+
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+origin=c
+\end_layout
-the command
-\begin_inset Newline newline
\end_inset
-\series bold
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+-45
+\end_layout
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{Hello}}}
-\begin_inset Newline newline
\end_inset
-\series default
-produces:
-\begin_inset Separator parbreak
-\end_inset
+\begin_inset Flex Resizebox
+status open
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+\begin_layout Plain Layout
+2cm
\end_layout
-\begin_layout Standard
-\align center
-\begin_inset ERT
-status collapsed
+\end_inset
-\begin_layout Plain Layout
+\begin_inset Flex Reflectbox
+status open
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+Hello
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
-\begin_layout Plain Layout
+\end_layout
+
+\end_inset
+
-}}}
\end_layout
\end_inset
\begin_layout Standard
\noindent
Images, tables, and inline formulas are allowed as box content:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
+\noindent
\align center
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-30}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Graphics
filename clipart/platypus.eps
lyxscale 50
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
-
-\begin_inset ERT
-status collapsed
+
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features tabularvalignment="middle">
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
-
-\begin_inset ERT
-status collapsed
+
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+3cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Formula $\int A\,\mathrm{d}x=B$
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
\end_inset
have these positions in the paragraph:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\begin_inset Tabular
-<lyxtabular version="3" rows="2" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-text
-\end_layout
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\noindent
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="2">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
-
-\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top">
-<column alignment="center" valignment="top">
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-text
\end_layout
\end_inset
text
\end_layout
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-text
-\end_layout
-
\end_inset
</cell>
</row>
\end_inset
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\noindent
+\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
<features tabularvalignment="middle">
<cell alignment="center" valignment="top" leftline="true" usebox="none">
\begin_inset Text
+\begin_layout Plain Layout
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
\begin_layout Plain Layout
text
\end_layout
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
+\end_inset
+
+
+\end_layout
+
\end_inset
</cell>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 70
- scaleBeforeRotation
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+text
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
+\end_inset
\end_layout
\end_inset
:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_deeper
\begin_layout Enumerate
Only one line is surrounding the initial, which is formed by two letters
in standard font and no text is printed in small caps:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_deeper
{
\backslash
usepackage{color}}{}
-\series default
-
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_deeper
\end_layout
\begin_layout Description
-ChessDiagram This template supports chess position diagrams made with the
- program
+Chess
+\begin_inset space ~
+\end_inset
+
+diagram This template supports chess position diagrams made with the program
+
\series bold
\begin_inset CommandInset href
\begin_inset Note Note
-status open
+status collapsed
\begin_layout Plain Layout
Remove the protected space when bug 4398 is fixed!
\end_layout
\begin_layout Description
-Dia This template supports diagrams created with the program
+Dia
+\begin_inset space ~
+\end_inset
+
+diagram This template supports diagrams created with the program
\series bold
\begin_inset CommandInset href
\end_layout
\begin_layout Description
-GnumericSpreadsheet With this template you can insert spreadsheets
+Spreadsheet With this template you can insert spreadsheets
\begin_inset space \thinspace{}
\end_inset
\end_layout
\begin_layout Description
-LilyPond This template is used for music notation typeset with the program
+Lilypond
+\begin_inset space ~
+\end_inset
+
+typeset
+\begin_inset space ~
+\end_inset
+
+music This template is used for music notation typeset with the program
\begin_inset Newline linebreak
\end_inset
\end_layout
\begin_layout Description
-PDFPages With this template you can insert PDF documents to your document.
+PDF
+\begin_inset space ~
+\end_inset
+
+pages With this template you can insert PDF documents to your document.
To specify the range of pages that should be included, use the option
\series bold
pages
\end_layout
\begin_layout Description
-RasterImage This can be used for bitmap images.
+Raster
+\begin_inset space ~
+\end_inset
+
+image This can be used for bitmap images.
The image can be treated in the
\family sans
External material
\end_inset
.
- The difference to the normal image input is that only raster images are
- allowed; that means that PDF and EPS-images are not supported.
Here is an inserted raster image:
\begin_inset External
template RasterImage
\end_layout
\begin_layout Description
-XFig This template supports images created with the program
+Vector
+\begin_inset space ~
+\end_inset
+
+graphics This can be used for vector graphics.
+ The image can be treated in the
+\family sans
+External material
+\family default
+ dialog like the images that are usually included via the
+\family sans
+Graphics
+\family default
+ dialog as described in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Graphics-Dialog"
+
+\end_inset
+
+.
+ Here is an inserted vector graphics:
+\begin_inset External
+ template VectorGraphics
+ filename clipart/SVG-Drawing.svg
+ lyxscale 50
+ scale 33
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+Xfig
+\begin_inset space ~
+\end_inset
+
+figure This template supports images created with the program
\series bold
\begin_inset CommandInset href
External material is displayed in \SpecialChar LyX
either as a box like this:
\begin_inset Graphics
- filename clipart/ExternalMaterialQt4.png
- scale 85
+ filename clipart/ExternalMaterial.png
+ scale 95
scaleBeforeRotation
\end_inset
manual explains how you can define your own templates.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Section
Child Documents
\begin_inset CommandInset label
Included documents are displayed in \SpecialChar LyX
as a box like this:
\begin_inset Graphics
- filename clipart/ChildDocumentQt4.png
- scale 85
+ filename clipart/ChildDocument.png
+ scale 95
scaleBeforeRotation
\end_inset
\begin_layout Description
Input This method is very similar to the Include method.
The differences are:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_deeper
\begin_layout Plain Layout
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="20" columns="2">
+<lyxtabular version="3" rows="20" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
name/description
\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
+\SpecialChar LaTeX
+ command
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
millimeter
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
centimeter
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
inch
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
pt)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
pt)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
mm)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
dd)
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-Scale%
+Scale Graphics %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of original image width
\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
+
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-text%
+Text Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of text width
\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
+
+\backslash
+textwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-col%
+Column Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of column width
\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
+
+\backslash
+columnwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-page%
+Page Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of paper width
\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
+
+\backslash
+paperwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-line%
+Line Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of line width
\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
+
+\backslash
+linewidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-theight%
+Text Height %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of text height
\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
+
+\backslash
+textheight
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-pheight%
+Page Height %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of paper height
\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
+
+\backslash
+paperheight
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in current font
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in current font
\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
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
em)
\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>
\begin_inset Quotes erd
\end_inset
-; you can calculate with it and draw diagrams and images
+; you can calculate with it and draw diagrams and images.
\begin_inset Foot
status collapsed
\end_inset
-.
Due to this ability, the files are often bigger than PDFs.
\end_layout
\begin_inset CommandInset href
LatexCommand href
name "refstyle"
-target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
+target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
\end_inset