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