]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test.lyx.lyx
Update tex2lyx and tests after 306b136c
[lyx.git] / src / tex2lyx / test / test.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 490
3 \begin_document
4 \begin_header
5 \origin roundtrip
6 \textclass article
7 \begin_preamble
8 % This is a test document for tex2lyx
9 %some comments
10
11 %comments
12 \def\blah{\blahblah}
13 % And more comments
14
15 %more comments
16
17 \end_preamble
18 \use_default_options false
19 \maintain_unincluded_children false
20 \language english
21 \language_package none
22 \inputencoding auto
23 \fontencoding default
24 \font_roman default
25 \font_sans default
26 \font_typewriter default
27 \font_math auto
28 \font_default_family default
29 \use_non_tex_fonts false
30 \font_sc false
31 \font_osf false
32 \font_sf_scale 100
33 \font_tt_scale 100
34 \graphics default
35 \default_output_format default
36 \output_sync 0
37 \bibtex_command default
38 \index_command default
39 \paperfontsize 11
40 \spacing single
41 \use_hyperref false
42 \papersize default
43 \use_geometry false
44 \use_package amsmath 1
45 \use_package amssymb 0
46 \use_package cancel 0
47 \use_package esint 1
48 \use_package mathdots 0
49 \use_package mathtools 0
50 \use_package mhchem 0
51 \use_package stackrel 0
52 \use_package stmaryrd 0
53 \use_package undertilde 0
54 \cite_engine basic
55 \cite_engine_type default
56 \biblio_style plain
57 \use_bibtopic false
58 \use_indices false
59 \paperorientation portrait
60 \suppress_date false
61 \justification true
62 \use_refstyle 0
63 \index Index
64 \shortcut idx
65 \color #008000
66 \end_index
67 \secnumdepth 3
68 \tocdepth 3
69 \paragraph_separation indent
70 \paragraph_indentation default
71 \quotes_language english
72 \papercolumns 1
73 \papersides 1
74 \paperpagestyle default
75 \tracking_changes false
76 \output_changes false
77 \html_math_output 0
78 \html_css_as_file 0
79 \html_be_strict false
80 \end_header
81
82 \begin_body
83
84 \begin_layout Title
85 Test Document
86 \end_layout
87
88 \begin_layout Standard
89
90 \begin_inset CommandInset toc
91 LatexCommand tableofcontents
92
93 \end_inset
94
95
96 \end_layout
97
98 \begin_layout Section
99 First Section
100 \end_layout
101
102 \begin_layout Standard
103 This 
104 \size large
105
106 \size small
107
108 \size tiny
109 c
110 \size large
111  
112 \size huge
113 d
114 \size default
115  is some text. 
116 \begin_inset ERT
117 status collapsed
118
119 \begin_layout Plain Layout
120 %Midline comment
121 \end_layout
122
123 \end_inset
124
125
126 \begin_inset Box Boxed
127 position "c"
128 hor_pos "s"
129 has_inner_box 0
130 inner_pos "c"
131 use_parbox 0
132 use_makebox 0
133 width "3in"
134 special "none"
135 height "1in"
136 height_special "totalheight"
137 thickness "0.4pt"
138 separation "3pt"
139 shadowsize "4pt"
140 status open
141
142
143 \begin_layout Standard
144 What are you doing \SpecialChar ldots
145 Dave
146 \end_layout
147
148 \end_inset
149
150 . This is more text.
151 \end_layout
152
153 \begin_layout Section*
154 MySection
155 \end_layout
156
157 \begin_layout Standard
158
159 \begin_inset CommandInset label
160 LatexCommand label
161 name "sec:mysection"
162
163 \end_inset
164
165 This is some 
166 \begin_inset Quotes eld
167 \end_inset
168
169 quoted
170 \begin_inset Quotes erd
171 \end_inset
172
173  text in a new section. I 
174 \begin_inset ERT
175 status collapsed
176
177 \begin_layout Plain Layout
178 {
179 \end_layout
180
181 \end_inset
182
183
184 \begin_inset ERT
185 status collapsed
186
187 \begin_layout Plain Layout
188
189 \backslash
190 em
191 \end_layout
192
193 \end_inset
194
195  am
196 \begin_inset Foot
197 status collapsed
198
199
200 \begin_layout Standard
201 This is a great footnote because: 
202 \end_layout
203
204 \begin_layout Itemize
205 The footnote is not 
206 \emph on
207 emphasized
208 \emph default
209
210 \end_layout
211
212 \begin_layout Itemize
213 The text is 
214 \end_layout
215
216 \begin_layout Standard
217 How cool is that!?
218 \end_layout
219
220 \end_inset
221
222  emphasizing 
223 \begin_inset Quotes eld
224 \end_inset
225
226 text.
227 \end_layout
228
229 \begin_layout Standard
230 I keep
231 \begin_inset Quotes erd
232 \end_inset
233
234  emphasizing
235 \begin_inset ERT
236 status collapsed
237
238 \begin_layout Plain Layout
239 }
240 \end_layout
241
242 \end_inset
243
244 . This 
245 \begin_inset space ~
246
247 \end_inset
248
249  is text in a new par\SpecialChar softhyphen
250 agraph.
251 \begin_inset Newline newline
252 \end_inset
253
254  It has \SpecialChar ldots
255 an 
256 \begin_inset Formula $ \alpha $
257 \end_inset
258
259  in it, which is OK\SpecialChar endofsentence
260  I can type special characters
261 \begin_inset Foot
262 status collapsed
263
264
265 \begin_layout Standard
266 i.e., characters which must be escaped
267 \end_layout
268
269 \end_inset
270
271  like & and #.
272 \end_layout
273
274 \begin_layout Standard
275 _ is a neat token. 
276 \begin_inset ERT
277 status collapsed
278
279 \begin_layout Plain Layout
280 % This line won't print!
281 \end_layout
282
283 \end_inset
284
285
286 \end_layout
287
288 \begin_layout Standard
289 Now I 
290 \family sans
291 want 
292 \family typewriter
293 to
294 \family sans
295  write
296 \family default
297  some math in a displayed equation. 
298 \begin_inset Formula \begin{eqnarray*}
299 q^{(i)}_O & = & q^{water}_{O}+dq_{O}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
300 q_{H}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
301 q_{p}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P^{(i+1)}_{deg})
302 \end{eqnarray*}
303 \end_inset
304
305
306 \end_layout
307
308 \begin_layout Standard
309 Here's an itemized list 
310 \end_layout
311
312 \begin_layout Itemize
313 this is an item 
314 \end_layout
315
316 \begin_deeper
317 \begin_layout Enumerate
318 this is a numbered item
319 \end_layout
320
321 \begin_deeper
322 \begin_layout Standard
323 But now I want to write some text. 
324 \end_layout
325
326 \end_deeper
327 \begin_layout Enumerate
328 this is another numbered item
329 \end_layout
330
331 \begin_deeper
332 \begin_layout Standard
333 More text 
334 \end_layout
335
336 \end_deeper
337 \end_deeper
338 \begin_deeper
339 \begin_layout Standard
340 Yet more text
341 \end_layout
342
343 \end_deeper
344 \begin_layout Itemize
345 this is another unnumbered item
346 \end_layout
347
348 \begin_deeper
349 \begin_layout Standard
350 Final text 
351 \end_layout
352
353 \end_deeper
354 \begin_layout Section
355
356 \begin_inset Argument 1
357 status collapsed
358
359
360 \begin_layout Standard
361 hi
362 \end_layout
363
364 \end_inset
365
366 New Section
367 \end_layout
368
369 \begin_layout Standard
370 Here's a 
371 \begin_inset ERT
372 status collapsed
373
374 \begin_layout Plain Layout
375 {
376 \end_layout
377
378 \end_inset
379
380
381 \begin_inset ERT
382 status collapsed
383
384 \begin_layout Plain Layout
385
386 \backslash
387 em
388 \end_layout
389
390 \end_inset
391
392  quotation: 
393 \end_layout
394
395 \begin_layout Quotation
396 Hello there how are you?
397 \end_layout
398
399 \begin_layout Quotation
400 I am fine. Thanks 
401 \end_layout
402
403 \begin_layout Standard
404 This
405 \begin_inset ERT
406 status collapsed
407
408 \begin_layout Plain Layout
409 }
410 \end_layout
411
412 \end_inset
413
414  is a reference to section 
415 \begin_inset CommandInset ref
416 LatexCommand ref
417 reference "sec:mysection"
418
419 \end_inset
420
421  on page 
422 \begin_inset CommandInset ref
423 LatexCommand pageref
424 reference "sec:mysection"
425
426 \end_inset
427
428 .
429 \end_layout
430
431 \begin_layout Standard
432
433 \begin_inset Tabular 
434 <lyxtabular version="3" rows="2" columns="2">
435 <features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
436 <column alignment="left" valignment="top">
437 <column alignment="left" valignment="top">
438 <row>
439 <cell alignment="left" valignment="top" usebox="none">
440 \begin_inset Text
441
442 \begin_layout Standard
443 foo 
444 \end_layout
445
446 \end_inset
447 </cell>
448 <cell alignment="left" valignment="top" usebox="none">
449 \begin_inset Text
450
451 \begin_layout Standard
452 bar 
453 \end_layout
454
455 \end_inset
456 </cell>
457 </row>
458 <row>
459 <cell alignment="left" valignment="top" usebox="none">
460 \begin_inset Text
461
462 \begin_layout Standard
463 bar 
464 \end_layout
465
466 \end_inset
467 </cell>
468 <cell alignment="left" valignment="top" usebox="none">
469 \begin_inset Text
470
471 \begin_layout Standard
472 foo 
473 \end_layout
474
475 \end_inset
476 </cell>
477 </row>
478 </lyxtabular>
479
480 \end_inset
481
482
483 \end_layout
484
485 \begin_layout Standard
486 Let's try a few unicode characters: the (R) symbol ®(and the same one with braces ® and a space after) or maybe an accented a á or this one á or this î.
487 \end_layout
488
489 \begin_layout Standard
490 Watch out: ®should be glued to its successor here.
491 \end_layout
492
493 \begin_layout Standard
494 Final Text. 
495 \end_layout
496
497 \end_body
498 \end_document