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