]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-modules.lyx.lyx
tex2lyx/Preamble.cpp: handle \LyX
[lyx.git] / src / tex2lyx / test / test-modules.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 495
3 \begin_document
4 \begin_header
5 \origin roundtrip
6 \textclass amsart
7 \begin_preamble
8 \numberwithin{equation}{section} %% Comment out for sequentially-numbered
9 \numberwithin{figure}{section} %% Comment out for sequentially-numbered
10 \providecommand{\theoremname}{Theorem}
11 \theoremstyle{plain}
12 \newtheorem{lem}[thm]{Lemma}
13
14 \usepackage{babel}
15
16
17
18 \end_preamble
19 \use_default_options false
20 \begin_modules
21 theorems-ams
22 \end_modules
23 \maintain_unincluded_children false
24 \language english
25 \language_package default
26 \inputencoding iso8859-15
27 \fontencoding T1
28 \font_roman default
29 \font_sans default
30 \font_typewriter default
31 \font_math auto
32 \font_default_family default
33 \use_non_tex_fonts false
34 \font_sc false
35 \font_osf false
36 \font_sf_scale 100
37 \font_tt_scale 100
38 \graphics default
39 \default_output_format default
40 \output_sync 0
41 \bibtex_command default
42 \index_command default
43 \paperfontsize default
44 \spacing single
45 \use_hyperref false
46 \papersize default
47 \use_geometry false
48 \use_package amsmath 1
49 \use_package amssymb 0
50 \use_package cancel 0
51 \use_package esint 1
52 \use_package mathdots 0
53 \use_package mathtools 0
54 \use_package mhchem 0
55 \use_package stackrel 0
56 \use_package stmaryrd 0
57 \use_package undertilde 0
58 \cite_engine basic
59 \cite_engine_type default
60 \biblio_style plain
61 \use_bibtopic false
62 \use_indices false
63 \paperorientation portrait
64 \suppress_date false
65 \justification true
66 \use_refstyle 0
67 \index Index
68 \shortcut idx
69 \color #008000
70 \end_index
71 \secnumdepth 3
72 \tocdepth 3
73 \paragraph_separation indent
74 \paragraph_indentation default
75 \quotes_language english
76 \papercolumns 1
77 \papersides 1
78 \paperpagestyle default
79 \tracking_changes false
80 \output_changes false
81 \html_math_output 0
82 \html_css_as_file 0
83 \html_be_strict false
84 \end_header
85
86 \begin_body
87
88 \begin_layout Standard
89 This is a dummy file
90 \end_layout
91
92 \begin_layout Standard
93 It has a theorem, a lemma and a proof.
94 \end_layout
95
96 \begin_layout Standard
97 The theorem is recognized is a style provided by the module theorems-ams, since the preamble code matches.
98 \end_layout
99
100 \begin_layout Standard
101 The lemma is not recognized as a command provided by a module, since the preamble code is from an older version of LyX, and modules are only loaded if the preamble code matches (otherwise you could easily get completely different output for some often used names like 
102 \backslash
103 theorem.
104 \end_layout
105
106 \begin_layout Standard
107 The proof is recognized as a builtin style provided by the text class.
108 \end_layout
109
110 \begin_layout Standard
111
112 \begin_inset ERT
113 status collapsed
114
115 \begin_layout Plain Layout
116
117 \backslash
118 begin{lem}
119 \end_layout
120
121 \end_inset
122
123  this is a lemma
124 \begin_inset ERT
125 status collapsed
126
127 \begin_layout Plain Layout
128
129 \backslash
130 end{lem}
131 \end_layout
132
133 \end_inset
134
135  
136 \end_layout
137
138 \begin_layout Theorem
139 this is the theorem
140 \end_layout
141
142 \begin_layout Proof
143 this is the proof 
144 \end_layout
145
146 \end_body
147 \end_document