]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-structure.tex
9cae8ca327cf7107bd9c62500a79e6a1ad63c717
[lyx.git] / src / tex2lyx / test / test-structure.tex
1 \documentclass[legalpaper]{article}
2
3 \newenvironment{foo}{==[}{]==}
4
5 \begin{document}
6
7 This document contains all sorts of layouts we are supposed to
8 support, along with weird nestings.
9
10 At time you will see that I use subsubsections in weird places. The
11 intent is just to make sure that I can include a macro-type layout
12 everyzhere it makes sense.
13
14 A normal paragraph
15 \begin{equation}
16 x = \sin y
17 \end{equation}
18 with maths inside it.
19
20 \begin{quote}
21 An environment...
22
23 ... with two paragraphs
24 \end{quote}
25
26 \begin{foo}
27 an unknown environment
28 \end{foo}
29
30
31 \section{A section}
32
33 \section[Hello!]{A section with optional argument}
34
35 \begin{quote}
36 An environment
37 \end{quote}
38
39 \section*{A starred section}
40
41 \begin{figure}
42 \caption{ \emph{\noun{is}} a caption}
43 \end{figure}
44
45 \begin{figure}
46 \caption[s\noun{ho}rt]{this \emph{is} a caption}
47 \end{figure}
48
49 A paragraph\footnote{hello} with a footnote and another
50 one\footnote{hello
51
52 there} with several paragraphs
53
54 some ERT \vspace{1cm} aa
55
56 and another paragraph
57
58 \begin{center}
59 Some centered stuff (does not work)
60 \end{center}
61
62 \begin{quotation}
63 An environment
64
65 \subsubsection*{with a command inside it}
66 \end{quotation}
67
68 \begin{quotation}
69 Another environment
70
71 \begin{quotation}
72 With another one inside it (with same layout)
73
74 [this one even has several paragraphs!]
75 \end{quotation}
76
77 \end{quotation}
78
79 We can also nest enumerations
80
81 \begin{enumerate}
82 \item Item1
83 \begin{enumerate}
84 \item Item1.a
85
86 \item Item1.b (there is  a paragraph break in front of this)
87 \begin{itemize}
88 \item Item1.b.*
89 \item Item1.b.*
90 \end{itemize}
91 \end{enumerate}
92 \item Item2
93 \end{enumerate}
94 \begin{enumerate}
95 \item Item1 (appears as Item3 with bug 5716)
96
97 Normal paragraph in Item1
98
99 \begin{enumerate}
100 \item Item1.a
101 \end{enumerate}
102 \end{enumerate}
103
104 Let's see what happens when normal paragraphs are inserted in lists:
105
106 \begin{itemize}
107 \item the first item
108
109 with some explanatory text under it
110
111 and a second paragraph for good measure
112
113 \subsubsection*{we can even have one as a subsubsection}
114
115 \item the second item
116
117 \item the third item
118
119 \subsubsection*{and a sssection heading inside it (why not?)}
120 \end{itemize}
121
122 What else? Well, we have descriptions:
123 \begin{description}
124 \item[ABC] first item
125 \item[BCD] second one
126 \end{description}
127 labelings:
128 \begin{lyxlist}{00.00.0000}
129 \item [label~1] first item
130 \item [label~2] second item
131 \end{lyxlist}
132 and bibliography:
133 \begin{thebibliography}{9}
134 \bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999)
135 \bibitem{FO2} Walter Müller \emph{The Müller Book}. (2004) 
136 \end{thebibliography}
137
138 \appendix
139
140 \section{This is the Appendix}
141
142 \noindent blabla bla bla
143
144
145 \section{Another Appendix section}
146
147 blub
148
149 Test for missing \textbackslash end\_deeper (file format 278).
150 This must stay at the very end of the document!
151 \begin{itemize}
152 \item par1
153
154 par2
155 \begin{enumerate}
156 \item par1
157
158 par2
159 \end{enumerate}
160
161 \end{itemize}
162
163 \end{document}