]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-modules.tex
tex2lyx/Preamble.cpp: handle \LyX
[lyx.git] / src / tex2lyx / test / test-modules.tex
1 \documentclass[oneside,english]{amsart}
2 \usepackage[T1]{fontenc}
3 \usepackage[latin9]{inputenc}
4 \usepackage{amsthm}
5 \numberwithin{equation}{section} %% Comment out for sequentially-numbered
6 \numberwithin{figure}{section} %% Comment out for sequentially-numbered
7 \providecommand{\theoremname}{Theorem}
8 \theoremstyle{plain}
9 \newtheorem{thm}{\protect\theoremname}
10 \theoremstyle{plain}
11 \newtheorem{lem}[thm]{Lemma}
12
13 \usepackage{babel}
14
15 \begin{document}
16 This is a dummy file
17
18 It has a theorem, a lemma and a proof.
19
20 The theorem is recognized is a style provided by the module theorems-ams,
21 since the preamble code matches.
22
23 The lemma is not recognized as a command provided by a module, since the
24 preamble code is from an older version of LyX, and modules are only loaded
25 if the preamble code matches (otherwise you could easily get completely
26 different output for some often used names like \textbackslash theorem.
27
28 The proof is recognized as a builtin style provided by the text class.
29
30 \begin{lem}
31 this is a lemma\end{lem}
32 \begin{thm}
33 this is the theorem\end{thm}
34 \begin{proof}
35 this is the proof
36 \end{proof}
37
38 \end{document}