]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-structure.lyx.lyx
Cmake build: tex2lyx
[lyx.git] / src / tex2lyx / test / test-structure.lyx.lyx
1 #LyX file created by tex2lyx 2.1.0dev
2 \lyxformat 452
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 undertilde 0
79 \cite_engine basic
80 \cite_engine_type numerical
81 \biblio_style plain
82 \use_bibtopic false
83 \use_indices false
84 \paperorientation portrait
85 \suppress_date true
86 \justification true
87 \use_refstyle 0
88 \index Index
89 \shortcut idx
90 \color #008000
91 \end_index
92 \secnumdepth 3
93 \tocdepth 3
94 \paragraph_separation indent
95 \paragraph_indentation default
96 \quotes_language english
97 \papercolumns 1
98 \papersides 1
99 \paperpagestyle default
100 \tracking_changes true
101 \output_changes true
102 \html_math_output 0
103 \html_css_as_file 0
104 \html_be_strict false
105 \author -443692588 "Hans Wurst" 
106 \end_header
107
108 \begin_body
109
110 \begin_layout Title
111 Title
112 \end_layout
113
114 \begin_layout Standard
115
116 \begin_inset ERT
117 status collapsed
118
119 \begin_layout Standard
120 % this should be recognized as empty date:
121 \end_layout
122
123 \begin_layout Standard
124
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 Standard
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 Standard
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
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
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
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 Standard
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 Standard
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
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
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
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 Standard
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 Standard
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
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
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
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
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
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 Standard
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 Standard
912 x y % bla
913 \end_layout
914
915 \begin_layout Standard
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 Standard
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
973 \end_layout
974 \begin_layout Verbatim
975 verbat  im % $ 02/19/12
976 \end_layout
977 \begin_layout Verbatim
978 hjkh
979 \end_layout
980 \begin_layout Verbatim
981 jkh \backslash  blah
982 \end_layout
983 \begin_layout Verbatim
984 \backslash begin{centering}
985 \end_layout
986 \begin_layout Verbatim
987
988 \end_layout
989 \begin_layout Verbatim
990
991 \end_layout
992 \begin_layout Verbatim
993 zzz \backslash section{
994 \end_layout
995 \begin_layout Verbatim
996 \backslash end{raggedleft}
997 \end_layout
998
999
1000 \begin_layout Standard
1001
1002 \begin_inset ERT
1003 status collapsed
1004
1005 \begin_layout Standard
1006
1007 \backslash
1008 verb~
1009 \backslash
1010 ~
1011 \end_layout
1012
1013 \end_inset
1014
1015  
1016 \begin_inset ERT
1017 status collapsed
1018
1019 \begin_layout Standard
1020
1021 \backslash
1022 verb+
1023 \backslash
1024 item[ABC] first item+
1025 \end_layout
1026
1027 \end_inset
1028
1029  
1030 \begin_inset ERT
1031 status collapsed
1032
1033 \begin_layout Standard
1034
1035 \backslash
1036 verb+something
1037 \backslash
1038 +
1039 \end_layout
1040
1041 \end_inset
1042
1043  bug 4468
1044 \end_layout
1045
1046 \begin_layout Standard
1047 and bibliography: 
1048 \end_layout
1049
1050 \begin_layout Bibliography
1051
1052 \begin_inset CommandInset bibitem
1053 LatexCommand bibitem
1054 label ""
1055 key "FOO"
1056
1057 \end_inset
1058
1059  Edward Bar. 
1060 \emph on
1061 The Foo Book
1062 \emph default
1063 . (1999) 
1064 \end_layout
1065
1066 \begin_layout Bibliography
1067
1068 \begin_inset CommandInset bibitem
1069 LatexCommand bibitem
1070 label ""
1071 key "FO2"
1072
1073 \end_inset
1074
1075  Walter Müller 
1076 \emph on
1077 The Müller Book
1078 \emph default
1079 . (2004) 
1080 \end_layout
1081
1082 \begin_layout Standard
1083 \start_of_appendix
1084
1085 \begin_inset ERT
1086 status collapsed
1087
1088 \begin_layout Standard
1089 %dummy comment inserted by tex2lyx to ensure that this paragraph is not empty
1090 \end_layout
1091
1092 \begin_layout Standard
1093
1094 \end_layout
1095
1096 \end_inset
1097
1098
1099 \end_layout
1100
1101 \begin_layout Section
1102 This is the Appendix
1103 \end_layout
1104
1105 \begin_layout Standard
1106 \noindent
1107 blabla bla bla
1108 \end_layout
1109
1110 \begin_layout Standard
1111 switch to german:
1112 \lang german
1113  Hallo! 
1114 \lang french
1115 some 
1116 \emph on
1117 french
1118 \emph default
1119
1120 \lang german
1121  back to english:
1122 \lang newzealand
1123  and some nested 
1124 \lang french
1125 french 
1126 \lang german
1127 nested 
1128 \emph on
1129 german
1130 \emph default
1131
1132 \lang french
1133  french
1134 \lang newzealand
1135  english stuff. Note that we both used 
1136 \family typewriter
1137 french
1138 \family default
1139  and the 
1140 \family typewriter
1141 francais
1142 \family default
1143  alias for the french text, but for some reason this does not work with the 
1144 \family typewriter
1145 newzealand
1146 \family default
1147  alias and 
1148 \family typewriter
1149 english
1150 \family default
1151  for english text.
1152 \end_layout
1153
1154 \begin_layout Section
1155
1156 \lang newzealand
1157 Another Appendix section
1158 \end_layout
1159
1160 \begin_layout Standard
1161
1162 \lang newzealand
1163 blub
1164 \end_layout
1165
1166 \begin_layout Standard
1167
1168 \lang newzealand
1169 Test for missing 
1170 \backslash
1171 end_deeper (file format 278). This must stay at the very end of the document! 
1172 \end_layout
1173
1174 \begin_layout Itemize
1175
1176 \lang newzealand
1177 par1
1178 \end_layout
1179
1180 \begin_deeper
1181 \begin_layout Standard
1182
1183 \lang newzealand
1184 par2 
1185 \end_layout
1186
1187 \begin_layout Enumerate
1188
1189 \lang newzealand
1190 par1
1191 \end_layout
1192
1193 \begin_deeper
1194 \begin_layout Standard
1195
1196 \lang newzealand
1197 par2 
1198 \end_layout
1199
1200 \end_deeper
1201 \end_deeper
1202 \end_body
1203 \end_document