]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-structure.lyx.lyx
Add very simple tex2lyx regression test suite.
[lyx.git] / src / tex2lyx / test / test-structure.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 %% Special footnote code from the package 'stblftnt.sty'
8 %% Author: Robin Fairbairns -- Last revised Dec 13 1996
9 \let\SF@@footnote\footnote
10 \def\footnote{\ifx\protect\@typeset@protect
11     \expandafter\SF@@footnote
12 \else
13     \expandafter\SF@gobble@opt
14 \fi
15 }
16 \expandafter\def\csname SF@gobble@opt endcsname{\@ifnextchar[%]
17     \SF@gobble@twobracket
18     \@gobble
19 }
20 \edef\SF@gobble@opt{\noexpand\protect
21   \expandafter\noexpand\csname SF@gobble@opt \endcsname}
22   \def\SF@gobble@twobracket[#1]#2{}
23
24 \newenvironment{foo}{==[}{]==}
25
26 \usepackage{fixltx2e}% this should cause the fixltx2e module to be loaded
27
28
29
30
31
32
33 \usepackage{babel}
34 \addto\extrasfrench{%
35    \providecommand{\og}{\leavevmode\flqq~}%
36    \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
37 }
38
39
40 \end_preamble
41 \options dummyoption
42 \use_default_options false
43 \begin_modules
44 logicalmkup
45 \end_modules
46 \language english
47 \language_package default
48 \inputencoding latin9
49 \fontencoding default
50 \font_roman default
51 \font_sans default
52 \font_typewriter default
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100
58 \font_tt_scale 100
59 \graphics default
60 \paperfontsize default
61 \spacing single
62 \use_hyperref 0
63 \papersize legalpaper
64 \use_geometry false
65 \use_package amsmath 1
66 \use_package esint 1
67 \use_package mathdots 0
68 \use_package mathtools 0
69 \use_package mhchem 0
70 \use_package undertilde 0
71 \cite_engine basic
72 \cite_engine_type numerical
73 \biblio_style plain
74 \use_bibtopic false
75 \use_indices false
76 \paperorientation portrait
77 \suppress_date true
78 \justification true
79 \use_refstyle 0
80 \secnumdepth 3
81 \tocdepth 3
82 \paragraph_separation indent
83 \paragraph_indentation default
84 \quotes_language english
85 \papercolumns 1
86 \papersides 1
87 \paperpagestyle default
88 \tracking_changes true
89 \output_changes true
90 \html_math_output 0
91 \html_css_as_file 0
92 \html_be_strict false
93 \author -443692588 "Hans Wurst" 
94 \end_header
95
96 \begin_body
97
98 \begin_layout Title
99
100 Title
101 \end_layout
102
103 \begin_layout Standard
104
105
106 \begin_inset ERT
107 status collapsed
108
109 \begin_layout Standard
110
111 % this should be recognized as empty date:
112 \end_layout
113
114 \begin_layout Standard
115
116
117 \end_layout
118
119 \end_inset
120
121
122 \end_layout
123
124 \begin_layout Standard
125
126 This document contains all sorts of layouts we are supposed to support, along with weird nestings.
127 \end_layout
128
129 \begin_layout Standard
130
131 At time you will see that I use subsubsections in weird places. The intent is just to make sure that I can include a macro-type layout everyzhere it makes sense.
132 \end_layout
133
134 \begin_layout Standard
135
136 A normal paragraph 
137 \begin_inset Formula \begin{equation}
138 x = \sin y
139 \end{equation}
140 \end_inset
141
142 with maths inside it.
143 \end_layout
144
145 \begin_layout Quote
146
147 An environment...
148 \end_layout
149
150 \begin_layout Quote
151
152 ... with two paragraphs 
153 \end_layout
154
155 \begin_layout Standard
156
157
158 \begin_inset ERT
159 status collapsed
160
161 \begin_layout Standard
162
163
164 \backslash
165 begin{foo}
166 \end_layout
167
168 \end_inset
169
170  an unknown environment 
171 \begin_inset ERT
172 status collapsed
173
174 \begin_layout Standard
175
176
177 \backslash
178 end{foo}
179 \end_layout
180
181 \end_inset
182
183
184 \end_layout
185
186 \begin_layout Section
187
188 A section
189 \end_layout
190
191 \begin_layout Section
192
193
194 \begin_inset Argument
195 status collapsed
196
197
198 \begin_layout Standard
199
200 Hello!
201 \end_layout
202
203 \end_inset
204
205 A section with optional argument
206 \end_layout
207
208 \begin_layout Standard
209
210 This causes the 
211 \begin_inset Flex Flex:Strong
212 status collapsed
213
214 \begin_layout Standard
215
216 logikalmkup
217 \end_layout
218
219 \end_inset
220
221  module to be loaded.
222 \end_layout
223
224 \begin_layout Quote
225
226 An environment 
227 \end_layout
228
229 \begin_layout Standard
230
231 We also support change tracking: 
232 \change_inserted -443692588 1320572379
233 Added text some parts remain 
234 \change_deleted -443692588 1320572395
235 This was the original text some parts remain
236 \end_layout
237
238 \begin_layout Section*
239
240 A starred section for floats
241 \end_layout
242
243 \begin_layout Standard
244
245
246 \begin_inset Float figure
247 wide false
248 sideways false
249 status open
250
251
252 \begin_layout Standard
253
254
255 \begin_inset Caption
256
257 \begin_layout Standard
258
259  
260 \emph on
261
262 \noun on
263 is
264 \noun default
265
266 \emph default
267  a caption
268 \end_layout
269
270 \end_inset
271
272
273 \end_layout
274
275 \end_inset
276
277
278 \end_layout
279
280 \begin_layout Standard
281
282
283 \begin_inset Float figure
284 wide false
285 sideways false
286 status open
287
288
289 \begin_layout Standard
290
291
292 \begin_inset Caption
293
294 \begin_layout Standard
295
296
297 \begin_inset Argument
298 status collapsed
299
300 \begin_layout Standard
301
302 s
303 \noun on
304 ho
305 \noun default
306 rt
307 \end_layout
308
309 \end_inset
310
311 this 
312 \emph on
313 is
314 \emph default
315  a caption
316 \end_layout
317
318 \end_inset
319
320
321 \end_layout
322
323 \end_inset
324
325
326 \end_layout
327
328 \begin_layout Standard
329
330
331 \begin_inset Float table
332 wide true
333 sideways true
334 status open
335
336
337 \begin_layout Standard
338
339
340 \begin_inset Caption
341
342 \begin_layout Standard
343
344 rotated table, spanning all columns
345 \end_layout
346
347 \end_inset
348
349
350 \end_layout
351
352 \begin_layout Standard
353
354
355 \begin_inset ERT
356 status collapsed
357
358 \begin_layout Standard
359
360
361 \backslash
362 centering
363 \end_layout
364
365 \end_inset
366
367
368 \begin_inset ERT
369 status collapsed
370
371 \begin_layout Standard
372
373 {}
374 \end_layout
375
376 \end_inset
377
378
379 \begin_inset Tabular 
380 <lyxtabular version="3" rows="2" columns="2">
381 <features rotate="0" tabularvalignment="bottom" tabularwidth="0pt">
382 <column alignment="center" valignment="top">
383 <column alignment="center" valignment="top">
384 <row>
385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
386 \begin_inset Text
387
388 \begin_layout Standard
389
390
391 \end_layout
392
393 \end_inset
394 </cell>
395 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
396 \begin_inset Text
397
398 \begin_layout Standard
399
400 b
401 \end_layout
402
403 \end_inset
404 </cell>
405 </row>
406 <row>
407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
408 \begin_inset Text
409
410 \begin_layout Standard
411
412
413 \end_layout
414
415 \end_inset
416 </cell>
417 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
418 \begin_inset Text
419
420 \begin_layout Standard
421
422 c
423 \end_layout
424
425 \end_inset
426 </cell>
427 </row>
428 </lyxtabular>
429
430 \end_inset
431
432
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Standard
441
442
443 \begin_inset Wrap figure
444 lines 4
445 placement L
446 overhang 2ex
447 width 50col%
448 status open
449
450
451 \begin_layout Standard
452 \align center
453
454 fdgsdfdh 
455 \end_layout
456
457 \begin_layout Standard
458
459
460 \begin_inset Caption
461
462 \begin_layout Standard
463
464 test1
465 \end_layout
466
467 \end_inset
468
469
470 \end_layout
471
472 \end_inset
473
474
475 \end_layout
476
477 \begin_layout Standard
478
479 LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
480 \end_layout
481
482 \begin_layout Standard
483
484
485 \begin_inset Wrap figure
486 lines 0
487 placement o
488 overhang 0col%
489 width 50col%
490 status open
491
492
493 \begin_layout Standard
494 \align center
495
496 fdgs 
497 \end_layout
498
499 \begin_layout Standard
500
501
502 \begin_inset Caption
503
504 \begin_layout Standard
505
506 test2
507 \end_layout
508
509 \end_inset
510
511
512 \end_layout
513
514 \end_inset
515
516
517 \end_layout
518
519 \begin_layout Standard
520
521 LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
522 \end_layout
523
524 \begin_layout Standard
525
526
527 \begin_inset Wrap table
528 lines 0
529 placement i
530 overhang 5text%
531 width 5ex
532 status open
533
534
535 \begin_layout Standard
536
537
538 \begin_inset Caption
539
540 \begin_layout Standard
541
542 fdg
543 \end_layout
544
545 \end_inset
546
547
548 \end_layout
549
550 \begin_layout Standard
551
552
553 \begin_inset ERT
554 status collapsed
555
556 \begin_layout Standard
557
558
559 \backslash
560 centering
561 \end_layout
562
563 \end_inset
564
565
566 \begin_inset ERT
567 status collapsed
568
569 \begin_layout Standard
570
571 {}
572 \end_layout
573
574 \end_inset
575
576 dfgd
577 \end_layout
578
579 \end_inset
580
581
582 \end_layout
583
584 \begin_layout Standard
585
586 LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spell checking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or advertisements (we'll explain why later), though with some effort all these can be done, too.
587 \end_layout
588
589 \begin_layout Standard
590
591
592 \begin_inset Float table
593 wide false
594 sideways false
595 status open
596
597
598 \begin_layout Standard
599
600
601 \begin_inset Caption
602
603 \begin_layout Standard
604
605 lkälöä
606 \end_layout
607
608 \end_inset
609
610
611 \end_layout
612
613 \begin_layout Standard
614
615
616 \begin_inset Float table
617 wide false
618 sideways false
619 status collapsed
620
621
622 \begin_layout Standard
623
624 klöä
625 \end_layout
626
627 \begin_layout Plain Layout
628 \begin_inset Caption
629
630 \begin_layout Standard
631
632 ölkälö
633
634 \end_layout
635
636 \end_inset
637
638
639 \end_layout
640
641 \end_inset
642
643
644 \end_layout
645
646 \end_inset
647
648
649 \end_layout
650
651 \begin_layout Standard
652
653
654 \begin_inset Float figure
655 wide false
656 sideways false
657 status open
658
659
660 \begin_layout Standard
661
662
663 \begin_inset Float figure
664 wide false
665 sideways false
666 status collapsed
667
668
669 \begin_layout Standard
670
671 sub
672 \color red
673 fig
674 \color inherit
675 u%re 1
676 \end_layout
677
678 \begin_layout Plain Layout
679 \begin_inset Caption
680
681 \begin_layout Standard
682
683 te%st
684
685 \end_layout
686
687 \end_inset
688
689
690 \end_layout
691
692 \end_inset
693
694
695 \end_layout
696
697 \begin_layout Standard
698
699
700 \begin_inset space \hfill{}
701
702 \end_inset
703
704  
705 \begin_inset Float figure
706 wide false
707 sideways false
708 status collapsed
709
710
711 \begin_layout Standard
712
713 subfigure 2ö
714 \end_layout
715
716 \begin_layout Plain Layout
717 \begin_inset Caption
718
719 \begin_layout Standard
720
721
722
723 \end_layout
724
725 \end_inset
726
727
728 \end_layout
729
730 \end_inset
731
732
733 \end_layout
734
735 \begin_layout Standard
736
737
738 \begin_inset Float figure
739 wide false
740 sideways false
741 status collapsed
742
743
744 \begin_layout Standard
745
746 subfigure 3
747 \end_layout
748
749 \end_inset
750
751
752 \end_layout
753
754 \begin_layout Standard
755
756
757 \begin_inset Caption
758
759 \begin_layout Standard
760
761 figure caption
762 \end_layout
763
764 \end_inset
765
766
767 \end_layout
768
769 \begin_layout Standard
770
771 strange usage, but valid 
772 \end_layout
773
774 \end_inset
775
776
777 \end_layout
778
779 \begin_layout Subsection
780
781 Some paragraph stuff
782 \end_layout
783
784 \begin_layout Standard
785
786 A paragraph
787 \begin_inset Foot
788 status collapsed
789
790
791 \begin_layout Standard
792
793 hello
794 \end_layout
795
796 \end_inset
797
798  with a footnote and another one
799 \begin_inset Foot
800 status collapsed
801
802
803 \begin_layout Standard
804
805 hello
806 \end_layout
807
808 \begin_layout Standard
809
810 there
811 \end_layout
812
813 \end_inset
814
815  with several paragraphs 
816 \begin_inset VSpace 1cm
817 \end_inset
818
819  aa
820 \end_layout
821
822 \begin_layout Standard
823
824 and another paragraph
825 \end_layout
826
827 \begin_layout Standard
828 \align center
829
830 Some centered stuff 
831 \end_layout
832
833 \begin_layout Quotation
834
835 An environment
836 \end_layout
837
838 \begin_deeper
839 \begin_layout Subsubsection*
840
841 with a command inside it
842 \end_layout
843
844 \end_deeper
845 \begin_layout --Separator--
846
847
848 \end_layout
849
850 \begin_layout Quotation
851
852 Another environment
853 \end_layout
854
855 \begin_deeper
856 \begin_layout Quotation
857
858 With another one inside it (with same layout)
859 \end_layout
860
861 \begin_layout Quotation
862
863 [this one even has several paragraphs!] 
864 \end_layout
865
866 \end_deeper
867 \begin_layout Standard
868
869 We can also nest enumerations
870 \end_layout
871
872 \begin_layout Enumerate
873
874 Item1 
875 \end_layout
876
877 \begin_deeper
878 \begin_layout Enumerate
879
880 Item1.a
881 \end_layout
882
883 \begin_layout Enumerate
884
885 Item1.b (there is a paragraph break in front of this) 
886 \end_layout
887
888 \begin_deeper
889 \begin_layout Itemize
890
891 Item1.b.* 
892 \end_layout
893
894 \begin_layout Itemize
895
896 Item1.b.* 
897 \end_layout
898
899 \end_deeper
900 \end_deeper
901 \begin_layout Enumerate
902
903 Item2 
904 \end_layout
905
906 \begin_layout --Separator--
907
908
909 \end_layout
910
911 \begin_layout Enumerate
912
913 Item1 (appears as Item3 with bug 5716)
914 \end_layout
915
916 \begin_deeper
917 \begin_layout Standard
918
919 Normal paragraph in Item1
920 \end_layout
921
922 \begin_layout Enumerate
923
924 Item1.a 
925 \end_layout
926
927 \end_deeper
928 \begin_layout Standard
929
930 Let's see what happens when normal paragraphs are inserted in lists:
931 \end_layout
932
933 \begin_layout Itemize
934
935 the first item
936 \end_layout
937
938 \begin_deeper
939 \begin_layout Standard
940
941 with some explanatory text under it
942 \end_layout
943
944 \begin_layout Standard
945
946 and a second paragraph for good measure
947 \end_layout
948
949 \begin_layout Subsubsection*
950
951 we can even have one as a subsubsection
952 \end_layout
953
954 \end_deeper
955 \begin_layout Itemize
956
957 the second item
958 \end_layout
959
960 \begin_layout Itemize
961
962 the third item
963 \end_layout
964
965 \begin_deeper
966 \begin_layout Subsubsection*
967
968 and a sssection heading inside it (why not?)
969 \end_layout
970
971 \end_deeper
972 \begin_layout Standard
973
974 What else? Well, we have descriptions: 
975 \end_layout
976
977 \begin_layout Description
978
979 ABC first item 
980 \end_layout
981
982 \begin_layout Description
983
984 BCD second one 
985 \end_layout
986
987 \begin_layout Description
988
989
990 \begin_inset ERT
991 status collapsed
992
993 \begin_layout Standard
994
995 x y z
996 \end_layout
997
998 \end_inset
999
1000  with space 
1001 \end_layout
1002
1003 \begin_layout Description
1004
1005
1006 \begin_inset ERT
1007 status collapsed
1008
1009 \begin_layout Standard
1010
1011 x y % bla
1012 \end_layout
1013
1014 \begin_layout Standard
1015
1016 z
1017 \end_layout
1018
1019 \end_inset
1020
1021  and with comments 
1022 \end_layout
1023
1024 \begin_layout Standard
1025
1026 labelings: 
1027 \end_layout
1028
1029 \begin_layout Labeling
1030 \labelwidthstring 00.00.0000
1031
1032 label
1033 \begin_inset space ~
1034
1035 \end_inset
1036
1037 1 first item 
1038 \end_layout
1039
1040 \begin_layout Labeling
1041
1042 label
1043 \begin_inset space ~
1044
1045 \end_inset
1046
1047 2 second item 
1048 \end_layout
1049
1050 \begin_layout Labeling
1051
1052
1053 \begin_inset ERT
1054 status collapsed
1055
1056 \begin_layout Standard
1057
1058 $
1059 \backslash
1060 left[
1061 \backslash
1062 textrm{ }
1063 \backslash
1064 right]^{x}$
1065 \end_layout
1066
1067 \end_inset
1068
1069  Label with space, math and ] in it 
1070 \end_layout
1071
1072 \begin_layout Standard
1073
1074 verbatim: 
1075 \end_layout
1076
1077 \begin_layout Verbatim
1078
1079 \end_layout
1080 \begin_layout Verbatim
1081 verbat  im % $ 02/19/12
1082 \end_layout
1083 \begin_layout Verbatim
1084 hjkh
1085 \end_layout
1086 \begin_layout Verbatim
1087 jkh \backslash  blah
1088 \end_layout
1089 \begin_layout Verbatim
1090 \backslash begin{centering}
1091 \end_layout
1092 \begin_layout Verbatim
1093
1094 \end_layout
1095 \begin_layout Verbatim
1096
1097 \end_layout
1098 \begin_layout Verbatim
1099 zzz \backslash section{
1100 \end_layout
1101 \begin_layout Verbatim
1102 \backslash end{raggedleft}
1103 \end_layout
1104
1105
1106 \begin_layout Standard
1107
1108 \begin_inset ERT
1109 status collapsed
1110
1111 \begin_layout Standard
1112
1113
1114 \backslash
1115 verb~~
1116 \end_layout
1117
1118 \end_inset
1119
1120  
1121 \begin_inset ERT
1122 status collapsed
1123
1124 \begin_layout Standard
1125
1126
1127 \backslash
1128 verb+
1129 \backslash
1130 item[ABC] first item+
1131 \end_layout
1132
1133 \end_inset
1134
1135
1136 \end_layout
1137
1138 \begin_layout Standard
1139
1140 and bibliography: 
1141 \end_layout
1142
1143 \begin_layout Bibliography
1144
1145
1146 \begin_inset CommandInset bibitem
1147 LatexCommand bibitem
1148 label ""
1149 key "FOO"
1150
1151 \end_inset
1152
1153  Edward Bar. 
1154 \emph on
1155 The Foo Book
1156 \emph default
1157 . (1999) 
1158 \end_layout
1159
1160 \begin_layout Bibliography
1161
1162
1163 \begin_inset CommandInset bibitem
1164 LatexCommand bibitem
1165 label ""
1166 key "FO2"
1167
1168 \end_inset
1169
1170  Walter Müller 
1171 \emph on
1172 The Müller Book
1173 \emph default
1174 . (2004) 
1175 \end_layout
1176
1177 \begin_layout Standard
1178 \start_of_appendix
1179
1180
1181 \begin_inset ERT
1182 status collapsed
1183
1184 \begin_layout Standard
1185
1186 %dummy comment inserted by tex2lyx to ensure that this paragraph is not empty
1187 \end_layout
1188
1189 \begin_layout Standard
1190
1191
1192 \end_layout
1193
1194 \end_inset
1195
1196
1197 \end_layout
1198
1199 \begin_layout Section
1200
1201 This is the Appendix
1202 \end_layout
1203
1204 \begin_layout Standard
1205 \noindent
1206
1207 blabla bla bla
1208 \end_layout
1209
1210 \begin_layout Standard
1211
1212 switch to german:
1213 \lang german
1214  Hallo! 
1215 \lang french
1216 some 
1217 \emph on
1218 french
1219 \emph default
1220
1221 \lang german
1222  back to english:
1223 \lang newzealand
1224  and some nested 
1225 \lang french
1226 french 
1227 \lang german
1228 nested 
1229 \emph on
1230 german
1231 \emph default
1232
1233 \lang french
1234  french
1235 \lang newzealand
1236  english stuff. Note that we both used 
1237 \family typewriter
1238 french
1239 \family default
1240  and the 
1241 \family typewriter
1242 francais
1243 \family default
1244  alias for the french text, but for some reason this does not work with the 
1245 \family typewriter
1246 newzealand
1247 \family default
1248  alias and 
1249 \family typewriter
1250 english
1251 \family default
1252  for english text.
1253 \end_layout
1254
1255 \begin_layout Section
1256
1257 \lang newzealand
1258
1259 Another Appendix section
1260 \end_layout
1261
1262 \begin_layout Standard
1263
1264 \lang newzealand
1265
1266 blub
1267 \end_layout
1268
1269 \begin_layout Standard
1270
1271 \lang newzealand
1272
1273 Test for missing 
1274 \backslash
1275 end_deeper (file format 278). This must stay at the very end of the document! 
1276 \end_layout
1277
1278 \begin_layout Itemize
1279
1280 \lang newzealand
1281
1282 par1
1283 \end_layout
1284
1285 \begin_deeper
1286 \begin_layout Standard
1287
1288 \lang newzealand
1289
1290 par2 
1291 \end_layout
1292
1293 \begin_layout Enumerate
1294
1295 \lang newzealand
1296
1297 par1
1298 \end_layout
1299
1300 \begin_deeper
1301 \begin_layout Standard
1302
1303 \lang newzealand
1304
1305 par2 
1306 \end_layout
1307
1308 \end_deeper
1309 \end_deeper
1310 \end_body
1311 \end_document