X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest-structure.tex;h=dc1ea29b23b28dc046873801d1d4284e908965e0;hb=309c75046e71cc78f1968cff8ee10aaae1a62af7;hp=d48767b953e975bd1f257a5c06041b5c5c09eb58;hpb=1c601f24776e2f63b783eabd2fe043f19c34a511;p=lyx.git diff --git a/src/tex2lyx/test-structure.tex b/src/tex2lyx/test-structure.tex index d48767b953..dc1ea29b23 100644 --- a/src/tex2lyx/test-structure.tex +++ b/src/tex2lyx/test-structure.tex @@ -1,18 +1,21 @@ \documentclass{article} +\newenvironment{foo}{==[}{]==} + \begin{document} This document contains all sorts of layouts we are supposed to support, along with weird nestings. +At time you will see that I use subsubsections in weird places. The +intent is just to make sure that I can include a macro-type layout +everyzhere it makes sense. A normal paragraph - -Another one -\begin{equation} -x = \sin y -\end{equation} -with maths inside +\begin{equation} +x = \sin y +\end{equation} +with maths inside it. \begin{quote} An environment... @@ -40,7 +43,7 @@ An environment \end{figure} A paragraph\footnote{hello} with a footnote and another -one\footnote{hello +one\footnote{hello there} with several paragraphs @@ -55,7 +58,7 @@ Some centered stuff (does not work) \begin{quotation} An environment -\section*{with a command inside it} +\subsubsection*{with a command inside it} \end{quotation} \begin{quotation} @@ -85,4 +88,33 @@ We can also nest enumerations \item Item2 \end{enumerate} +Let's see what happens when normal paragraphs are inserted in lists: + +\begin{itemize} +\item the first item + +with some explanatory text under it + +and a second paragraph for good measure + +\subsubsection*{we can even have one as a subsubsection} + +\item the second item + +\item the third item + +\subsubsection*{and a sssection heading inside it (why not?)} +\end{itemize} + +What else? Well, we have descriptions: +\begin{description} +\item[A] first item +\item[B] second one +\end{description} + +or even bibliography +\begin{thebibliography}{9} +\bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999) +\end{thebibliography} + \end{document}