]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test.lyx.lyx
Updated remaining tex2lyx test cases after commit 12ae7140c26258425b17c8386144e10560e...
[lyx.git] / src / tex2lyx / test / test.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 493
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 framecolor "black"
141 backgroundcolor "none"
142 status open
143
144
145 \begin_layout Standard
146 What are you doing \SpecialChar ldots
147 Dave
148 \end_layout
149
150 \end_inset
151
152 . This is more text.
153 \end_layout
154
155 \begin_layout Section*
156 MySection
157 \end_layout
158
159 \begin_layout Standard
160
161 \begin_inset CommandInset label
162 LatexCommand label
163 name "sec:mysection"
164
165 \end_inset
166
167 This is some 
168 \begin_inset Quotes eld
169 \end_inset
170
171 quoted
172 \begin_inset Quotes erd
173 \end_inset
174
175  text in a new section. I 
176 \begin_inset ERT
177 status collapsed
178
179 \begin_layout Plain Layout
180 {
181 \end_layout
182
183 \end_inset
184
185
186 \begin_inset ERT
187 status collapsed
188
189 \begin_layout Plain Layout
190
191 \backslash
192 em
193 \end_layout
194
195 \end_inset
196
197  am
198 \begin_inset Foot
199 status collapsed
200
201
202 \begin_layout Standard
203 This is a great footnote because: 
204 \end_layout
205
206 \begin_layout Itemize
207 The footnote is not 
208 \emph on
209 emphasized
210 \emph default
211
212 \end_layout
213
214 \begin_layout Itemize
215 The text is 
216 \end_layout
217
218 \begin_layout Standard
219 How cool is that!?
220 \end_layout
221
222 \end_inset
223
224  emphasizing 
225 \begin_inset Quotes eld
226 \end_inset
227
228 text.
229 \end_layout
230
231 \begin_layout Standard
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 Plain Layout
241 }
242 \end_layout
243
244 \end_inset
245
246 . This 
247 \begin_inset space ~
248
249 \end_inset
250
251  is text in a new par\SpecialChar softhyphen
252 agraph.
253 \begin_inset Newline newline
254 \end_inset
255
256  It has \SpecialChar ldots
257 an 
258 \begin_inset Formula $ \alpha $
259 \end_inset
260
261  in it, which is OK\SpecialChar endofsentence
262  I can type special characters
263 \begin_inset Foot
264 status collapsed
265
266
267 \begin_layout Standard
268 i.e., characters which must be escaped
269 \end_layout
270
271 \end_inset
272
273  like & and #.
274 \end_layout
275
276 \begin_layout Standard
277 _ is a neat token. 
278 \begin_inset ERT
279 status collapsed
280
281 \begin_layout Plain Layout
282 % This line won't print!
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \begin_layout Standard
291 Now I 
292 \family sans
293 want 
294 \family typewriter
295 to
296 \family sans
297  write
298 \family default
299  some math in a displayed equation. 
300 \begin_inset Formula \begin{eqnarray*}
301 q^{(i)}_O & = & q^{water}_{O}+dq_{O}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
302 q_{H}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
303 q_{p}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P^{(i+1)}_{deg})
304 \end{eqnarray*}
305 \end_inset
306
307
308 \end_layout
309
310 \begin_layout Standard
311 Here's an itemized list 
312 \end_layout
313
314 \begin_layout Itemize
315 this is an item 
316 \end_layout
317
318 \begin_deeper
319 \begin_layout Enumerate
320 this is a numbered item
321 \end_layout
322
323 \begin_deeper
324 \begin_layout Standard
325 But now I want to write some text. 
326 \end_layout
327
328 \end_deeper
329 \begin_layout Enumerate
330 this is another numbered item
331 \end_layout
332
333 \begin_deeper
334 \begin_layout Standard
335 More text 
336 \end_layout
337
338 \end_deeper
339 \end_deeper
340 \begin_deeper
341 \begin_layout Standard
342 Yet more text
343 \end_layout
344
345 \end_deeper
346 \begin_layout Itemize
347 this is another unnumbered item
348 \end_layout
349
350 \begin_deeper
351 \begin_layout Standard
352 Final text 
353 \end_layout
354
355 \end_deeper
356 \begin_layout Section
357
358 \begin_inset Argument 1
359 status collapsed
360
361
362 \begin_layout Standard
363 hi
364 \end_layout
365
366 \end_inset
367
368 New Section
369 \end_layout
370
371 \begin_layout Standard
372 Here's a 
373 \begin_inset ERT
374 status collapsed
375
376 \begin_layout Plain Layout
377 {
378 \end_layout
379
380 \end_inset
381
382
383 \begin_inset ERT
384 status collapsed
385
386 \begin_layout Plain Layout
387
388 \backslash
389 em
390 \end_layout
391
392 \end_inset
393
394  quotation: 
395 \end_layout
396
397 \begin_layout Quotation
398 Hello there how are you?
399 \end_layout
400
401 \begin_layout Quotation
402 I am fine. Thanks 
403 \end_layout
404
405 \begin_layout Standard
406 This
407 \begin_inset ERT
408 status collapsed
409
410 \begin_layout Plain Layout
411 }
412 \end_layout
413
414 \end_inset
415
416  is a reference to section 
417 \begin_inset CommandInset ref
418 LatexCommand ref
419 reference "sec:mysection"
420
421 \end_inset
422
423  on page 
424 \begin_inset CommandInset ref
425 LatexCommand pageref
426 reference "sec:mysection"
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Standard
434
435 \begin_inset Tabular 
436 <lyxtabular version="3" rows="2" columns="2">
437 <features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
438 <column alignment="left" valignment="top">
439 <column alignment="left" valignment="top">
440 <row>
441 <cell alignment="left" valignment="top" usebox="none">
442 \begin_inset Text
443
444 \begin_layout Standard
445 foo 
446 \end_layout
447
448 \end_inset
449 </cell>
450 <cell alignment="left" valignment="top" usebox="none">
451 \begin_inset Text
452
453 \begin_layout Standard
454 bar 
455 \end_layout
456
457 \end_inset
458 </cell>
459 </row>
460 <row>
461 <cell alignment="left" valignment="top" usebox="none">
462 \begin_inset Text
463
464 \begin_layout Standard
465 bar 
466 \end_layout
467
468 \end_inset
469 </cell>
470 <cell alignment="left" valignment="top" usebox="none">
471 \begin_inset Text
472
473 \begin_layout Standard
474 foo 
475 \end_layout
476
477 \end_inset
478 </cell>
479 </row>
480 </lyxtabular>
481
482 \end_inset
483
484
485 \end_layout
486
487 \begin_layout Standard
488 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 î.
489 \end_layout
490
491 \begin_layout Standard
492 Watch out: ®should be glued to its successor here.
493 \end_layout
494
495 \begin_layout Standard
496 Final Text. 
497 \end_layout
498
499 \end_body
500 \end_document