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