]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/test-structure.lyx.lyx
Native support for \smash[t] and \smash[b]
[lyx.git] / src / tex2lyx / test / test-structure.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 476
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 iso8859-15
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 cancel 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 default
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 Standard
776
777 \begin_inset Separator plain
778
779 \end_inset
780
781
782 \end_layout
783
784 \begin_layout Quotation
785 Another environment
786 \end_layout
787
788 \begin_deeper
789 \begin_layout Quotation
790 With another one inside it (with same layout)
791 \end_layout
792
793 \begin_layout Quotation
794 [this one even has several paragraphs!] 
795 \end_layout
796
797 \end_deeper
798 \begin_layout Standard
799 We can also nest enumerations
800 \end_layout
801
802 \begin_layout Enumerate
803 Item1 
804 \end_layout
805
806 \begin_deeper
807 \begin_layout Enumerate
808 Item1.a
809 \end_layout
810
811 \begin_layout Enumerate
812 Item1.b (there is a paragraph break in front of this) 
813 \end_layout
814
815 \begin_deeper
816 \begin_layout Itemize
817 Item1.b.* 
818 \end_layout
819
820 \begin_layout Itemize
821 Item1.b.* 
822 \end_layout
823
824 \end_deeper
825 \end_deeper
826 \begin_layout Enumerate
827 Item2 
828 \end_layout
829
830 \begin_layout Standard
831
832 \begin_inset Separator plain
833
834 \end_inset
835
836
837 \end_layout
838
839 \begin_layout Enumerate
840 Item1 (appears as Item3 with bug 5716)
841 \end_layout
842
843 \begin_deeper
844 \begin_layout Standard
845 Normal paragraph in Item1
846 \end_layout
847
848 \begin_layout Enumerate
849 Item1.a 
850 \end_layout
851
852 \end_deeper
853 \begin_layout Standard
854 Let's see what happens when normal paragraphs are inserted in lists:
855 \end_layout
856
857 \begin_layout Itemize
858 the first item
859 \end_layout
860
861 \begin_deeper
862 \begin_layout Standard
863 with some explanatory text under it
864 \end_layout
865
866 \begin_layout Standard
867 and a second paragraph for good measure
868 \end_layout
869
870 \begin_layout Subsubsection*
871 we can even have one as a subsubsection
872 \end_layout
873
874 \end_deeper
875 \begin_layout Itemize
876 the second item
877 \end_layout
878
879 \begin_layout Itemize
880 the third item
881 \end_layout
882
883 \begin_deeper
884 \begin_layout Subsubsection*
885 and a sssection heading inside it (why not?)
886 \end_layout
887
888 \end_deeper
889 \begin_layout Standard
890 What else? Well, we have descriptions: 
891 \end_layout
892
893 \begin_layout Description
894 ABC first item 
895 \end_layout
896
897 \begin_layout Description
898 BCD second one 
899 \end_layout
900
901 \begin_layout Description
902
903 \begin_inset ERT
904 status collapsed
905
906 \begin_layout Plain Layout
907 x y z
908 \end_layout
909
910 \end_inset
911
912  with space 
913 \end_layout
914
915 \begin_layout Description
916
917 \begin_inset ERT
918 status collapsed
919
920 \begin_layout Plain Layout
921 x y % bla
922 \end_layout
923
924 \begin_layout Plain Layout
925 z
926 \end_layout
927
928 \end_inset
929
930  and with comments 
931 \end_layout
932
933 \begin_layout Standard
934 labelings: 
935 \end_layout
936
937 \begin_layout Labeling
938 \labelwidthstring 00.00.0000
939 label
940 \begin_inset space ~
941
942 \end_inset
943
944 1 first item 
945 \end_layout
946
947 \begin_layout Labeling
948 label
949 \begin_inset space ~
950
951 \end_inset
952
953 2 second item 
954 \end_layout
955
956 \begin_layout Labeling
957
958 \begin_inset ERT
959 status collapsed
960
961 \begin_layout Plain Layout
962 $
963 \backslash
964 left[
965 \backslash
966 textrm{ }
967 \backslash
968 right]^{x}$
969 \end_layout
970
971 \end_inset
972
973  Label with space, math and ] in it 
974 \end_layout
975
976 \begin_layout Standard
977 verbatim: 
978 \end_layout
979
980 \begin_layout Verbatim
981 verbat  im % $ 02/19/12
982 \end_layout
983
984 \begin_layout Verbatim
985 hjkh
986 \end_layout
987
988 \begin_layout Verbatim
989 jkh 
990 \backslash
991  blah
992 \end_layout
993
994 \begin_layout Verbatim
995
996 \backslash
997 begin{centering}
998 \end_layout
999
1000 \begin_layout Verbatim
1001
1002 \end_layout
1003
1004 \begin_layout Verbatim
1005
1006 \end_layout
1007
1008 \begin_layout Verbatim
1009 zzz 
1010 \backslash
1011 section{
1012 \end_layout
1013
1014 \begin_layout Verbatim
1015
1016 \backslash
1017 end{raggedleft}
1018 \end_layout
1019
1020 \begin_layout Verbatim
1021
1022 \end_layout
1023
1024 \begin_layout Standard
1025
1026 \begin_inset ERT
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030
1031 \backslash
1032 verb~
1033 \backslash
1034 ~
1035 \end_layout
1036
1037 \end_inset
1038
1039  
1040 \begin_inset ERT
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044
1045 \backslash
1046 verb+
1047 \backslash
1048 item[ABC] first item+
1049 \end_layout
1050
1051 \end_inset
1052
1053  
1054 \begin_inset ERT
1055 status collapsed
1056
1057 \begin_layout Plain Layout
1058
1059 \backslash
1060 verb+something
1061 \backslash
1062 +
1063 \end_layout
1064
1065 \end_inset
1066
1067  bug 4468
1068 \end_layout
1069
1070 \begin_layout Standard
1071 and bibliography: 
1072 \end_layout
1073
1074 \begin_layout Bibliography
1075
1076 \begin_inset CommandInset bibitem
1077 LatexCommand bibitem
1078 label ""
1079 key "FOO"
1080
1081 \end_inset
1082
1083  Edward Bar. 
1084 \emph on
1085 The Foo Book
1086 \emph default
1087 . (1999) 
1088 \end_layout
1089
1090 \begin_layout Bibliography
1091
1092 \begin_inset CommandInset bibitem
1093 LatexCommand bibitem
1094 label ""
1095 key "FO2"
1096
1097 \end_inset
1098
1099  Walter Müller 
1100 \emph on
1101 The Müller Book
1102 \emph default
1103 . (2004) 
1104 \end_layout
1105
1106 \begin_layout Standard
1107 \start_of_appendix
1108
1109 \begin_inset ERT
1110 status collapsed
1111
1112 \begin_layout Plain Layout
1113 %dummy comment inserted by tex2lyx to ensure that this paragraph is not empty
1114 \end_layout
1115
1116 \end_inset
1117
1118
1119 \end_layout
1120
1121 \begin_layout Section
1122 This is the Appendix
1123 \end_layout
1124
1125 \begin_layout Standard
1126 \noindent
1127 blabla bla bla
1128 \end_layout
1129
1130 \begin_layout Standard
1131 switch to german:
1132 \lang german
1133  Hallo! 
1134 \lang french
1135 some 
1136 \emph on
1137 french
1138 \emph default
1139
1140 \lang german
1141  back to english:
1142 \lang newzealand
1143  and some nested 
1144 \lang french
1145 french 
1146 \lang german
1147 nested 
1148 \emph on
1149 german
1150 \emph default
1151
1152 \lang french
1153  french
1154 \lang newzealand
1155  english stuff. Note that we both used 
1156 \family typewriter
1157 french
1158 \family default
1159  and the 
1160 \family typewriter
1161 francais
1162 \family default
1163  alias for the french text, but for some reason this does not work with the 
1164 \family typewriter
1165 newzealand
1166 \family default
1167  alias and 
1168 \family typewriter
1169 english
1170 \family default
1171  for english text.
1172 \end_layout
1173
1174 \begin_layout Section
1175
1176 \lang newzealand
1177 Another Appendix section
1178 \end_layout
1179
1180 \begin_layout Standard
1181
1182 \lang newzealand
1183 blub
1184 \end_layout
1185
1186 \begin_layout Standard
1187
1188 \lang newzealand
1189 Test for missing 
1190 \backslash
1191 end_deeper (file format 278). This must stay at the very end of the document! 
1192 \end_layout
1193
1194 \begin_layout Itemize
1195
1196 \lang newzealand
1197 par1
1198 \end_layout
1199
1200 \begin_deeper
1201 \begin_layout Standard
1202
1203 \lang newzealand
1204 par2 
1205 \end_layout
1206
1207 \begin_layout Enumerate
1208
1209 \lang newzealand
1210 par1
1211 \end_layout
1212
1213 \begin_deeper
1214 \begin_layout Standard
1215
1216 \lang newzealand
1217 par2 
1218 \end_layout
1219
1220 \end_deeper
1221 \end_deeper
1222 \end_body
1223 \end_document