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