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