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