]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-structure.tex
ba4bbce72415ffd10e9f449c230ab01e59fb7181
[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,french,german,english,dummyoption]{article}
4 \usepackage[latin9]{inputenc}
5 \usepackage{color}
6 \usepackage{rotfloat}
7 \usepackage{wrapfig}
8
9 \makeatletter
10
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
12 \pdfpageheight\paperheight
13 \pdfpagewidth\paperwidth
14
15 \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
16 \newcommand{\noun}[1]{\textsc{#1}}
17 %% Because html converters don't know tabularnewline
18 \providecommand{\tabularnewline}{\\}
19
20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
21 \newenvironment{lyxlist}[1]
22 {\begin{list}{}
23 {\settowidth{\labelwidth}{#1}
24  \setlength{\leftmargin}{\labelwidth}
25  \addtolength{\leftmargin}{\labelsep}
26  \renewcommand{\makelabel}[1]{##1\hfil}}}
27 {\end{list}}
28 \newcommand{\strong}[1]{\textbf{#1}}
29
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
31 \newenvironment{foo}{==[}{]==}
32
33 \usepackage{fixltx2e} % this should cause the fixltx2e module to be loaded
34
35 \date{}
36
37 \@ifundefined{showcaptionsetup}{}{%
38  \PassOptionsToPackage{caption=false}{subfig}}
39 \usepackage{subfig}
40 \makeatother
41
42 \usepackage{babel}
43 \addto\extrasfrench{%
44    \providecommand{\og}{\leavevmode\flqq~}%
45    \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
46 }
47
48 \begin{document}
49
50 \title{Title}
51
52 % this should be recognized as empty date:
53 \date{}
54
55 \maketitle
56 This document contains all sorts of layouts we are supposed to
57 support, along with weird nestings.
58
59 At time you will see that I use subsubsections in weird places. The
60 intent is just to make sure that I can include a macro-type layout
61 everyzhere it makes sense.
62
63 A normal paragraph
64 \begin{equation}
65 x = \sin y
66 \end{equation}
67 with maths inside it.
68
69 \begin{quote}
70 An environment...
71
72 ... with two paragraphs
73 \end{quote}
74
75 \begin{foo}
76 an unknown environment
77 \end{foo}
78
79
80 \section{A section}
81
82 \section[Hello!]{A section with optional argument}
83
84 This causes the \strong{logikalmkup} module to be loaded.
85
86 \begin{quote}
87 An environment
88 \end{quote}
89
90 \section*{A starred section for floats}
91
92 \begin{figure}
93 \caption{ \emph{\noun{is}} a caption}
94 \end{figure}
95
96 \begin{figure}
97 \caption[s\noun{ho}rt]{this \emph{is} a caption}
98 \end{figure}
99
100 \begin{sidewaystable*}
101 \caption{rotated table, spanning all columns}
102
103 \centering{}%
104 \begin{tabular}{|c|c|}
105 \hline 
106 a  & b\tabularnewline
107 \hline 
108 \hline 
109 d  & c\tabularnewline
110 \hline 
111 \end{tabular}
112 \end{sidewaystable*}
113
114 \begin{wrapfigure}[4]{L}[2ex]{0.5\columnwidth}%
115 \begin{centering}
116 fdgsdfdh
117 \par\end{centering}
118
119 \caption{test1}
120 \end{wrapfigure}%
121 \LyX{} is a document preparation system. It excels at letting you
122 create complex technical and scientific articles with mathematics,
123 cross-references, bibliographies, indices, etc. It is very good at
124 documents of any length in which the usual processing abilities are
125 required: automatic sectioning and pagination, spell checking, and
126 so forth. It can also be used to write a letter to your mom, though
127 granted, there are probably simpler programs available for that. It
128 is definitely not the best tool for creating banners, flyers, or advertisements
129 (we'll explain why later), though with some effort all these can be
130 done, too.
131
132 \begin{wrapfigure}{o}{0.5\columnwidth}%
133 \begin{centering}
134 fdgs
135 \par\end{centering}
136
137 \caption{test2}
138 \end{wrapfigure}%
139 \LyX{} is a document preparation system. It excels at letting you
140 create complex technical and scientific articles with mathematics,
141 cross-references, bibliographies, indices, etc. It is very good at
142 documents of any length in which the usual processing abilities are
143 required: automatic sectioning and pagination, spell checking, and
144 so forth. It can also be used to write a letter to your mom, though
145 granted, there are probably simpler programs available for that. It
146 is definitely not the best tool for creating banners, flyers, or advertisements
147 (we'll explain why later), though with some effort all these can be
148 done, too.
149
150 \begin{wraptable}{i}[0.05\textwidth]{5ex}%
151 \caption{fdg}
152
153
154 \centering{}dfgd\end{wraptable}%
155 \LyX{} is a document preparation system. It excels at letting you
156 create complex technical and scientific articles with mathematics,
157 cross-references, bibliographies, indices, etc. It is very good at
158 documents of any length in which the usual processing abilities are
159 required: automatic sectioning and pagination, spell checking, and
160 so forth. It can also be used to write a letter to your mom, though
161 granted, there are probably simpler programs available for that. It
162 is definitely not the best tool for creating banners, flyers, or advertisements
163 (we'll explain why later), though with some effort all these can be
164 done, too.
165
166 \begin{table}
167 \caption{lkälöä}
168
169
170 \subfloat[ölkälö]{
171
172 klöä}
173
174 \end{table}
175
176
177 \begin{figure}
178 \subfloat[te\%st]{sub\textcolor{red}{fig}u\%re 1
179
180 }
181
182 \hfill{} \subfloat[]{subfigure 2ö
183
184 }
185
186 \subfloat{subfigure 3}
187
188 \caption{figure caption}
189
190
191 strange usage, but valid 
192 \end{figure}
193
194
195 \subsection{Some paragraph stuff}
196
197 A paragraph\footnote{hello} with a footnote and another
198 one\footnote{hello
199
200 there} with several paragraphs \vspace{1cm} aa
201
202 and another paragraph
203
204 \begin{center}
205 Some centered stuff
206 \end{center}
207
208 \begin{quotation}
209 An environment
210
211 \subsubsection*{with a command inside it}
212 \end{quotation}
213
214 \begin{quotation}
215 Another environment
216
217 \begin{quotation}
218 With another one inside it (with same layout)
219
220 [this one even has several paragraphs!]
221 \end{quotation}
222
223 \end{quotation}
224
225 We can also nest enumerations
226
227 \begin{enumerate}
228 \item Item1
229 \begin{enumerate}
230 \item Item1.a
231
232 \item Item1.b (there is  a paragraph break in front of this)
233 \begin{itemize}
234 \item Item1.b.*
235 \item Item1.b.*
236 \end{itemize}
237 \end{enumerate}
238 \item Item2
239 \end{enumerate}
240 \begin{enumerate}
241 \item Item1 (appears as Item3 with bug 5716)
242
243 Normal paragraph in Item1
244
245 \begin{enumerate}
246 \item Item1.a
247 \end{enumerate}
248 \end{enumerate}
249
250 Let's see what happens when normal paragraphs are inserted in lists:
251
252 \begin{itemize}
253 \item the first item
254
255 with some explanatory text under it
256
257 and a second paragraph for good measure
258
259 \subsubsection*{we can even have one as a subsubsection}
260
261 \item the second item
262
263 \item the third item
264
265 \subsubsection*{and a sssection heading inside it (why not?)}
266 \end{itemize}
267
268 What else? Well, we have descriptions:
269 \begin{description}
270 \item[ABC] first item
271 \item[BCD] second one
272 \end{description}
273 labelings:
274 \begin{lyxlist}{00.00.0000}
275 \item [label~1] first item
276 \item [label~2] second item
277 \end{lyxlist}
278 and bibliography:
279 \begin{thebibliography}{9}
280 \bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999)
281 \bibitem{FO2} Walter Müller \emph{The Müller Book}. (2004) 
282 \end{thebibliography}
283
284 \appendix
285
286 \section{This is the Appendix}
287
288 \noindent blabla bla bla
289
290 switch to german:\selectlanguage{german}
291 Hallo!
292 \foreignlanguage{french}{some \emph{french}}
293 back to english:\selectlanguage{newzealand}
294 and some nested \foreignlanguage{francais}{french \foreignlanguage{german}{nested
295 \emph{german}} french} english stuff.
296 Note that we both used \texttt{french} and the \texttt{francais} alias for the
297 french text, but for some reason this does not work with the
298 \texttt{newzealand} alias and \texttt{english} for english text.
299
300 \section{Another Appendix section}
301
302 blub
303
304 Test for missing \textbackslash end\_deeper (file format 278).
305 This must stay at the very end of the document!
306 \begin{itemize}
307 \item par1
308
309 par2
310 \begin{enumerate}
311 \item par1
312
313 par2
314 \end{enumerate}
315
316 \end{itemize}
317
318 \end{document}