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