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