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