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