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