+Notes
+\begin_inset Quotes erd
+\end_inset
+
+ into the German
+\begin_inset Quotes eld
+\end_inset
+
+Anmerkungen
+\begin_inset Quotes erd
+\end_inset
+
+:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+renewcommand{
+\backslash
+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 CommandInset ref
+LatexCommand ref
+reference "sub:Footnote-Numbering"
+
+\end_inset
+
+; just replace the command
+\series bold
+
+\backslash
+thefootnote
+\series default
+ by
+\series bold
+
+\backslash
+theendnote
+\series default
+.
+ To reset the endnote number use the command
+\series bold
+
+\backslash
+@addtoreset
+\series default
+ as described in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Footnote-Numbering"
+
+\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
+\series bold
+
+\backslash
+endnotemark[number]
+\series default
+ similar to the command
+\series bold
+
+\backslash
+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 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
+
+\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
+For various further footnote formatting issues have a look at LaTeX-books,
+
+\begin_inset CommandInset citation
+LatexCommand cite
+key "latexcompanion,latexguide,latexbook"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Section
+Margin Notes
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Notes ! Margin Notes
+\end_layout
+
+\end_inset
+
+
+\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 ~
+\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
+ red
+\family roman
+\series medium
+label
+\begin_inset Quotes eld
+\end_inset
+
+margin
+\begin_inset Quotes erd
+\end_inset
+
+ appears where you can enter the text of the margin note.
+\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
+
+
+\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_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
+
+
+\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
+
+
+\series bold
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\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.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To return to the default placement insert the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+normalmarginpar
+\end_layout
+
+\begin_layout Standard
+in TeX-Code.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+normalmarginpar
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\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
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\family roman
+\series medium
+
+\begin_inset Marginal
+status open
+
+\begin_layout Plain Layout
+AVeryLongMarginParWord that isn't hyphenated.
+\end_layout
+
+\end_inset
+
+
+\family default
+\series default
+ Similar to the case described in section
+\begin_inset space ~
+\end_inset
+
+
+\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 Marginal
+status open
+
+\begin_layout Plain Layout
+\begin_inset space \hspace*{}
+\length 0pt
+\end_inset
+
+AVeryLongMarginParWord that is hyphenated.
+\end_layout
+
+\end_inset
+
+
+\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
+
+\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
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+ifmarginnote
+\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
+marginnote
+\series default
+ is installed.
+\end_layout
+
+\end_inset
+
+
+\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
+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 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
+
+\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