]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test.ltx
Update tex2lyx test reference after 754cb3d1
[lyx.git] / src / tex2lyx / test / test.ltx
1 % This is a test document for tex2lyx
2 \documentclass[11pt]{article} %some comments
3
4 %comments
5 \def\blah{\blahblah}
6 % And more comments
7
8 %more comments
9 \begin{document}
10
11 \title{Test Document}
12 \maketitle
13 \tableofcontents
14
15 \section{First Section}
16 This {\large a {\small b \tiny c} \huge d} is some text. %Midline comment
17 \framebox[3in][s]{What are you doing \ldots Dave}. This is more text.
18
19 \section*{MySection}
20 \label{sec:mysection}This is some ``quoted'' text in a new section.
21 I {\em am\footnote{This is a great footnote because:
22 \begin{itemize}
23 \item The footnote is not \emph{emphasized}.
24 \item The text is
25 \end{itemize}
26
27 How cool is that!?} emphasizing ``text.
28
29 I keep'' emphasizing}. This ~ is text in a new par\-agraph.\\ It has \ldots
30 an $ \alpha $ in it, which is OK\@. I can type special
31 characters\footnote{i.e., characters which must be escaped}
32 like \& and \#.
33
34 \_ is a neat token.
35 % This line won't print!
36
37 Now I \textsf{want \texttt{to} write} some math in a displayed equation.
38 \begin{eqnarray*}
39 q^{(i)}_O & = & q^{water}_{O}+dq_{O}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
40 q_{H}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
41 q_{p}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P^{(i+1)}_{deg})
42 \end{eqnarray*}
43
44 Here's an itemized list
45 \begin{itemize}
46 \item this is an item
47 \begin{enumerate}
48 \item this is a numbered item
49
50 But now I want to write some text.
51 \item this is another numbered item
52
53 More text
54 \end{enumerate}
55 Yet more text
56
57 \item this is another unnumbered item
58
59 Final text
60 \end{itemize}
61
62 \section[hi]{New Section}
63 Here's a {\em quotation:
64 \begin{quotation}
65 Hello there how are you?
66
67 I am fine. Thanks
68 \end{quotation}
69
70 This} is a reference to section \ref{sec:mysection} on page
71 \pageref{sec:mysection}.
72
73 \begin{tabular}{ll}
74 foo & bar \\
75 bar & foo
76 \end{tabular}
77
78 Let's try a few unicode characters: the (R) symbol \textregistered
79 (and the same one with braces \textregistered{} and a space after) or
80 maybe an accented a \'{a} or this one \'a or this \^\i.
81
82 Watch out: \textregistered should be glued to its successor here.
83
84 Final Text.
85 \end{document}
86
87
88