X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fdoc%2FEmbeddedObjects.lyx;h=7bb26f6e8c2c94f06ad05bfafab0b95e5ff6ede5;hb=c48091f33a773732fa6c789927e5833e44108d9d;hp=a0ee8d93550a65da993e4721b8d49d8c4a8c927d;hpb=abcd94b2544c39b56735a28ff8f81e66719a82a9;p=lyx.git diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index a0ee8d9355..7bb26f6e8c 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -33,21 +33,19 @@ % 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 @@ -144,13 +142,26 @@ \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,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 @@ -187,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 @@ -300,9 +311,9 @@ colortbl \series default , \series bold -marginnote +lettrine, marginnote, picinpar \series default -, and + and \series bold sidecap \series default @@ -653,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 @@ -12809,6 +12816,104 @@ raggedright} \end_layout +\begin_layout Standard +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 + +\begin_layout Plain Layout +aaa +\begin_inset Newline newline +\end_inset + +aaa +\begin_inset Newline newline +\end_inset + +wrong cell +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ccc +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ddd +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +bbb +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +eee +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +Therefore be careful with forced line breaks. +\end_layout + \begin_layout Section Formal Tables \begin_inset CommandInset label @@ -19570,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 @@ -19729,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 @@ -20003,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 @@ -21481,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 @@ -23606,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 @@ -23626,7 +23495,7 @@ height "1pt" \backslash newcommand{ \backslash -TabBesBeg}{% +TabBesBeg}[1][1.0]{% \begin_inset Newline newline \end_inset @@ -23635,8 +23504,6 @@ TabBesBeg}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23661,7 +23528,7 @@ status open \begin_layout Plain Layout -\series bold +\series medium \begin_inset space ~ \end_inset @@ -23686,7 +23553,7 @@ status open \begin_layout Plain Layout -\series bold +\series medium \begin_inset space ~ \end_inset @@ -23697,9 +23564,9 @@ status open \backslash -renewenvironment{table}{ +renewenvironment{table}[1]{ \backslash -begin{SCtable}}{ +begin{SCtable}[#1]##1}{ \backslash end{SCtable}}} \end_layout @@ -23720,8 +23587,6 @@ TabBesEnd}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23745,8 +23610,6 @@ MyTable status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23771,7 +23634,7 @@ MyEndtable \backslash newcommand{ \backslash -FigBesBeg}{% +FigBesBeg}[1][1.0]{% \begin_inset Newline newline \end_inset @@ -23780,8 +23643,6 @@ FigBesBeg}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23805,8 +23666,6 @@ figure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23830,8 +23689,6 @@ endfigure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23842,9 +23699,9 @@ status open \backslash -renewenvironment{figure}{ +renewenvironment{figure}[1]{ \backslash -begin{SCfigure}}{ +begin{SCfigure}[#1]##1}{ \backslash end{SCfigure}}} \end_layout @@ -23865,8 +23722,6 @@ FigBesEnd}{% status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23890,8 +23745,6 @@ MyFigure status open \begin_layout Plain Layout - -\series bold \begin_inset space ~ \end_inset @@ -23938,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 @@ -23950,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 @@ -24089,6 +23943,115 @@ reference "fig:cap-beside-fig-2" \begin_inset VSpace medskip \end_inset + +\end_layout + +\begin_layout Standard +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 "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 + +\series bold + +\backslash +FigBesBeg[factor] +\end_layout + +\begin_layout Standard +or in the definition of +\series bold + +\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 + + +\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 Note Greyedout +status open + +\begin_layout Plain 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 + +definitely +\family default + because it is not supported by +\series bold +sidecap +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + For more information about the package \series bold sidecap @@ -24153,7 +24116,7 @@ status collapsed \backslash -FigBesBeg +FigBesBeg \end_layout \end_inset @@ -24209,7 +24172,23 @@ status collapsed \backslash -TabBesBeg +FigBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesBeg \end_layout \end_inset @@ -24542,6 +24521,282 @@ status collapsed \begin_layout Plain Layout +\backslash +TabBesBeg[5] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:cap-beside-tab-wider" + +\end_inset + +This is a caption is wider than the one in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab" + +\end_inset + +. +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\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 +g +\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 + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +i +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +j +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + \backslash else \end_layout @@ -24911,63 +25166,15 @@ button \begin_inset VSpace bigskip \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 - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -textcolor{color} -\backslash -bgroup}{ -\backslash -egroup} -\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 CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" - -\end_inset - +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 -Notes that appear in blue in this document are set using greyed out notes - with blue text. -\end_layout - \begin_layout Section Footnotes \begin_inset CommandInset label @@ -26455,6 +26662,29 @@ key "latexcompanion,latexguide,latexbook" \end_inset +. + If you are using a +\series bold +KOMA-Script +\series default + +\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 "KOMA-Script" + +\end_inset + . \end_layout @@ -28607,7 +28837,7 @@ fboxrule \end_inset pt. - It can be changed with the following command in TeX-Code to e. + It can be changed with the following command in TeX-code to e. \begin_inset space \thinspace{} \end_inset @@ -28865,7 +29095,7 @@ num \begin_inset space \thinspace{} \end_inset -minimum(width and heigth of box) +minimum(width and height of box) \family default . The default is @@ -29825,11 +30055,11 @@ Of course the word now protrudes over the side margin. To avoid this, add via the menu \family sans Insert\SpecialChar \menuseparator -Special +Formatting\SpecialChar \menuseparator +Ragged \begin_inset space ~ \end_inset -Formatting\SpecialChar \menuseparator Line \begin_inset space ~ \end_inset @@ -31986,12 +32216,12 @@ fleqn \end_layout \begin_layout Chapter -External Document Parts +Objects Surrounded by Text \begin_inset Index idx status collapsed \begin_layout Plain Layout -External Document Parts +Surrounded by text \end_layout \end_inset @@ -31999,74 +32229,68 @@ External Document Parts \end_layout -\begin_layout Standard -With the menu -\family sans -Insert\SpecialChar \menuseparator -File -\family default - you can insert external material to your document. - This can be: -\end_layout +\begin_layout Section +Wrap Floats +\begin_inset CommandInset label +LatexCommand label +name "sec:Wrap-Floats" -\begin_layout Description -LyX -\begin_inset space ~ \end_inset -Document Another LyX document; its content is directly inserted to your - document. -\end_layout -\begin_layout Description -Plain -\begin_inset space ~ -\end_inset +\begin_inset Index idx +status collapsed -Text A text document; each line is inserted in your document as a separate - paragraph. +\begin_layout Plain Layout +Floats ! Wrap Floats \end_layout -\begin_layout Description -Plain -\begin_inset space ~ \end_inset -Text, -\begin_inset space ~ -\end_inset -Join -\begin_inset space ~ -\end_inset +\begin_inset Index idx +status collapsed -Lines A text document; text lines are inserted in your document continuously - but an empty text line creates a new paragraph. +\begin_layout Plain Layout +Surrounded by text ! Wrap Floats \end_layout -\begin_layout Description -External -\begin_inset space ~ \end_inset -Material Files in various formats. + \end_layout -\begin_layout Description -Child -\begin_inset space ~ +\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 -Document LyX or LaTeX-documents. + \end_layout -\begin_layout Section -External Material -\begin_inset Index idx -status collapsed +\begin_layout Plain Layout +\begin_inset Caption \begin_layout Plain Layout -External Document Parts ! External Material +\begin_inset CommandInset label +LatexCommand label +name "fig:This-is-a" + +\end_inset + +This is a figure wrap float. \end_layout \end_inset @@ -32074,349 +32298,2182 @@ External Document Parts ! External Material \end_layout -\begin_layout Standard -The external material feature allows you to insert files in to your document - without converting them to a format that can be read by the document output - format. - LyX takes care of the necessary conversions. - This is similar to images that can be inserted in various image formats - in LyX documents. - When you have enabled Instant Preview in LyX's preferences under +\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 -Look +Insert\SpecialChar \menuseparator +Floats\SpecialChar \menuseparator +Figure \begin_inset space ~ \end_inset -and +Wrap \begin_inset space ~ \end_inset -feel\SpecialChar \menuseparator -Graphics -\family default -, the external material types Dia and Xfig are directly shown in LyX. -\end_layout - -\begin_layout Standard -External material can be inserted via the -\family sans -External Material +Float \family default - dialog that is accessible with the menu + or \family sans -Insert\SpecialChar \menuseparator -File\SpecialChar \menuseparator -External +Table \begin_inset space ~ \end_inset -Material -\family default -. - Currently the following file types ( -\family sans -Templates -\family default -) are allowed: -\end_layout +Wrap +\begin_inset space ~ +\end_inset -\begin_layout Description -ChessDiagram This template supports chess position diagrams made with the - program +Float +\family default + if the LaTeX-package \series bold +wrapfig +\series default -\begin_inset CommandInset href -LatexCommand href -name "XBoard" -target "http://en.wikipedia.org/wiki/XBoard" +\begin_inset Index idx +status collapsed -\end_inset +\begin_layout Plain Layout +LaTeX-packages ! wrapfig +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\series default -. -\end_layout -\begin_layout Description -Date This inserts the date in the form -\emph on -Day-Month-Year -\emph default -. - This is a date inserted as external material: -\begin_inset External - template Date - filename . +\backslash +vspace{4mm} +\end_layout \end_inset -\begin_inset space ~ -\end_inset +\end_layout +\end_inset -\begin_inset Note Note -status open + is installed. +\begin_inset Foot +status collapsed \begin_layout Plain Layout -Remove the protected space when bug 4398 is fixed! +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 Newline newline +/ +\begin_inset space \thinspace{} \end_inset -The date is not shown within LyX, only in the output. - There are two other methods of inserting a date: Via menu +page margin, and the \family sans -Insert\SpecialChar \menuseparator -Date -\family default - and with the LaTeX command -\series bold +Line +\begin_inset space ~ +\end_inset -\backslash -today -\series default - as TeX-Code. - The different methods are compared in Table +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 "tab:Comparison-of-the" +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. \end_layout -\begin_layout Description -Dia This template supports diagrams created with the program -\series bold +\begin_layout Standard +\begin_inset Note Greyedout +status open -\begin_inset CommandInset href -LatexCommand href -name "Dia" -target "http://en.wikipedia.org/wiki/Dia_(software)" +\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 -\series default -. +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 Description -LilyPond This template is used for music notation typeset with the program -\begin_inset Newline linebreak \end_inset -\series bold +\end_layout -\begin_inset CommandInset href -LatexCommand href -name "LilyPond" -target "http://en.wikipedia.org/wiki/LilyPond" +\begin_layout Standard +In general, the following applies for wrap floats: +\end_layout -\end_inset +\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 +\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 -\series default -. +\begin_layout Itemize +In consecutive paragraphs they may cause troubles, so ensure that there + is a text paragraph between them as separator. \end_layout -\begin_layout Description -PDFPages With this template you can insert PDF documents to your document. - To insert certain or all pages of a PDF, use the -\emph on -pages -\emph default - option in the -\family sans -Option -\family default - field in the -\family sans -LaTeX and LyX options -\family default - tab according to the template description in the dialog. - When no -\emph on -pages -\emph default - option is given, only the first page of the PDF will be inserted. +\begin_layout Itemize +They are not allowed in section headings or tables. \end_layout -\begin_layout Description -RasterImage This can be used for bitmap images. - Nearly all popular image formats are supported. - The image can be treated in the -\family sans -External material -\family default - dialog like the images that are usually included via the -\family sans -Graphics -\family default - dialog as described in section -\begin_inset space ~ +\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:Graphics-Dialog" +reference "chap:Floats" \end_inset . - The difference is that only raster images are allowed; that means that - PDF and EPS-images are not supported. \end_layout -\begin_layout Description -XFig This template supports images created with the program -\series bold +\begin_layout Section +Surrounded Fixed Objects +\begin_inset Index idx +status collapsed -\begin_inset CommandInset href -LatexCommand href -name "Xfig" -target "http://en.wikipedia.org/wiki/Xfig" +\begin_layout Plain Layout +Surrounded by text ! Fixed objects +\end_layout \end_inset -\series default -. \end_layout \begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Comparison-of-the" - +The wrap floats described in sec. +\begin_inset space \thinspace{} \end_inset -Comparison of the date input methods. -\end_layout -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Wrap-Floats" +\end_inset + have these positions in the paragraph: \end_layout -\begin_layout Plain Layout +\begin_layout Standard +\noindent \align center \begin_inset Tabular - + - - \begin_inset Text \begin_layout Plain Layout -Document format +\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 - -\family sans -External Material\SpecialChar \menuseparator -Date +text \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout - -\family sans -Insert\SpecialChar \menuseparator -Date +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -command -\series bold - -\backslash -today +text \end_layout \end_inset + + +\end_inset + + or +\begin_inset Tabular + + + + \begin_inset Text \begin_layout Plain Layout -LyX +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -as inset box +\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 -as date +text \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -as TeX-Code inset box +text \end_layout \end_inset - + + +\end_inset + + +\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 + + +\end_layout + +\begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\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 + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\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 + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +you can use the LaTeX-package +\series bold +picinpar +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! picinpar +\end_layout + +\end_inset + +. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ifpicinpar +\end_layout + +\end_inset + + +\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 + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{window}[2,c,{ +\end_layout + +\end_inset + + +\begin_inset Graphics + filename clipart/mobius.eps + lyxscale 60 + width 40col% + scaleBeforeRotation + rotateOrigin center + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +},] +\end_layout + +\begin_layout Plain Layout + +{} +\end_layout + +\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 + + +\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_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{window} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotetext{ +\end_layout + +\end_inset + +Footnote of the paragraph with the fixed object. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\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 + +\begin_layout Standard +A fixed object is inserted by adding the command +\end_layout + +\begin_layout Standard + +\series bold + +\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 + +\series bold +},description text] +\begin_inset Newline newline +\end_inset + +{} +\end_layout + +\begin_layout Standard +is inserted. + Note that the +\begin_inset Quotes eld +\end_inset + + +\series bold +{} +\series default + +\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 +{} +\series default +. + At the end of the paragraph insert the command: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +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 +footnotemark +\series default + inside the paragraph and outside the command +\series bold + +\backslash +footnotetext +\series default + as described in sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Footnotes" + +\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 +picinpar +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +picinpar +\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 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 + + +\end_layout + +\begin_layout Standard +To use initials, you must have the LaTeX-package +\series bold +lettrine +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! lettrine +\end_layout + +\end_inset + + 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 + +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 +, +\begin_inset CommandInset citation +LatexCommand cite +key "lettrine" + +\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 +} +\series default +' as TeX Code behind it. + At the end of the style there must be an opening brace ' +\series bold +{ +\series default +' as TeX Code. +\end_layout + +\begin_layout Standard +Here are some examples: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +iflettrine +\end_layout + +\end_inset + + +\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_deeper +\begin_layout Initial +\begin_inset Argument +status open + +\begin_layout Plain Layout +\begin_inset Formula $\mathfrak{I}$ +\end_inset + + +\end_layout + +\end_inset + +t +\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 + +\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 + +\end_inset + + +\begin_inset Argument +status open + +\begin_layout Plain Layout +It +\end_layout + +\end_inset + + +\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 + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Enumerate +Magenta, hanging initial over 3 +\begin_inset space ~ +\end_inset + +lines in the math font +\begin_inset Formula $\mathcal{CALLIGRAPHIC}$ +\end_inset + +, 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 + + +\series bold + +\backslash +renewcommand{ +\backslash +LettrineFontHook}{ +\backslash +color{color}} +\series default + +\begin_inset Newline newline +\end_inset + +where the second +\emph on +color +\emph default + can be +\begin_inset Quotes eld +\end_inset + +red +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +blue +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +green +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +yellow +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +cyan +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +magenta +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +black +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +white +\begin_inset Quotes erd +\end_inset + +, and add this command to the document preamble: +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +@ifundefined{textcolor} +\begin_inset Newline newline +\end_inset + + +\begin_inset space ~ +\end_inset + +{ +\backslash +usepackage{color}}{} +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +LettrineFontHook}{ +\backslash +color{magenta}} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +makes the initial magenta +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Initial +\begin_inset Argument +status open + +\begin_layout Plain Layout +lines=3, lhang=0.33, loversize=0.25 +\end_layout + +\end_inset + + +\begin_inset Argument +status open + +\begin_layout Plain Layout +\begin_inset Formula $\mathcal{I}$ +\end_inset + + +\end_layout + +\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 + +\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 +lettrine +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +lettrine +\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 +External Document Parts +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +External Document Parts +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +With the menu +\family sans +Insert\SpecialChar \menuseparator +File +\family default + you can insert external material to your document. + This can be: +\end_layout + +\begin_layout Description +LyX +\begin_inset space ~ +\end_inset + +Document Another LyX document; its content is directly inserted to your + document. +\end_layout + +\begin_layout Description +Plain +\begin_inset space ~ +\end_inset + +Text A text document; each line is inserted in your document as a separate + paragraph. +\end_layout + +\begin_layout Description +Plain +\begin_inset space ~ +\end_inset + +Text, +\begin_inset space ~ +\end_inset + +Join +\begin_inset space ~ +\end_inset + +Lines A text document; text lines are inserted in your document continuously + but an empty text line creates a new paragraph. +\end_layout + +\begin_layout Description +External +\begin_inset space ~ +\end_inset + +Material Files in various formats. +\end_layout + +\begin_layout Description +Child +\begin_inset space ~ +\end_inset + +Document LyX or LaTeX-documents. +\end_layout + +\begin_layout Section +External Material +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +External Document Parts ! External Material +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The external material feature allows you to insert files in to your document + without converting them to a format that can be read by the document output + format. + LyX takes care of the necessary conversions. + This is similar to images that can be inserted in various image formats + in LyX documents. + When you have enabled Instant Preview in LyX's preferences under +\family sans +Look +\begin_inset space ~ +\end_inset + +and +\begin_inset space ~ +\end_inset + +feel\SpecialChar \menuseparator +Graphics +\family default +, the external material types Dia and Xfig are directly shown in LyX. +\end_layout + +\begin_layout Standard +External material can be inserted via the +\family sans +External Material +\family default + dialog that is accessible with the menu +\family sans +Insert\SpecialChar \menuseparator +File\SpecialChar \menuseparator +External +\begin_inset space ~ +\end_inset + +Material +\family default +. + Currently the following file types ( +\family sans +Templates +\family default +) are allowed: +\end_layout + +\begin_layout Description +ChessDiagram This template supports chess position diagrams made with the + program +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "XBoard" +target "http://en.wikipedia.org/wiki/XBoard" + +\end_inset + + +\series default +. +\end_layout + +\begin_layout Description +Date This inserts the date in the form +\emph on +Day-Month-Year +\emph default +. + This is a date inserted as external material: +\begin_inset External + template Date + filename . + +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Remove the protected space when bug 4398 is fixed! +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +The date is not shown within LyX, only in the output. + There are two other methods of inserting a date: Via menu +\family sans +Insert\SpecialChar \menuseparator +Date +\family default + and with the LaTeX command +\series bold + +\backslash +today +\series default + as TeX-Code. + The different methods are compared in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Comparison-of-the" + +\end_inset + +. +\end_layout + +\begin_layout Description +Dia This template supports diagrams created with the program +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "Dia" +target "http://en.wikipedia.org/wiki/Dia_(software)" + +\end_inset + + +\series default +. +\end_layout + +\begin_layout Description +LilyPond This template is used for music notation typeset with the program +\begin_inset Newline linebreak +\end_inset + + +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "LilyPond" +target "http://en.wikipedia.org/wiki/LilyPond" + +\end_inset + + +\series default +. +\end_layout + +\begin_layout Description +PDFPages With this template you can insert PDF documents to your document. + To insert certain or all pages of a PDF, use the +\emph on +pages +\emph default + option in the +\family sans +Option +\family default + field in the +\family sans +LaTeX and LyX options +\family default + tab according to the template description in the dialog. + When no +\emph on +pages +\emph default + option is given, only the first page of the PDF will be inserted. +\end_layout + +\begin_layout Description +RasterImage This can be used for bitmap images. + Nearly all popular image formats are supported. + The image can be treated in the +\family sans +External material +\family default + dialog like the images that are usually included via the +\family sans +Graphics +\family default + dialog as described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Graphics-Dialog" + +\end_inset + +. + The difference is that only raster images are allowed; that means that + PDF and EPS-images are not supported. +\end_layout + +\begin_layout Description +XFig This template supports images created with the program +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "Xfig" +target "http://en.wikipedia.org/wiki/Xfig" + +\end_inset + + +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement h +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Comparison-of-the" + +\end_inset + +Comparison of the date input methods. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Document format +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family sans +External Material\SpecialChar \menuseparator +Date +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family sans +Insert\SpecialChar \menuseparator +Date +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +command +\series bold + +\backslash +today +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +LyX +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +as inset box +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +as date +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +as TeX-Code inset box +\end_layout + +\end_inset + + + \begin_inset Text @@ -35151,7 +37208,7 @@ LaTeX-packages ! endfloat \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "wrapfig" +key "footmisc" \end_inset @@ -35160,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 @@ -35172,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 @@ -35197,7 +37241,7 @@ vspace{4mm} \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "footmisc" +key "hypcap" \end_inset @@ -35206,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 @@ -35218,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 @@ -35230,7 +37274,7 @@ LaTeX-packages ! footmisc \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "hypcap" +key "hyperref" \end_inset @@ -35239,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 @@ -35263,7 +37307,7 @@ LaTeX-packages ! hyperref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "hyperref" +key "KOMA-Script" \end_inset @@ -35272,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 @@ -35284,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 @@ -35296,7 +37340,7 @@ LaTeX-packages ! hyperref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "KOMA-Script" +key "listings" \end_inset @@ -35305,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 @@ -35317,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 @@ -35329,7 +37373,7 @@ LaTeX-packages ! KOMA-Script \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "listings" +key "marginnote" \end_inset @@ -35338,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 @@ -35350,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 @@ -35362,7 +37406,7 @@ LaTeX-packages ! listings \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "marginnote" +key "lettrine" \end_inset @@ -35371,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 @@ -35504,7 +37556,7 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href name "refstyle" -target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf" +target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf" \end_inset