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