Jean-Marc Lasgouttes wrote:

Yes, please a patch against latest cvs would be welcome.
A patch for /lib/doc/UserGuide.lyx and a changelog entry.
Testing shows that:
* All the sectioning environments may be nested into other environments.
Both lyx-1.4 and latex accepts this. Not all of the sectioning levels seems
 useful to nest, but lower levels like "section*" may be useful when
one feel like putting a heading inside a (big) list item. It was questions about such headings on the user list that got me testing this in the first place.

* An abstract may be nested into other environments, and it also accepts
other environments nested into it. The latter is clearly useful. I am not so sure about the former. But it works well, and may perhaps be useful for creating summaries of items in nested environments.
* A caption can be nested into other environments.  Trouble-free but odd.
  This must be done inside a float, of course.

Lyx also allows nesting of Title, Date and Author.  Latex accepts this,
but nesting the title makes it disappear, and nesting Date and Author
makes them look just like "standard", i.e. they are no longer centered
and the text reverts to normal size.  So I left these as "unnestables"
because it doesn't work very well at all.

Helge Hafting
? doc-no2nb.diff
? libdoc.diff
? skrot
? tmp.diff
Index: ChangeLog
===================================================================
RCS file: /var/cvs/lyx/lyx-devel/lib/doc/ChangeLog,v
retrieving revision 1.43
diff -u -p -r1.43 ChangeLog
--- ChangeLog   9 Dec 2005 15:54:18 -0000       1.43
+++ ChangeLog   15 Dec 2005 10:11:00 -0000
@@ -1,2 +1,13 @@
+2005-12-15  Helge Hafting  <[EMAIL PROTECTED]>
+       * UserGuide.lyx: Corrected information about nesting:
+         - sections etc can be nested into other environments,
+           so removed information about this being impossible.
+         - An abstract can be nested, and other stuff may be nested
+           into it, removed information about this being impossible
+         - A caption can be nested into other paragraphs, removed
+           the "vice versa" indicating this being impossible.
+         - Updated the lists in section "What You Can and Can't Nest"
+           to reflect reality.  
+
 2005-12-09  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
Index: UserGuide.lyx
===================================================================
RCS file: /var/cvs/lyx/lyx-devel/lib/doc/UserGuide.lyx,v
retrieving revision 1.16
diff -u -p -r1.16 UserGuide.lyx
--- UserGuide.lyx       28 Sep 2005 09:40:47 -0000      1.16
+++ UserGuide.lyx       15 Dec 2005 10:11:12 -0000
@@ -1,5 +1,5 @@
 #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
-\lyxformat 244
+\lyxformat 245
 \begin_document
 \begin_header
 \textclass scrbook
@@ -77,7 +77,6 @@
 \paragraph_separation indent
 \defskip medskip
 \quotes_language english
-\quotes_times 2
 \papercolumns 1
 \papersides 2
 \paperpagestyle default
@@ -5870,7 +5869,7 @@ You can only use inlined math in these e
 \end_layout
 
 \begin_layout Itemize
-You cannot do any nesting with these environments.
+You cannot nest other environments into these environments.
 \end_layout
 
 \begin_layout Itemize
@@ -7326,12 +7325,6 @@ could
 should
 \emph default
  only use it at the beginning of the document, after the title.
- Also, don't bother trying to nest 
-\family sans
-Abstract
-\family default
- in anything else or vice versa.
- It won't work.
  The 
 \family sans
 Abstract
@@ -7752,7 +7745,7 @@ You can't really nest things into a 
 \family sans
 Caption
 \family default
- environment or vice versa.
+ environment.
  Additionally, hitting 
 \family sans
 Return
@@ -8335,172 +8328,172 @@ Unnestable Can't nest them.
 \begin_layout Itemize
 
 \family sans
-Part
+Bibliography
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Chapter
+Title
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Section
-\family default
- 
+Author
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Subsection
+Date
+\end_layout
+
+\end_deeper
+\begin_layout Description
+Fully\InsetSpace ~
+Nestable You can nest them.
+ You can nest other things into them.
 \end_layout
 
+\begin_deeper
 \begin_layout Itemize
 
 \family sans
-Subsubsection
+Abstract
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Paragraph
-\family default
- 
+Verse
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Subparagraph
+Quote
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Part*
+Quotation
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Chapter*
+Itemize
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Section*
+Enumerate
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Subsection*
+Description
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Subsubsection*
+List
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Bibliography
+LyX-Code
+\end_layout
+
+\end_deeper
+\begin_layout Description
+Nestable-Inside You can nest them inside of other things.
+ You can't nest anything into them.
 \end_layout
 
+\begin_deeper
 \begin_layout Itemize
 
 \family sans
-Abstract
+Part
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Title
+Chapter
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Author
+Section
+\family default
+ 
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Date
-\end_layout
-
-\end_deeper
-\begin_layout Description
-Fully\InsetSpace ~
-Nestable You can nest them.
- You can nest other things into them.
+Subsection
 \end_layout
 
-\begin_deeper
 \begin_layout Itemize
 
 \family sans
-Verse
+Subsubsection
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Quote
+Paragraph
+\family default
+ 
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Quotation
+Subparagraph
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Itemize
+Part*
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Enumerate
+Chapter*
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-Description
+Section*
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-List
+Subsection*
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-LyX-Code
-\end_layout
-
-\end_deeper
-\begin_layout Description
-Nestable-Inside You can nest them inside of other things.
- You can't nest anything into them.
+Subsubsection*
 \end_layout
 
-\begin_deeper
 \begin_layout Itemize
 
 \family sans
@@ -8520,26 +8513,13 @@ Address
 Address
 \end_layout
 
-\end_deeper
-\begin_layout Standard
-The 
+\begin_layout Itemize
+
 \family sans
 Caption
-\family default
- environment doesn't really fit anywhere, since it's only used inside of
- 
-\family sans
-Table\InsetSpace ~
-Floats
-\family default
- and 
-\family sans
-Figure\InsetSpace ~
-Floats
-\family default
-.
 \end_layout
 
+\end_deeper
 \begin_layout Subsection
 Nesting Other Things: Tables, Math, Floats, etc.
 \begin_inset LatexCommand \label{sec:table-and-fig-nesting}

Reply via email to