+ above the text.
+ The label and the text of the abstract are separated by some extra vertical
+ space.
+ Second, it typesets everything in a smaller font, just as you'd expect.
+ Lastly, it adds a bit of extra vertical space between the abstract and
+ the subsequent text.
+ Well, that's how it will appear on the LyX screen.
+ The appearance in the output depends on the used article or report class.
+\end_layout
+
+\begin_layout Standard
+Starting a new paragraph by hitting
+\family sans
+Return
+\family default
+ does not reset the paragraph environment.
+ The new paragraph will still be in the
+\family sans
+Abstract
+\family default
+ environment.
+ So, you will have to change the paragraph environment yourself when you
+ finish entering the abstract of your document.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float figure
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Graphics
+ filename clipart/Abstract.pdf
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "cap:Paragraph-in-the"
+
+\end_inset
+
+Paragraph in the
+\family sans
+Abstract
+\family default
+ environment
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+We'd love to give you directly an example of the
+\family sans
+Abstract
+\family default
+ environment, but since this document is in the
+\begin_inset Quotes eld
+\end_inset
+
+book
+\begin_inset Quotes erd
+\end_inset
+
+ class, we can't do this.
+ We inserted it therefore as figure
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "cap:Paragraph-in-the"
+
+\end_inset
+
+.
+ If you've never heard of an
+\begin_inset Quotes eld
+\end_inset
+
+abstract
+\begin_inset Quotes erd
+\end_inset
+
+ before, you can safely ignore this environment.
+\end_layout
+
+\begin_layout Subsubsection
+
+\family sans
+Bibliography
+\family default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Bibliography
+\end_layout
+
+\end_inset
+
+
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Biblio_environment"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The
+\family sans
+Bibliography
+\family default
+ environment is used to list references.
+ Technically, you could use this environment anywhere, but you really should
+ only use it at the end of the document.
+ Nesting
+\family sans
+Bibliography
+\family default
+ in anything else or vice versa won't work.
+\end_layout
+
+\begin_layout Standard
+When you first open a
+\family sans
+Bibliography
+\family default
+ environment, LyX adds a large vertical space, followed by the heading
+\begin_inset Quotes eld
+\end_inset
+
+Bibliography
+\begin_inset Quotes erd
+\end_inset
+
+ or
+\begin_inset Quotes eld
+\end_inset
+
+References,
+\begin_inset Quotes erd
+\end_inset
+
+ depending on the document class.
+ The heading is in a large boldface font.
+ Each paragraph of the
+\family sans
+Bibliography
+\family default
+ environment is a bibliography entry.
+ Thus, hitting
+\family sans
+Return
+\family default
+ does not reset the paragraph environment.
+ Each new paragraph is still in the
+\family sans
+Bibliography
+\family default
+ environment.
+\end_layout
+
+\begin_layout Standard
+There is another, usually better way to include references in your document
+ by using a BibTeX database.
+ For more information on that, and for a detailed description of LyX's bibliogra
+phy handling, have a look at in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Bibliography"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Subsection
+LyX
+\family sans
+-Code
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Paragraph ! LyX code
+\end_layout
+
+\end_inset
+
+
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:LyX-Code"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The
+\family sans
+LyX-Code
+\family default
+ environment is another LyX extension.
+ It type-sets text in a typewriter-style font.
+ It also treats the
+\family sans
+Space
+\family default
+ key as a fixed whitespace;
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+In the
+\family sans
+LyX-Code
+\family default
+ environment, the
+\family sans
+Space
+\family default
+ key is treated as a
+\family sans
+Protected
+\begin_inset space ~
+\end_inset
+
+Blank
+\family default
+ instead of an end-of-word marker.
+\end_layout
+
+\end_inset
+
+ this is the only case in which you can type multiple whitespaces in LyX.
+ If you need to insert blank lines, you'll still need to use
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+ (the
+\family typewriter
+break-line
+\family default
+ function).
+
+\family sans
+Return
+\family default
+ breaks paragraphs.
+ Note, however, that
+\family sans
+Return
+\family default
+ does not reset the paragraph environment.
+ So, when you finish using the
+\family sans
+LyX-Code
+\family default
+ environment, you'll need to change the paragraph environment yourself.
+ Also, you can nest the
+\family sans
+LyX-Code
+\family default
+ environment inside of others.
+\end_layout
+
+\begin_layout Standard
+There are a few quirks with this environment:
+\end_layout
+
+\begin_layout Itemize
+You cannot use
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+ at the beginning of a new paragraph (i.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+you can't follow
+\family sans
+Return
+\family default
+ with a
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+).
+\end_layout
+
+\begin_layout Itemize
+You can't follow a
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+ with a
+\family sans
+Space
+\family default
+.
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+Use a
+\family sans
+Return
+\family default
+ to begin a new paragraph, then you can use a
+\family sans
+Space
+\family default
+.
+\end_layout
+
+\begin_layout Itemize
+Or: use
+\begin_inset Info
+type "shortcut"
+arg "space-insert protected"
+\end_inset
+
+ instead.
+\end_layout
+
+\end_deeper
+\begin_layout Itemize
+You can't have an empty paragraph or an empty line.
+ You must put at least one
+\family sans
+Space
+\family default
+ in any line you want blank.
+ Otherwise, LaTeX generates errors.
+\end_layout
+
+\begin_layout Itemize
+You cannot get the typewriter double quotes by typing
+\family sans
+"
+\family default
+ since that will insert
+\emph on
+real
+\emph default
+ quotes.
+ You get the typewriter double quotes with
+\begin_inset Info
+type "shortcut"
+arg "self-insert \""
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+Here is an example:
+\end_layout
+
+\begin_layout LyX-Code
+#include <stdio.h>
+\end_layout
+
+\begin_layout LyX-Code
+
+\end_layout
+
+\begin_layout LyX-Code
+int main(void)
+\end_layout
+
+\begin_layout LyX-Code
+{
+\end_layout
+
+\begin_layout LyX-Code
+ printf("Hello World!
+\backslash
+n");
+\end_layout
+
+\begin_layout LyX-Code
+ return 0;
+\end_layout
+
+\begin_layout LyX-Code
+}
+\end_layout
+
+\begin_layout Standard
+This is just the standard
+\begin_inset Quotes eld
+\end_inset
+
+Hello world!
+\begin_inset Quotes erd
+\end_inset
+
+ program.
+
+\end_layout
+
+\begin_layout Standard
+
+\family sans
+LyX-Code
+\family default
+ has one purpose: to typeset code, such as program source, shell scripts,
+ rc-files, and so on.
+ Use it only in those very special cases where you need to generate text
+ as if you used a typewriter.
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Paragraph environments|)
+\end_layout
+
+\end_inset
+
+ For longer parts of programming code, use the listings inset that is described
+ in the chapter
+\emph on
+Program Code Listings
+\emph default
+ of the
+\emph on
+Embedded
+\begin_inset space ~
+\end_inset
+
+Objects
+\emph default
+ manual.
+\end_layout
+
+\begin_layout Section
+Nesting Environments
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Nesting ! Environments
+\end_layout
+
+\end_inset
+
+
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Nesting"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Introduction
+\end_layout
+
+\begin_layout Standard
+LyX treats text as a unified block with a particular context and specific
+ properties.
+ This allows you to create blocks that inherit some of the properties of
+ another block.
+ For example you have three main points in an outline, but point #2 also
+ has two subpoints.
+ In other words, you have a list inside of another list, with the inner
+ list
+\begin_inset Quotes eld
+\end_inset
+
+attached
+\begin_inset Quotes erd
+\end_inset
+
+ to item #2:
+\end_layout
+
+\begin_layout Enumerate
+one
+\end_layout
+
+\begin_layout Enumerate
+two
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+sublist – item #1
+\end_layout
+
+\begin_layout Enumerate
+sublist – item #2
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+three
+\end_layout
+
+\begin_layout Standard
+You put a list inside a list by nesting one list inside the other.
+ Nesting an environment is quite simple: Select
+\family sans
+Increase
+\begin_inset space ~
+\end_inset
+
+List
+\begin_inset space ~
+\end_inset
+
+Depth
+\family default
+ or
+\family sans
+Decrease
+\begin_inset space ~
+\end_inset
+
+List
+\begin_inset space ~
+\end_inset
+
+Depth
+\family default
+ from the
+\family sans
+Edit
+\family default
+ menu to change the nesting depth of the current paragraph (the status bar
+ will tell you how far you are nested).
+ Instead of the menu, you can also use the toolbar buttons
+\begin_inset Info
+type "icon"
+arg "depth-increment"
+\end_inset
+
+ and
+\begin_inset Info
+type "icon"
+arg "depth-decrement"
+\end_inset
+
+ or the convenient key bindings
+\family sans
+Tab
+\family default
+ and
+\family sans
+Shift-Tab
+\family default
+ or
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+ and
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+ to change the nesting level.
+ The change will work on the current selection if you have made one (allowing
+ you to change the nesting of several paragraphs at once), or the current
+ paragraph.
+\end_layout
+
+\begin_layout Standard
+Note that LyX only changes the nesting depth if it can.
+ If it's invalid to do so, nothing happens if you try to change the depth.
+ Additionally, if you change the depth of one paragraph, it affects the
+ depth of every paragraph nested inside of it.
+\end_layout
+
+\begin_layout Standard
+Nesting isn't limited to lists.
+ In LyX, you can nest just about anything inside anything else, as you're
+ about to find out.
+ This is the real power of nesting paragraph environments.
+\end_layout
+
+\begin_layout Subsection
+What You Can and Can't Nest
+\end_layout
+
+\begin_layout Standard
+Before we fire a list of paragraph environments at you, we need to tell
+ you a little bit more about how nesting works.
+\end_layout
+
+\begin_layout Standard
+The question if nesting a paragraph environment is possible, is a bit more
+ complicated than a simple yes or no.
+ There are three types of paragraph environments:
+\end_layout
+
+\begin_layout Itemize
+Completely unnestable
+\end_layout
+
+\begin_layout Itemize
+Fully nestable, you can nest them inside things and you can also nest other
+ things inside them.
+\end_layout
+
+\begin_layout Itemize
+A third type, you can nest them into other environments, but you can't nest
+ anything into them.
+\end_layout
+
+\begin_layout Standard
+Here's a list of the three types of nesting behavior, and which paragraph
+ environments have them:
+\end_layout
+
+\begin_layout Description
+Unnestable Can't nest them.
+ Can't nest into them.
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+
+\family sans
+Bibliography
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Abstract
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Title
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Author
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Date
+\end_layout
+
+\end_deeper
+\begin_layout Description
+Fully
+\begin_inset space ~
+\end_inset
+
+Nestable You can nest them.
+ You can nest other things into them.
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+
+\family sans
+Verse
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Quote
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Quotation
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Itemize
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Enumerate
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Description
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+List
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+LyX-Code
+\end_layout
+
+\end_deeper
+\begin_layout Description
+Nestable-Inside You can nest them inside other things.
+ You can't nest anything into them.
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+
+\family sans
+Standard
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Part
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Chapter
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Section
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Subsection
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Subsubsection
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Paragraph
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Subparagraph
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Part*
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Chapter*
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Section*
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Subsection*
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Subsubsection*
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Right
+\begin_inset space ~
+\end_inset
+
+Address
+\end_layout
+
+\begin_layout Itemize
+
+\family sans
+Address
+\end_layout
+
+\end_deeper
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Although it is possible to nest numbered section headings like
+\family sans
+Chapter
+\family default
+,
+\family sans
+Section
+\family default
+, etc.
+\begin_inset space ~
+\end_inset
+
+to e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+lists, it is highly recommended not to do this because the aim is to create
+ well structured documents following typesetting guidelines whereas nested
+ section headings violate this.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Nesting Other Things: Tables, Math, Floats, etc.
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Nesting ! Tables etc.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+There are several things that aren't paragraph environments, but which are
+ affected by nesting anyhow.
+ They are:
+\end_layout
+
+\begin_layout Itemize
+equations
+\end_layout
+
+\begin_layout Itemize
+tables
+\end_layout
+
+\begin_layout Itemize
+figures
+\end_layout
+
+\begin_layout Standard
+(
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Figures and tables in
+\family sans
+Floats
+\family default
+ are not affected by this.
+\end_layout
+
+\end_inset
+
+ Have a look at section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Floats"
+
+\end_inset
+
+ for more information about
+\family sans
+Floats
+\family default
+.)
+\end_layout
+
+\begin_layout Standard
+LyX can treat these three objects as either a word or as a paragraph.
+ If a figure, table, or an equation is inline, it goes wherever the paragraph
+ it is in goes.
+\end_layout
+
+\begin_layout Standard
+On the other hand, if you have an equation, figure or table in a
+\begin_inset Quotes eld
+\end_inset
+
+paragraph
+\begin_inset Quotes erd
+\end_inset
+
+ of its own, it behaves just like a
+\begin_inset Quotes eld
+\end_inset
+
+nestable-inside
+\begin_inset Quotes erd
+\end_inset
+
+ paragraph environment.
+ You can nest it into any environment, but you obviously can't nest anything
+ into it.
+\end_layout
+
+\begin_layout Standard
+Here's an example with a table:
+\end_layout
+
+\begin_layout Enumerate
+Item One
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+This is (a) and it's nested.
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+a
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+b
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+d
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+This is (b).
+ The table is actually nested inside (a).
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+Back out again.
+\end_layout
+
+\begin_layout Standard
+If we hadn't nested the table at all, the list would look like this:
+\end_layout
+
+\begin_layout Enumerate
+Item One
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+This is (a) and it's nested.
+\end_layout
+
+\end_deeper
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+a
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+b
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+d
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Enumerate
+This is (b).
+ The table is
+\emph on
+not
+\emph default
+ nested inside (a).
+ In fact, it's not nested at all.
+\end_layout
+
+\begin_layout Enumerate
+Back out again.
+\end_layout
+
+\begin_layout Standard
+Notice how item (b) is not only no longer nested, but is also the first
+ item of a new list!
+\end_layout
+
+\begin_layout Standard
+There's another trap you can fall into: Nesting the table, but not going
+ deep enough.
+ LyX then turns anything after the table into a new sublist.
+\end_layout
+
+\begin_layout Enumerate
+Item One
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+This is (a) and it's nested.
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+a
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+b
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+c
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+d
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Enumerate
+This is (b).
+ The table is actually nested inside Item One, but
+\emph on
+not
+\emph default
+ inside (a).
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+Back out again.
+\end_layout
+
+\begin_layout Standard
+As you can see, item (b) turned into the first item of a new list, but a
+ new list
+\emph on
+inside
+\emph default
+ item 1.
+ The same thing would have happened to a figure or an equation.
+ So, if you nest tables, figures or equations, make sure you go to the right
+ depth!
+\end_layout
+
+\begin_layout Subsection
+Usage and General Features
+\end_layout
+
+\begin_layout Standard
+Speaking of levels, LyX can perform up to a six-fold nesting.
+ In other words,
+\begin_inset Quotes eld
+\end_inset
+
+level #6
+\begin_inset Quotes erd
+\end_inset
+
+ is the innermost possible depth.
+ Here's an example to illustrate what we mean:
+\end_layout
+
+\begin_layout Enumerate
+level #1 – outermost
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+level #2
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+level #3
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+level #4
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+level #5
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+level #6
+\end_layout
+
+\end_deeper
+\end_deeper
+\end_deeper
+\end_deeper
+\end_deeper
+\begin_layout Standard
+There are two exceptions to the six-fold nesting limit, and you can see
+ both of them in the example.
+ Unlike the other fully-nestable environments, you can only perform a four-fold
+ nesting with the
+\family sans
+Enumerate
+\family default
+ and
+\family sans
+Itemize
+\family default
+ environments.
+ For example, if we tried to nest another
+\family sans
+Enumerate
+\family default
+ list inside item
+\begin_inset Quotes eld
+\end_inset
+
+A.
+\begin_inset Quotes erd
+\end_inset
+
+, we would get errors.
+\end_layout
+
+\begin_layout Subsection
+Some Examples
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Nesting ! Examples
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The best way to explain just what you can do with nesting is by illustration.
+ We have several examples of nested environments.
+ In them, we explain how we created the example, so that you can reproduce
+ them.
+\end_layout
+
+\begin_layout Subsubsection
+Example 1: The Six-fold Way and Mixed Nesting
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring MMM
+#1-a This is the outermost level.
+ It's a
+\family sans
+List
+\family default
+ environment.
+\end_layout
+
+\begin_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#2-a This is level #2.
+ We created it by using
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ followed by
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+.
+\end_layout
+
+\begin_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#3-a This is level #3.
+ This time, we just hit
+\family sans
+Return
+\family default
+, then used
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+ twice in a row.
+ We could have also created it the same way as we did the previous level,
+ by hitting
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ followed by
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+.
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+This is actually a
+\family sans
+Standard
+\family default
+ environment, nested inside of
+\begin_inset Quotes eld
+\end_inset
+
+#3-a
+\begin_inset Quotes erd
+\end_inset
+
+.
+ So, it's at level #4.
+ We did this by hitting
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+, then
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+, then changing the paragraph environment to
+\family sans
+Standard
+\family default
+.
+ Do this to create list items with more than one paragraph — it also works
+ for the
+\family sans
+Description
+\family default
+,
+\family sans
+Enumerate
+\family default
+, and
+\family sans
+Itemize
+\family default
+ environments!
+\end_layout
+
+\begin_layout Standard
+Here's another
+\family sans
+Standard
+\family default
+ paragraph, also at level #4, made with just a
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring MMM
+#4-a This is level #4.
+ We hit
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ and changed the paragraph environment back to
+\family sans
+List
+\family default
+.
+ Remember — we can't nest anything inside a
+\family sans
+Standard
+\family default
+ environment, which is why we're still at level #4.
+ However, we
+\emph on
+can
+\emph default
+ keep nesting things inside
+\begin_inset Quotes eld
+\end_inset
+
+#3-a
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
+\begin_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#5-a This is level #5\SpecialChar \ldots{}
+
+\end_layout
+
+\begin_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#6-a \SpecialChar \ldots{}
+and this is level #6.
+ By now, you should know how we made these two.
+\end_layout
+
+\end_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#5-b Back to level #5.
+ Just hit
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ followed by a
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+.
+\end_layout
+
+\end_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#4-b After another
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ followed by a
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+, we're back at level #4.
+\end_layout
+
+\end_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#3-b Back to level #3.
+ By now it should be obvious how we did this.
+\end_layout
+
+\end_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#2-b Back to level #2.
+
+\end_layout
+
+\end_deeper
+\begin_layout Labeling
+\labelwidthstring MMM
+#1-b And last, back to the outermost level, #1.
+ After this sentence, we'll hit
+\family sans
+Return
+\family default
+ and change the paragraph environment back to
+\family sans
+Standard
+\family default
+ to end the list.
+\end_layout
+
+\begin_layout Standard
+We could have also used the
+\family sans
+Description
+\family default
+,
+\family sans
+Quote
+\family default
+,
+\family sans
+Quotation
+\family default
+, or even the
+\family sans
+Verse
+\family default
+ environment in place of the
+\family sans
+List
+\family default
+ environment.
+ The example would have worked exactly the same.
+\end_layout
+
+\begin_layout Subsubsection
+Example 2: Inheritance
+\end_layout
+
+\begin_layout LyX-Code
+This is the LyX-Code environment, at level #1, the outermost
+\end_layout
+
+\begin_layout LyX-Code
+level.
+ Now we'll hit
+\family sans
+Return
+\family default
+, then
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+, after which, we'll change to the
+\family sans
+Enumerate
+\family default
+ environment.
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+This is the
+\family sans
+Enumerate
+\family default
+ environment, at level #2.
+\end_layout
+
+\begin_layout Enumerate
+Notice how the nested
+\family sans
+Enumerate
+\family default
+ not only inherits its margins from its parent environment (
+\family sans
+LyX-Code
+\family default
+), but also inherits its font and spacing!
+\end_layout
+
+\end_deeper
+\begin_layout Standard
+We ended this example by hitting
+\family sans
+Return
+\family default
+.
+ After that, we needed to reset the paragraph environment to
+\family sans
+Standard
+\family default
+ and reset the nesting depth by using
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+ once.
+\end_layout
+
+\begin_layout Subsubsection
+Example 3: Labels, Levels, and the
+\family sans
+Enumerate
+\family default
+ and
+\family sans
+Itemize
+\family default
+ Environments
+\begin_inset Argument
+status collapsed
+
+\begin_layout Plain Layout
+Example #3: Labels, Levels and other list environments
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Enumerate
+This is level #1, in an
+\family sans
+Enumerate
+\family default
+ paragraph environment.
+ We're actually going to nest a bunch of these.
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+This is level #2.
+ We used
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ followed by
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+.
+ Now, what happens if we nest an
+\family sans
+Itemize
+\family default
+ environment inside of this one? It will be at level #3, but what will its
+ label be? An asterisk?
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+No! It's a bullet.
+ This is the
+\emph on
+first
+\emph default
+
+\family sans
+Itemize
+\family default
+ environment, even though it's at level #3.
+ So, its label is a bullet.
+ (We got here by using
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+, then
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+, then changing the environment to
+\family sans
+Itemize
+\family default
+.)
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+Here's level #4, produced using
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+, then
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+.
+ We'll do that again\SpecialChar \ldots{}
+
+\end_layout
+
+\begin_deeper
+\begin_layout Enumerate
+\SpecialChar \ldots{}
+to get to level #5.
+ This time, however, we also changed the paragraph environment back to
+\family sans
+Enumerate
+\family default
+.
+ Notice the type of numbering, it is
+\emph on
+lowercase Roman
+\emph default
+, because we are in the
+\emph on
+thirdfold
+\emph default
+
+\family sans
+Enumerate
+\family default
+ environment (i.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+ it is an
+\family sans
+Enumerate
+\family default
+ inside an
+\family sans
+Enumerate
+\family default
+ inside an
+\family sans
+Enumerate
+\family default
+).
+\end_layout
+
+\begin_layout Enumerate
+What happens if we
+\emph on
+don't
+\emph default
+ change the paragraph environment, but decrease the nesting depth? What
+ type of numbering does LyX use?
+\end_layout
+
+\begin_layout Enumerate
+Oh, as if you couldn't guess by now, we're just using
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ to keep the current environment and depth but create a new item.
+\end_layout
+
+\begin_layout Enumerate
+Let's use
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+ to decrease the depth after the next
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+.
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+This is level #4.
+ Look what type of label LyX is using!
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+This is level #3.
+ Even though we've changed levels, LyX is still using a lowercase Roman
+ numeral as the label.Why?
+\end_layout
+
+\begin_layout Enumerate
+Because, even though the nesting depth has changed, the paragraph is
+\emph on
+still
+\emph default
+ a thirdfold
+\family sans
+Enumerate
+\family default
+ environment.
+ Notice, however, that LyX
+\emph on
+did
+\emph default
+ reset the counter for the label.
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+Another
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+ sequence, and we're back to level #2.
+ This time, we not only changed the nesting depth, but we also moved back
+ into the twofold-nested
+\family sans
+Enumerate
+\family default
+ environment.
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+The same thing happens if we do another
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+sequence and return to level #1, the outermost level.
+\end_layout
+
+\begin_layout Standard
+Lastly, we reset the environment to
+\family sans
+Standard
+\family default
+.
+ As you can see, the level number doesn't correspond to what type of labeling
+ LyX uses for the
+\family sans
+Enumerate
+\family default
+ and
+\family sans
+Itemize
+\family default
+ environments.
+ The number of other
+\family sans
+Enumerate
+\family default
+ environments surrounding it determines what kind of label LyX uses for
+ an
+\family sans
+Enumerate
+\family default
+ item.
+ The same rule applies for the
+\family sans
+Itemize
+\family default
+ environment, as well.
+\end_layout
+
+\begin_layout Subsubsection
+Example 4: Going Bonkers
+\end_layout
+
+\begin_layout Enumerate
+We're going to go totally nuts now.
+ We won't nest as deep as in the other examples, nor will we go into the
+ same detail with how we did it.
+ (level #1:
+\family sans
+Enumerate
+\family default
+)
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+(
+\family sans
+Return,
+\family default
+
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+
+\family sans
+, Standard
+\family default
+: level #2) We'll stick an encapsulated description of how we created the
+ example in parentheses someplace.
+ For example, the two key bindings are how we changed the depth.
+ The environment name is the name of the current environment.
+ Either before or after this, we'll put in the level.
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+(
+\family sans
+Return, Enumerate
+\family default
+: level #1) This is the next item in the list.
+\end_layout
+
+\begin_deeper
+\begin_layout Verse
+Now we'll add verse.
+\begin_inset Newline newline
+\end_inset
+
+It will get much worse.
+\begin_inset Newline newline
+\end_inset
+
+(
+\family sans
+Return,
+\family default
+
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+
+\family sans
+, Verse
+\family default
+: level #2)
+\end_layout
+
+\begin_layout Verse
+Fiddle dee, Fiddle doo.
+\begin_inset Newline newline
+\end_inset
+
+Bippitey boppitey boo!
+\begin_inset Newline newline
+\end_inset
+
+(
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+
+\family sans
+)
+\end_layout
+
+\begin_layout Verse
+Here comes a table:
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+\begin_inset VSpace 0.3cm
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="2" columns="2">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+one-fish
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+two-fish
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+red-fish
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family roman
+\series medium
+\shape up
+\size normal
+\emph off
+\bar no
+\noun off
+\color none
+blue-fish
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_deeper
+\begin_layout Verse
+(
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+
+\family sans
+, Table,
+\family default
+
+\begin_inset Info
+type "shortcut"
+arg "depth-increment"
+\end_inset
+
+ 3 times,
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+
+\family sans
+, Verse,
+\family default
+
+\begin_inset Info
+type "shortcut"
+arg "depth-decrement"
+\end_inset
+
+)
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+(
+\family sans
+Return, Enumerate
+\family default
+: level #1) This is another item.
+ Note that selecting a
+\family sans
+Table
+\family default
+ resets the nesting depth to level #1, so we increased the nesting depth
+ 3 times to put the table inside the
+\family sans
+Verse
+\family default
+ environment.
+
+\end_layout
+
+\begin_layout Quotation
+We're now ending the
+\family sans
+Enumerate
+\family default
+ list and changing to
+\family sans
+Quotation
+\family default
+.
+ We're still at level #1.
+ We want to show you some of the things you can do by mixing environments.
+ The next set of paragraphs is a
+\begin_inset Quotes eld
+\end_inset
+
+quoted letter.
+\begin_inset Quotes erd
+\end_inset
+
+ We'll nest both the
+\family sans
+Address
+\family default
+ and
+\family sans
+Right
+\begin_inset space ~
+\end_inset
+
+Address
+\family default
+ environments inside of this one, then use another nested
+\family sans
+Quotation
+\family default
+ for the letter body.
+ We'll use
+\begin_inset Info
+type "shortcut"
+arg "break-paragraph inverse"
+\end_inset
+
+ to preserve the depth.
+ Remember that you need to use
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+ to create multiple lines inside the
+\family sans
+Address
+\family default
+ and
+\family sans
+Right
+\begin_inset space ~
+\end_inset
+
+Address
+\family default
+ environments.
+ Here it goes:
+\end_layout
+
+\begin_deeper
+\begin_layout Right Address
+1234 Nowhere Rd.
+\begin_inset Newline newline
+\end_inset
+
+Moosegroin, MT 00100
+\begin_inset Newline newline
+\end_inset
+
+9-6-96
+\end_layout
+
+\begin_layout Address
+Dear Mr.
+\begin_inset space ~
+\end_inset
+
+Fizlewitz:
+\end_layout
+
+\begin_layout Quotation
+We regret to inform you that we cannot fill your order for 50
+\begin_inset space \thinspace{}
+\end_inset
+
+L of compressed methane gas due to circumstances beyond our control.
+ Unfortunately, several of our cows have mysteriously exploded, creating
+ a backlog in our orders for methane.
+ We will place your name on the waiting list and try to fill your order
+ as soon as possible.
+ In the meantime, we thank you for your patience.
+\end_layout
+
+\begin_layout Quotation
+We do, however, now have a special on beef.
+ If you are interested, please return the enclosed pricing and order form
+ with your order, along with payment.
+\end_layout
+
+\begin_layout Quotation
+We thank you again for your patience.
+\end_layout
+
+\begin_layout Address
+Sincerely,
+\begin_inset Newline newline