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