]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test-structure.tex
start using FileName::exists()
[lyx.git] / src / tex2lyx / test-structure.tex
1 \documentclass{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{A figure}
43 \end{figure}
44
45 A paragraph\footnote{hello} with a footnote and another
46 one\footnote{hello
47
48 there} with several paragraphs
49
50 some ERT \vspace{1cm} aa
51
52 and another paragraph
53
54 \begin{center}
55 Some centered stuff (does not work)
56 \end{center}
57
58 \begin{quotation}
59 An environment
60
61 \subsubsection*{with a command inside it}
62 \end{quotation}
63
64 \begin{quotation}
65 Another environment
66
67 \begin{quotation}
68 With another one inside it (with same layout)
69
70 [this one even has several paragraphs!]
71 \end{quotation}
72
73 \end{quotation}
74
75 We can also nest enumerations
76
77 \begin{enumerate}
78 \item Item1
79 \begin{enumerate}
80 \item Item1.a
81
82 \item Item1.b (there is  a paragraph break in front of this)
83 \begin{itemize}
84 \item Item1.b.*
85 \item Item1.b.*
86 \end{itemize}
87 \end{enumerate}
88 \item Item2
89 \end{enumerate}
90
91 Let's see what happens when normal paragraphs are inserted in lists:
92
93 \begin{itemize}
94 \item the first item
95
96 with some explanatory text under it
97
98 and a second paragraph for good measure
99
100 \subsubsection*{we can even have one as a subsubsection}
101
102 \item the second item
103
104 \item the third item
105
106 \subsubsection*{and a sssection heading inside it (why not?)}
107 \end{itemize}
108
109 What else? Well, we have descriptions:
110 \begin{description}
111 \item[A] first item
112 \item[B] second one
113 \end{description}
114
115 or even bibliography
116 \begin{thebibliography}{9}
117 \bibitem{FOO} Edward Bar. \emph{The Foo Book}. (1999)
118 \end{thebibliography}
119
120 \end{document}