X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fdoc%2FEmbeddedObjects.lyx;h=7bb26f6e8c2c94f06ad05bfafab0b95e5ff6ede5;hb=c48091f33a773732fa6c789927e5833e44108d9d;hp=8b988400a5118582570ea50f84ec7543499757a2;hpb=4bf8e5f99ee9ef35b4717b66c22cb7fb6d3fabf6;p=lyx.git diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index 8b988400a5..7bb26f6e8c 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -1,5 +1,5 @@ -#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 401 +#LyX 2.0 created this file. For more info see http://www.lyx.org/ +\lyxformat 413 \begin_document \begin_header \textclass scrbook @@ -29,25 +29,23 @@ \mainmatter } % provides caption formatting -\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16] +\usepackage[labelfont={bf,sf}]{caption}[2004/07/16] % provides commands to set caption % beside tables/images -\usepackage{sidecap} - -\newcommand{\TabBesBeg}{% +\newcommand{\TabBesBeg}[1][1.0]{% \let\MyTable\table \let\MyEndtable\endtable - \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}} + \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}} \newcommand{\TabBesEnd}{% \let\table\MyTable \let\endtable\MyEndtable} -\newcommand{\FigBesBeg}{% +\newcommand{\FigBesBeg}[1][1.0]{% \let\MyFigure\figure \let\MyEndfigure\endfigure - \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}} + \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}} \newcommand{\FigBesEnd}{% \let\figure\MyFigure @@ -56,9 +54,6 @@ % enables calculation of values, \usepackage{calc} -% provides special table cell alignments -\usepackage{dcolumn} - % increase the bottom float placement fraction \renewcommand{\bottomfraction}{0.5} @@ -86,10 +81,6 @@ \setboolean{colortbl}{true}} {\setboolean{colortbl}{false}} -% used for multirows -\usepackage{multirow} -%\renewcommand{\multirowsetup}{\centering} - % used for book-style tables \usepackage{booktabs} @@ -122,10 +113,6 @@ % number algorithm floats within chapters \numberwithin{algorithm}{chapter} -% redefine the greyed out note -\renewenvironment{lyxgreyedout} - {\textcolor{blue}\bgroup}{\egroup} - % ------------------------------------ % used to check for needed LaTeX packages \usepackage{ifthen} @@ -155,22 +142,36 @@ \setboolean{sidecap}{true}} {\setboolean{sidecap}{false}} -% redefine the \LyX macro for PDF bookmarks -\def\LyX{\texorpdfstring{% - L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} - {LyX}} +% check for picinpar +% used for surrounded fixed objects +\newboolean{picinpar} +\IfFileExists{picinpar.sty} + {\usepackage{picinpar} + \setboolean{picinpar}{true}} + {\setboolean{picinpar}{false}} + +% check for lettrine +\newboolean{lettrine} +\IfFileExists{lettrine.sty} + {\usepackage{lettrine} + \setboolean{lettrine}{true}} + {\setboolean{lettrine}{false}} \end_preamble -\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove +\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false +\begin_modules +initials +\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_default_family default -\use_xetex false +\use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 @@ -197,7 +198,7 @@ \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle false -\pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" \papersize default \use_geometry false \use_amsmath 2 @@ -209,6 +210,8 @@ \use_indices false \paperorientation portrait \suppress_date false +\use_refstyle 0 +\notefontcolor #0000ff \index Index \shortcut idx \color #008000 @@ -227,6 +230,7 @@ \tracking_changes false \output_changes false \html_math_output 0 +\html_css_as_file 0 \html_be_strict false \end_header @@ -307,9 +311,9 @@ colortbl \series default , \series bold -marginnote +lettrine, marginnote, picinpar \series default -, and + and \series bold sidecap \series default @@ -660,19 +664,15 @@ x.eps.bb \begin_inset Newline newline \end_inset -The field +In the section \family sans -Initialize +Graphics \begin_inset space ~ \end_inset Group -\begin_inset space ~ -\end_inset - -Name \family default - allows you define or join an image settings group. + you can define or join an image settings group. \begin_inset Index idx status collapsed @@ -1201,6 +1201,13 @@ name "fig:Two-distorted-images" \end_inset + +\begin_inset CommandInset label +LatexCommand label +name "fig2:Two-distorted-images-2" + +\end_inset + Two distorted images. Both images are in the image settings group named \begin_inset Quotes eld @@ -2011,7 +2018,26 @@ You can alter a table by clicking on it with the right mouse button, which contents \emph default of the cell, and the cell itself. - You can alter tables with the following tabs of the table dialog: +\begin_inset Newline newline +\end_inset + +With the dialog option +\family sans +Immediate +\begin_inset space ~ +\end_inset + +Apply +\family default + every change you make in the dialog is directly applied. + If you move the cursor to another table cell the dialog will then also + be updated with the parameters of the new cell. + If you change length values in the dialog you must press return to get + the change applied. +\begin_inset Newline newline +\end_inset + +You can alter tables with the following tabs of the table dialog: \end_layout \begin_layout Description @@ -2023,8 +2049,41 @@ Table Settings \family default - Here you can set the horizontal alignment and the width of the current - column. + Here you can set the table width +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table ! Width +\end_layout + +\end_inset + +, and the horizontal alignment and the width of the current column. + The alignment +\family sans +At +\begin_inset space ~ +\end_inset + +Decimal +\begin_inset space ~ +\end_inset + +Separator +\family default + is described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Special-Cell-Alignment" + +\end_inset + +. When you have set a width you can also adjust the vertical alignment of the current row. A given width will allow the cell to have line breaks and multiple paragraphs @@ -2040,7 +2099,7 @@ reference "sub:Multiple-Lines-in" \end_inset . - If you set no width, the column is as wide as the content of the widest + If you set no width, the column is as wide as the content of its widest cell. \begin_inset Newline newline \end_inset @@ -2055,6 +2114,17 @@ Furthermore, you can mark one or multiple cells of one row as a multicolumn LatexCommand ref reference "sub:Multicolumns" +\end_inset + + or the cells of one column as multirow cell, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multirows" + \end_inset . @@ -2082,6 +2152,218 @@ Note: \end_inset +\begin_inset Newline newline +\end_inset + +The table-wide vertical alignment is used for tables within text lines: +\begin_inset Newline newline +\end_inset + +A line with tables with different alignments: +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +A +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +A +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +A +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + \begin_inset Newline newline \end_inset @@ -2188,12 +2470,6 @@ reference "sec:Special-Longtable-Issues" describe the longtable features in detail. \end_layout -\begin_layout Standard -When the table dialog is open, you can move the cursor with the arrow keys - from cell to cell and the property of the current cell will immediately - be displayed in the dialog. -\end_layout - \begin_layout Section Table Toolbar \begin_inset Index idx @@ -2366,6 +2642,17 @@ The toolbar has the following icons: right-aligns the content of the current cell / column \end_layout +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Graphics + filename ../images/tabular-feature_align-decimal.png + scaleBeforeRotation + +\end_inset + + aligns the content of the current column at a character +\end_layout + \begin_layout Labeling \labelwidthstring 00.00.0000 \begin_inset Graphics @@ -2432,6 +2719,17 @@ The toolbar has the following icons: sets the current cell or selection as a multicolumn \end_layout +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Graphics + filename ../images/tabular-feature_multirow.png + scaleBeforeRotation + +\end_inset + + sets the current cell or selection as a multirow +\end_layout + \begin_layout Standard \begin_inset Note Greyedout status open @@ -5300,23 +5598,23 @@ Longtables ! Alignment \end_layout \begin_layout Standard -Longtables are by default centered. - Unlike the alignment of the table columns and rows, the table alignment - can currently not be changed in the table dialog. - To change the alignment of longtables you have to change the value of the - lengths +The horizontal alignment of longtables can be set in the table settings + dialog. + For left- and right-alignment the table will be directly at the page border. + To add space between the table and the border one has to set the alignment + to center and change the value of the LaTeX-lengths \series bold \backslash LTleft \series default -and +or \series bold \backslash LTright \series default - by inserting this line as TeX-Code before the corresponding longtable: + by inserting this line as TeX-Code before the longtable: \end_layout \begin_layout Standard @@ -5330,7 +5628,7 @@ LTleft}{value} \end_layout \begin_layout Standard -where the value can have any of the units listed in Table +The value can have any of the units listed in Table \begin_inset space ~ \end_inset @@ -5366,17 +5664,19 @@ fill \end_layout \begin_layout Standard -The following longtable was left-aligned by setting +The following longtable was centered and \series bold \backslash LTleft \series default - to 0 -\begin_inset space \thinspace{} -\end_inset - -pt. + set to +\family sans +0.1 +\backslash +columnwidth +\family default +: \begin_inset ERT status collapsed @@ -5386,7 +5686,9 @@ status collapsed \backslash setlength{ \backslash -LTleft}{0pt} +LTleft}{0.1 +\backslash +columnwidth} \end_layout \end_inset @@ -5399,7 +5701,7 @@ LTleft}{0pt} - + @@ -11396,7 +11698,7 @@ Multicolumn \family sans Multicolumn \family default - in the appearing context menu. + in the context menu. \end_layout \begin_layout Standard @@ -11950,8 +12252,10 @@ n \end_inset : -\begin_inset Formula \begin{equation} -W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation} +\begin_inset Formula +\begin{equation} +W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn} +\end{equation} \end_inset @@ -11975,8 +12279,10 @@ reference "eq:Wgn" \end_inset becomes -\begin_inset Formula \begin{equation} -W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation} +\begin_inset Formula +\begin{equation} +W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt} +\end{equation} \end_inset @@ -12111,6 +12417,13 @@ centering}m{2.5cm} \begin_layout Subsection Multirows +\begin_inset CommandInset label +LatexCommand label +name "sub:Multirows" + +\end_inset + + \begin_inset Index idx status collapsed @@ -12134,50 +12447,211 @@ Table ! Multirows \end_layout \begin_layout Standard -Unlike multicolumns multirows are not yet supported by LyX; so a bit of - TeX-Code needs to be used. - To use multirows load the LaTeX-package -\series bold +To merge cells over multiple rows, select as many cells within a column + as you want to merge and use either the table-toolbar button +\begin_inset Graphics + filename ../images/tabular-feature_multirow.png + scale 85 + scaleBeforeRotation + +\end_inset + +, or the menu +\family sans +Edit\SpecialChar \menuseparator +Table\SpecialChar \menuseparator +Multirow +\family default +, or right click on the marked cells and choose +\family sans +Multirow +\family default + in the context menu. +\end_layout + +\begin_layout Standard +Here is an example table with a multirow in the first column: +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a long cell entry +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout multirow -\series default +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! multirow +e \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +h +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +i +\end_layout + +\end_inset + + + + +\end_inset + - in your document preamble with the command \end_layout \begin_layout Standard +The width of multirow cells is set by setting the width and alignment for + the whole column. + The +\family sans +Vertical Offset +\family default + shifts the content of the multirow up/down if the offset is positive/negative. +\end_layout +\begin_layout Standard +If the column of a multirow cell has no explicit width, the multirow cell + inherits the alignment of the column. + Otherwise it is by default left-aligned. + To override the default, renew the command \series bold \backslash -usepackage{multirow} +multirowsetup +\series default + with the command \end_layout \begin_layout Standard -Multirows are created with the command + +\series bold + +\backslash +renewcommand{ +\backslash +multirowsetup}{ +\backslash +centering} \end_layout \begin_layout Standard +in the document preamble. + Then all entries of multirow cells in the document are centered. + If centering is only needed for several tables, you can renew the command + in a TeX-Code box just before the table instead of the preamble. + If the text should be right-aligned, replace +\series bold + +\backslash +centering +\series default + by +\series bold +\backslash +raggedleft +\series default +. + To return to left-alignment \series bold \backslash -multirow{number of rows}{cell width}{cell entry} +raggedright +\series default + is used. \end_layout \begin_layout Standard -To create the following table: +This is an example table with a right-aligned multirow cell that has a vertical + offset of -4 +\begin_inset space \thinspace{} +\end_inset + +mm and is in a 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide column: \end_layout \begin_layout Standard +\noindent \align center \begin_inset ERT status collapsed @@ -12190,16 +12664,16 @@ renewcommand{ \backslash multirowsetup}{ \backslash -centering} +raggedleft} \end_layout \end_inset \begin_inset Tabular - + - + @@ -12207,7 +12681,7 @@ centering} \begin_inset Text \begin_layout Plain Layout -a +a long cell entry \end_layout \end_inset @@ -12236,30 +12710,36 @@ c \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +t +\end_layout +\end_inset + + +\begin_inset Text -\backslash -multirow{2}{2.5cm}{ +\begin_layout Plain Layout +n \end_layout \end_inset - -multirow entry -\begin_inset ERT -status collapsed + + +\begin_inset Text \begin_layout Plain Layout - -} +m \end_layout \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +multirow \end_layout \end_inset @@ -12284,7 +12764,7 @@ f - + \begin_inset Text \begin_layout Plain Layout @@ -12337,90 +12817,101 @@ raggedright} \end_layout \begin_layout Standard -create a 3×3 table. - Unset the upper border of the last cell in the first column. - The multirow is now created in the second row of the first column by inserting - there the command +To start a new line in a multirow you can use a forced line break (shortcut + +\begin_inset Info +type "shortcut" +arg "newline-insert newline" +\end_inset + +) but this will not respect the cell lines as demonstrated in this table: \end_layout \begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +aaa +\begin_inset Newline newline +\end_inset -\backslash -multirow{2}{2.5cm}{ +aaa +\begin_inset Newline newline +\end_inset + +wrong cell \end_layout -\begin_layout Standard -as TeX-Code. - According to the command parameters the multirow spans now two rows and - has a width of 2.5 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -cm. - The content of the multirow cell follows outside the TeX-Code box and the - command is finished with a right brace -\series bold -} -\series default - in another TeX-Code-box after the text. +\begin_layout Plain Layout +ccc \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout -\backslash -multirow -\series default - left-aligns its content by default. - To override the default, renew the command -\series bold +\end_layout -\backslash -multirowsetup -\series default - with the command +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ddd \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +bbb +\end_layout -\backslash -renewcommand{ -\backslash -multirowsetup}{ -\backslash -centering} +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +eee \end_layout -\begin_layout Standard -in TeX-Code in the document preamble. - Then all entries of multirow cells in the document are centered. - If centering is only needed for several tables, you can renew the command - in a TeX-Code box just before the table instead of the preamble. - If the text should be right-aligned, replace -\series bold +\end_inset + + + -\backslash -centering -\series default - by -\series bold +\end_inset -\backslash -raggedleft -\series default -. - To return to left-alignment -\series bold -\backslash -raggedright -\series default - is used. +\end_layout + +\begin_layout Standard +Therefore be careful with forced line breaks. \end_layout \begin_layout Section @@ -16727,6 +17218,13 @@ Huger \begin_layout Subsection Special Cell Alignment +\begin_inset CommandInset label +LatexCommand label +name "sub:Special-Cell-Alignment" + +\end_inset + + \begin_inset Index idx status collapsed @@ -16756,11 +17254,35 @@ with the decimal separator as in Table \begin_inset CommandInset ref LatexCommand ref -reference "tab:Table-cells-of" +reference "tab:Table-cells-align" \end_inset . + This alignment is achieved by setting the cursor into the column and then + either pressing the toolbar button +\begin_inset Graphics + filename ../images/tabular-feature_align-decimal.png + scale 85 + scaleBeforeRotation + +\end_inset + + or setting the alignment in the table settings to +\family sans +At +\begin_inset space ~ +\end_inset + +Decimal +\begin_inset space ~ +\end_inset + +Separator +\family default +. + The alignment character can be a character of your choice and is specified + in the table settings. \end_layout \begin_layout Standard @@ -16776,7 +17298,7 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Table-cells-of" +name "tab:Table-cells-align" \end_inset @@ -16786,15 +17308,102 @@ Table cells of a column aligned with the decimal separator. \end_inset +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +heading +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +12.6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +0.68 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +-123.0 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement h +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-align-operator" + +\end_inset + +Table cells of a column aligned with the operators. +\end_layout + +\end_inset + + \end_layout \begin_layout Plain Layout \align center \begin_inset Tabular - - - + + + \begin_inset Text @@ -16820,7 +17429,10 @@ heading \begin_inset Text \begin_layout Plain Layout -12. +\begin_inset Formula $12\,+$ +\end_inset + + \end_layout \end_inset @@ -16829,7 +17441,10 @@ heading \begin_inset Text \begin_layout Plain Layout -6 +\begin_inset Formula $\,6$ +\end_inset + + \end_layout \end_inset @@ -16840,7 +17455,10 @@ heading \begin_inset Text \begin_layout Plain Layout -0. +\begin_inset Formula $0\,-$ +\end_inset + + \end_layout \end_inset @@ -16849,7 +17467,10 @@ heading \begin_inset Text \begin_layout Plain Layout -68 +\begin_inset Formula $\,68$ +\end_inset + + \end_layout \end_inset @@ -16860,7 +17481,10 @@ heading \begin_inset Text \begin_layout Plain Layout --123. +\begin_inset Formula $-123\,/$ +\end_inset + + \end_layout \end_inset @@ -16869,7 +17493,10 @@ heading \begin_inset Text \begin_layout Plain Layout -0 +\begin_inset Formula $\,0$ +\end_inset + + \end_layout \end_inset @@ -16888,12 +17515,27 @@ heading \end_layout \begin_layout Standard -This table was created with a 4×2 table. +For alignments at characters in formulas this method does not work because + the field to specify the alignment character does not allow formulas. + In this case one need to use the method from Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-align-operator" + +\end_inset + +. + This table was created with a 4×2 table. The heading is a centered multicolumn. - The first column is right-aligned and contains the digits before the decimal - point and the decimal point. - The second column is left aligned and contains the digits after the decimal - point. + The first column is right-aligned and contains the first part including + the operator. + The second column is left aligned and contains the rest. + A small space was added at the beginning of each cell of the second column + to get the space that is usually around operators. To omit the space that is normally between two table columns, the following LaTeX-argument was used for the second column: \end_layout @@ -16917,9 +17559,19 @@ reference "tab:Several-table-cell" \end_inset shows some example alignments. - For the alignment with the relation sign, you must add the second smallest - math-space at the beginning of the last column to get the correct space - surrounding the relation sign. + For the alignment with the relation sign, a small space was added like + for the second column of Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-align-operator" + +\end_inset + +. \end_layout \begin_layout Standard @@ -17241,327 +17893,6 @@ cm \end_inset -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -There is also the LaTeX-package -\series bold -dcolumn -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! dcolumn -\end_layout - -\end_inset - - that provides table cell alignments. - But this unfortunately treats the cell entries as math and does not allow - formulas in table cells: The first column of Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Several-table-cell" - -\end_inset - - will look with -\series bold -dcolumn -\series default - like the first column in Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Alignments-when" - -\end_inset - - and only with some tricks as you would want. - The alignment of the second and third column of Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Several-table-cell" - -\end_inset - - is not possible with -\series bold -dcolumn -\series default -. -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Alignments-when" - -\end_inset - -Alignments when LaTeX-package dcolumn is used. - For all column alignments tricks have to be used to get the output. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -units -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -units -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -units -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -12x24 -\begin_inset space \thinspace{} -\end_inset - -bottles -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -12x24 -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset Formula $\mbox{bottles}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -12 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -times -\end_layout - -\end_inset - -24+ -\begin_inset Formula $\mbox{bottles}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -1024x768 -\begin_inset space \thinspace{} -\end_inset - -Pixels -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -1024x768 -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset Formula $\mbox{Pixels}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -1024 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -times -\end_layout - -\end_inset - -768+ -\begin_inset Formula $\mbox{Pixels}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -32x6 -\begin_inset space \thinspace{} -\end_inset - -cm -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -32x6 -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset Formula $\mbox{cm}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -32 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -times -\end_layout - -\end_inset - -6+ -\begin_inset Formula $\mbox{cm}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - \end_layout \begin_layout Subsection @@ -19344,6 +19675,13 @@ fi \begin_layout Chapter Floats +\begin_inset CommandInset label +LatexCommand label +name "chap:Floats" + +\end_inset + + \begin_inset Index idx status collapsed @@ -19503,13 +19841,25 @@ reference "sec:Table-Floats" \end_inset respectively, LyX offers the float types -\series bold +\family sans Algorithm -\series default +\family default and -\series bold +\family sans Wrap -\series default +\family default +. + The latter are explained in sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Wrap-Floats" + +\end_inset + . \end_layout @@ -19777,268 +20127,6 @@ package . \end_layout -\begin_layout Subsection -Wrap Floats -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Floats ! Wrap Floats -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Wrap figure -lines 0 -placement l -overhang 1cm -width "40col%" -status open - -\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/mobius.eps - width 40col% - scaleBeforeRotation - rotateOrigin center - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:This-is-a" - -\end_inset - -This is a figure wrap float. -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - This float type is used if you want to wrap text around a figure or table - so that it only occupies some fraction of the column width. - It can be inserted using the menu -\family sans -Insert\SpecialChar \menuseparator -Floats\SpecialChar \menuseparator -Figure -\begin_inset space ~ -\end_inset - -Wrap -\begin_inset space ~ -\end_inset - -Float -\family default - or -\family sans -Table -\begin_inset space ~ -\end_inset - -Wrap -\begin_inset space ~ -\end_inset - -Float -\family default - if the LaTeX-package -\series bold -wrapfig -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! wrapfig -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -vspace{4mm} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - is installed. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Installing a LaTeX-package is explained it in the -\emph on -LaTeX -\begin_inset space ~ -\end_inset - -Configuration -\emph default - manual. -\end_layout - -\end_inset - - The settings of the float can be modified by right-clicking on the float - box. - The mandatory settings are the float -\family sans -Placement -\family default - and its -\family sans -Width -\family default -. - Optional are the -\family sans -Overhang -\family default - that specifies how much the float is set into the paragraph -\begin_inset space \thinspace{} -\end_inset - -/ -\begin_inset space \thinspace{} -\end_inset - -page margin, and the -\family sans -Line -\begin_inset space ~ -\end_inset - -span -\family default - that specifies how many text lines the float will approximately need. - The line span is often hard to approximate; so it is better only to use - it when you encounter float placement problems. - You can furthermore decide if LaTeX is allowed to let the float float within - the paragraph or to surrounding paragraphs. - Figure -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:This-is-a" - -\end_inset - - is an example text wrap float with a width of 40 -\begin_inset space \thinspace{} -\end_inset - -col%, 1 -\begin_inset space \thinspace{} -\end_inset - -cm overhang, set to the left. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Available units are explained in appendix -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "cha:Units-available-in" - -\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 - Text -\begin_inset space ~ -\end_inset - -wrap float floats are fragile! E. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -having a figure too close to the bottom of the page can mess things up in - such a way that the float does not appear in the output or that it is placed - over some other text. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -In general: -\end_layout - -\begin_layout Itemize -Wrap floats should not be placed in paragraphs that run over a page break. - That means that wrap floats are better inserted in their exact place when - the document is almost finished and you are able to estimate where page - breaks will appear. -\end_layout - -\begin_layout Itemize -Wrap floats should either be placed in their own paragraph before the paragraph - where they should wrap into or within a paragraph. -\end_layout - -\begin_layout Itemize -Wrap floats in consecutive paragraphs may cause troubles, so ensure that - there is a text paragraph between them as separator. -\end_layout - -\begin_layout Itemize -Wrap floats are not allowed in section headings or tables. -\end_layout - \begin_layout Section Float Numbering \begin_inset Index idx @@ -20445,7 +20533,7 @@ Formatted \begin_inset space ~ \end_inset -reference: prints a self defined cross-reference format. +reference: prints a self-defined cross-reference format. \begin_inset Newline newline \end_inset @@ -20461,6 +20549,10 @@ Note: This feature is only available when you have the LaTeX-package \series bold prettyref +\series default + or +\series bold +refstyle \series default \begin_inset Index idx @@ -20470,6 +20562,16 @@ status collapsed LaTeX-packages ! prettyref \end_layout +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! refstyle +\end_layout + \end_inset installed. @@ -20478,6 +20580,87 @@ LaTeX-packages ! prettyref \end_inset +\begin_inset Newline newline +\end_inset + +You can select which LaTeX-package should be used for this feature by setting + the option +\family sans +Use refstyle (not prettyref) for cross-references +\family default + in the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document Class +\family default +. + The format is specified by adding the command +\series bold + +\backslash +newrefformat +\series default + (prettyref) or +\series bold + +\backslash +newref +\series default + (refstyle) to the preamble of the document. + For example redefining all references to figures (which have the label + shortcut +\begin_inset Quotes eld +\end_inset + + +\family sans +fig +\family default + +\begin_inset Quotes erd +\end_inset + +) can be done with this command +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +newref{fig}{refcmd={Image on page +\backslash +pageref{#1}}} +\series default + +\begin_inset Newline newline +\end_inset + +For more information about the format, have a look at the package documentations +, +\begin_inset CommandInset citation +LatexCommand cite +key "prettyref,refstyle" + +\end_inset + +. +\end_layout + +\begin_layout Description +Textual +\begin_inset space ~ +\end_inset + +reference: prints the caption of the reference: +\begin_inset CommandInset ref +LatexCommand nameref +reference "fig:Two-distorted-images" + +\end_inset + + \end_layout \begin_layout Standard @@ -20535,7 +20718,21 @@ status open \series bold Note: \series default - The LaTeX-package + It is recommended to use the LaTeX-package +\series bold +refstyle +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! refstyle +\end_layout + +\end_inset + + because \series bold prettyref \series default @@ -20567,18 +20764,6 @@ fig: \end_inset and is not internationalized. - To find out how to tell -\series bold -prettyref -\series default - new shortcuts and translations, have a look at its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "prettyref" - -\end_inset - -. \end_layout \end_inset @@ -21158,7 +21343,7 @@ of \begin_inset space ~ \end_inset -floats try to place the float on its own page +floats try to place the float on its own page \end_layout \begin_layout Standard @@ -22691,7 +22876,7 @@ LaTeX-packages ! KOMA-Script document class is used. In this case the document class option \series bold -tablecaptionabove +captions=tableheading \series default must be used. \end_layout @@ -23194,7 +23379,7 @@ caption \series default package set the document class option \series bold -tablecaptionabove +captions=tableheading \series default . \end_layout @@ -23283,6 +23468,13 @@ To place in LyX the caption of a float on the side, it is necessary to add these commands to the document preamble: \end_layout +\begin_layout Standard +\begin_inset Newpage pagebreak +\end_inset + + +\end_layout + \begin_layout Standard \noindent \begin_inset CommandInset line @@ -23303,7 +23495,7 @@ height "1pt" \backslash newcommand{ \backslash -TabBesBeg}{% +TabBesBeg}[1][1.0]{% \begin_inset Newline newline \end_inset @@ -23312,8 +23504,6 @@ TabBesBeg}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23338,7 +23528,7 @@ status open \begin_layout Plain Layout -\series bold +\series medium \begin_inset space ~ \end_inset @@ -23363,7 +23553,7 @@ status open \begin_layout Plain Layout -\series bold +\series medium \begin_inset space ~ \end_inset @@ -23374,9 +23564,9 @@ status open \backslash -renewenvironment{table}{ +renewenvironment{table}[1]{ \backslash -begin{SCtable}}{ +begin{SCtable}[#1]##1}{ \backslash end{SCtable}}} \end_layout @@ -23397,8 +23587,6 @@ TabBesEnd}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23422,8 +23610,6 @@ MyTable status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23448,7 +23634,7 @@ MyEndtable \backslash newcommand{ \backslash -FigBesBeg}{% +FigBesBeg}[1][1.0]{% \begin_inset Newline newline \end_inset @@ -23457,8 +23643,6 @@ FigBesBeg}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23482,8 +23666,6 @@ figure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23507,8 +23689,6 @@ endfigure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23519,9 +23699,9 @@ status open \backslash -renewenvironment{figure}{ +renewenvironment{figure}[1]{ \backslash -begin{SCfigure}}{ +begin{SCfigure}[#1]##1}{ \backslash end{SCfigure}}} \end_layout @@ -23542,8 +23722,6 @@ FigBesEnd}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23567,8 +23745,6 @@ MyFigure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23615,7 +23791,7 @@ FigBesBeg \begin_layout Standard in TeX-Code before the float. - After the float insert the command + And insert the command \end_layout \begin_layout Standard @@ -23627,7 +23803,8 @@ FigBesEnd \end_layout \begin_layout Standard -in TeX-Code to get back to the original float definition. +in TeX-Code at the point where you want to get back to the original float + definition. \end_layout \begin_layout Standard @@ -23766,360 +23943,164 @@ reference "fig:cap-beside-fig-2" \begin_inset VSpace medskip \end_inset -For more information about the package -\series bold -sidecap -\series default - we refer to its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "sidecap" -\end_inset - -. \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - The LaTeX-package -\series bold -hypcap -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! hypcap -\end_layout - -\end_inset - -, described in section +The default caption width is the width of the image/table. + For thin image/tables, like in Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sub:Reference-Position" - -\end_inset - -, has no effect on floats with the caption set beside. -\end_layout +reference "tab:cap-beside-tab" \end_inset +, this leads to captions that are too thin. + You can increase the width by specifying a factor that will be multiplied + with the image/table width to get the caption width. + The caption width will automatically be recalculated in case it would protrude + over the page or column margin due to the specified width. + The +\emph on +factor +\emph default + can either be given as optional argument for +\series bold +\backslash +FigBesBeg +\series default +: \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\series bold \backslash -FigBesBeg -\end_layout - -\end_inset - - +FigBesBeg[factor] \end_layout \begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/escher-lsd.eps - scale 75 - scaleBeforeRotation - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:cap-beside-fig" - -\end_inset - -This is a caption beside a figure. -\end_layout - -\end_inset - +or in the definition of +\series bold -\end_layout +\backslash +FigBesBeg +\series default + by replacing the +\series bold +1.0 +\series default + with another value. + If you do the latter, your factor will be the default if +\series bold +\backslash +FigBesBeg +\series default + is used without an argument. + For Table +\begin_inset space ~ \end_inset -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -TabBesBeg -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab-wider" \end_inset - + the factor 5 was used. \end_layout \begin_layout Standard -\begin_inset Float table -wide false -sideways false +\begin_inset Note Greyedout status open -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:cap-beside-tab" - -\end_inset - -This is a caption beside a table. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -a -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -b -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -c -\end_layout - -\end_inset - - - - -\begin_inset Text - \begin_layout Plain Layout -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -d -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -e -\end_layout - +\series bold +Note: +\series default + For floats with captions set beside, you cannot use the float placement + option +\family sans +Here +\begin_inset space ~ \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout +definitely +\family default + because it is not supported by +\series bold +sidecap +\series default +. \end_layout \end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -f -\end_layout - -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -g -\end_layout - -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout - -\end_layout +For more information about the package +\series bold +sidecap +\series default + we refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "sidecap" \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -h +. \end_layout -\end_inset - - - - -\begin_inset Text +\begin_layout Standard +\begin_inset Note Greyedout +status open \begin_layout Plain Layout -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -i -\end_layout +\series bold +Note: +\series default + The LaTeX-package +\series bold +hypcap +\series default -\end_inset - - -\begin_inset Text +\begin_inset Index idx +status collapsed \begin_layout Plain Layout - +LaTeX-packages ! hypcap \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -j -\end_layout +, described in section +\begin_inset space ~ \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\end_layout -\end_inset - - - +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Reference-Position" \end_inset - +, has no effect on floats with the caption set beside. \end_layout \end_inset @@ -24135,7 +24116,7 @@ status collapsed \backslash -TabBesEnd +FigBesBeg \end_layout \end_inset @@ -24144,19 +24125,6 @@ TabBesEnd \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -sidecaptionvpos{figure}{c} -\end_layout - -\end_inset - - \begin_inset Float figure wide false sideways false @@ -24179,11 +24147,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "fig:cap-beside-fig-2" +name "fig:cap-beside-fig" \end_inset -This is a vertically centered caption beside a figure. +This is a caption beside a figure. \end_layout \end_inset @@ -24220,21 +24188,31 @@ status collapsed \backslash -else +TabBesBeg \end_layout \end_inset -\begin_inset Note Note +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false status open \begin_layout Plain Layout -The following will be displayed when the LaTeX-package -\series bold -sidecap -\series default - is not installed: +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:cap-beside-tab" + +\end_inset + +This is a caption beside a table. \end_layout \end_inset @@ -24242,212 +24220,216 @@ sidecap \end_layout -\begin_layout Standard -You need to install the LaTeX-package -\series bold -sidecap -\series default - to see the following part of this section in the output. +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +\end_layout -\backslash -fi +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Section -Listings of Floats -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Floats ! Float Lists +c \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -Similar to the table of contents where the sections of the document are - listed, there are listings for all float types, like the figures of the - documents. - You can insert them via the -\family sans -Insert\SpecialChar \menuseparator -List -\begin_inset space ~ -\end_inset - -/ -\begin_inset space ~ \end_inset + + +\begin_inset Text -TOC -\family default - sub menus. +\begin_layout Plain Layout +d \end_layout -\begin_layout Standard -The list entries are the float captions or its short title, the float number, - and the page number where they appear in the document. -\end_layout +\end_inset + + +\begin_inset Text -\begin_layout Standard -You can find the list of figures and tables at the end of this document. -\end_layout +\begin_layout Plain Layout -\begin_layout Chapter -Notes \end_layout -\begin_layout Section -LyX Notes -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Notes ! LyX Notes +e \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -Notes are inserted with the toolbar button -\begin_inset Graphics - filename ../images/note-insert.png - scale 85 - scaleBeforeRotation - \end_inset + + + + +\begin_inset Text - or the menu -\family sans -Insert\SpecialChar \menuseparator -Note -\family default -. - There are three types of notes: +\begin_layout Plain Layout +f \end_layout -\begin_layout Description -LyX -\begin_inset space ~ \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout -Note This note type is for internal notes that won't appear in the output. - Its note-box looks like this: -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +g +\end_layout -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/LyXNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation +\end_layout \end_inset - - -\begin_inset Note Note -status open + + +\begin_inset Text \begin_layout Plain Layout -This is text in a note box that doesn't appear in the output. +h \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Description -Comment This note also doesn't appear in the output but it appears as LaTeX-comm -ent, when you export the document to LaTeX via the menu -\family sans -File\SpecialChar \menuseparator -Export\SpecialChar \menuseparator -LaTeX (pdflatex) / (plain) -\family default -. - Its note-box looks like this: -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +i +\end_layout -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/CommentNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation +\end_layout \end_inset - - -\begin_inset Note Comment -status open + + +\begin_inset Text \begin_layout Plain Layout -This is text in a note box that only appears as comment in LaTeX-files. +j \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Description -Greyed -\begin_inset space ~ -\end_inset - -Out This note will appear in the output as grey text. - Its note-box looks like this: -\begin_inset Newline newline \end_inset + + + - -\begin_inset Newline newline \end_inset -\begin_inset Graphics - filename clipart/GreyedOutNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation +\end_layout \end_inset -\begin_inset Newline newline -\end_inset - +\end_layout +\begin_layout Standard \begin_inset ERT status collapsed @@ -24455,451 +24437,352 @@ status collapsed \backslash -renewenvironment{lyxgreyedout} +TabBesEnd +\end_layout + +\end_inset + + \end_layout +\begin_layout Standard +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -{ -\backslash -textcolor[gray]{0.8} -\backslash -bgroup}{ + \backslash -egroup} +sidecaptionvpos{figure}{c} \end_layout \end_inset -\begin_inset Note Greyedout +\begin_inset Float figure +wide false +sideways false status open \begin_layout Plain Layout -This is text -\begin_inset Foot -status open +\begin_inset Graphics + filename clipart/escher-lsd.eps + scale 75 + scaleBeforeRotation + +\end_inset + -\begin_layout Plain Layout -This is an example footnote within a greyed out note. \end_layout +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:cap-beside-fig-2" + \end_inset - of a comment that appears in the output as grey text. +This is a vertically centered caption beside a figure. \end_layout \end_inset -\begin_inset ERT -status collapsed +\end_layout -\begin_layout Plain Layout +\end_inset -\backslash -renewenvironment{lyxgreyedout} \end_layout +\begin_layout Standard +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -{ -\backslash -textcolor{blue} -\backslash -bgroup}{ + \backslash -egroup} +FigBesEnd \end_layout \end_inset -\begin_inset Note Note +\end_layout + +\begin_layout Standard +\begin_inset ERT status collapsed \begin_layout Plain Layout -The greyed out note is here redefined to show it with the original LyX definitio -n because greyed out notes are redefined in the preamble of this document, - as described below, to have blue text. -\end_layout -\end_inset +\backslash +TabBesBeg[5] +\end_layout -\begin_inset Newline newline \end_inset -\begin_inset Newline newline -\end_inset - -As you can see in the example, the first line of greyed out notes is a bit - indented and greyed out notes can have footnotes. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_inset Float table +wide false +sideways false +status open -When you use the toolbar button -\begin_inset Graphics - filename ../images/note-insert.png - scale 85 - scaleBeforeRotation +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:cap-beside-tab-wider" \end_inset - to insert notes, a -\family sans -LyX +This is a caption is wider than the one in Table \begin_inset space ~ \end_inset -Note -\family default - is inserted. - You can switch between the five note types by right-clicking on the note-box. - -\family roman -\series medium -\bar no -If you want to turn existing text into a note, mark it and click on the - note -\family default -\series default -\bar default - toolbar -\family roman -\series medium -\bar no -button -\family default -\series default -\bar default -. - To change a note to text, press the backspace key when the cursor is in - the first position of a note, or press the delete key when the cursor is - in the very last position of the note, respectively. -\end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab" + \end_inset -You can change the text color of the greyed out notes in the preamble with - the following command: +. \end_layout -\begin_layout Standard - -\series bold - -\backslash -renewenvironment{lyxgreyedout} -\begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom -status open +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text \begin_layout Plain Layout +a +\end_layout -\series bold -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout \end_inset + + +\begin_inset Text -{ -\backslash -textcolor{color} -\backslash -bgroup}{ -\backslash -egroup} +\begin_layout Plain Layout +b \end_layout -\begin_layout Standard -The available colors and the method to define colors is explained in section -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" +\end_layout \end_inset + + +\begin_inset Text -. -\end_layout - -\begin_layout Standard -Notes that appear in blue in this document are set using greyed out notes - with blue text. +\begin_layout Plain Layout +c \end_layout -\begin_layout Section -Footnotes -\begin_inset CommandInset label -LatexCommand label -name "sec:Footnotes" - \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset Index idx -status collapsed +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Notes ! Footnotes +d \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Footnotes +e \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -Footnotes can be inserted using the toolbar button -\begin_inset Graphics - filename ../images/footnote-insert.png - scale 85 - scaleBeforeRotation - -\end_inset - - or the menu -\family sans -Insert\SpecialChar \menuseparator -Footnote -\family default -. - -\family roman -\series medium -\bar no -You'll see -\family default -\series default -\bar default - then the following footnote-box: -\begin_inset Graphics - filename clipart/footnoteQt4.png - scale 80 - scaleBeforeRotation - \end_inset + + + + +\begin_inset Text - -\family roman -\series medium -\bar no -where you can enter the footnote text. - If you want to turn existing text into a footnote, mark it and click on - the footnote -\family default -\series default -\bar default - toolbar -\family roman -\series medium -\bar no -button -\family default -\series default -\bar default -. - To change a -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default - to text, press the Backspace key when the cursor is in the first position - of a -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default -, or press the Delete key when the cursor is in the very last position of - the -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default -, respectively. +\begin_layout Plain Layout +f \end_layout -\begin_layout Standard -Here is an example footnote: -\family roman -\series medium -\bar no - -\begin_inset Foot -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "foot:This-is-an" - -\end_inset -This is an example footnote. \end_layout \end_inset - - -\family default -\series default -\bar default - -\begin_inset ERT -status collapsed + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -newcounter{MyRepeatFoot} +g \end_layout -\begin_layout Plain Layout +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\backslash -setcounter{MyRepeatFoot}{ -\backslash -thefootnote} \end_layout \end_inset + + +\begin_inset Text - -\end_layout - -\begin_layout Standard -The footnote will appear in the output as a superscript number at the text - position where the footnote box is placed. - The footnote text is placed at the bottom of the current page. - The footnote number is calculated by LaTeX; the numbers are consecutive. - It depends on your document-class, whether the footnote number is reset - for every chapter. +\begin_layout Plain Layout +h \end_layout -\begin_layout Standard -Footnotes can be referenced like floats: Insert a label into the footnote - and cross-reference this label in the text as described in section -\begin_inset space ~ \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Referencing-Floats" +\end_layout \end_inset + + +\begin_inset Text -. -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout +i +\end_layout -This is a cross-reference of Footnote -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "foot:This-is-an" +\end_layout \end_inset + + +\begin_inset Text -. +\begin_layout Plain Layout +j \end_layout -\begin_layout Standard -\begin_inset VSpace defskip \end_inset + + +\begin_inset Text -Footnotes in tables are not printed by LaTeX due to technical reasons. - However there exists another method to print them: Instead of the footnote - the command -\series bold +\begin_layout Plain Layout -\backslash -footnotemark{} -\series default - is inserted as TeX-code. - The text of the footnote is entered as an argument of the TeX-code command - -\series bold +\end_layout + +\end_inset + + + -\backslash -footnotetext -\series default - after the table. -\begin_inset Newline newline \end_inset -This was done for the following table with the command + \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -footnotetext{ -\series default -Printed table footnote. -\series bold -} \end_layout \begin_layout Standard -\begin_inset Tabular - - - - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -This an example text. -\begin_inset Foot -status open -\begin_layout Plain Layout -This footnote will not be printed! + +\backslash +TabBesEnd \end_layout \end_inset @@ -24907,15 +24790,7 @@ This footnote will not be printed! \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -This an example text. +\begin_layout Standard \begin_inset ERT status collapsed @@ -24923,22 +24798,37 @@ status collapsed \backslash -footnotemark{} +else \end_layout \end_inset +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +sidecap +\series default + is not installed: \end_layout \end_inset - - - -\end_inset +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +sidecap +\series default + to see the following part of this section in the output. +\end_layout +\begin_layout Standard \begin_inset ERT status collapsed @@ -24946,18 +24836,21 @@ status collapsed \backslash -footnotetext{ +fi \end_layout \end_inset -Printed table footnote. -\begin_inset ERT + +\end_layout + +\begin_layout Section +Listings of Floats +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -} +Floats ! Float Lists \end_layout \end_inset @@ -24966,71 +24859,45 @@ status collapsed \end_layout \begin_layout Standard -Footnotes in longtables are described in section +Similar to the table of contents where the sections of the document are + listed, there are listings for all float types, like the figures of the + documents. + You can insert them via the +\family sans +Insert\SpecialChar \menuseparator +List \begin_inset space ~ \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Footnotes-in-Longtables" - +/ +\begin_inset space ~ \end_inset -. +TOC +\family default + sub menus. \end_layout \begin_layout Standard -Footnotes in minipage boxes are printed, but inside the box and with a different - numbering because a minipage box is like a page inside a page. - (For more about minipages, see section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" - -\end_inset - -.) To get a footnote in the minipage that is output at the bottom of the - page like normal footnotes, also use the method of -\series bold - -\backslash -footnotemark{} -\series default - and -\series bold - -\backslash -footnotetext -\series default -. +The list entries are the float captions or its short title, the float number, + and the page number where they appear in the document. \end_layout \begin_layout Standard -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status open +You can find the list of figures and tables at the end of this document. +\end_layout -\begin_layout Plain Layout -This an example text in a minipage. -\begin_inset Foot -status open +\begin_layout Chapter +Notes +\end_layout + +\begin_layout Section +LyX Notes +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -Footnote in the minipage. +Notes ! LyX Notes \end_layout \end_inset @@ -25038,164 +24905,170 @@ Footnote in the minipage. \end_layout -\begin_layout Plain Layout -This an example text in a minipage. -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\begin_layout Standard +Notes are inserted with the toolbar button +\begin_inset Graphics + filename ../images/note-insert.png + scale 85 + scaleBeforeRotation +\end_inset -\backslash -footnotemark{} + or the menu +\family sans +Insert\SpecialChar \menuseparator +Note +\family default +. + There are three types of notes: \end_layout +\begin_layout Description +LyX +\begin_inset space ~ \end_inset +Note This note type is for internal notes that won't appear in the output. + Its note-box looks like this: +\begin_inset Newline newline +\end_inset -\end_layout +\begin_inset Newline newline \end_inset -\end_layout +\begin_inset Graphics + filename clipart/LyXNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Note Note +status open \begin_layout Plain Layout +This is text in a note box that doesn't appear in the output. +\end_layout + +\end_inset -\backslash -footnotetext{ \end_layout +\begin_layout Description +Comment This note also doesn't appear in the output but it appears as LaTeX-comm +ent, when you export the document to LaTeX via the menu +\family sans +File\SpecialChar \menuseparator +Export\SpecialChar \menuseparator +LaTeX (pdflatex) / (plain) +\family default +. + Its note-box looks like this: +\begin_inset Newline newline \end_inset -Footnote outside the minipage. -\begin_inset ERT -status collapsed -\begin_layout Plain Layout +\begin_inset Newline newline +\end_inset -} -\end_layout + +\begin_inset Graphics + filename clipart/CommentNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation \end_inset + +\begin_inset Note Comment +status open +\begin_layout Plain Layout +This is text in a note box that only appears as comment in LaTeX-files. \end_layout -\begin_layout Standard -\begin_inset VSpace defskip \end_inset \end_layout -\begin_layout Standard -To refer to the same footnote several times without printing the footnote - text every time, use the command -\series bold +\begin_layout Description +Greyed +\begin_inset space ~ +\end_inset -\backslash -footnotemark[number] -\series default - in TeX-code. +Out This note will appear in the output as grey text. + Its note-box looks like this: \begin_inset Newline newline \end_inset -As you do not know the number of the repeating footnote while you are writing - the text, you have to store its number. - For the following footnote mark example, these commands were inserted in - TeX-code after Footnote -\begin_inset space ~ + +\begin_inset Newline newline \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "foot:This-is-an" +\begin_inset Graphics + filename clipart/GreyedOutNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation \end_inset - to store the footnote number: -\end_layout - -\begin_layout Standard - -\series bold -\backslash -newcounter{MyRepeatFoot} \begin_inset Newline newline \end_inset -\backslash -setcounter{MyRepeatFoot}{ -\backslash -thefootnote} -\end_layout - -\begin_layout Standard -The footnote mark was then created with this command: -\end_layout +\begin_inset ERT +status collapsed -\begin_layout Standard +\begin_layout Plain Layout -\series bold \backslash -footnotemark[ -\backslash -theMyRepeatFoot] +renewenvironment{lyxgreyedout} \end_layout -\begin_layout Standard -Here is a repeated footnote: -\family roman -\series medium -\bar no - -\begin_inset ERT -status collapsed - \begin_layout Plain Layout - +{ \backslash -footnotemark[ +textcolor[gray]{0.8} \backslash -theMyRepeatFoot] +bgroup}{ +\backslash +egroup} \end_layout \end_inset -\end_layout +\begin_inset Note Greyedout +status open -\begin_layout Standard -If you want to repeat the previous footnote, you can omit the storage of - the footnote number and just use this command instead: -\end_layout +\begin_layout Plain Layout +This is text +\begin_inset Foot +status open -\begin_layout Standard +\begin_layout Plain Layout +This is an example footnote within a greyed out note. +\end_layout -\series bold +\end_inset -\backslash -footnotemark[ -\backslash -thefootnote] + of a comment that appears in the output as grey text. \end_layout -\begin_layout Standard -Here is another repeated footnote: -\family roman -\series medium -\bar no +\end_inset + \begin_inset ERT status collapsed @@ -25204,94 +25077,128 @@ status collapsed \backslash -footnotemark[ -\backslash -thefootnote] +renewenvironment{lyxgreyedout} \end_layout -\end_inset - +\begin_layout Plain Layout +{ +\backslash +textcolor{blue} +\backslash +bgroup}{ +\backslash +egroup} \end_layout -\begin_layout Subsection -Footnote Numbering -\begin_inset CommandInset label -LatexCommand label -name "sub:Footnote-Numbering" - \end_inset -\begin_inset Index idx +\begin_inset Note Note status collapsed \begin_layout Plain Layout -Footnotes ! Numbering +The greyed out note is here redefined to show it with the original LyX definitio +n because greyed out notes are redefined in the preamble of this document, + as described below, to have blue text. \end_layout \end_inset -\end_layout +\begin_inset Newline newline +\end_inset -\begin_layout Standard -To reset the footnote number back to 1 after each section -\family roman -, add this command to your document preamble: + +\begin_inset Newline newline +\end_inset + +As you can see in the example, the first line of greyed out notes is a bit + indented and greyed out notes can have footnotes. \end_layout \begin_layout Standard +\begin_inset VSpace bigskip +\end_inset -\series bold +When you use the toolbar button +\begin_inset Graphics + filename ../images/note-insert.png + scale 85 + scaleBeforeRotation -\backslash -@addtoreset{footnote}{section} +\end_inset + + to insert notes, a +\family sans +LyX +\begin_inset space ~ +\end_inset + +Note +\family default + is inserted. + You can switch between the five note types by right-clicking on the note-box. + +\family roman +\series medium +\bar no +If you want to turn existing text into a note, mark it and click on the + note +\family default +\series default +\bar default + toolbar +\family roman +\series medium +\bar no +button +\family default +\series default +\bar default +. + To change a note to text, press the backspace key when the cursor is in + the first position of a note, or press the delete key when the cursor is + in the very last position of the note, respectively. \end_layout \begin_layout Standard \begin_inset VSpace bigskip \end_inset -The following preamble command changes the footnote numbering style to small - roman numerals: +You can change the text color of the greyed out notes in the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Colors +\family default +. \end_layout -\begin_layout Standard +\begin_layout Section +Footnotes +\begin_inset CommandInset label +LatexCommand label +name "sec:Footnotes" -\series bold +\end_inset -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -roman{footnote}} -\end_layout -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -roman{footnote}} +Notes ! Footnotes \end_layout \end_inset - This is a footnote with roman numbering: -\begin_inset Foot -status open + +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -This is an example footnote with roman numbering. +Footnotes \end_layout \end_inset @@ -25300,109 +25207,110 @@ This is an example footnote with roman numbering. \end_layout \begin_layout Standard -To change the numbering style to capital roman numerals replace in the command - above -\series bold - -\backslash -roman -\series default - by -\series bold - -\backslash -Roman -\series default -. - To -\begin_inset Quotes eld -\end_inset +Footnotes can be inserted using the toolbar button +\begin_inset Graphics + filename ../images/footnote-insert.png + scale 85 + scaleBeforeRotation -number -\begin_inset Quotes erd \end_inset - footnotes with capital or small Latin letters use -\series bold - -\backslash -Alph -\series default - or -\series bold - -\backslash -alph + or the menu +\family sans +Insert\SpecialChar \menuseparator +Footnote +\family default +. + +\family roman +\series medium +\bar no +You'll see +\family default \series default -, respectively. - To -\begin_inset Quotes eld -\end_inset +\bar default + then the following footnote-box: +\begin_inset Graphics + filename clipart/footnoteQt4.png + scale 80 + scaleBeforeRotation -number -\begin_inset Quotes erd \end_inset - footnotes with symbols use -\series bold - -\backslash -fnsymbol + +\family roman +\series medium +\bar no +where you can enter the footnote text. + If you want to turn existing text into a footnote, mark it and click on + the footnote +\family default +\series default +\bar default + toolbar +\family roman +\series medium +\bar no +button +\family default \series default +\bar default . + To change a +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default + to text, press the Backspace key when the cursor is in the first position + of a +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default +, or press the Delete key when the cursor is in the very last position of + the +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default +, respectively. \end_layout \begin_layout Standard -\begin_inset Note Greyedout +Here is an example footnote: +\family roman +\series medium +\bar no + +\begin_inset Foot status open \begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "foot:This-is-an" -\series bold -Note: -\series default - You can only number 26 footnotes with Latin letters, because this numbering - is limited to single letters. -\end_layout - -\end_inset - - -\begin_inset Newline newline \end_inset - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - You can only number 9 footnotes with symbols. +This is an example footnote. \end_layout \end_inset -\end_layout - -\begin_layout Standard -To return to the default numbering style after you have changed to another - one, use -\series bold - -\backslash -arabic +\family default \series default - instead of -\series bold +\bar default -\backslash -roman -\series default - in the command above. \begin_inset ERT status collapsed @@ -25410,127 +25318,118 @@ status collapsed \backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -arabic{footnote}} +newcounter{MyRepeatFoot} \end_layout -\end_inset +\begin_layout Plain Layout +\backslash +setcounter{MyRepeatFoot}{ +\backslash +thefootnote} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard -If you want to have footnotes numbered in the scheme -\begin_inset Quotes eld -\end_inset - -chapter.footnote -\begin_inset Quotes erd -\end_inset - -, add the following command to your document preamble: +The footnote will appear in the output as a superscript number at the text + position where the footnote box is placed. + The footnote text is placed at the bottom of the current page. + The footnote number is calculated by LaTeX; the numbers are consecutive. + It depends on your document-class, whether the footnote number is reset + for every chapter. \end_layout \begin_layout Standard +Footnotes can be referenced like floats: Insert a label into the footnote + and cross-reference this label in the text as described in section +\begin_inset space ~ +\end_inset -\series bold - -\backslash -numberwithin{footnote}{chapter} -\end_layout -\begin_layout Standard -To be able to use the command -\series bold +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Referencing-Floats" -\backslash -numberwithin -\series default -, set in the tab -\family sans -Math -\begin_inset space ~ \end_inset -Options -\family default - in the document settings the option -\family sans -Use -\begin_inset space ~ +. +\begin_inset Newline newline \end_inset -AMS +This is a cross-reference of Footnote \begin_inset space ~ \end_inset -math -\begin_inset space ~ + +\begin_inset CommandInset ref +LatexCommand ref +reference "foot:This-is-an" + \end_inset -package -\family default . \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -numberwithin{footnote}{chapter} -\end_layout - +\begin_inset VSpace defskip \end_inset -This is another example footnote: +Footnotes in tables are not printed by LaTeX due to technical reasons. + However there exists another method to print them: Instead of the footnote + the command \series bold -\begin_inset Foot -status open - -\begin_layout Plain Layout -This is a footnote numbered in the scheme -\begin_inset Quotes eld -\end_inset +\backslash +footnotemark{} +\series default + is inserted as TeX-code. + The text of the footnote is entered as an argument of the TeX-code command + +\series bold -chapter.footnote -\begin_inset Quotes erd +\backslash +footnotetext +\series default + after the table. +\begin_inset Newline newline \end_inset -. +This was done for the following table with the command \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +footnotetext{ \series default +Printed table footnote. +\series bold +} +\end_layout -\begin_inset ERT -status collapsed +\begin_layout Standard +\begin_inset Tabular + + + + + +\begin_inset Text \begin_layout Plain Layout +This an example text. +\begin_inset Foot +status open - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -arabic{footnote}} +\begin_layout Plain Layout +This footnote will not be printed! \end_layout \end_inset @@ -25538,23 +25437,23 @@ arabic{footnote}} \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +This an example text. +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - -\series bold \backslash -numberwithin -\series default - always prints out the footnote number as arabic number; previous redefinitions - to get non-arabic numbers are overwritten. +footnotemark{} \end_layout \end_inset @@ -25562,47 +25461,33 @@ numberwithin \end_layout -\begin_layout Standard -So to get for example the scheme -\begin_inset Quotes eld \end_inset + + + -chapter. -\backslash -Roman{footnote} -\begin_inset Quotes erd \end_inset -, use this command instead of -\series bold -\backslash -numberwithin -\series default -: -\end_layout +\begin_inset ERT +status collapsed -\begin_layout Standard +\begin_layout Plain Layout -\series bold \backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -thechapter. -\backslash -Roman{footnote}} +footnotetext{ \end_layout -\begin_layout Subsection -Footnote Placement -\begin_inset Index idx +\end_inset + +Printed table footnote. +\begin_inset ERT status collapsed \begin_layout Plain Layout -Footnotes ! Placement + +} \end_layout \end_inset @@ -25611,136 +25496,71 @@ Footnotes ! Placement \end_layout \begin_layout Standard -If you have several footnotes in one page, they appear without vertical - space between them at the bottom of the page. - To make them more readable you can e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -add 1.5 -\begin_inset space \thinspace{} -\end_inset - -mm space with the following preamble command: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -let -\backslash -myFoot -\backslash -footnote -\begin_inset Newline newline -\end_inset - - -\backslash -renewcommand{ -\backslash -footnote}[1]{ -\backslash -myFoot{#1 -\backslash -vspace{1.5mm}}} -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -In a two-column document the footnotes appear at the bottom of every column, - see Figure -\begin_inset space ~ +Footnotes in longtables are described in section +\begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "fig:Standard-footnote-placement" +reference "sub:Footnotes-in-Longtables" \end_inset . - If the footnotes should only appear at the bottom of the right column, - as in Figure +\end_layout + +\begin_layout Standard +Footnotes in minipage boxes are printed, but inside the box and with a different + numbering because a minipage box is like a page inside a page. + (For more about minipages, see section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "fig:Footnote-placement-in" +reference "sec:Minipages" \end_inset -, use the LaTeX-package +.) To get a footnote in the minipage that is output at the bottom of the + page like normal footnotes, also use the method of \series bold -ftnright -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! ftnright -\end_layout - -\end_inset - - with this command in the document preamble: -\end_layout - -\begin_layout Standard +\backslash +footnotemark{} +\series default + and \series bold \backslash -usepackage{ftnright} +footnotetext +\series default +. \end_layout \begin_layout Standard -\begin_inset Float figure -placement !h -wide false -sideways false +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" status open \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -framebox{ -\end_layout - -\end_inset - - -\begin_inset Graphics - filename clipart/without_fntright.pdf - width 100col% - scaleBeforeRotation - -\end_inset - - -\begin_inset ERT -status collapsed +This an example text in a minipage. +\begin_inset Foot +status open \begin_layout Plain Layout - -} +Footnote in the minipage. \end_layout \end_inset @@ -25749,16 +25569,15 @@ status collapsed \end_layout \begin_layout Plain Layout -\begin_inset Caption +This an example text in a minipage. +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Standard-footnote-placement" -\end_inset -Standard footnote placement in two-column documents. +\backslash +footnotemark{} \end_layout \end_inset @@ -25772,13 +25591,6 @@ Standard footnote placement in two-column documents. \end_layout \begin_layout Standard -\begin_inset Float figure -placement !h -wide false -sideways false -status open - -\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -25786,20 +25598,12 @@ status collapsed \backslash -framebox{ +footnotetext{ \end_layout \end_inset - -\begin_inset Graphics - filename clipart/with_fntright.pdf - width 100col% - scaleBeforeRotation - -\end_inset - - +Footnote outside the minipage. \begin_inset ERT status collapsed @@ -25813,89 +25617,60 @@ status collapsed \end_layout -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Footnote-placement-in" - -\end_inset - -Footnote placement in two-column documents when the LaTeX-package -\series bold -ftnright -\series default - is used. -\end_layout - -\end_inset - - -\end_layout - +\begin_layout Standard +\begin_inset VSpace defskip \end_inset \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +To refer to the same footnote several times without printing the footnote + text every time, use the command +\series bold + +\backslash +footnotemark[number] +\series default + in TeX-code. +\begin_inset Newline newline \end_inset -In some scientific literature it is usual to collect the footnotes and print - them in a separate paragraph at the end of a section, as in Figure +As you do not know the number of the repeating footnote while you are writing + the text, you have to store its number. + For the following footnote mark example, these commands were inserted in + TeX-code after Footnote \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "fig:Endnotes" - -\end_inset +reference "foot:This-is-an" -. - They are then called -\begin_inset Quotes eld \end_inset -endnotes -\begin_inset Quotes erd -\end_inset + to store the footnote number: +\end_layout -. -\begin_inset Index idx -status collapsed +\begin_layout Standard -\begin_layout Plain Layout -Endnotes -\end_layout +\series bold +\backslash +newcounter{MyRepeatFoot} +\begin_inset Newline newline \end_inset - To use endnotes instead of footnotes in your document, load in the menu - -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Modules -\family default -the module -\family sans -Foot -\begin_inset space ~ -\end_inset -to -\begin_inset space ~ -\end_inset +\backslash +setcounter{MyRepeatFoot}{ +\backslash +thefootnote} +\end_layout -End -\family default -. - To insert the collected footnotes, insert the command +\begin_layout Standard +The footnote mark was then created with this command: \end_layout \begin_layout Standard @@ -25903,21 +25678,17 @@ End \series bold \backslash -theendnotes -\end_layout - -\begin_layout Standard -in TeX-Code at the end of a section or chapter. +footnotemark[ +\backslash +theMyRepeatFoot] \end_layout \begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open +Here is a repeated footnote: +\family roman +\series medium +\bar no -\begin_layout Plain Layout -\align center \begin_inset ERT status collapsed @@ -25925,25 +25696,47 @@ status collapsed \backslash -framebox{ +footnotemark[ +\backslash +theMyRepeatFoot] \end_layout \end_inset -\begin_inset Graphics - filename clipart/endnotes.pdf - scaleBeforeRotation +\end_layout -\end_inset +\begin_layout Standard +If you want to repeat the previous footnote, you can omit the storage of + the footnote number and just use this command instead: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +footnotemark[ +\backslash +thefootnote] +\end_layout +\begin_layout Standard +Here is another repeated footnote: +\family roman +\series medium +\bar no \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +footnotemark[ +\backslash +thefootnote] \end_layout \end_inset @@ -25951,23 +25744,20 @@ status collapsed \end_layout -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout +\begin_layout Subsection +Footnote Numbering \begin_inset CommandInset label LatexCommand label -name "fig:Endnotes" +name "sub:Footnote-Numbering" \end_inset -Endnotes – footnotes are printed in a separate paragraph at the end of sections - or chapters. -\end_layout - -\end_inset +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +Footnotes ! Numbering \end_layout \end_inset @@ -25976,28 +25766,25 @@ Endnotes – footnotes are printed in a separate paragraph at the end of section \end_layout \begin_layout Standard -\begin_inset VSpace medskip -\end_inset +To reset the footnote number back to 1 after each section +\family roman +, add this command to your document preamble: +\end_layout -The paragraph heading for the endnotes isn't automatically translated into - the document language, this must be done manually. - The following preamble command translates the default English -\begin_inset Quotes eld -\end_inset +\begin_layout Standard -Notes -\begin_inset Quotes erd -\end_inset +\series bold - into the German -\begin_inset Quotes eld -\end_inset +\backslash +@addtoreset{footnote}{section} +\end_layout -Anmerkungen -\begin_inset Quotes erd +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -: +The following preamble command changes the footnote numbering style to small + roman numerals: \end_layout \begin_layout Standard @@ -26007,141 +25794,157 @@ Anmerkungen \backslash renewcommand{ \backslash -notesname}{Anmerkungen} +thefootnote}{ +\backslash +roman{footnote}} \end_layout \begin_layout Standard -\begin_inset VSpace medskip -\end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +roman{footnote}} +\end_layout -The numbering of endnotes can be changed like the footnote numbering as - described in section -\begin_inset space ~ \end_inset + This is a footnote with roman numbering: +\begin_inset Foot +status open -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Footnote-Numbering" +\begin_layout Plain Layout +This is an example footnote with roman numbering. +\end_layout \end_inset -; just replace the command + +\end_layout + +\begin_layout Standard +To change the numbering style to capital roman numerals replace in the command + above \series bold \backslash -thefootnote +roman \series default by \series bold \backslash -theendnote +Roman \series default . - To reset the endnote number use the command -\series bold - -\backslash -@addtoreset -\series default - as described in section -\begin_inset space ~ + To +\begin_inset Quotes eld \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Footnote-Numbering" - +number +\begin_inset Quotes erd \end_inset - and replace the command parameter -\series bold -footnote -\series default - by -\series bold -endnote -\series default -. -\end_layout - -\begin_layout Standard -For endnotes there is the command + footnotes with capital or small Latin letters use \series bold \backslash -endnotemark[number] +Alph \series default - similar to the command + or \series bold \backslash -footnotemark +alph \series default -, that is described in section -\begin_inset space ~ +, respectively. + To +\begin_inset Quotes eld \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Footnotes" - +number +\begin_inset Quotes erd \end_inset + footnotes with symbols use +\series bold + +\backslash +fnsymbol +\series default . \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout -Footnotes can also be placed in the page margin and the footnote text alignment - can be changed, see the LaTeX-package \series bold -footmisc +Note: \series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! footmisc + You can only number 26 footnotes with Latin letters, because this numbering + is limited to single letters. \end_layout \end_inset -, -\begin_inset CommandInset citation -LatexCommand cite -key "footmisc" +\begin_inset Newline newline \end_inset - for more information about this. -\end_layout -\begin_layout Standard -For various further footnote formatting issues have a look at LaTeX-books, - -\begin_inset CommandInset citation -LatexCommand cite -key "latexcompanion,latexguide,latexbook" +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + You can only number 9 footnotes with symbols. +\end_layout \end_inset -. + \end_layout -\begin_layout Section -Margin Notes -\begin_inset Index idx +\begin_layout Standard +To return to the default numbering style after you have changed to another + one, use +\series bold + +\backslash +arabic +\series default + instead of +\series bold + +\backslash +roman +\series default + in the command above. +\begin_inset ERT status collapsed \begin_layout Plain Layout -Notes ! Margin Notes + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +arabic{footnote}} \end_layout \end_inset @@ -26150,92 +25953,67 @@ Notes ! Margin Notes \end_layout \begin_layout Standard -Margin notes look and behave in LyX like footnotes. - They are inserted via the menu -\family sans -Insert\SpecialChar \menuseparator -Marginal -\begin_inset space ~ +\begin_inset VSpace bigskip \end_inset -Note -\family default - or the toolbar button -\begin_inset Graphics - filename ../images/marginalnote-insert.png - scale 85 - scaleBeforeRotation -\end_inset +\end_layout -. - A grey -\family roman -\series medium -box with the -\family default -\series default - red -\family roman -\series medium -label +\begin_layout Standard +If you want to have footnotes numbered in the scheme \begin_inset Quotes eld \end_inset -margin +chapter.footnote \begin_inset Quotes erd \end_inset - appears where you can enter the text of the margin note. +, add the following command to your document preamble: \end_layout \begin_layout Standard -At the side is an example margin note. - -\family roman -\series medium - -\begin_inset Marginal -status open - -\begin_layout Plain Layout -This is a margin note. -\end_layout - -\end_inset +\series bold +\backslash +numberwithin{footnote}{chapter} \end_layout \begin_layout Standard -Margin notes appear at the right side in single-sided documents. - In double-sided documents they appear in the outer margin – left on even - pages, right on odd pages. - The text of margin notes is aligned opposite to the outer margin – right-aligne -d when the note appears in the left margin. - The first line of the margin note is placed at the position of the text - line where it is inserted in the document. -\end_layout +To be able to use the command +\series bold -\begin_layout Standard -\begin_inset VSpace bigskip +\backslash +numberwithin +\series default +, set in the tab +\family sans +Math +\begin_inset space ~ \end_inset -To place the margin note in the inner margin, add the command -\end_layout +Options +\family default + in the document settings the option +\family sans +Use +\begin_inset space ~ +\end_inset -\begin_layout Standard +AMS +\begin_inset space ~ +\end_inset -\series bold +math +\begin_inset space ~ +\end_inset -\backslash -reversemarginpar +package +\family default +. \end_layout \begin_layout Standard -in TeX-Code before a margin note. - The new placement is valid for all subsequent margin notes. - \begin_inset ERT status collapsed @@ -26243,30 +26021,54 @@ status collapsed \backslash -reversemarginpar +numberwithin{footnote}{chapter} \end_layout \end_inset +This is another example footnote: +\series bold -\begin_inset Marginal +\begin_inset Foot status open \begin_layout Plain Layout -This is a margin note in the inner margin. +This is a footnote numbered in the scheme +\begin_inset Quotes eld +\end_inset + +chapter.footnote +\begin_inset Quotes erd +\end_inset + +. \end_layout \end_inset -\series bold +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +arabic{footnote}} +\end_layout -\begin_inset Newline newline \end_inset -\series default +\end_layout +\begin_layout Standard \begin_inset Note Greyedout status open @@ -26275,8 +26077,14 @@ status open \series bold Note: \series default - There is often not enough space in the inner margin so that the notes are - not correctly displayed in the output. + +\series bold + +\backslash +numberwithin +\series default + always prints out the footnote number as arabic number; previous redefinitions + to get non-arabic numbers are overwritten. \end_layout \end_inset @@ -26285,7 +26093,23 @@ Note: \end_layout \begin_layout Standard -To return to the default placement insert the command +So to get for example the scheme +\begin_inset Quotes eld +\end_inset + +chapter. +\backslash +Roman{footnote} +\begin_inset Quotes erd +\end_inset + +, use this command instead of +\series bold + +\backslash +numberwithin +\series default +: \end_layout \begin_layout Standard @@ -26293,122 +26117,178 @@ To return to the default placement insert the command \series bold \backslash -normalmarginpar +renewcommand{ +\backslash +thefootnote}{ +\backslash +thechapter. +\backslash +Roman{footnote}} \end_layout -\begin_layout Standard -in TeX-Code. -\begin_inset ERT +\begin_layout Subsection +Footnote Placement +\begin_inset Index idx status collapsed \begin_layout Plain Layout +Footnotes ! Placement +\end_layout + +\end_inset -\backslash -normalmarginpar \end_layout +\begin_layout Standard +If you have several footnotes in one page, they appear without vertical + space between them at the bottom of the page. + To make them more readable you can e. +\begin_inset space \thinspace{} \end_inset - -\begin_inset Note Greyedout -status open +g. +\begin_inset space \space{} +\end_inset -\begin_layout Plain Layout +add 1.5 +\begin_inset space \thinspace{} +\end_inset + +mm space with the following preamble command: +\end_layout + +\begin_layout Standard -\series bold -Note: -\series default - The command is ignored when it is within a paragraph where also the command - \series bold \backslash -reversemarginpar -\series default - is inserted. -\end_layout - +let +\backslash +myFoot +\backslash +footnote +\begin_inset Newline newline \end_inset +\backslash +renewcommand{ +\backslash +footnote}[1]{ +\backslash +myFoot{#1 +\backslash +vspace{1.5mm}}} \end_layout \begin_layout Standard \begin_inset VSpace bigskip \end_inset +In a two-column document the footnotes appear at the bottom of every column, + see Figure +\begin_inset space ~ +\end_inset -\family roman -\series medium - -\begin_inset Marginal -status open -\begin_layout Plain Layout -AVeryLongMarginParWord that isn't hyphenated. -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Standard-footnote-placement" \end_inset - -\family default -\series default - Similar to the case described in section +. + If the footnotes should only appear at the bottom of the right column, + as in Figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sub:Multiple-Lines-in" +reference "fig:Footnote-placement-in" \end_inset -, long words cannot be hyphenated when they are the first word in a margin - note. - To avoid this, insert 0 -\begin_inset space \thinspace{} +, use the LaTeX-package +\series bold +ftnright +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! ftnright +\end_layout + \end_inset -pt horizontal space before the word -\family roman -\series medium -. - -\begin_inset Marginal + with this command in the document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage{ftnright} +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement !h +wide false +sideways false status open \begin_layout Plain Layout -\begin_inset space \hspace*{} -\length 0pt -\end_inset +\begin_inset ERT +status collapsed -AVeryLongMarginParWord that is hyphenated. +\begin_layout Plain Layout + + +\backslash +framebox{ \end_layout \end_inset +\begin_inset Graphics + filename clipart/without_fntright.pdf + width 100col% + scaleBeforeRotation + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\begin_layout Plain Layout +\begin_inset Caption \begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Standard-footnote-placement" -\series bold -Note: -\series default - Margin notes can normally not be used inside tables, floats, and footnotes. +\end_inset + +Standard footnote placement in two-column documents. \end_layout \end_inset @@ -26416,14 +26296,19 @@ Note: \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard +\begin_inset Float figure +placement !h +wide false +sideways false +status open + +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -26431,21 +26316,26 @@ status collapsed \backslash -ifmarginnote +framebox{ \end_layout \end_inset -\begin_inset Note Note -status open +\begin_inset Graphics + filename clipart/with_fntright.pdf + width 100col% + scaleBeforeRotation + +\end_inset + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -The following section will only be displayed when the LaTeX-package -\series bold -marginnote -\series default - is installed. + +} \end_layout \end_inset @@ -26453,125 +26343,137 @@ marginnote \end_layout -\begin_layout Standard -This restriction can be evaded by using the LaTeX-package -\series bold -marginnote -\series default - -\begin_inset Index idx -status collapsed +\begin_layout Plain Layout +\begin_inset Caption \begin_layout Plain Layout -LaTeX-packages ! marginnote -\end_layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Footnote-placement-in" \end_inset -. - By adding these two lines to your document preamble, the command used by - LyX for margin notes is redefined to use the command provided by the +Footnote placement in two-column documents when the LaTeX-package \series bold -marginnote +ftnright \series default --package: + is used. \end_layout -\begin_layout Standard - -\series bold - -\backslash -usepackage{marginnote} -\begin_inset Newline newline \end_inset -\backslash -let -\backslash -marginpar -\backslash -marginnote \end_layout -\begin_layout Standard -This is also used in this document because -\series bold -marginnote -\series default - has another useful feature: You can set a vertical offset for the note. - This is often needed when too many margin notes are too close together - or for a better page layout. - The offset is set in LyX as TeX-Code directly after the margin note in - the scheme -\end_layout +\end_inset -\begin_layout Standard -\series bold -[offset] \end_layout \begin_layout Standard -where the offset is a length with one of the units listed in Table +\begin_inset VSpace bigskip +\end_inset + +In some scientific literature it is usual to collect the footnotes and print + them in a separate paragraph at the end of a section, as in Figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Units" +reference "fig:Endnotes" \end_inset . - A negative value shifts the note up, a positive value shifts it down. - -\family roman -\series medium -For example the margin note beside this text line is shifted up 1.5 -\begin_inset space \thinspace{} + They are then called +\begin_inset Quotes eld \end_inset -cm with the TeX-Code-command -\begin_inset Quotes eld +endnotes +\begin_inset Quotes erd \end_inset +. +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Endnotes +\end_layout + +\end_inset + To use endnotes instead of footnotes in your document, load in the menu + +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Modules \family default -\series bold -[-1.5cm] -\family roman -\series medium +the module +\family sans +Foot +\begin_inset space ~ +\end_inset -\begin_inset Quotes erd +to +\begin_inset space ~ \end_inset +End +\family default +. + To insert the collected footnotes, insert the command +\end_layout + +\begin_layout Standard + +\series bold -\begin_inset Marginal +\backslash +theendnotes +\end_layout + +\begin_layout Standard +in TeX-Code at the end of a section or chapter. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false status open \begin_layout Plain Layout -This margin note is shifted up 1.5 -\begin_inset space \thinspace{} -\end_inset +\align center +\begin_inset ERT +status collapsed -cm from its original position. +\begin_layout Plain Layout + + +\backslash +framebox{ \end_layout \end_inset -\family default -\series default +\begin_inset Graphics + filename clipart/endnotes.pdf + scaleBeforeRotation + +\end_inset + \begin_inset ERT status collapsed \begin_layout Plain Layout -[-1.5cm] +} \end_layout \end_inset @@ -26579,269 +26481,376 @@ status collapsed \end_layout -\begin_layout Standard -\begin_inset VSpace medskip +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Endnotes" + \end_inset -With -\series bold -marginnote -\series default - you can also change the alignment of the text in the margin note. - For example the commands +Endnotes – footnotes are printed in a separate paragraph at the end of sections + or chapters. \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -centering} -\begin_inset Newline newline +\end_layout + \end_inset -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -centering} \end_layout \begin_layout Standard -set the alignment to centered. - -\series bold +\begin_inset VSpace medskip +\end_inset -\backslash -raggedleftmarginnote -\series default - denotes margin notes that appear at the left side. -\family roman -\series medium +The paragraph heading for the endnotes isn't automatically translated into + the document language, this must be done manually. + The following preamble command translates the default English +\begin_inset Quotes eld +\end_inset -\begin_inset ERT -status collapsed +Notes +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout + into the German +\begin_inset Quotes eld +\end_inset +Anmerkungen +\begin_inset Quotes erd +\end_inset -\backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -centering} +: \end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ +renewcommand{ \backslash -centering} +notesname}{Anmerkungen} \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset +The numbering of endnotes can be changed like the footnote numbering as + described in section +\begin_inset space ~ +\end_inset -\begin_inset Marginal -status open -\begin_layout Plain Layout -The text of this margin note is centered. -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnote-Numbering" \end_inset +; just replace the command +\series bold -\family default +\backslash +thefootnote \series default - The default is -\end_layout - -\begin_layout Standard - + by \series bold \backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ +theendnote +\series default +. + To reset the endnote number use the command +\series bold + \backslash -raggedleft} -\begin_inset Newline newline +@addtoreset +\series default + as described in section +\begin_inset space ~ \end_inset -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -raggedright} -\family roman -\series medium +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnote-Numbering" -\begin_inset ERT -status collapsed +\end_inset -\begin_layout Plain Layout + and replace the command parameter +\series bold +footnote +\series default + by +\series bold +endnote +\series default +. +\end_layout +\begin_layout Standard +For endnotes there is the command +\series bold \backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ +endnotemark[number] +\series default + similar to the command +\series bold + \backslash -raggedleft} +footnotemark +\series default +, that is described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Footnotes" + +\end_inset + +. \end_layout -\begin_layout Plain Layout +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset +Footnotes can also be placed in the page margin and the footnote text alignment + can be changed, see the LaTeX-package +\series bold +footmisc +\series default -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -raggedright} +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! footmisc \end_layout \end_inset +, +\begin_inset CommandInset citation +LatexCommand cite +key "footmisc" +\end_inset + + for more information about this. \end_layout \begin_layout Standard -\begin_inset VSpace medskip +For various further footnote formatting issues have a look at LaTeX-books, + +\begin_inset CommandInset citation +LatexCommand cite +key "latexcompanion,latexguide,latexbook" + \end_inset -For the other features of +. + If you are using a \series bold -marginnote +KOMA-Script \series default - refer to its documentation + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! KOMA-Script +\end_layout + +\end_inset + + document class, you can adjust all footnote settings using class-specific + commands, see \begin_inset CommandInset citation LatexCommand cite -key "marginnote" +key "KOMA-Script" \end_inset . \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_layout Section +Margin Notes +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Notes ! Margin Notes +\end_layout -You can adjust the layout of margin notes by changing its definition. - To create for example a header for all margin notes with the underlined, - sans-serif, and bold header text -\begin_inset Quotes eld \end_inset +\end_layout + +\begin_layout Standard +Margin notes look and behave in LyX like footnotes. + They are inserted via the menu \family sans -\series bold -\bar under -Attention! +Insert\SpecialChar \menuseparator +Marginal +\begin_inset space ~ +\end_inset + +Note +\family default + or the toolbar button +\begin_inset Graphics + filename ../images/marginalnote-insert.png + scale 85 + scaleBeforeRotation + +\end_inset + +. + A grey +\family roman +\series medium +box with the \family default \series default -\bar default + red +\family roman +\series medium +label +\begin_inset Quotes eld +\end_inset +margin \begin_inset Quotes erd \end_inset -, add this to your document preamble: + appears where you can enter the text of the margin note. \end_layout \begin_layout Standard +At the side is an example margin note. -\series bold +\family roman +\series medium + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note. +\end_layout -\backslash -let -\backslash -myMarginpar -\backslash -marginpar -\begin_inset Newline newline \end_inset -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{% -\begin_inset Newline newline +\end_layout + +\begin_layout Standard +Margin notes appear at the right side in single-sided documents. + In double-sided documents they appear in the outer margin – left on even + pages, right on odd pages. + The text of margin notes is aligned opposite to the outer margin – right-aligne +d when the note appears in the left margin. + The first line of the margin note is placed at the position of the text + line where it is inserted in the document. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset +To place the margin note in the inner margin, add the command +\end_layout -\begin_inset Phantom HPhantom -status open +\begin_layout Standard + +\series bold + +\backslash +reversemarginpar +\end_layout + +\begin_layout Standard +in TeX-Code before a margin note. + The new placement is valid for all subsequent margin notes. + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -\begin_inset space ~ + +\backslash +reversemarginpar +\end_layout + \end_inset +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note in the inner margin. \end_layout \end_inset -\backslash -hspace{0pt} -\backslash -textsf{ -\backslash -textbf{ -\backslash -underbar{Attention!}}}% +\series bold + \begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom +\series default + +\begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold -\begin_inset space ~ +Note: +\series default + There is often not enough space in the inner margin so that the notes are + not correctly displayed in the output. +\end_layout + \end_inset \end_layout -\end_inset +\begin_layout Standard +To return to the default placement insert the command +\end_layout +\begin_layout Standard -\backslash -vspace{1.5mm} -\backslash +\series bold \backslash -#1}} +normalmarginpar \end_layout \begin_layout Standard - -\family roman -\series medium +in TeX-Code. \begin_inset ERT status collapsed @@ -26849,54 +26858,48 @@ status collapsed \backslash -let -\backslash -myMarginpar -\backslash -marginpar +normalmarginpar \end_layout -\begin_layout Plain Layout - +\end_inset -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{% -\end_layout + +\begin_inset Note Greyedout +status open \begin_layout Plain Layout - -\backslash -textsf{ -\backslash -textbf{ +\series bold +Note: +\series default + The command is ignored when it is within a paragraph where also the command + +\series bold + \backslash -underbar{Attention!}}}% +reversemarginpar +\series default + is inserted. \end_layout -\begin_layout Plain Layout +\end_inset - -\backslash -vspace{1.5mm} -\backslash -\backslash -#1}} \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset +\family roman +\series medium + \begin_inset Marginal status open \begin_layout Plain Layout -This is a margin note with a defined heading. +AVeryLongMarginParWord that isn't hyphenated. \end_layout \end_inset @@ -26904,48 +26907,70 @@ This is a margin note with a defined heading. \family default \series default + Similar to the case described in section +\begin_inset space ~ +\end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -[-1.5cm] -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multiple-Lines-in" \end_inset +, long words cannot be hyphenated when they are the first word in a margin + note. + To avoid this, insert 0 +\begin_inset space \thinspace{} +\end_inset +pt horizontal space before the word \family roman \series medium - -\begin_inset ERT -status collapsed +. + +\begin_inset Marginal +status open \begin_layout Plain Layout +\begin_inset space \hspace*{} +\length 0pt +\end_inset + +AVeryLongMarginParWord that is hyphenated. +\end_layout + +\end_inset -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{#1}} \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -\family default -\series default +\end_layout -\begin_inset Note Note -status collapsed +\begin_layout Standard +\begin_inset Note Greyedout +status open \begin_layout Plain Layout -The margin note format is changed only for this example. + +\series bold +Note: +\series default + Margin notes can normally not be used inside tables, floats, and footnotes. +\end_layout + +\end_inset + + \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset @@ -26959,7 +26984,7 @@ status collapsed \backslash -else +ifmarginnote \end_layout \end_inset @@ -26969,11 +26994,11 @@ else status open \begin_layout Plain Layout -The following will be displayed when the LaTeX-package +The following section will only be displayed when the LaTeX-package \series bold marginnote \series default - is not installed: + is installed. \end_layout \end_inset @@ -26982,263 +27007,2590 @@ marginnote \end_layout \begin_layout Standard -You need to install the LaTeX-package +This restriction can be evaded by using the LaTeX-package \series bold marginnote \series default - to see the following part of this section in the output. -\end_layout -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -fi +LaTeX-packages ! marginnote \end_layout \end_inset - +. + By adding these two lines to your document preamble, the command used by + LyX for margin notes is redefined to use the command provided by the +\series bold +marginnote +\series default +-package: \end_layout -\begin_layout Chapter -Boxes -\end_layout +\begin_layout Standard -\begin_layout Section -Introduction -\begin_inset Index idx -status collapsed +\series bold + +\backslash +usepackage{marginnote} +\begin_inset Newline newline +\end_inset + + +\backslash +let +\backslash +marginpar +\backslash +marginnote +\end_layout + +\begin_layout Standard +This is also used in this document because +\series bold +marginnote +\series default + has another useful feature: You can set a vertical offset for the note. + This is often needed when too many margin notes are too close together + or for a better page layout. + The offset is set in LyX as TeX-Code directly after the margin note in + the scheme +\end_layout + +\begin_layout Standard + +\series bold +[offset] +\end_layout + +\begin_layout Standard +where the offset is a length with one of the units listed in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Units" + +\end_inset + +. + A negative value shifts the note up, a positive value shifts it down. + +\family roman +\series medium +For example the margin note beside this text line is shifted up 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm with the TeX-Code-command +\begin_inset Quotes eld +\end_inset + + +\family default +\series bold +[-1.5cm] +\family roman +\series medium + +\begin_inset Quotes erd +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This margin note is shifted up 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm from its original position. +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[-1.5cm] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +With +\series bold +marginnote +\series default + you can also change the alignment of the text in the margin note. + For example the commands +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +centering} +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +centering} +\end_layout + +\begin_layout Standard +set the alignment to centered. + +\series bold + +\backslash +raggedleftmarginnote +\series default + denotes margin notes that appear at the left side. +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +centering} +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +centering} +\end_layout + +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +The text of this margin note is centered. +\end_layout + +\end_inset + + +\family default +\series default + The default is +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +raggedleft} +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +raggedright} +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +raggedleft} +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +raggedright} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +For the other features of +\series bold +marginnote +\series default + refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "marginnote" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +You can adjust the layout of margin notes by changing its definition. + To create for example a header for all margin notes with the underlined, + sans-serif, and bold header text +\begin_inset Quotes eld +\end_inset + + +\family sans +\series bold +\bar under +Attention! +\family default +\series default +\bar default + +\begin_inset Quotes erd +\end_inset + +, add this to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +let +\backslash +myMarginpar +\backslash +marginpar +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +hspace{0pt} +\backslash +textsf{ +\backslash +textbf{ +\backslash +underbar{Attention!}}}% +\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 +vspace{1.5mm} +\backslash + +\backslash +#1}} +\end_layout + +\begin_layout Standard + +\family roman +\series medium +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +let +\backslash +myMarginpar +\backslash +marginpar +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +textsf{ +\backslash +textbf{ +\backslash +underbar{Attention!}}}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +vspace{1.5mm} +\backslash + +\backslash +#1}} +\end_layout + +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note with a defined heading. +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[-1.5cm] +\end_layout + +\end_inset + + +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{#1}} +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The margin note format is changed only for this example. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +else +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +marginnote +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +marginnote +\series default + to see the following part of this section in the output. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fi +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Chapter +Boxes +\end_layout + +\begin_layout Section +Introduction +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Introduction +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Boxes are used to format a block of text. + Boxes can be used to write documents with multiple languages, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +, to frame texts, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Decoration" + +\end_inset + +, to prevent words from being hyphenated, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +, to align text, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Vertical-Alignment" + +\end_inset + +, or to set the background color of texts, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Boxes" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Boxes can be inserted with the menu +\family sans +Insert\SpecialChar \menuseparator +Box +\family default + or the toolbar button +\begin_inset Graphics + filename ../images/box-insert.png + scale 85 + scaleBeforeRotation + +\end_inset + +. + A grey box with the label +\family sans +Box (Minipage) +\family default +: +\begin_inset Graphics + filename clipart/BoxInsetDefaultQt4.png + scale 85 + scaleBeforeRotation + +\end_inset + + will be inserted. + The box type can be specified by right-clicking on the box and selecting + +\family sans +Settings +\family default +. + The box dialog offers the +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + types +\family sans +Makebox +\family default +, +\family sans +Parbox +\family default + and +\family sans +Minipage +\family default +. + The type +\family sans +Minipage +\family default + is the default for new boxes and is explained in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +; the type +\family sans +Parbox +\family default + is described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Parboxes" + +\end_inset + + and the type +\family sans +Makebox +\family default + in +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Boxes are not numbered and can therefore not be referenced like floats or + footnotes. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Boxes must not be the item in an +\family sans +Itemize +\family default + or +\family sans +Description +\family default + environment. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + For an unknown reason you can only set the +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + type to +\family sans +None +\family default + when you use a framed box. + Boxes without an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + type and without frames are explained in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Box Dialog +\begin_inset CommandInset label +LatexCommand label +name "sec:Box-Dialog" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Box Dialog +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Size +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Size +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the box dialog you can adjust the box geometry in the fields +\family sans +Width +\family default + and +\family sans +Height +\family default +. + The available units for the geometry are explained in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Units" + +\end_inset + +. + The field +\family sans +Height +\family default + offers the following additional sizes: +\end_layout + +\begin_layout Description +Depth This is the plain text +\begin_inset Quotes eld +\end_inset + +height +\begin_inset Quotes erd +\end_inset + +. + It ignores the total depth when there are multiple text lines in the box: +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "depth" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Depth +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Description +Height This is the height of the text that is inside the box. + A value of e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +2 for this size will set the box height to 2 +\begin_inset space ~ +\end_inset + +times the text height: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "2in" +height_special "height" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 2 +\begin_inset space \thinspace{} +\end_inset + +Height +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Total +\begin_inset space ~ +\end_inset + +Height This is the Height +\begin_inset space \thinspace{} +\end_inset + ++ +\begin_inset space \thinspace{} +\end_inset + +Depth: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Total +\begin_inset space ~ +\end_inset + +Height +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Width This sets the width of the box as height: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "width" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Width +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Alignment +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Alignment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +When you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, the vertical box alignment can be: +\end_layout + +\begin_layout Description +Top This is an example text line. + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is top-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +Middle This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is middle-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +Bottom This is an example text line. + +\begin_inset Box Boxed +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is bottom-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The vertical box alignment can be lost in the output when you have two + boxes in a line and one has e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +a shadow and the other one not. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The horizontal box alignment can be set via LyX's paragraph dialog when + you set the box into its own paragraph. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +When you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, the box content can be aligned vertically to: +\end_layout + +\begin_layout Description +top This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is top-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +middle This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is middle-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +bottom This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "b" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is bottom-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +stretch This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box +\end_layout + +\begin_layout Plain Layout +\align center +text is +\end_layout + +\begin_layout Plain Layout +\align center +stretched. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Standard +To stretch the box content, it must consist of more than one paragraph. + In the example above every text line is in an own paragraph. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +To align the box content horizontally you can use LyX's paragraph dialog + when you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +. +\end_layout + +\begin_layout Standard +\align center +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1.25in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align left +This box +\end_layout + +\begin_layout Plain Layout +\align center +text is +\end_layout + +\begin_layout Plain Layout +\align right +stretched. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you have not set an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, you can align the box content horizontally in the box dialog. +\end_layout + +\begin_layout Standard +\align center +\begin_inset Box Boxed +position "c" +hor_pos "s" +has_inner_box 0 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "90col%" +special "none" +height "1.25in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +This box text is horizontally stretched. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Decoration +\begin_inset CommandInset label +LatexCommand label +name "sec:Decoration" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Decoration +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The type of the box can be specified in the box dialog in the drop-down + list +\family sans +Decoration +\family default +. + The following types are possible: +\end_layout + +\begin_layout Description +No +\begin_inset space ~ +\end_inset + +frame Nothing is drawn. +\end_layout + +\begin_layout Description +Simple +\begin_inset space ~ +\end_inset + +rectangular +\begin_inset space ~ +\end_inset + +frame This draws a rectangular frame around the box. + The frame line thickness has the size of +\series bold + +\backslash +fboxrule +\series default +. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Rectangular box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Oval +\begin_inset space ~ +\end_inset + +box, +\begin_inset space ~ +\end_inset + +thin This draws an oval frame around the box. + The frame line thickness has the size 0.4 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Oval box, thin +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Oval +\begin_inset space ~ +\end_inset + +box, +\begin_inset space ~ +\end_inset + +thick This draws an oval frame around the box. + The frame line thickness has the size 0.8 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Oval box, thick +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Drop +\begin_inset space ~ +\end_inset + +shadow This draws a rectangular frame with a shadow around the box. + The frame line thickness has the size of +\series bold + +\backslash +fboxrule +\series default +, the shadow has a width of 4 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Shadowbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Shadow box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Shaded +\begin_inset space ~ +\end_inset + +background This draws a box with a red background. + Unlike colored boxes +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +see sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Boxes" + +\end_inset + + +\end_layout + +\end_inset + +, it always uses the whole column width and the box is set as its own paragraph. + +\begin_inset Box Shaded +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "50col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +Shaded background box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Double +\begin_inset space ~ +\end_inset + +rectangular +\begin_inset space ~ +\end_inset + +frame This draws a double-line rectangular frame around the box. + The line thickness of the inner frame is 0.75 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default +, the thickness of the outer frame is 1.5 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default +. + The distance between the lines is 1.5 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default + +\begin_inset space \thinspace{} +\end_inset + ++ +\begin_inset space \thinspace{} +\end_inset + +0.5 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Double rectangular box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +LyX's box label will reflect the different frame types. + To be able to use all types, the LaTeX-package +\series bold +fancybox +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! fancybox +\end_layout + +\end_inset + + must be installed. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +When you use the decoration +\family sans +simple rectangular frame +\family default + and no inner box, you can allow page breaks within a box. + Note that then, unlike other framed boxes, the frame always uses the whole + column width, the box is set as its own paragraph, and +\series bold + +\backslash +fboxrule +\series default + and +\series bold + +\backslash +fboxsep +\series default + have no effect on this box type. + The frame line thickness has the size of +\series bold + +\backslash +FrameRule +\series default +. + +\begin_inset Box Framed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +Allow page break box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Box Customization +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Customization +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The default value for the size +\series bold + +\backslash +fboxrule +\series default + is 0.4 +\begin_inset space \thinspace{} +\end_inset + +pt. + It can be changed with the following command in TeX-code to e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +2 +\begin_inset space \thinspace{} +\end_inset + +pt: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +setlength{ +\backslash +fboxrule}{2pt} +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxrule}{2pt} +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Rectangular box with +\series bold + +\backslash +fboxrule +\series default + +\begin_inset space \thinspace{} +\end_inset + += +\begin_inset space \thinspace{} +\end_inset + +2 +\begin_inset space \thinspace{} +\end_inset + +pt +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxrule}{0.4pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The space between the frame and the box content is for all frame styles + by default 3 +\begin_inset space \thinspace{} +\end_inset + +pt. + You can change it by setting the length +\series bold + +\backslash +fboxsep +\series default + to another value. + For example the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +setlength{ +\backslash +fboxsep}{10pt} +\end_layout + +\begin_layout Standard +sets the value to 10 +\begin_inset space \thinspace{} +\end_inset + +pt, as with the following box: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxsep}{10pt} +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Rectangular box with +\series bold + +\backslash +fboxsep +\series default + +\begin_inset space \thinspace{} +\end_inset + += +\begin_inset space \thinspace{} +\end_inset + +10 +\begin_inset space \thinspace{} +\end_inset + +pt +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxsep}{3pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The diameter of the round corners of the oval boxes can be set with the + command +\series bold + +\backslash +cornersize +\series default +. + The command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +cornersize*{1cm} +\end_layout + +\begin_layout Standard +sets the diameter to 1 +\begin_inset space \thinspace{} +\end_inset + +cm. + The command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +cornersize{num} +\end_layout + +\begin_layout Standard +sets the diameter to +\family sans +num +\begin_inset space \thinspace{} +\end_inset + +× +\begin_inset space \thinspace{} +\end_inset + +minimum(width and height of box) +\family default +. + The default is +\series bold + +\backslash +cornersize{0.5} +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed \begin_layout Plain Layout -Boxes ! Introduction + + +\backslash +cornersize*{1.5cm} \end_layout \end_inset -\end_layout +\begin_inset Box Ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open -\begin_layout Standard -Boxes are used to format a block of text. - Boxes can be used to write documents with multiple languages, see section -\begin_inset space ~ +\begin_layout Plain Layout +\align center +Oval box with +\series bold + +\backslash +cornersize +\series default + +\begin_inset space \thinspace{} \end_inset += +\begin_inset space \thinspace{} +\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" +1.5 +\begin_inset space \thinspace{} +\end_inset + +cm +\end_layout \end_inset -, to frame texts, see section -\begin_inset space ~ + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +cornersize{0.5} +\end_layout + \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Decoration" +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -, to prevent words from being hyphenated, see section -\begin_inset space ~ +The size of the shadow can be adjusted by changing the length +\series bold + +\backslash +shadowsize +\series default +. + It it set to 2 +\begin_inset space \thinspace{} \end_inset +pt for the following box by this command: +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Prevent-Hyphenation" +\begin_layout Standard + +\series bold + +\backslash +setlength{ +\backslash +shadowsize}{2pt} +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +shadowsize}{2pt} +\end_layout \end_inset -, to align text, see section -\begin_inset space ~ + +\begin_inset Box Shadowbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Shadow box with +\series bold + +\backslash +shadowsize +\series default + +\begin_inset space \thinspace{} \end_inset += +\begin_inset space \thinspace{} +\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Vertical-Alignment" +2 +\begin_inset space \thinspace{} +\end_inset + +pt +\end_layout \end_inset -, or to set the background color of texts, see section -\begin_inset space ~ + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +shadowsize}{4pt} +\end_layout + \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Boxes" +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -. + \end_layout \begin_layout Standard -Boxes can be inserted with the menu +The default value for the size +\series bold + +\backslash +FrameRule +\series default + is 0.4 +\begin_inset space \thinspace{} +\end_inset + +pt. + The default space between the note content and the frame is 9 +\begin_inset space \thinspace{} +\end_inset + +pt and can be changed with the value of +\series bold + +\backslash +FrameSep +\series default +. + For example the frame appearance of the following \family sans -Insert\SpecialChar \menuseparator -Box +box \family default - or the toolbar button -\begin_inset Graphics - filename ../images/box-insert.png - scale 85 - scaleBeforeRotation + is set with the TeX-Code commands +\end_layout + +\begin_layout Standard + +\series bold +\backslash +setlength{ +\backslash +FrameRule}{5pt} +\begin_inset Newline newline \end_inset -. - A grey box with the label + +\backslash +setlength{ +\backslash +FrameSep}{0.5cm} +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +FrameRule}{5pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +FrameSep}{0.5cm} +\end_layout + +\end_inset + + +\begin_inset Box Framed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +This is text in an \family sans -Box (Minipage) +allow page break \family default -: -\begin_inset Graphics - filename clipart/BoxInsetDefaultQt4.png - scale 85 - scaleBeforeRotation + box. +\end_layout \end_inset - will be inserted. - The box type can be specified by right-clicking on the box and selecting - + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +FrameRule}{0.4pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +FrameSep}{9pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +For \family sans -Settings +shaded background \family default + boxes the default space between the box content and the box border is 3 +\begin_inset space \thinspace{} +\end_inset + +pt and can be changed with the value of +\series bold + +\backslash +fboxsep +\series default . - The box dialog offers the + The default background color red can either be changed locally with the + command +\series bold + +\backslash +definecolor{shadecolor} +\series default + or globally with the menu \family sans -Inner +Tools\SpecialChar \menuseparator +Preferences\SpecialChar \menuseparator +Colors\SpecialChar \menuseparator +shaded \begin_inset space ~ \end_inset -Box -\family default - types -\family sans -Parbox -\family default - and -\family sans -Minipage +box \family default . - The type -\family sans -Minipage -\family default - is the default for new boxes and is explained in section + The scheme of the +\series bold + +\backslash +definecolor +\series default + command is explained in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Minipages" +reference "sec:Colored-Tables" \end_inset -; the type -\family sans -Parbox -\family default - is described in section +. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Note that +\series bold + +\backslash +definecolor +\series default + requires the LaTeX-package +\series bold +color +\series default + in the preamble, see section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Parboxes" +reference "sec:Colored-Boxes" \end_inset . \end_layout -\begin_layout Standard -Boxes are not numbered and can therefore not be referenced like floats or - footnotes. +\end_inset + + For example the appearance of the following shaded background box is set + with the TeX-Code commands \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout \series bold -Note: + +\backslash +setlength{ +\backslash +fboxsep}{0.5cm} \series default - Boxes must not be the item in an -\family sans -Itemize -\family default - or -\family sans -Description -\family default - environment. -\end_layout +\begin_inset Newline newline \end_inset +\series bold + +\backslash +definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - For an unknown reason you can only set the -\family sans -Inner -\begin_inset space ~ + +\backslash +setlength{ +\backslash +fboxsep}{0.5cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} +\end_layout + \end_inset -Box -\family default - type to + +\begin_inset Box Shaded +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout + +\color yellow +This is yellow text in a +\color none + \family sans -None +\color yellow +shaded background \family default - when you use a framed box. - Boxes without an -\family sans -Inner -\begin_inset space ~ -\end_inset +\color none + +\color yellow +box with dark green background. +\end_layout -Box -\family default - type and without frames are explained in section -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Prevent-Hyphenation" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. + +\backslash +setlength{ +\backslash +fboxsep}{3pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +definecolor{shadecolor}{rgb}{1,0,0} \end_layout \end_inset @@ -27246,11 +29598,19 @@ reference "sec:Prevent-Hyphenation" \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Changed lengths and widths are valid for all boxes following the commands + that change them. +\end_layout + \begin_layout Section -Box Dialog +Minipages \begin_inset CommandInset label LatexCommand label -name "sec:Box-Dialog" +name "sec:Minipages" \end_inset @@ -27259,7 +29619,7 @@ name "sec:Box-Dialog" status collapsed \begin_layout Plain Layout -Boxes ! Box Dialog +Boxes ! Minipages \end_layout \end_inset @@ -27267,142 +29627,137 @@ Boxes ! Box Dialog \end_layout -\begin_layout Subsection -Size -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Boxes ! Size +\begin_layout Standard +Minipages are treated by LaTeX as pages within pages and can therefore for + example have their own footnotes. \end_layout -\end_inset - - +\begin_layout Standard +Minipages are useful when you write documents with different languages. \end_layout \begin_layout Standard -In the box dialog you can adjust the box geometry in the fields -\family sans -Width -\family default - and -\family sans -Height -\family default -. - The available units for the geometry are explained in Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Units" - +Below are two example minipages side by side. + Their width is set to 45 +\begin_inset space \thinspace{} \end_inset -. - The field +col% and they are separated by a horizontal fill, that was inserted via + the menu \family sans -Height -\family default - offers the following additional sizes: -\end_layout - -\begin_layout Description -Depth This is the plain text -\begin_inset Quotes eld +Insert\SpecialChar \menuseparator +Special +\begin_inset space ~ \end_inset -height -\begin_inset Quotes erd +Formatting\SpecialChar \menuseparator +Horizontal +\begin_inset space ~ \end_inset +Fill +\family default . - It ignores the total depth when there are multiple text lines in the box: -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline +\begin_inset Newpage newpage \end_inset -\begin_inset Newline newline -\end_inset - +\end_layout -\begin_inset Box Boxed -position "c" +\begin_layout Standard +\begin_inset Box Frameless +position "t" hor_pos "c" has_inner_box 1 inner_pos "c" use_parbox 0 use_makebox 0 -width "12col%" +width "45col%" special "none" height "1in" -height_special "depth" -status collapsed +height_special "totalheight" +status open \begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset - -Depth -\end_layout - -\end_inset +\lang german +Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text +\begin_inset Foot +status collapsed -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout +\lang german +Dies ist eine deutsche Fußnote. +\end_layout -\begin_inset Newline newline \end_inset - +. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. \end_layout -\begin_layout Description -Height This is the height of the text that is inside the box. - A value of e. -\begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} -\end_inset -2 for this size will set the box height to 2 -\begin_inset space ~ +\begin_inset space \hfill{} \end_inset -times the text height: -\begin_inset Box Boxed -position "c" + +\begin_inset Box Frameless +position "t" hor_pos "c" has_inner_box 1 inner_pos "c" use_parbox 0 use_makebox 0 -width "20col%" +width "45col%" special "none" -height "2in" -height_special "height" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. +\begin_inset Foot status collapsed \begin_layout Plain Layout -\align center -Box height set to 2 -\begin_inset space \thinspace{} +This is an English footnote. +\end_layout + \end_inset -Height + This is an English Text. + \end_layout \end_inset @@ -27410,73 +29765,54 @@ Height \end_layout -\begin_layout Description -Total -\begin_inset space ~ +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -Height This is the Height +The document-wide paragraph settings are ignored within minipages. + That means that there will be no space between paragraphs in minipages + although you set it to e. \begin_inset space \thinspace{} \end_inset -+ -\begin_inset space \thinspace{} +g. +\begin_inset space \space{} \end_inset -Depth: -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed -\begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset +\family sans +MedSkip +\family default + in the document settings. +\end_layout -Total +\begin_layout Standard +Minipages can also be used to set a background color for text parts, see + section \begin_inset space ~ \end_inset -Height -\end_layout -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Color-for-Paragraphs" +\end_inset +. \end_layout -\begin_layout Description -Width This sets the width of the box as height: -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "width" -status collapsed +\begin_layout Standard +\begin_inset Note Greyedout +status open \begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset -Width +\series bold +Note: +\series default + You cannot have floats or margin notes inside minipages but minipages can + be used inside tables, floats, and other boxes. \end_layout \end_inset @@ -27484,13 +29820,20 @@ Width \end_layout -\begin_layout Subsection -Alignment +\begin_layout Section +Parboxes +\begin_inset CommandInset label +LatexCommand label +name "sec:Parboxes" + +\end_inset + + \begin_inset Index idx status collapsed \begin_layout Plain Layout -Boxes ! Alignment +Boxes ! Parboxes \end_layout \end_inset @@ -27499,114 +29842,77 @@ Boxes ! Alignment \end_layout \begin_layout Standard -When you have chosen an -\family sans -Inner -\begin_inset space ~ -\end_inset - -Box -\family default -, the vertical box alignment can be: +Parboxes are very similar to minipages with the difference that they cannot + have footnotes. \end_layout -\begin_layout Description -Top This is an example text line. - -\begin_inset Box Boxed +\begin_layout Standard +\align center +\begin_inset Box Frameless position "t" hor_pos "c" has_inner_box 1 -inner_pos "c" -use_parbox 0 +inner_pos "t" +use_parbox 1 use_makebox 0 -width "12col%" +width "33col%" special "none" height "1in" height_special "totalheight" status collapsed \begin_layout Plain Layout -\align center -This box is top-aligned. +This a text within a parbox. + This a text within a parbox. \end_layout -\end_inset +\begin_layout Plain Layout +This footnote won't appear: +\begin_inset Foot +status collapsed - This is an example text line. +\begin_layout Plain Layout +This footnote is inside a parbox and will therefore not appear. \end_layout -\begin_layout Description -Middle This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\end_inset + -\begin_layout Plain Layout -\align center -This box is middle-aligned. \end_layout \end_inset - This is an example text line. + \end_layout -\begin_layout Description -Bottom This is an example text line. - -\begin_inset Box Boxed -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "totalheight" +\begin_layout Section +Boxes for Words and Characters +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align center -This box is bottom-aligned. +Boxes ! for Characters \end_layout \end_inset - This is an example text line. -\end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_layout -\begin_layout Plain Layout +\begin_layout Subsection +Prevent Hyphenation +\begin_inset CommandInset label +LatexCommand label +name "sec:Prevent-Hyphenation" -\series bold -Note: -\series default - The vertical box alignment can be lost in the output when you have two - boxes in a line and one has e. -\begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} -\end_inset -a shadow and the other one not. +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! to Prevent Hyphenation \end_layout \end_inset @@ -27615,237 +29921,200 @@ a shadow and the other one not. \end_layout \begin_layout Standard -The horizontal box alignment can be set via LyX's paragraph dialog when - you set the box into its own paragraph. +You can use the box type +\family sans +Makebox +\family default + to prevent words or text from being hyphenated. +\begin_inset Newline newline +\end_inset + +Here is an example text: \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +This line is an example to show how you can prevent the hyphenation of +\begin_inset Quotes eld \end_inset -When you have chosen an -\family sans -Inner -\begin_inset space ~ +veryverylongword +\begin_inset Quotes erd \end_inset -Box -\family default -, the box content can be aligned vertically to: +. \end_layout -\begin_layout Description -top This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" -status collapsed - -\begin_layout Plain Layout -\align center -This box text is top-aligned. -\end_layout +\begin_layout Standard +To prevent the hyphenation of the word +\begin_inset Quotes eld +\end_inset +veryverylongword +\begin_inset Quotes erd \end_inset - This is an example text line. -\end_layout +, put the word into a box, set the +\family sans +Inner +\begin_inset space ~ +\end_inset -\begin_layout Description -middle This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" -status collapsed +box +\family default + to +\family sans +Makebox +\family default + and its width to 1 +\begin_inset space \thinspace{} +\end_inset -\begin_layout Plain Layout -\align center -This box text is middle-aligned. +Width. \end_layout -\end_inset - - This is an example text line. +\begin_layout Standard +This is the result: \end_layout -\begin_layout Description -bottom This is an example text line. - -\begin_inset Box Boxed -position "c" +\begin_layout Standard +This line is an example to show how you can prevent the hyphenation of +\begin_inset Box Frameless +position "t" hor_pos "c" has_inner_box 1 -inner_pos "b" +inner_pos "t" use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" +use_makebox 1 +width "1in" +special "width" +height "1in" height_special "totalheight" -status collapsed +status open \begin_layout Plain Layout -\align center -This box text is bottom-aligned. -\end_layout - +\begin_inset Quotes eld \end_inset - This is an example text line. -\end_layout +veryverylongword +\begin_inset Quotes erd +\end_inset -\begin_layout Description -stretch This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "s" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" -status collapsed -\begin_layout Plain Layout -\align center -This box \end_layout -\begin_layout Plain Layout -\align center -text is -\end_layout +\end_inset -\begin_layout Plain Layout -\align center -stretched. +. \end_layout +\begin_layout Standard +You can alternatively set the command +\begin_inset Quotes eld \end_inset - This is an example text line. -\end_layout -\begin_layout Standard -To stretch the box content, it must consist of more than one paragraph. - In the example above every text line is in an own paragraph. -\end_layout +\series bold -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\backslash +- +\series default -To align the box content horizontally you can use LyX's paragraph dialog - when you have chosen an -\family sans -Inner -\begin_inset space ~ +\begin_inset Quotes grd \end_inset -Box -\family default -. + as TeX-Code directly before the word: \end_layout \begin_layout Standard -\align center -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "s" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1.25in" -height_special "totalheight" +This line is an example to show how you can prevent the hyphenation of +\begin_inset Quotes eld +\end_inset + + +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align left -This box -\end_layout -\begin_layout Plain Layout -\align center -text is -\end_layout -\begin_layout Plain Layout -\align right -stretched. +\backslash +- \end_layout \end_inset +veryverylongword +\begin_inset Quotes erd +\end_inset +. \end_layout \begin_layout Standard -If you have not set an +Of course the word now protrudes over the side margin. + To avoid this, add via the menu \family sans -Inner +Insert\SpecialChar \menuseparator +Formatting\SpecialChar \menuseparator +Ragged \begin_inset space ~ \end_inset -Box +Line +\begin_inset space ~ +\end_inset + +Break \family default -, you can align the box content horizontally in the box dialog. + (shortcut +\begin_inset Info +type "shortcut" +arg "newline-insert newline" +\end_inset + +) a line break before the word: \end_layout \begin_layout Standard -\align center -\begin_inset Box Boxed -position "c" -hor_pos "s" -has_inner_box 0 -inner_pos "s" +This line is an example to show how you can prevent the hyphenation of +\begin_inset Newline newline +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" use_parbox 0 -use_makebox 0 -width "90col%" -special "none" -height "1.25in" +use_makebox 1 +width "1in" +special "width" +height "1in" height_special "totalheight" -status collapsed +status open \begin_layout Plain Layout -\align left -This box text is horizontally stretched. -\end_layout +\begin_inset Quotes eld +\end_inset +veryverylongword +\begin_inset Quotes erd \end_inset \end_layout +\end_inset + +. +\end_layout + \begin_layout Subsection -Decoration +Vertical Alignment \begin_inset CommandInset label LatexCommand label -name "sec:Decoration" +name "sub:Vertical-Alignment" \end_inset @@ -27854,400 +30123,352 @@ name "sec:Decoration" status collapsed \begin_layout Plain Layout -Boxes ! Decoration +Boxes ! for Vertical Alignment \end_layout \end_inset -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Standard -The type of the box can be specified in the box dialog in the drop-down - list -\family sans -Decoration -\family default -. - The following types are possible: +\begin_layout Plain Layout +Boxes ! Raiseboxes \end_layout -\begin_layout Description -Simple -\begin_inset space ~ \end_inset -rectangular -\begin_inset space ~ -\end_inset -frame This draws a rectangular frame around the box. - The frame line thickness has the size of +\end_layout + +\begin_layout Standard +With the help of the command \series bold \backslash -fboxrule +raisebox \series default -. + you can align words, characters or other boxes vertically relative to the + surrounding text. -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\series bold -\begin_layout Plain Layout -\align center -Rectangular box +\backslash +raisebox +\series default + is used with the following scheme: \end_layout -\end_inset +\begin_layout Standard + +\series bold +\backslash +raisebox{lift}[height][depth]{box content} +\end_layout +\begin_layout Standard +The lift can be a positive value to raise the box or a negative value to + lower the box. \end_layout -\begin_layout Description -Allow -\begin_inset space ~ +\begin_layout Standard +To align for example the word +\begin_inset Quotes eld \end_inset -page -\begin_inset space ~ +preventing +\begin_inset Quotes erd \end_inset -break When you use the decoration -\family sans -simple rectangular frame -\family default - and no inner box, you can allow page breaks within a box. - Note that then, unlike other framed boxes, the frame always uses the whole - column width, the box is set as its own paragraph, and -\series bold + so that the bottom of the +\begin_inset Quotes eld +\end_inset -\backslash -fboxrule -\series default - and -\series bold +deepest +\begin_inset Quotes erd +\end_inset -\backslash -fboxsep -\series default - have no effect on this box type. - The frame line thickness has the size of -\series bold + character +\begin_inset Quotes eld +\end_inset -\backslash -FrameRule -\series default -. - -\begin_inset Box Framed -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +p +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout -Allow page break box + is at the baseline, insert the command \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +raisebox{ +\backslash +depth}{ \end_layout -\begin_layout Description -Oval -\begin_inset space ~ +\begin_layout Standard +in TeX-Code before the word. + After the word insert a closing brace +\begin_inset Quotes eld \end_inset -box, -\begin_inset space ~ + +\series bold +} +\series default + +\begin_inset Quotes erd \end_inset -thin This draws an oval frame around the box. - The frame line thickness has the size 0.4 -\begin_inset space \thinspace{} + in TeX-Code. +\begin_inset Newline newline \end_inset -pt. - -\begin_inset Box ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" +This is the result: +\end_layout + +\begin_layout Standard +This is a text line with the word +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Oval box, thin -\end_layout - -\end_inset +\backslash +raisebox{ +\backslash +depth}{ \end_layout -\begin_layout Description -Oval -\begin_inset space ~ \end_inset -box, -\begin_inset space ~ + +\begin_inset Quotes eld \end_inset -thick This draws an oval frame around the box. - The frame line thickness has the size 0.8 -\begin_inset space \thinspace{} +preventing +\begin_inset Quotes erd \end_inset -pt. - -\begin_inset Box Ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" + +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Oval box, thick + +} \end_layout \end_inset - + as a raised word. \end_layout -\begin_layout Description -Drop -\begin_inset space ~ +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -shadow This draws a rectangular frame with a shadow around the box. - The frame line thickness has the size of -\series bold - -\backslash -fboxrule -\series default -, the shadow has a width of 4 -\begin_inset space \thinspace{} -\end_inset +When you raise or lower characters in a line, the line distance will be + spread: +\end_layout -pt. - -\begin_inset Box Shadowbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" +\begin_layout Standard +This is a text line with the word +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Shadow box + + +\backslash +raisebox{- +\backslash +depth}{ \end_layout \end_inset -\end_layout +\begin_inset Quotes eld +\end_inset -\begin_layout Description -Shaded -\begin_inset space ~ +preventing +\begin_inset Quotes erd \end_inset -background This draws a box with a red background. - Unlike colored boxes -\begin_inset Foot + +\begin_inset ERT status collapsed \begin_layout Plain Layout -see sec. -\begin_inset space \thinspace{} -\end_inset +} +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Boxes" +\end_inset + as a lowered word. +\begin_inset Newline newline \end_inset +This is a text line with the word +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +raisebox{0.5cm}{ \end_layout \end_inset -, it always uses the whole column width and the box is set as its own paragraph. - -\begin_inset Box Shaded -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "50col%" -special "none" -height "1in" -height_special "totalheight" + +\begin_inset Quotes eld +\end_inset + +testing +\begin_inset Quotes erd +\end_inset + + +\begin_inset ERT status collapsed \begin_layout Plain Layout -Shaded background box + +} \end_layout \end_inset + as a raised word. +\end_layout +\begin_layout Standard +If you want to prevent this for a certain reason, set the box height to + a zero value. + For example use \end_layout -\begin_layout Description -Double -\begin_inset space ~ -\end_inset +\begin_layout Standard -rectangular -\begin_inset space ~ -\end_inset +\series bold -frame This draws a double-line rectangular frame around the box. - The line thickness of the inner frame is 0.75 -\begin_inset space \thinspace{} -\end_inset +\backslash +raisebox{- +\backslash +depth}[0pt]{ +\end_layout + +\begin_layout Standard +This is a text line with the word +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\series bold \backslash -fboxrule -\series default -, the thickness of the outer frame is 1.5 -\begin_inset space \thinspace{} +raisebox{- +\backslash +depth}[0pt]{ +\end_layout + \end_inset -\series bold +\begin_inset Quotes eld +\end_inset -\backslash -fboxrule -\series default -. - The distance between the lines is 1.5 -\begin_inset space \thinspace{} +preventing +\begin_inset Quotes erd \end_inset -\series bold +\begin_inset ERT +status collapsed -\backslash -fboxrule -\series default +\begin_layout Plain Layout -\begin_inset space \thinspace{} -\end_inset +} +\end_layout -+ -\begin_inset space \thinspace{} \end_inset -0.5 -\begin_inset space \thinspace{} + as a lowered word. +\begin_inset Newline newline \end_inset -pt. - -\begin_inset Box Doublebox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" +This is a text line with the word +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +raisebox{0.5cm}[0pt]{ +\end_layout + +\end_inset + + +\begin_inset Quotes eld +\end_inset + +testing +\begin_inset Quotes erd +\end_inset + + +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Double rectangular box + +} \end_layout \end_inset - + as a raised word. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Section +Colored Boxes +\begin_inset CommandInset label +LatexCommand label +name "sec:Colored-Boxes" + \end_inset -LyX's box label will reflect the different frame types. - To be able to use all types, the LaTeX-package -\series bold -fancybox -\series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! fancybox +Boxes ! Color \end_layout \end_inset - must be installed. + \end_layout -\begin_layout Section -Box Customization +\begin_layout Subsection +Color for Text \begin_inset Index idx status collapsed \begin_layout Plain Layout -Boxes ! Customization +Color ! for Text \end_layout \end_inset @@ -28256,30 +30477,30 @@ Boxes ! Customization \end_layout \begin_layout Standard -The default value for the size -\series bold - -\backslash -fboxrule -\series default - is 0.4 -\begin_inset space \thinspace{} +To color the background of text the text must be put into a so called +\begin_inset Quotes eld \end_inset -pt. - It can be changed with the following command in TeX-Code to e. -\begin_inset space \thinspace{} +colorbox +\begin_inset Quotes erd \end_inset -g. -\begin_inset space \space{} -\end_inset +. + This requires that the LaTeX-package +\series bold +color +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! color +\end_layout -2 -\begin_inset space \thinspace{} \end_inset -pt: + is loaded in the document preamble with the command \end_layout \begin_layout Standard @@ -28287,101 +30508,149 @@ pt: \series bold \backslash -setlength{ -\backslash -fboxrule}{2pt} -\end_layout +@ifundefined{textcolor} +\begin_inset Newline newline +\end_inset -\begin_layout Standard -\begin_inset ERT -status collapsed + +\begin_inset Phantom HPhantom +status open \begin_layout Plain Layout +\series bold +\begin_inset space ~ +\end_inset + -\backslash -setlength{ -\backslash -fboxrule}{2pt} \end_layout \end_inset +{ +\backslash +usepackage{color}}{} +\end_layout -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open +\begin_layout Standard +The package +\series bold +color +\series default + will be loaded automatically by LyX when you color text. +\begin_inset Foot +status collapsed \begin_layout Plain Layout -\align center -Rectangular box with +To avoid it being loaded twice the command \series bold \backslash -fboxrule +@ifundefined \series default + is used. +\end_layout -\begin_inset space \thinspace{} -\end_inset - -= -\begin_inset space \thinspace{} \end_inset -2 -\begin_inset space \thinspace{} -\end_inset -pt \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset +Colorboxes are created with the command +\series bold -\begin_inset ERT -status collapsed +\backslash +colorbox +\series default +. + This will be used with the following scheme: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -setlength{ -\backslash -fboxrule}{0.4pt} +colorbox{color}{box content} +\end_layout + +\begin_layout Standard +The box content can also be a box and colorboxes can also be within other + boxes. \end_layout +\begin_layout Standard +The following colors are predefined: +\begin_inset Newline newline \end_inset -\end_layout +\family sans +black +\family default +, +\family sans +blue +\family default +, +\family sans +cyan +\family default +\series bold +, +\series default + +\family sans +green +\family default +, +\family sans +magenta +\family default +, +\family sans +red +\family default +, +\family sans +white +\family default +, and +\family sans +yellow +\family default +. +\begin_inset Newline newline +\end_inset -\begin_layout Standard -\begin_inset VSpace bigskip +You can also define your own color as described in section +\begin_inset space ~ \end_inset -The space between the frame and the box content is for all frame styles - by default 3 + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Tables" + +\end_inset + +. +\end_layout + +\begin_layout Standard +To have e. \begin_inset space \thinspace{} \end_inset -pt. - You can change it by setting the length -\series bold +g. +\begin_inset space \space{} +\end_inset -\backslash -fboxsep -\series default - to another value. - For example the command +a red background for a word, insert the command \end_layout \begin_layout Standard @@ -28389,20 +30658,32 @@ fboxsep \series bold \backslash -setlength{ -\backslash -fboxsep}{10pt} +colorbox{red}{ \end_layout \begin_layout Standard -sets the value to 10 -\begin_inset space \thinspace{} +before the word in TeX-Code. + After the word insert a closing brace +\begin_inset Quotes eld \end_inset -pt, as with the following box: + +\series bold +} +\series default + +\begin_inset Quotes erd +\end_inset + + in TeX-Code. +\begin_inset Newline newline +\end_inset + +This is the result: \end_layout \begin_layout Standard +This is a line where the word \begin_inset ERT status collapsed @@ -28410,50 +30691,17 @@ status collapsed \backslash -setlength{ -\backslash -fboxsep}{10pt} +colorbox{red}{ \end_layout \end_inset -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open - -\begin_layout Plain Layout -\align center -Rectangular box with -\series bold - -\backslash -fboxsep -\series default - -\begin_inset space \thinspace{} -\end_inset - -= -\begin_inset space \thinspace{} -\end_inset - -10 -\begin_inset space \thinspace{} +\begin_inset Quotes eld \end_inset -pt -\end_layout - +Attention! +\begin_inset Quotes erd \end_inset @@ -28462,31 +30710,26 @@ status collapsed \begin_layout Plain Layout - -\backslash -setlength{ -\backslash -fboxsep}{3pt} +} \end_layout \end_inset - + has a red background. \end_layout \begin_layout Standard \begin_inset VSpace bigskip \end_inset -The diameter of the round corners of the oval boxes can be set with the - command +If you would like the box frame in a different color, you can use the command + \series bold \backslash -cornersize +fcolorbox \series default -. - The command + with the following scheme: \end_layout \begin_layout Standard @@ -28494,50 +30737,76 @@ cornersize \series bold \backslash -cornersize*{1cm} +fcolorbox{frame color}{box color}{box content} \end_layout \begin_layout Standard -sets the diameter to 1 -\begin_inset space \thinspace{} -\end_inset -cm. - The command -\end_layout +\series bold -\begin_layout Standard +\backslash +fcolorbox +\series default + is an extension to +\series bold +\backslash +colorbox +\series default +. + The frame thickness and the space between the frame and the box content + can be adjusted with the lengths \series bold \backslash -cornersize{num} -\end_layout +fboxrule +\series default + and +\series bold -\begin_layout Standard -sets the diameter to -\family sans -num -\begin_inset space \thinspace{} +\backslash +fboxsep +\series default +, respectively, as described in section +\begin_inset space ~ \end_inset -× -\begin_inset space \thinspace{} + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Decoration" + \end_inset -minimum(width and heigth of box) -\family default . - The default is +\end_layout + +\begin_layout Standard +For the following example the command +\end_layout + +\begin_layout Standard + \series bold \backslash -cornersize{0.5} -\series default -. +fcolorbox{cyan}{magenta}{ +\end_layout + +\begin_layout Standard +was used. \end_layout \begin_layout Standard +Here is an example where the frame line thickness was set to 1 +\begin_inset space \thinspace{} +\end_inset + +mm: +\begin_inset Newline newline +\end_inset + + \begin_inset ERT status collapsed @@ -28545,48 +30814,46 @@ status collapsed \backslash -cornersize*{1.5cm} +fboxrule 1mm +\backslash +fboxsep 1mm \end_layout \end_inset -\begin_inset Box Ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\align center -Oval box with -\series bold + \backslash -cornersize -\series default +fcolorbox{cyan}{magenta}{ +\end_layout -\begin_inset space \thinspace{} \end_inset -= -\begin_inset space \thinspace{} -\end_inset +This is text within a colored, framed box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout -1.5 -\begin_inset space \thinspace{} \end_inset -cm + \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Of course you can also have colored text inside a colorbox: +\begin_inset Newline newline \end_inset @@ -28597,43 +30864,27 @@ status collapsed \backslash -cornersize{0.5} +fcolorbox{cyan}{magenta}{ \end_layout \end_inset -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\color yellow +This is colored text within a colored, framed box. +\color none -The size of the shadow can be adjusted by changing the length -\series bold +\begin_inset ERT +status collapsed -\backslash -shadowsize -\series default -. - It it set to 2 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -pt for the following box by this command: +} \end_layout -\begin_layout Standard - -\series bold +\end_inset -\backslash -setlength{ -\backslash -shadowsize}{2pt} -\end_layout -\begin_layout Standard \begin_inset ERT status collapsed @@ -28641,123 +30892,98 @@ status collapsed \backslash -setlength{ +fboxrule 0.4pt \backslash -shadowsize}{2pt} +fboxsep 3pt \end_layout \end_inset -\begin_inset Box Shadowbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open +\end_layout -\begin_layout Plain Layout -\align center -Shadow box with -\series bold +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset -\backslash -shadowsize -\series default -\begin_inset space \thinspace{} -\end_inset +\end_layout -= -\begin_inset space \thinspace{} -\end_inset +\begin_layout Standard +\begin_inset Note Greyedout +status open -2 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -pt +\series bold +Note: +\series default + Text in colorboxes cannot have line breaks. + To color multiple text lines or paragraphs, use a box inside a colorbox + as described in the following. \end_layout \end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -setlength{ -\backslash -shadowsize}{4pt} \end_layout +\begin_layout Subsection +Color for Paragraphs +\begin_inset CommandInset label +LatexCommand label +name "sub:Color-for-Paragraphs" + \end_inset +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Color ! for Paragraphs \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard -The default value for the size +To set the background color for more than one text line, put the text into + a minipage. + Before the minipage insert the \series bold \backslash -FrameRule +colorbox \series default - is 0.4 -\begin_inset space \thinspace{} -\end_inset + command +\end_layout -pt. - The default space between the note content and the frame is 9 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Standard -pt and can be changed with the value of \series bold \backslash -FrameSep -\series default -. - For example the frame appearance of the following -\family sans -box -\family default - is set with the TeX-Code commands +colorbox{color}{ \end_layout \begin_layout Standard +in TeX-Code. + After the minipage insert a closing brace +\begin_inset Quotes eld +\end_inset + \series bold +} +\series default -\backslash -setlength{ -\backslash -FrameRule}{5pt} -\begin_inset Newline newline +\begin_inset Quotes erd \end_inset - -\backslash -setlength{ -\backslash -FrameSep}{0.5cm} + in TeX-Code. \end_layout \begin_layout Standard @@ -28768,27 +30994,16 @@ status collapsed \backslash -setlength{ -\backslash -FrameRule}{5pt} -\end_layout - -\begin_layout Plain Layout - - -\backslash -setlength{ -\backslash -FrameSep}{0.5cm} +colorbox{lightgrey}{ \end_layout \end_inset -\begin_inset Box Framed +\begin_inset Box Frameless position "t" hor_pos "c" -has_inner_box 0 +has_inner_box 1 inner_pos "t" use_parbox 0 use_makebox 0 @@ -28796,137 +31011,172 @@ width "100col%" special "none" height "1in" height_special "totalheight" -status open +status collapsed \begin_layout Plain Layout -This is text in an -\family sans -allow page break -\family default - box. +This is text with background color. + This is text with background color. \end_layout +\begin_layout Plain Layout +\begin_inset VSpace defskip \end_inset - -\begin_inset ERT +The text can have footnotes +\begin_inset Foot status collapsed \begin_layout Plain Layout +Another example footnote +\end_layout +\end_inset -\backslash -setlength{ -\backslash -FrameRule}{0.4pt} + and can include tables and figures. \end_layout \begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text +\begin_layout Plain Layout +a +\end_layout -\backslash -setlength{ -\backslash -FrameSep}{9pt} +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +! \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout +\end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +< \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +b2 +\begin_inset Quotes erd +\end_inset +| \end_layout -\begin_layout Standard -For -\family sans -shaded background -\family default - boxes the default space between the box content and the box border is 3 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -pt and can be changed with the value of -\series bold +\begin_layout Plain Layout +> +\end_layout -\backslash -fboxsep -\series default -. - The default background color red can either be changed locally with the - command -\series bold +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout -\backslash -definecolor{shadecolor} -\series default - or globally with the menu -\family sans -Tools\SpecialChar \menuseparator -Preferences\SpecialChar \menuseparator -Colors\SpecialChar \menuseparator -shaded -\begin_inset space ~ \end_inset + + +\begin_inset Text -box -\family default -. - The scheme of the -\series bold +\begin_layout Plain Layout +§ +\end_layout -\backslash -definecolor -\series default - command is explained in section -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +c +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" +\end_inset + + + \end_inset -. -\begin_inset Foot + +\end_layout + +\end_inset + + +\begin_inset ERT status collapsed \begin_layout Plain Layout -Note that -\series bold -\backslash -definecolor -\series default - requires the LaTeX-package -\series bold -color -\series default - in the preamble, see section -\begin_inset space ~ +} +\end_layout + \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Boxes" +\end_layout -\end_inset +\begin_layout Section +Rotated and Scaled Boxes +\end_layout -. +\begin_layout Standard +To use the commands described in this section, the LaTeX-package +\series bold +graphicx +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! graphicx \end_layout \end_inset - For example the appearance of the following shaded background box is set - with the TeX-Code commands + needs to be loaded in the document preamble with the command \end_layout \begin_layout Standard @@ -28934,114 +31184,93 @@ reference "sec:Colored-Boxes" \series bold \backslash -setlength{ -\backslash -fboxsep}{0.5cm} -\series default - +@ifundefined{rotatebox} \begin_inset Newline newline \end_inset -\series bold +\begin_inset Phantom HPhantom +status open -\backslash -definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\series bold +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout +\end_layout +\end_inset + +{ \backslash -setlength{ -\backslash -fboxsep}{0.5cm} +usepackage{graphicx}}{} \end_layout -\begin_layout Plain Layout +\begin_layout Standard +\begin_inset Note Greyedout +status open +\begin_layout Plain Layout -\backslash -definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} +\series bold +Note: +\series default + Some DVI-viewers can't display rotated or scaled material. \end_layout \end_inset -\begin_inset Box Shaded -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout status open \begin_layout Plain Layout -\color yellow -This is yellow text in a -\color none - -\family sans -\color yellow -shaded background -\family default -\color none - -\color yellow -box with dark green background. +\series bold +Note: +\series default + Floats mustn't be inside a rotated or scaled box. \end_layout \end_inset -\begin_inset ERT +\end_layout + +\begin_layout Subsection +Rotated Boxes +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -setlength{ -\backslash -fboxsep}{3pt} +Boxes ! rotated \end_layout -\begin_layout Plain Layout +\end_inset -\backslash -definecolor{shadecolor}{rgb}{1,0,0} +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Rotated material \end_layout \end_inset -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_inset Index idx +status collapsed -Changed lengths and widths are valid for all boxes following the commands - that change them. +\begin_layout Plain Layout +Figures ! rotated \end_layout -\begin_layout Section -Minipages -\begin_inset CommandInset label -LatexCommand label -name "sec:Minipages" - \end_inset @@ -29049,7 +31278,7 @@ name "sec:Minipages" status collapsed \begin_layout Plain Layout -Boxes ! Minipages +Table Customization ! Rotating \end_layout \end_inset @@ -29058,283 +31287,328 @@ Boxes ! Minipages \end_layout \begin_layout Standard -Minipages are treated by LaTeX as pages within pages and can therefore for - example have their own footnotes. +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 TeX-Code with the following scheme: \end_layout \begin_layout Standard -Minipages are useful when you write documents with different languages. + +\series bold + +\backslash +rotatebox[rotation origin]{rotation angle}{box content} \end_layout \begin_layout Standard -Below are two example minipages side by side. - Their width is set to 45 -\begin_inset space \thinspace{} -\end_inset +The rotation origin is specified in the form +\series bold +origin=position +\series default +. + The following positions are possible: +\emph on +c +\emph default + (center), +\emph on +l +\emph default + (left), +\emph on +r +\emph default + (right), +\emph on +b +\emph default + (bottom), +\emph on +t +\emph default + (top), along with meaningful combinations of the four base positions. + For example +\emph on +lt +\emph default + means that the rotation origin is at the top left corner of the box. + When no rotation origin is specified, the position +\emph on +l +\emph default + will be used. + The rotation angle is a number that can be negative that specifies the + angle in degrees. + The rotation direction is counterclockwise. +\end_layout -col% and they are separated by a horizontal fill, that was inserted via - the menu -\family sans -Insert\SpecialChar \menuseparator -Special -\begin_inset space ~ -\end_inset +\begin_layout Standard +In the following example the command +\series bold -Formatting\SpecialChar \menuseparator -Horizontal -\begin_inset space ~ +\backslash +rotatebox[origin=c]{60}{ +\series default + was inserted as TeX-Code before the text +\begin_inset Quotes eld \end_inset -Fill -\family default -. -\begin_inset Newpage newpage +with rotated +\begin_inset Quotes erd \end_inset - +; after the text the box was closed by a closing brace +\series bold +} +\series default + in TeX-Code. \end_layout \begin_layout Standard -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "45col%" -special "none" -height "1in" -height_special "totalheight" -status open +This is a line +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\lang german -Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text -\begin_inset Foot + +\backslash +rotatebox[origin=c]{60}{ +\end_layout + +\end_inset + +with rotated +\begin_inset ERT status collapsed \begin_layout Plain Layout -\lang german -Dies ist eine deutsche Fußnote. +} \end_layout \end_inset -. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. + text. \end_layout -\end_inset +\begin_layout Standard +The box content can also be another box or an inline formula: +\end_layout + +\begin_layout Standard +This is a line +\begin_inset ERT +status collapsed +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=r]{-60}{ +\end_layout -\begin_inset space \hfill{} \end_inset -\begin_inset Box Frameless -position "t" +\begin_inset Box Doublebox +position "c" hor_pos "c" -has_inner_box 1 +has_inner_box 0 inner_pos "c" use_parbox 0 use_makebox 0 -width "45col%" -special "none" +width "1in" +special "width" height "1in" height_special "totalheight" -status open - -\begin_layout Plain Layout -This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. -\begin_inset Foot status collapsed \begin_layout Plain Layout -This is an English footnote. +with rotated \end_layout \end_inset - This is an English Text. - -\end_layout -\end_inset +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -The document-wide paragraph settings are ignored within minipages. - That means that there will be no space between paragraphs in minipages - although you set it to e. -\begin_inset space \thinspace{} -\end_inset + framed text +\begin_inset ERT +status collapsed -g. -\begin_inset space \space{} -\end_inset +\begin_layout Plain Layout -\family sans -MedSkip -\family default - in the document settings. +\backslash +rotatebox[origin=lb]{60}{ \end_layout -\begin_layout Standard -Minipages can also be used to set a background color for text parts, see - section -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Color-for-Paragraphs" +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout \end_inset -. + and a formula. \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open +or an image or table: +\end_layout + +\begin_layout Standard +This is a line +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - You cannot have floats or margin notes inside minipages but minipages can - be used inside tables, floats, and other boxes. + +\backslash +rotatebox[origin=lb]{90}{ \end_layout \end_inset -\end_layout - -\begin_layout Section -Parboxes -\begin_inset CommandInset label -LatexCommand label -name "sec:Parboxes" +\begin_inset Graphics + filename clipart/platypus.eps + lyxscale 50 + width 25col% \end_inset -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Parboxes + +} \end_layout \end_inset + with a rotated image +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +rotatebox[origin=l]{-90}{ \end_layout -\begin_layout Standard -Parboxes are very similar to minipages with the difference that they cannot - have footnotes, because minipages, unlike parboxes, are not real boxes - but LaTeX-environments. +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +q \end_layout -\begin_layout Standard -\align center -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 1 -use_makebox 0 -width "33col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -This a text within a parbox. - This a text within a parbox. +w \end_layout +\end_inset + + + + +\begin_inset Text + \begin_layout Plain Layout -This footnote won't appear: -\begin_inset Foot -status collapsed +e +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -This footnote is inside a parbox and will therefore not appear. +r \end_layout \end_inset + + + + +\end_inset + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout \end_inset - + and table. \end_layout -\begin_layout Section -Boxes for Words and Characters +\begin_layout Subsection +Scaled Boxes \begin_inset Index idx status collapsed \begin_layout Plain Layout -Boxes ! for Characters +Boxes ! scaled \end_layout \end_inset -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Subsection -Prevent Hyphenation -\begin_inset CommandInset label -LatexCommand label -name "sec:Prevent-Hyphenation" +\begin_layout Plain Layout +Scaled material +\end_layout \end_inset @@ -29343,44 +31617,48 @@ name "sec:Prevent-Hyphenation" status collapsed \begin_layout Plain Layout -Boxes ! to Prevent Hyphenation +Figures ! scaled \end_layout \end_inset +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table Customization ! Scaling \end_layout -\begin_layout Standard -You can use a special kind of box to prevent words or text from being hyphenated. -\begin_inset Newline newline \end_inset -Here is an example text: + \end_layout \begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Quotes eld -\end_inset +To scale material the commands +\series bold -veryverylongword -\begin_inset Quotes erd -\end_inset +\backslash +scalebox +\series default + and +\series bold -. +\backslash +resizebox +\series default + can be used as TeX-Code. \end_layout \begin_layout Standard -To prevent the hyphenation of the word -\begin_inset Quotes eld -\end_inset -veryverylongword -\begin_inset Quotes erd -\end_inset +\series bold -, add the command +\backslash +scalebox +\series default + is used with the following scheme: \end_layout \begin_layout Standard @@ -29388,32 +31666,57 @@ veryverylongword \series bold \backslash -mbox{ +scalebox{horizontal}[vertical]{box content} \end_layout \begin_layout Standard -in TeX-Code before the word. - After the word insert a closing brace -\begin_inset Quotes eld -\end_inset - +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. +\end_layout +\begin_layout Standard +The command \series bold -} + +\backslash +scalebox{2}{Hello} \series default + creates for example a double size +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +scalebox{2}{ +\end_layout -\begin_inset Quotes erd \end_inset - in TeX-Code. +Hello +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -This is the result: +\end_inset + +, compared with the document text size. \end_layout \begin_layout Standard -This line is an example to show how you can prevent the hyphenation of + +\series bold + +\backslash +scalebox{2}[1]{Hello} +\series default + on the other hand distorts the \begin_inset ERT status collapsed @@ -29421,107 +31724,152 @@ status collapsed \backslash -mbox{ +scalebox{2}[1]{ \end_layout \end_inset +Hello +\begin_inset ERT +status collapsed -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout + +} +\end_layout -veryverylongword -\begin_inset Quotes erd \end_inset . +\end_layout + +\begin_layout Standard +If the scaling factor is negative, the box content will be mirrored. + Therefore the command +\series bold + +\backslash +scalebox{-1}[1]{Hello} +\series default + can be used to create mirror writing: \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +scalebox{-1}[1]{ \end_layout \end_inset +Hello +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout -\begin_layout Standard -You can alternatively set the command -\begin_inset Quotes eld \end_inset +\end_layout + +\begin_layout Standard + \series bold \backslash -- +scalebox{1}[-1]{Hello} \series default + reflects the +\begin_inset ERT +status collapsed -\begin_inset Quotes grd -\end_inset +\begin_layout Plain Layout - as TeX-Code directly before the word: + +\backslash +scalebox{1}[-1]{ \end_layout -\begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Quotes eld \end_inset - +Hello \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -- +} \end_layout \end_inset -veryverylongword -\begin_inset Quotes erd + at the base line. +\end_layout + +\begin_layout Standard +Equivalent to +\series bold + +\backslash +scalebox{-1}[1]{box content} +\series default + there exists the command +\begin_inset Newline newline \end_inset + +\series bold + +\backslash +reflectbox{box content} +\series default . \end_layout \begin_layout Standard -Of course the word now protrudes over the side margin. - To avoid this, add via the menu -\family sans -Insert\SpecialChar \menuseparator -Special -\begin_inset space ~ +\begin_inset VSpace bigskip \end_inset -Formatting\SpecialChar \menuseparator -Line -\begin_inset space ~ -\end_inset +The command +\series bold -Break -\family default - (shortcut -\begin_inset Info -type "shortcut" -arg "newline-insert newline" -\end_inset +\backslash +resizebox +\series default + is used to scale the box to a defined width and height. + The command scheme is: +\end_layout -) a line break before the word: +\begin_layout Standard + +\series bold + +\backslash +resizebox{width}{height}{box content} \end_layout \begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Newline newline -\end_inset +If one of the two command arguments given is an exclamation mark +\series bold +! +\series default +, the size is set so that the aspect ratio of the box content is kept. +\end_layout +\begin_layout Standard +The command +\series bold +\backslash +resizebox{2cm}{1cm}{Hello} +\series default + produces: \begin_inset ERT status collapsed @@ -29529,20 +31877,12 @@ status collapsed \backslash -mbox{ +resizebox{2cm}{1cm}{ \end_layout \end_inset - -\begin_inset Quotes eld -\end_inset - -veryverylongword -\begin_inset Quotes erd -\end_inset - -. +Hello \begin_inset ERT status collapsed @@ -29554,32 +31894,35 @@ status collapsed \end_inset -\end_layout - -\begin_layout Subsection -Vertical Alignment -\begin_inset CommandInset label -LatexCommand label -name "sub:Vertical-Alignment" - +\begin_inset Newline newline \end_inset +The command +\series bold -\begin_inset Index idx +\backslash +resizebox{2cm}{!}{Hello} +\series default + produces: +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! for Vertical Alignment + + +\backslash +resizebox{2cm}{!}{ \end_layout \end_inset - -\begin_inset Index idx +Hello +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Raiseboxes + +} \end_layout \end_inset @@ -29588,97 +31931,79 @@ Boxes ! Raiseboxes \end_layout \begin_layout Standard -With the help of the command +\begin_inset VSpace bigskip +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + When arguments of \series bold \backslash -raisebox -\series default - you can align words, characters or other boxes vertically relative to the - surrounding text. - +scalebox +\series default + or \series bold \backslash -raisebox +resizebox \series default - is used with the following scheme: + are set to zero, no LaTeX-errors occur when exporting the document but + the exported files can not or only partly be displayed. \end_layout -\begin_layout Standard - -\series bold +\end_inset -\backslash -raisebox{lift}[height][depth]{box content} -\end_layout -\begin_layout Standard -The lift can be a positive value to raise the box or a negative value to - lower the box. \end_layout \begin_layout Standard -To align for example the word -\begin_inset Quotes eld +\begin_inset VSpace bigskip \end_inset -preventing -\begin_inset Quotes erd -\end_inset - so that the bottom of the -\begin_inset Quotes eld -\end_inset +\end_layout -deepest -\begin_inset Quotes erd +\begin_layout Standard +The boxes can be combined in any order. + E. +\begin_inset space \thinspace{} \end_inset - character -\begin_inset Quotes eld +g. +\begin_inset space \space{} \end_inset -p -\begin_inset Quotes erd +the command +\begin_inset Newline newline \end_inset - is at the baseline, insert the command -\end_layout - -\begin_layout Standard \series bold \backslash -raisebox{ +rotatebox[origin=c]{-45}{ \backslash -depth}{ -\end_layout - -\begin_layout Standard -in TeX-Code before the word. - After the word insert a closing brace -\begin_inset Quotes eld +resizebox{2cm}{!}{ +\backslash +reflectbox{Hello}}} +\begin_inset Newline newline \end_inset -\series bold -} \series default - -\begin_inset Quotes erd -\end_inset - - in TeX-Code. -\begin_inset Newline newline -\end_inset - -This is the result: +produces: \end_layout \begin_layout Standard -This is a text line with the word +\align center \begin_inset ERT status collapsed @@ -29686,45 +32011,36 @@ status collapsed \backslash -raisebox{ +rotatebox[origin=c]{-45}{ \backslash -depth}{ +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset - -\begin_inset Quotes eld -\end_inset - -preventing -\begin_inset Quotes erd -\end_inset - - +Hello \begin_inset ERT status collapsed \begin_layout Plain Layout -} +}}} \end_layout \end_inset - as a raised word. + \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -When you raise or lower characters in a line, the line distance will be - spread: +\noindent +Images, tables, and inline formulas are allowed as box content: \end_layout \begin_layout Standard -This is a text line with the word +\align center \begin_inset ERT status collapsed @@ -29732,19 +32048,21 @@ status collapsed \backslash -raisebox{- +rotatebox[origin=c]{-30}{ \backslash -depth}{ +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset -\begin_inset Quotes eld -\end_inset +\begin_inset Graphics + filename clipart/platypus.eps + lyxscale 50 + width 25col% -preventing -\begin_inset Quotes erd \end_inset @@ -29753,16 +32071,12 @@ status collapsed \begin_layout Plain Layout -} +}}} \end_layout \end_inset - as a lowered word. -\begin_inset Newline newline -\end_inset -This is a text line with the word \begin_inset ERT status collapsed @@ -29770,128 +32084,156 @@ status collapsed \backslash -raisebox{0.5cm}{ +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset -\begin_inset Quotes eld -\end_inset - -testing -\begin_inset Quotes erd -\end_inset +\begin_inset Tabular + + + + + + +\begin_inset Text +\begin_layout Plain Layout +q +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - -} +w \end_layout \end_inset + + + + +\begin_inset Text - as a raised word. +\begin_layout Plain Layout +e \end_layout -\begin_layout Standard -If you want to prevent this for a certain reason, set the box height to - a zero value. - For example use +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +r \end_layout -\begin_layout Standard +\end_inset + + + -\series bold +\end_inset -\backslash -raisebox{- -\backslash -depth}[0pt]{ -\end_layout -\begin_layout Standard -This is a text line with the word \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -raisebox{- -\backslash -depth}[0pt]{ +}}} \end_layout \end_inset -\begin_inset Quotes eld -\end_inset - -preventing -\begin_inset Quotes erd -\end_inset - - \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset - as a lowered word. -\begin_inset Newline newline + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ \end_inset -This is a text line with the word + \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -raisebox{0.5cm}[0pt]{ +}}} \end_layout \end_inset +\end_layout + +\begin_layout Standard +When the global formula style +\series bold +fleqn +\series default + is used in the document +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +When \begin_inset Quotes eld \end_inset -testing +fleqn \begin_inset Quotes erd \end_inset + is added to the document class options. +\end_layout + +\end_inset -\begin_inset ERT +, display style formulas can also be scaled. +\end_layout + +\begin_layout Chapter +Objects Surrounded by Text +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -} +Surrounded by text \end_layout \end_inset - as a raised word. + \end_layout \begin_layout Section -Colored Boxes +Wrap Floats \begin_inset CommandInset label LatexCommand label -name "sec:Colored-Boxes" +name "sec:Wrap-Floats" \end_inset @@ -29900,21 +32242,17 @@ name "sec:Colored-Boxes" status collapsed \begin_layout Plain Layout -Boxes ! Color +Floats ! Wrap Floats \end_layout \end_inset -\end_layout - -\begin_layout Subsection -Color for Text \begin_inset Index idx status collapsed \begin_layout Plain Layout -Color ! for Text +Surrounded by text ! Wrap Floats \end_layout \end_inset @@ -29923,568 +32261,762 @@ Color ! for Text \end_layout \begin_layout Standard -To color the background of text the text must be put into a so called -\begin_inset Quotes eld -\end_inset +\begin_inset Wrap figure +lines 0 +placement l +overhang 1cm +width "40col%" +status open + +\begin_layout Plain Layout +\begin_inset Graphics + filename clipart/mobius.eps + width 40col% + scaleBeforeRotation + rotateOrigin center -colorbox -\begin_inset Quotes erd \end_inset -. - This requires that the LaTeX-package -\series bold -color -\series default -\begin_inset Index idx -status collapsed +\end_layout \begin_layout Plain Layout -LaTeX-packages ! color -\end_layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:This-is-a" \end_inset - is loaded in the document preamble with the command +This is a figure wrap float. \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -@ifundefined{textcolor} -\begin_inset Newline newline +\end_layout + \end_inset + This float type is used if you want to wrap text around a figure or table + so that it only occupies some fraction of the column width. + It can be inserted using the menu +\family sans +Insert\SpecialChar \menuseparator +Floats\SpecialChar \menuseparator +Figure +\begin_inset space ~ +\end_inset -\begin_inset Phantom HPhantom -status open +Wrap +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout +Float +\family default + or +\family sans +Table +\begin_inset space ~ +\end_inset -\series bold +Wrap \begin_inset space ~ \end_inset +Float +\family default + if the LaTeX-package +\series bold +wrapfig +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! wrapfig +\begin_inset ERT +status collapsed +\begin_layout Plain Layout + + +\backslash +vspace{4mm} \end_layout \end_inset -{ -\backslash -usepackage{color}}{} + \end_layout -\begin_layout Standard -The package -\series bold -color -\series default - will be loaded automatically by LyX when you color text. +\end_inset + + is installed. \begin_inset Foot status collapsed \begin_layout Plain Layout -To avoid it being loaded twice the command -\series bold +Installing a LaTeX-package is explained it in the +\emph on +LaTeX +\begin_inset space ~ +\end_inset -\backslash -@ifundefined -\series default - is used. +Configuration +\emph default + manual. \end_layout \end_inset + The settings of the float can be modified by right-clicking on the float + box. + The mandatory settings are the float +\family sans +Placement +\family default + and its +\family sans +Width +\family default +. + Optional are the +\family sans +Overhang +\family default + that specifies how much the float is set into the paragraph +\begin_inset space \thinspace{} +\end_inset + +/ +\begin_inset space \thinspace{} +\end_inset + +page margin, and the +\family sans +Line +\begin_inset space ~ +\end_inset + +span +\family default + that specifies how many text lines the float will approximately need. + The line span is often hard to approximate; so it is better only to use + it when you encounter float placement problems. + You can furthermore decide if LaTeX is allowed to let the float float within + the paragraph or to surrounding paragraphs. + Figure +\begin_inset space ~ +\end_inset -\end_layout -\begin_layout Standard -\begin_inset VSpace medskip +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:This-is-a" + \end_inset -Colorboxes are created with the command -\series bold + is an example text wrap float with a width of 40 +\begin_inset space \thinspace{} +\end_inset -\backslash -colorbox -\series default -. - This will be used with the following scheme: +col%, 1 +\begin_inset space \thinspace{} +\end_inset + +cm overhang, set to the left. \end_layout \begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout \series bold +Note: +\series default + Text +\begin_inset space ~ +\end_inset -\backslash -colorbox{color}{box content} +wrap float floats are fragile! E. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +having a figure too close to the bottom of the page can mess things up in + such a way that the float does not appear in the output or that it is placed + over some other text. \end_layout -\begin_layout Standard -The box content can also be a box and colorboxes can also be within other - boxes. +\end_inset + + \end_layout \begin_layout Standard -The following colors are predefined: -\begin_inset Newline newline -\end_inset +In general, the following applies for wrap floats: +\end_layout +\begin_layout Itemize +They should not be placed in paragraphs that run over a page break. + That means that wrap floats are better inserted in their exact place when + the document is almost finished and you are able to estimate where page + breaks will appear. +\end_layout -\family sans -black -\family default -, -\family sans -blue -\family default -, -\family sans -cyan -\family default -\series bold -, -\series default - -\family sans -green -\family default -, -\family sans -magenta -\family default -, -\family sans -red -\family default -, -\family sans -white -\family default -, and -\family sans -yellow -\family default -. -\begin_inset Newline newline -\end_inset +\begin_layout Itemize +They should either be placed in their own paragraph before the paragraph + where they should wrap into or within a paragraph. +\end_layout + +\begin_layout Itemize +In consecutive paragraphs they may cause troubles, so ensure that there + is a text paragraph between them as separator. +\end_layout -You can also define your own color as described in section -\begin_inset space ~ +\begin_layout Itemize +They are not allowed in section headings or tables. +\end_layout + +\begin_layout Itemize +Their numbering and referencing works as described in chap. +\begin_inset space \thinspace{} \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Colored-Tables" +reference "chap:Floats" \end_inset . \end_layout -\begin_layout Standard -To have e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset +\begin_layout Section +Surrounded Fixed Objects +\begin_inset Index idx +status collapsed -a red background for a word, insert the command +\begin_layout Plain Layout +Surrounded by text ! Fixed objects \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -colorbox{red}{ \end_layout \begin_layout Standard -before the word in TeX-Code. - After the word insert a closing brace -\begin_inset Quotes eld +The wrap floats described in sec. +\begin_inset space \thinspace{} \end_inset -\series bold -} -\series default - -\begin_inset Quotes erd -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Wrap-Floats" - in TeX-Code. -\begin_inset Newline newline \end_inset -This is the result: + have these positions in the paragraph: \end_layout \begin_layout Standard -This is a line where the word -\begin_inset ERT -status collapsed +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -colorbox{red}{ -\end_layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp \end_inset -\begin_inset Quotes eld -\end_inset +\end_layout -Attention! -\begin_inset Quotes erd \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout - -} +text \end_layout \end_inset + + +\begin_inset Text - has a red background. +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + -If you would like the box frame in a different color, you can use the command - -\series bold +\end_inset -\backslash -fcolorbox -\series default - with the following scheme: -\end_layout + or +\begin_inset Tabular + + + + + + +\begin_inset Text -\begin_layout Standard +\begin_layout Plain Layout +text +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -fcolorbox{frame color}{box color}{box content} -\end_layout +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp -\begin_layout Standard +\end_inset -\series bold -\backslash -fcolorbox -\series default - is an extension to -\series bold +\end_layout -\backslash -colorbox -\series default -. - The frame thickness and the space between the frame and the box content - can be adjusted with the lengths -\series bold +\end_inset + + + + +\begin_inset Text -\backslash -fboxrule -\series default - and -\series bold +\begin_layout Plain Layout +text +\end_layout -\backslash -fboxsep -\series default -, respectively, as described in section -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Decoration" +\end_inset + + + \end_inset -. -\end_layout -\begin_layout Standard -For the following example the command \end_layout \begin_layout Standard +To get an object exactly at the position where it is inserted, for example + to get one of these positions: +\begin_inset VSpace defskip +\end_inset -\series bold -\backslash -fcolorbox{cyan}{magenta}{ \end_layout \begin_layout Standard -was used. +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -Here is an example where the frame line thickness was set to 1 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout -mm: -\begin_inset Newline newline \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp -\begin_inset ERT -status collapsed +\end_inset -\begin_layout Plain Layout +\end_layout -\backslash -fboxrule 1mm -\backslash -fboxsep 1mm +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text \end_layout \end_inset + + + +\end_inset -\begin_inset ERT -status collapsed + +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout +text +\end_layout +\end_inset + + +\begin_inset Text -\backslash -fcolorbox{cyan}{magenta}{ +\begin_layout Plain Layout +text \end_layout \end_inset - -This is text within a colored, framed box. -\begin_inset ERT -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout - -} +text \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp + +\end_inset \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + -Of course you can also have colored text inside a colorbox: -\begin_inset Newline newline \end_inset - -\begin_inset ERT -status collapsed + +\begin_inset Tabular + + + + + + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -fcolorbox{cyan}{magenta}{ +text \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp -\color yellow -This is colored text within a colored, framed box. -\color none - -\begin_inset ERT -status collapsed +\end_inset -\begin_layout Plain Layout -} \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +text +\end_layout +\end_inset + + +\begin_inset Text -\backslash -fboxrule 0.4pt -\backslash -fboxsep 3pt +\begin_layout Plain Layout +text \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard +\end_inset + + + -\series bold -\begin_inset VSpace medskip \end_inset + +\begin_inset Tabular + + + + + + + +\begin_inset Text +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -Note: -\series default - Text in colorboxes cannot have line breaks. - To color multiple text lines or paragraphs, use a box inside a colorbox - as described in the following. +text \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Subsection -Color for Paragraphs -\begin_inset CommandInset label -LatexCommand label -name "sub:Color-for-Paragraphs" - \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Color ! for Paragraphs -\end_layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp \end_inset \end_layout -\begin_layout Standard -To set the background color for more than one text line, put the text into - a minipage. - Before the minipage insert the -\series bold +\end_inset + + +\begin_inset Text -\backslash -colorbox -\series default - command +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard +\end_inset + + + + +\end_inset -\series bold -\backslash -colorbox{color}{ \end_layout \begin_layout Standard -in TeX-Code. - After the minipage insert a closing brace -\begin_inset Quotes eld -\end_inset - +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text -\series bold -} -\series default +\begin_layout Plain Layout +text +\end_layout -\begin_inset Quotes erd \end_inset + + +\begin_inset Text - in TeX-Code. +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp + +\end_inset -\backslash -colorbox{lightgrey}{ \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout -This is text with background color. - This is text with background color. +text \end_layout -\begin_layout Plain Layout -\begin_inset VSpace defskip \end_inset - -The text can have footnotes -\begin_inset Foot -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Another example footnote +text \end_layout +\end_inset + + + + \end_inset - and can include tables and figures. -\end_layout - -\begin_layout Plain Layout -\align center + \begin_inset Tabular @@ -30496,87 +33028,91 @@ Another example footnote \begin_inset Text \begin_layout Plain Layout -a +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -! +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -3 +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -< +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -b2 -\begin_inset Quotes erd +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp + \end_inset -| + \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -> +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -1 +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -§ +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -c +text \end_layout \end_inset @@ -30586,148 +33122,81 @@ c \end_inset - -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Rotated and Scaled Boxes -\end_layout - -\begin_layout Standard -To use the commands described in this section, the LaTeX-package -\series bold -graphicx -\series default - -\begin_inset Index idx -status collapsed + +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! graphicx -\end_layout - -\end_inset - - needs to be loaded in the document preamble with the command +text \end_layout -\begin_layout Standard - -\series bold - -\backslash -@ifundefined{rotatebox} -\begin_inset Newline newline \end_inset - - -\begin_inset Phantom HPhantom -status open + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - +text \end_layout \end_inset - -{ -\backslash -usepackage{graphicx}}{} -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open + + + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -Note: -\series default - Some DVI-viewers can't display rotated or scaled material. +text \end_layout \end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -Note: -\series default - Floats mustn't be inside a rotated or scaled box. -\end_layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + BoundingBox 0bp 6bp 22bp 22bp \end_inset \end_layout -\begin_layout Subsection -Rotated Boxes -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Boxes ! rotated -\end_layout - \end_inset - - -\begin_inset Index idx -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout -Rotated material +text \end_layout \end_inset - - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Figures ! rotated +text \end_layout \end_inset - - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Table Customization ! Rotating -\end_layout + + + \end_inset @@ -30735,90 +33204,26 @@ Table Customization ! Rotating \end_layout \begin_layout Standard -To rotate material, you can put it into a rotated box. - Such a box is created using the command +\noindent +you can use the LaTeX-package \series bold - -\backslash -rotatebox +picinpar \series default - in TeX-Code with the following scheme: -\end_layout - -\begin_layout Standard - -\series bold -\backslash -rotatebox[rotation origin]{rotation angle}{box content} -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Standard -The rotation origin is specified in the form -\series bold -origin=position -\series default -. - The following positions are possible: -\emph on -c -\emph default - (center), -\emph on -l -\emph default - (left), -\emph on -r -\emph default - (right), -\emph on -b -\emph default - (bottom), -\emph on -t -\emph default - (top), along with meaningful combinations of the four base positions. - For example -\emph on -lt -\emph default - means that the rotation origin is at the top left corner of the box. - When no rotation origin is specified, the position -\emph on -l -\emph default - will be used. - The rotation angle is a number that can be negative that specifies the - angle in degrees. - The rotation direction is counterclockwise. +\begin_layout Plain Layout +LaTeX-packages ! picinpar \end_layout -\begin_layout Standard -In the following example the command -\series bold - -\backslash -rotatebox[origin=c]{60}{ -\series default - was inserted as 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 -\series bold -} -\series default - in TeX-Code. +. + Here is an example: \end_layout \begin_layout Standard -This is a line \begin_inset ERT status collapsed @@ -30826,31 +33231,29 @@ status collapsed \backslash -rotatebox[origin=c]{60}{ +ifpicinpar \end_layout \end_inset -with rotated -\begin_inset ERT -status collapsed -\begin_layout Plain Layout +\begin_inset Note Note +status open -} +\begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package +\series bold +picinpar +\series default + is installed. \end_layout \end_inset - text. -\end_layout -\begin_layout Standard -The box content can also be another box or an inline formula: \end_layout \begin_layout Standard -This is a line \begin_inset ERT status collapsed @@ -30858,28 +33261,18 @@ status collapsed \backslash -rotatebox[origin=r]{-60}{ +begin{window}[2,c,{ \end_layout \end_inset -\begin_inset Box Doublebox -position "c" -hor_pos "c" -has_inner_box 0 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "1in" -special "width" -height "1in" -height_special "totalheight" -status collapsed - -\begin_layout Plain Layout -with rotated -\end_layout +\begin_inset Graphics + filename clipart/mobius.eps + lyxscale 60 + width 40col% + scaleBeforeRotation + rotateOrigin center \end_inset @@ -30889,48 +33282,45 @@ status collapsed \begin_layout Plain Layout -} +},] \end_layout -\end_inset - - framed text -\begin_inset ERT -status collapsed - \begin_layout Plain Layout - -\backslash -rotatebox[origin=lb]{60}{ +{} \end_layout \end_inset -\begin_inset Formula $\int A\,\mathrm{d}x=B$ -\end_inset - +\size small +It was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which +\size default \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +footnotemark{} \end_layout \end_inset - and a formula. -\end_layout -\begin_layout Standard -or an image or table: -\end_layout +\size small + came out in the police investigation, but a good deal was suppressed upon + that occasion, since the case for the prosecution was so overwhelmingly + strong that it was not necessary to bring forward all the facts. + Only now, at the end of nearly ten years, am I allowed to supply those + missing links which make up the whole of that remarkable chain. +\size default -\begin_layout Standard -This is a line \begin_inset ERT status collapsed @@ -30938,31 +33328,15 @@ status collapsed \backslash -rotatebox[origin=lb]{90}{ +end{window} \end_layout \end_inset -\begin_inset Graphics - filename clipart/platypus.eps - lyxscale 50 - width 25col% - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} \end_layout -\end_inset - - with a rotated image +\begin_layout Standard \begin_inset ERT status collapsed @@ -30970,62 +33344,12 @@ status collapsed \backslash -rotatebox[origin=l]{-90}{ -\end_layout - -\end_inset - - -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -q -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -w -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -e -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -r +footnotetext{ \end_layout -\end_inset - - - - \end_inset - +Footnote of the paragraph with the fixed object. \begin_inset ERT status collapsed @@ -31036,155 +33360,109 @@ status collapsed \end_inset - and table. -\end_layout - -\begin_layout Subsection -Scaled Boxes -\begin_inset Index idx -status collapsed -\begin_layout Plain Layout -Boxes ! scaled \end_layout -\end_inset - - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Scaled material +\begin_layout Standard +Surrounded fixed objects are used to let text float around them, at which + the object's position in the paragraph can be determined by the number + of lines above it. + In contrary to floats is it not possible to have a numbered caption. \end_layout -\end_inset - - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Figures ! scaled +\begin_layout Standard +A fixed object is inserted by adding the command \end_layout -\end_inset - +\begin_layout Standard -\begin_inset Index idx -status collapsed +\series bold -\begin_layout Plain Layout -Table Customization ! Scaling +\backslash +begin{window}[2,c,{ \end_layout +\begin_layout Standard +as TeX Code at the beginning of the paragraph. + The first parameter in the bracket, here '2', defines the number of lines + above the object, the second, here 'c', the position of the object. + The positions 'l', 'c' and 'r' (for left, center, right) are possible. + Behind the command you insert the object. + In this example an image with a width of 40 +\begin_inset space \thinspace{} \end_inset - +% of the text column width was inserted. + The object can also be a table, a box or an equation. + Behind the object the command \end_layout \begin_layout Standard -To scale material the commands -\series bold -\backslash -scalebox -\series default - and \series bold +},description text] +\begin_inset Newline newline +\end_inset -\backslash -resizebox -\series default - can be used as TeX-Code. +{} \end_layout \begin_layout Standard +is inserted. + Note that the +\begin_inset Quotes eld +\end_inset -\series bold -\backslash -scalebox +\series bold +{} \series default - is used with the following scheme: -\end_layout -\begin_layout Standard +\begin_inset Quotes erd +\end_inset + is in the second line. + The description text is optional. + The text surrounding the object must be in the same paragraph as the object, + so it must begin directly after the \series bold - -\backslash -scalebox{horizontal}[vertical]{box content} +{} +\series default +. + At the end of the paragraph insert the command: \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. -\end_layout -\begin_layout Standard -The command \series bold \backslash -scalebox{2}{Hello} -\series default - creates for example a double size -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -scalebox{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{window} \end_layout \begin_layout Standard - +Within a paragraph with a fixed object, you cannot insert footnotes in the + normal way. + You have to use instead the command \series bold \backslash -scalebox{2}[1]{Hello} +footnotemark \series default - on the other hand distorts the -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - + inside the paragraph and outside the command +\series bold \backslash -scalebox{2}[1]{ -\end_layout - +footnotetext +\series default + as described in sec. +\begin_inset space \thinspace{} \end_inset -Hello -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Footnotes" \end_inset @@ -31192,14 +33470,6 @@ status collapsed \end_layout \begin_layout Standard -If the scaling factor is negative, the box content will be mirrored. - Therefore the command -\series bold - -\backslash -scalebox{-1}[1]{Hello} -\series default - can be used to create mirror writing: \begin_inset ERT status collapsed @@ -31207,18 +33477,21 @@ status collapsed \backslash -scalebox{-1}[1]{ +else \end_layout \end_inset -Hello -\begin_inset ERT -status collapsed -\begin_layout Plain Layout +\begin_inset Note Note +status open -} +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +picinpar +\series default + is not installed: \end_layout \end_inset @@ -31227,13 +33500,14 @@ status collapsed \end_layout \begin_layout Standard - +You need to install the LaTeX-package \series bold - -\backslash -scalebox{1}[-1]{Hello} +picinpar \series default - reflects the + to see the following part of this section in the output. +\end_layout + +\begin_layout Standard \begin_inset ERT status collapsed @@ -31241,83 +33515,120 @@ status collapsed \backslash -scalebox{1}[-1]{ +fi \end_layout \end_inset -Hello -\begin_inset ERT + +\end_layout + +\begin_layout Section +Initials +\begin_inset Index idx status collapsed \begin_layout Plain Layout +Initials +\end_layout -} +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Surrounded by text ! Initials \end_layout \end_inset - at the base line. + \end_layout \begin_layout Standard -Equivalent to +To use initials, you must have the LaTeX-package \series bold - -\backslash -scalebox{-1}[1]{box content} +lettrine \series default - there exists the command -\begin_inset Newline newline -\end_inset - -\series bold +\begin_inset Index idx +status collapsed -\backslash -reflectbox{box content} -\series default -. +\begin_layout Plain Layout +LaTeX-packages ! lettrine \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -The command -\series bold + installed and use the module +\family sans +Initials +\family default + in your document (menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Modules +\family default +). + To insert an initial, use the style +\family sans +Initial +\family default +. + This style has a mandatory and an optional argument. + The mandatory argument is inserted via the menu +\family sans +Insert\SpecialChar \menuseparator +Short +\begin_inset space ~ +\end_inset -\backslash -resizebox +Title +\family default + and contains the letter that is the initial. + To use also the optional argument, insert another argument in front of + the mandatory argument. + This one contains parameters to modify the initial. + For more information about the possible parameters see the documentation + of +\series bold +lettrine \series default - is used to scale the box to a defined width and height. - The command scheme is: -\end_layout +, +\begin_inset CommandInset citation +LatexCommand cite +key "lettrine" -\begin_layout Standard +\end_inset +. + The style itself contains the text that is surrounding the initial. + The usual style is hereby that the word whose first letter is the initial, + is printed with +\shape smallcaps +small caps +\shape default +. + To tell LaTeX where this word is finished, add a closing brace ' \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 +} +\series default +' as TeX Code behind it. + At the end of the style there must be an opening brace ' \series bold -! +{ \series default -, the size is set so that the aspect ratio of the box content is kept. +' as TeX Code. \end_layout \begin_layout Standard -The command -\series bold +Here are some examples: +\end_layout -\backslash -resizebox{2cm}{1cm}{Hello} -\series default - produces: +\begin_layout Standard \begin_inset ERT status collapsed @@ -31325,111 +33636,166 @@ status collapsed \backslash -resizebox{2cm}{1cm}{ +iflettrine \end_layout \end_inset -Hello -\begin_inset ERT -status collapsed + +\begin_inset Note Note +status open \begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package +\series bold +lettrine +\series default + is installed. +\end_layout + +\end_inset + -} \end_layout +\begin_layout Enumerate +No optional argument, the initial is the letter 'I' in the math font +\begin_inset Formula $\mathfrak{Fraktur}$ \end_inset +: +\end_layout -\begin_inset Newline newline +\begin_deeper +\begin_layout Initial +\begin_inset Argument +status open + +\begin_layout Plain Layout +\begin_inset Formula $\mathfrak{I}$ \end_inset -The command -\series bold -\backslash -resizebox{2cm}{!}{Hello} -\series default - produces: +\end_layout + +\end_inset + +t \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -resizebox{2cm}{!}{ +} \end_layout \end_inset -Hello + was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. \begin_inset ERT status collapsed \begin_layout Plain Layout -} +{ \end_layout \end_inset +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\end_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: +\end_layout + +\begin_deeper +\begin_layout Initial +\begin_inset Argument +status open + +\begin_layout Plain Layout +lines=1 \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -\begin_inset Note Greyedout +\begin_inset Argument status open \begin_layout Plain Layout +It +\end_layout -\series bold -Note: -\series default - When arguments of -\series bold +\end_inset -\backslash -scalebox -\series default - or -\series bold -\backslash -resizebox -\series default - are set to zero, no LaTeX-errors occur when exporting the document but - the exported files can not or only partly be displayed. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout \end_inset + was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout -\begin_layout Standard -The boxes can be combined in any order. - E. -\begin_inset space \thinspace{} +\end_deeper +\begin_layout Enumerate +Magenta, hanging initial over 3 +\begin_inset space ~ \end_inset -g. -\begin_inset space \space{} +lines in the math font +\begin_inset Formula $\mathcal{CALLIGRAPHIC}$ \end_inset -the command +, the text +\begin_inset Quotes eld +\end_inset + +t was in the spring +\begin_inset Quotes erd +\end_inset + + is in +\shape smallcaps +small caps +\shape default +; to color the initial, you must insert this command before the initial: \begin_inset Newline newline \end_inset @@ -31437,94 +33803,107 @@ the command \series bold \backslash -rotatebox[origin=c]{-45}{ +renewcommand{ \backslash -resizebox{2cm}{!}{ +LettrineFontHook}{ \backslash -reflectbox{Hello}}} -\begin_inset Newline newline -\end_inset - - +color{color}} \series default -produces: -\end_layout - -\begin_layout Standard -\align center -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\begin_inset Newline newline +\end_inset -\backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ -\end_layout +where the second +\emph on +color +\emph default + can be +\begin_inset Quotes eld +\end_inset +red +\begin_inset Quotes erd \end_inset -Hello -\begin_inset ERT -status collapsed +, +\begin_inset Quotes eld +\end_inset -\begin_layout Plain Layout +blue +\begin_inset Quotes erd +\end_inset -}}} -\end_layout +, +\begin_inset Quotes eld +\end_inset +green +\begin_inset Quotes erd \end_inset +, +\begin_inset Quotes eld +\end_inset -\end_layout +yellow +\begin_inset Quotes erd +\end_inset -\begin_layout Standard -\noindent -Images, tables, and inline formulas are allowed as box content: -\end_layout +, +\begin_inset Quotes eld +\end_inset -\begin_layout Standard -\align center -\begin_inset ERT -status collapsed +cyan +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout +, +\begin_inset Quotes eld +\end_inset +magenta +\begin_inset Quotes erd +\end_inset -\backslash -rotatebox[origin=c]{-30}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ -\end_layout +, +\begin_inset Quotes eld +\end_inset +black +\begin_inset Quotes erd \end_inset + or +\begin_inset Quotes eld +\end_inset -\begin_inset Graphics - filename clipart/platypus.eps - lyxscale 50 - width 25col% +white +\begin_inset Quotes erd +\end_inset +, and add this command to the document preamble: +\begin_inset Newline newline \end_inset -\begin_inset ERT -status collapsed +\series bold -\begin_layout Plain Layout +\backslash +@ifundefined{textcolor} +\begin_inset Newline newline +\end_inset -}}} -\end_layout +\begin_inset space ~ \end_inset +{ +\backslash +usepackage{color}}{} +\end_layout +\begin_deeper +\begin_layout Standard \begin_inset ERT status collapsed @@ -31532,77 +33911,84 @@ status collapsed \backslash -rotatebox[origin=c]{-45}{ +renewcommand{ \backslash -resizebox{2cm}{!}{ +LettrineFontHook}{ \backslash -reflectbox{ +color{magenta}} \end_layout \end_inset -\begin_inset Tabular - - - - - - -\begin_inset Text +\begin_inset Note Note +status collapsed \begin_layout Plain Layout -q +makes the initial magenta \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -w + \end_layout -\end_inset - - - - -\begin_inset Text +\begin_layout Initial +\begin_inset Argument +status open \begin_layout Plain Layout -e +lines=3, lhang=0.33, loversize=0.25 \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Argument +status open \begin_layout Plain Layout -r +\begin_inset Formula $\mathcal{I}$ +\end_inset + + \end_layout \end_inset - - - -\end_inset +t was in the spring +\begin_inset ERT +status collapsed +\begin_layout Plain Layout + +} +\end_layout +\end_inset + + of the year 1894 that all London was interested, and the fashionable world + dismayed, by the murder of the Honourable Ronald Adair under most unusual + and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. \begin_inset ERT status collapsed \begin_layout Plain Layout -}}} +{ \end_layout \end_inset +\end_layout + +\end_deeper +\begin_layout Standard \begin_inset ERT status collapsed @@ -31610,26 +33996,21 @@ status collapsed \backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ +else \end_layout \end_inset -\begin_inset Formula $\int A\,\mathrm{d}x=B$ -\end_inset - - -\begin_inset ERT -status collapsed +\begin_inset Note Note +status open \begin_layout Plain Layout - -}}} +The following will be displayed when the LaTeX-package +\series bold +lettrine +\series default + is not installed: \end_layout \end_inset @@ -31638,29 +34019,27 @@ status collapsed \end_layout \begin_layout Standard -When the global formula style +You need to install the LaTeX-package \series bold -fleqn +lettrine \series default - is used in the document -\begin_inset Foot + to see the following part of this section in the output. +\end_layout + +\begin_layout Standard +\begin_inset ERT status collapsed \begin_layout Plain Layout -When -\begin_inset Quotes eld -\end_inset -fleqn -\begin_inset Quotes erd -\end_inset - is added to the document class options. +\backslash +fi \end_layout \end_inset -, display style formulas can also be scaled. + \end_layout \begin_layout Chapter @@ -32260,13 +34639,21 @@ Files ! Include \end_layout \begin_layout Standard -Child documents are used when you have a long document consisting of several +Child documents are used if you have a long document consisting of several larger parts or sections. For maintenance it is often useful and sometimes even required to split - the document in several files that can be revised separately. - The different documents are then the so called child documents and a master - document connects them to print the full document or parts of it. - A child documents inherits elements of its master, for example the LaTeX + the document into several files that can be revised separately. + The different documents are then the so called +\begin_inset Quotes eld +\end_inset + +child documents +\begin_inset Quotes erd +\end_inset + +, and a master document connects them to print the full document or parts + of it. + A child document inherits elements of its master, for example the LaTeX preamble, the bibliography, and labels for cross-references. \end_layout @@ -32311,7 +34698,7 @@ Documents \end_layout \begin_layout Description -Include You can include LyX and LaTeX-documents. +Include You can include LyX- and LaTeX-documents. When you press the \family sans Load @@ -32359,7 +34746,7 @@ reference "sub:External-Subsection-1" \end_inset - +. \end_layout \begin_layout Standard @@ -32371,54 +34758,6 @@ The preamble of the child document is ignored; only the preamble of the a page break. \end_layout -\begin_layout Standard -If you are only working on a certain chapter of a large document and want - to save compiling time, you can put each included file into a branch. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Branches are described in section -\emph on -Branches -\emph default - of the LyX -\emph on -Userguide -\emph default -. -\end_layout - -\end_inset - - By enabling/disabling branches you can decide what included files will - appear in the output. -\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 LyX the LaTeX command -\series bold - -\backslash -includeonly -\series default - can currently not be used as an alternative to decide what files should - be included. -\end_layout - -\end_inset - - -\end_layout - \begin_layout Standard \begin_inset Note Greyedout status open @@ -32428,8 +34767,8 @@ status open \series bold Note: \series default - When you have included a LyX- or LaTeX-file, you are warned when you export/vie -w the document in case the child document uses another document class than + If you have included a LyX- or LaTeX-file, you are warned when you export/view + the document in case the child document uses another document class than the master document as this will lead to unexpected outputs. \end_layout @@ -32474,13 +34813,13 @@ Graphics \end_layout \begin_layout Itemize -The LaTeX-command -\series bold - -\backslash -includeonly -\series default - cannot be used. +You cannot exclude Input files via the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Child Documents +\family default +. \end_layout \end_deeper @@ -32500,7 +34839,7 @@ filename "DummyDocument2.lyx" \end_layout \begin_layout Description -Verbatim With this method every text file can be included. +Verbatim With this method any text file can be included. The file is shown in the output with its source code; no command used in the text is invoked. You can use the option @@ -32554,7 +34893,7 @@ filename "DummyTextDocument.txt" \begin_inset VSpace bigskip \end_inset -Here is a child document inserted as Verbatim using the + Here is a child document inserted as Verbatim using the \family sans Mark spaces in output \family default @@ -32630,6 +34969,84 @@ Note: \end_layout +\begin_layout Standard +If you want to view/export only selected children of your master document, + either because you want to save compiling time or because you want to distribut +e single chapters of the book you are just writing, you can exclude children + from the output. + This is done via the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Child Documents +\family default +. + You can exclude\SpecialChar \slash{} +include children by double-clicking on the +\family sans +include to output +\family default + column of the respective child document in the list (note that this only + works for documents embedded via +\begin_inset Quotes eld +\end_inset + +Include +\begin_inset Quotes erd +\end_inset + +, not with +\begin_inset Quotes eld +\end_inset + +Input +\begin_inset Quotes erd +\end_inset + +). + If the option +\family sans +Maintain counters and references +\family default + is enabled, LyX will assure that all page numbers, references etc. +\begin_inset space ~ +\end_inset + +are correct as if the whole document was processed. + This is useful if you want the selected sub-documents to look exactly as + in the context of the whole document. + However, LyX needs to process the whole document in the background for + this feature. + So if you want to save compile time and if counters and references do not + need to be correct, disable this checkbox. +\end_layout + +\begin_layout Standard +Alternatively, you can put each included file into a branch. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Branches are described in section +\emph on +Branches +\emph default + of the LyX +\emph on +Userguide +\emph default +. +\end_layout + +\end_inset + + By enabling\SpecialChar \slash{} +disabling branches you can decide which included files will + appear in the output. + This has the advantage that it also works with Input'ed sub-documents. + However, counters and references will not be maintained with this approach. +\end_layout + \begin_layout Chapter Program Code Listings \begin_inset CommandInset label @@ -33244,6 +35661,121 @@ lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchar \end_inset +\end_layout + +\begin_layout Standard +Inserting a formula into a listing can be done the following way: +\end_layout + +\begin_layout Enumerate +Open the listings dialog and add +\begin_inset Newline newline +\end_inset + + +\family sans +mathescape=true +\family default + +\begin_inset Newline newline +\end_inset + +to the field of the +\family sans +Advanced +\family default + tab. +\end_layout + +\begin_layout Enumerate +Create a formula outside the listing +\end_layout + +\begin_layout Enumerate +Copy the content of the formula (not the formula inset) to the clipboard + (shortcut +\begin_inset Info +type "shortcut" +arg "copy" +\end_inset + +) +\end_layout + +\begin_layout Enumerate +In the listing write +\begin_inset Quotes eld +\end_inset + + +\family sans +$$ +\family default + +\begin_inset Quotes erd +\end_inset + + and copy from the clipboard between the dollar-signs (shortcut +\begin_inset Info +type "shortcut" +arg "paste" +\end_inset + +) +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language=Python,mathescape=true" +inline false +status open + +\begin_layout Plain Layout + +\begin_inset Caption + +\begin_layout Plain Layout +Example Listing float containing a formula +\end_layout + +\end_inset + +# Example listing float +\end_layout + +\begin_layout Plain Layout + +def func(param): +\end_layout + +\begin_layout Plain Layout + + # $ +\backslash +prod_{n=1}^{ +\backslash +infty} +\backslash +, +\backslash +frac{1}{x^{2}}$ +\end_layout + +\begin_layout Plain Layout + + pass +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + \end_layout \begin_layout Standard @@ -33251,7 +35783,7 @@ Global listings settings can be set in the \family sans Document\SpecialChar \menuseparator Settings\SpecialChar \menuseparator -Text Layout +Listings \family default dialog. To get there a list of available options, type in a question mark @@ -33262,15 +35794,7 @@ Text Layout \begin_inset Quotes erd \end_inset - in the -\family sans -Listings -\begin_inset space ~ -\end_inset - -settings -\family default - field. +. \end_layout \begin_layout Standard @@ -34391,14 +36915,14 @@ Explanation of Equation \begin_inset space ~ \end_inset - +( \begin_inset CommandInset ref -LatexCommand eqref +LatexCommand ref reference "eq:Wgn" \end_inset - +) \begin_inset CommandInset label LatexCommand label name "cha:Explanation-of-Equation" @@ -34421,8 +36945,10 @@ n \end_layout \begin_layout Standard -\begin_inset Formula \begin{equation} -W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation} +\begin_inset Formula +\begin{equation} +W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n} +\end{equation} \end_inset @@ -34475,8 +37001,10 @@ reference "eq:Wtot_n" \end_layout \begin_layout Standard -\begin_inset Formula \begin{equation} -W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation} +\begin_inset Formula +\begin{equation} +W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult} +\end{equation} \end_inset @@ -34518,8 +37046,10 @@ n \end_layout \begin_layout Standard -\begin_inset Formula \begin{equation} -W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation} +\begin_inset Formula +\begin{equation} +W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n +\end{equation} \end_inset @@ -34678,7 +37208,7 @@ LaTeX-packages ! endfloat \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "wrapfig" +key "footmisc" \end_inset @@ -34687,8 +37217,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "wrapfig" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty" +name "footmisc" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf" \end_inset @@ -34699,20 +37229,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig. status collapsed \begin_layout Plain Layout -LaTeX-packages ! wrapfig -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -vspace{4mm} -\end_layout - -\end_inset - - +LaTeX-packages ! footmisc \end_layout \end_inset @@ -34724,7 +37241,7 @@ vspace{4mm} \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "footmisc" +key "hypcap" \end_inset @@ -34733,8 +37250,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "footmisc" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf" +name "hypcap" +target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf" \end_inset @@ -34745,7 +37262,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmis status collapsed \begin_layout Plain Layout -LaTeX-packages ! footmisc +LaTeX-packages ! hyperref \end_layout \end_inset @@ -34757,7 +37274,7 @@ LaTeX-packages ! footmisc \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "hypcap" +key "hyperref" \end_inset @@ -34766,8 +37283,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "hypcap" -target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf" +name "hyperref" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf" \end_inset @@ -34790,7 +37307,7 @@ LaTeX-packages ! hyperref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "hyperref" +key "KOMA-Script" \end_inset @@ -34799,8 +37316,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "hyperref" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf" +name "KOMA-Script" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf" \end_inset @@ -34811,7 +37328,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperre status collapsed \begin_layout Plain Layout -LaTeX-packages ! hyperref +LaTeX-packages ! KOMA-Script \end_layout \end_inset @@ -34823,7 +37340,7 @@ LaTeX-packages ! hyperref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "KOMA-Script" +key "listings" \end_inset @@ -34832,8 +37349,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "KOMA-Script" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf" +name "listings" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf" \end_inset @@ -34844,7 +37361,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrg status collapsed \begin_layout Plain Layout -LaTeX-packages ! KOMA-Script +LaTeX-packages ! listings \end_layout \end_inset @@ -34856,7 +37373,7 @@ LaTeX-packages ! KOMA-Script \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "listings" +key "marginnote" \end_inset @@ -34865,8 +37382,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "listings" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf" +name "marginnote" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf" \end_inset @@ -34877,7 +37394,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listing status collapsed \begin_layout Plain Layout -LaTeX-packages ! listings +LaTeX-packages ! marginnote \end_layout \end_inset @@ -34889,7 +37406,7 @@ LaTeX-packages ! listings \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "marginnote" +key "lettrine" \end_inset @@ -34898,19 +37415,27 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "marginnote" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf" +name "lettrine" +target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf" \end_inset \series default + and an +\begin_inset CommandInset href +LatexCommand href +name "example" +target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf" + +\end_inset + \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! marginnote +LaTeX-packages ! lettrine \end_layout \end_inset @@ -35021,53 +37546,62 @@ LaTeX-packages ! prettyref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "NewInLyX16" +key "refstyle" \end_inset +Documentation of the LaTeX-package +\series bold \begin_inset CommandInset href LatexCommand href -name "Wiki page" -target "http://wiki.lyx.org/LyX/NewInLyX16" +name "refstyle" +target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf" \end_inset - about new features in -\family sans -LyX 1.6.0 -\family default -. -\end_layout - -\begin_layout Standard -\begin_inset CommandInset index_print -LatexCommand printindex -type "idx" -\end_inset +\series default +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +LaTeX-packages ! refstyle \end_layout -\begin_layout Standard -\begin_inset FloatList figure - \end_inset \end_layout -\begin_layout Standard -\begin_inset FloatList table +\begin_layout Bibliography +\labelwidthstring Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "NewInLyX20" \end_inset +\begin_inset CommandInset href +LatexCommand href +name "Wiki page" +target "http://wiki.lyx.org/LyX/NewInLyX20" + +\end_inset + + about new features in +\family sans +LyX 2.0 +\family default +. \end_layout \begin_layout Standard -\begin_inset FloatList algorithm +\begin_inset CommandInset index_print +LatexCommand printindex +type "idx" \end_inset