]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/basic.lyx
DocBook: simplify code to handle abstracts.
[lyx.git] / autotests / export / docbook / basic.lyx
1 #LyX 2.4 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \begin_preamble
9 \newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}}
10 \end_preamble
11 \use_default_options true
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "default" "default"
18 \font_sans "default" "default"
19 \font_typewriter "default" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \use_dash_ligatures true
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \paperfontsize default
35 \spacing single
36 \use_hyperref false
37 \papersize default
38 \use_geometry false
39 \use_package amsmath 1
40 \use_package amssymb 1
41 \use_package cancel 1
42 \use_package esint 1
43 \use_package mathdots 1
44 \use_package mathtools 1
45 \use_package mhchem 1
46 \use_package stackrel 1
47 \use_package stmaryrd 1
48 \use_package undertilde 1
49 \cite_engine basic
50 \cite_engine_type default
51 \biblio_style plain
52 \use_bibtopic false
53 \use_indices true
54 \paperorientation portrait
55 \suppress_date false
56 \justification true
57 \use_refstyle 1
58 \use_minted 0
59 \index Index
60 \shortcut idx
61 \color #008000
62 \end_index
63 \index Other index
64 \shortcut oth
65 \color #cc0000
66 \end_index
67 \secnumdepth 3
68 \tocdepth 3
69 \paragraph_separation indent
70 \paragraph_indentation default
71 \is_math_indent 0
72 \math_numbering_side default
73 \quotes_style english
74 \dynamic_quotes 0
75 \papercolumns 1
76 \papersides 1
77 \paperpagestyle default
78 \tracking_changes false
79 \output_changes false
80 \html_math_output 0
81 \html_css_as_file 0
82 \html_be_strict false
83 \end_header
84
85 \begin_body
86
87 \begin_layout Title
88 I am a title
89 \end_layout
90
91 \begin_layout Author
92 I am an author
93 \end_layout
94
95 \begin_layout Date
96 I am a date
97 \end_layout
98
99 \begin_layout Abstract
100 I am an abstract
101 \end_layout
102
103 \begin_layout Abstract
104 I am also an abstract
105 \end_layout
106
107 \begin_layout Standard
108 I am a standard paragraph.
109  
110 \end_layout
111
112 \begin_layout Section
113 I am the first section 
114 \begin_inset CommandInset label
115 LatexCommand label
116 name "sec:Sec-1"
117
118 \end_inset
119
120
121 \end_layout
122
123 \begin_layout Standard
124 I am the first paragraph of the first section.
125  
126 \end_layout
127
128 \begin_layout Standard
129 I am the second paragraph of the first section.
130  
131 \end_layout
132
133 \begin_layout Quote
134 I am a quote
135 \begin_inset Formula $\,with\,a\,formula$
136 \end_inset
137
138 .
139  
140 \end_layout
141
142 \begin_layout Standard
143 \begin_inset Formula 
144 \[
145 Formula!
146 \]
147
148 \end_inset
149
150
151 \begin_inset Formula 
152 \begin{equation}
153 \text{I am a formula with a ref.}\label{eq:EQ.}
154 \end{equation}
155
156 \end_inset
157
158
159 \end_layout
160
161 \begin_layout Standard
162 See 
163 \begin_inset CommandInset ref
164 LatexCommand ref
165 reference "sec:Sec-2kqgsdiflhqsdlifgjuzer=povtuizmvnuer=t vmsrmfli  uh =a'\"rtpfuoé&\"'rtpc!m'caôrgifzapeuùtvgz"
166 plural "false"
167 caps "false"
168 noprefix "false"
169
170 \end_inset
171
172 .
173 \end_layout
174
175 \begin_layout Standard
176 Also, a formula with an user-defined macro that outputs well in LaTeX but
177  cannot in MathML (hence replaced by picture): 
178 \begin_inset Formula $\testmacro$
179 \end_inset
180
181 .
182  
183 \end_layout
184
185 \begin_layout Standard
186 \begin_inset ERT
187 status open
188
189 \begin_layout Plain Layout
190
191
192 \backslash
193 latexCommandThatShouldBeCommented
194 \end_layout
195
196 \end_inset
197
198
199 \end_layout
200
201 \begin_layout Subsection
202 I am the first subsection
203 \end_layout
204
205 \begin_layout Standard
206 I am the only paragraph of the first subsection.
207  
208 \end_layout
209
210 \begin_layout Subsection
211 I am the second subsection
212 \end_layout
213
214 \begin_layout Standard
215 I am the only paragraph of the second subsection.
216  
217 \end_layout
218
219 \begin_layout Section
220 I am the second section 
221 \begin_inset CommandInset label
222 LatexCommand label
223 name "sec:Sec-2kqgsdiflhqsdlifgjuzer=povtuizmvnuer=t vmsrmfli  uh =a'\"rtpfuoé&\"'rtpc!m'caôrgifzapeuùtvgz"
224
225 \end_inset
226
227
228 \end_layout
229
230 \begin_layout Standard
231 I am the only paragraph of the second section.
232  
233 \begin_inset CommandInset href
234 LatexCommand href
235 name "Hyperlink."
236 target "http://example.org"
237 literal "false"
238
239 \end_inset
240
241  
242 \begin_inset Quotes eld
243 \end_inset
244
245 Text between quotes.
246 \begin_inset Quotes erd
247 \end_inset
248
249
250 \end_layout
251
252 \begin_layout Standard
253 See 
254 \begin_inset CommandInset ref
255 LatexCommand ref
256 reference "sec:Sec-1"
257 plural "false"
258 caps "false"
259 noprefix "false"
260
261 \end_inset
262
263 .
264 \end_layout
265
266 \begin_layout Section
267 I am the third section and I have fun with lists
268 \end_layout
269
270 \begin_layout Enumerate
271 First item.
272  
273 \begin_inset Newline newline
274 \end_inset
275
276 Second line of the first item, after a line break.
277  
278 \end_layout
279
280 \begin_layout Enumerate
281 Second item.
282  
283 \end_layout
284
285 \begin_layout Itemize
286 Item has no order (1).
287  
288 \end_layout
289
290 \begin_layout Itemize
291 Item has no order (2).
292  
293 \end_layout
294
295 \begin_layout Description
296 Word description
297 \end_layout
298
299 \begin_layout Description
300 Sentence meaning
301 \end_layout
302
303 \begin_layout Section
304 I am the fourth section and I deal with formatting.
305  
306 \end_layout
307
308 \begin_layout Standard
309 The following paragraph should be code.
310  
311 \end_layout
312
313 \begin_layout Standard
314 \begin_inset listings
315 inline false
316 status open
317
318 \begin_layout Plain Layout
319
320 I am some code.
321  
322 \end_layout
323
324 \begin_layout Plain Layout
325
326 I am a second line of code.
327  
328 \end_layout
329
330 \end_inset
331
332 I am no more code.
333  
334 \end_layout
335
336 \begin_layout Standard
337 This line has inline code.
338  
339 \family typewriter
340 This has typewriter font
341 \family default
342
343 \begin_inset Foot
344 status open
345
346 \begin_layout Plain Layout
347 I repeat that in a footnote.
348 \end_layout
349
350 \end_inset
351
352 .
353  
354 \end_layout
355
356 \begin_layout Standard
357 On the other hand, 
358 \begin_inset Foot
359 status open
360
361 \begin_layout Plain Layout
362 this footnote
363 \end_layout
364
365 \begin_layout Plain Layout
366 has multiple 
367 \end_layout
368
369 \begin_layout Plain Layout
370 paragraphs.
371 \end_layout
372
373 \end_inset
374
375 .
376  
377 \end_layout
378
379 \begin_layout Section
380 I am the fifth section and I deal with floats
381 \end_layout
382
383 \begin_layout Standard
384 Now, three tables: 
385 \end_layout
386
387 \begin_layout Standard
388 \begin_inset Float table
389 wide false
390 sideways false
391 status open
392
393 \begin_layout Plain Layout
394 \align center
395 \begin_inset Tabular
396 <lyxtabular version="3" rows="3" columns="3">
397 <features tabularvalignment="middle">
398 <column alignment="center" valignment="top">
399 <column alignment="center" valignment="top">
400 <column alignment="center" valignment="top">
401 <row>
402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
403 \begin_inset Text
404
405 \begin_layout Plain Layout
406 Table 1
407 \end_layout
408
409 \end_inset
410 </cell>
411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
412 \begin_inset Text
413
414 \begin_layout Plain Layout
415 Table 2
416 \end_layout
417
418 \end_inset
419 </cell>
420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
421 \begin_inset Text
422
423 \begin_layout Plain Layout
424 Table 3
425 \end_layout
426
427 \end_inset
428 </cell>
429 </row>
430 <row>
431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
432 \begin_inset Text
433
434 \begin_layout Plain Layout
435 Row 1
436 \end_layout
437
438 \end_inset
439 </cell>
440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
441 \begin_inset Text
442
443 \begin_layout Plain Layout
444
445 \end_layout
446
447 \end_inset
448 </cell>
449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
450 \begin_inset Text
451
452 \begin_layout Plain Layout
453 Col 3, row 1
454 \end_layout
455
456 \end_inset
457 </cell>
458 </row>
459 <row>
460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
461 \begin_inset Text
462
463 \begin_layout Plain Layout
464 Row 2
465 \end_layout
466
467 \end_inset
468 </cell>
469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
470 \begin_inset Text
471
472 \begin_layout Plain Layout
473
474 \end_layout
475
476 \end_inset
477 </cell>
478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
479 \begin_inset Text
480
481 \begin_layout Plain Layout
482 Col 3, row 2
483 \end_layout
484
485 \end_inset
486 </cell>
487 </row>
488 </lyxtabular>
489
490 \end_inset
491
492
493 \end_layout
494
495 \begin_layout Plain Layout
496 \begin_inset Caption Standard
497
498 \begin_layout Plain Layout
499 I am a table caption below the table.
500 \end_layout
501
502 \end_inset
503
504
505 \end_layout
506
507 \end_inset
508
509
510 \end_layout
511
512 \begin_layout Standard
513 \begin_inset Float table
514 wide false
515 sideways false
516 status open
517
518 \begin_layout Plain Layout
519 \begin_inset Caption Standard
520
521 \begin_layout Plain Layout
522 I am a table caption above the table.
523 \end_layout
524
525 \end_inset
526
527
528 \end_layout
529
530 \begin_layout Plain Layout
531 \align center
532 \begin_inset Tabular
533 <lyxtabular version="3" rows="3" columns="3">
534 <features tabularvalignment="middle">
535 <column alignment="center" valignment="top">
536 <column alignment="center" valignment="top">
537 <column alignment="center" valignment="top">
538 <row>
539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
540 \begin_inset Text
541
542 \begin_layout Plain Layout
543 Table 1
544 \end_layout
545
546 \end_inset
547 </cell>
548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
549 \begin_inset Text
550
551 \begin_layout Plain Layout
552 Table 2
553 \end_layout
554
555 \end_inset
556 </cell>
557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
558 \begin_inset Text
559
560 \begin_layout Plain Layout
561 Table 3
562 \end_layout
563
564 \end_inset
565 </cell>
566 </row>
567 <row>
568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
569 \begin_inset Text
570
571 \begin_layout Plain Layout
572 Row 1
573 \end_layout
574
575 \end_inset
576 </cell>
577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
578 \begin_inset Text
579
580 \begin_layout Plain Layout
581
582 \end_layout
583
584 \end_inset
585 </cell>
586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
587 \begin_inset Text
588
589 \begin_layout Plain Layout
590 Col 3, row 1
591 \end_layout
592
593 \end_inset
594 </cell>
595 </row>
596 <row>
597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
598 \begin_inset Text
599
600 \begin_layout Plain Layout
601 Row 2
602 \end_layout
603
604 \end_inset
605 </cell>
606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
607 \begin_inset Text
608
609 \begin_layout Plain Layout
610
611 \end_layout
612
613 \end_inset
614 </cell>
615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
616 \begin_inset Text
617
618 \begin_layout Plain Layout
619 Col 3, row 2
620 \end_layout
621
622 \end_inset
623 </cell>
624 </row>
625 </lyxtabular>
626
627 \end_inset
628
629
630 \end_layout
631
632 \end_inset
633
634
635 \end_layout
636
637 \begin_layout Standard
638 \begin_inset Float table
639 wide false
640 sideways false
641 status open
642
643 \begin_layout Plain Layout
644 \align center
645 \begin_inset Tabular
646 <lyxtabular version="3" rows="3" columns="3">
647 <features tabularvalignment="middle">
648 <column alignment="center" valignment="top">
649 <column alignment="center" valignment="top">
650 <column alignment="center" valignment="top">
651 <row>
652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
653 \begin_inset Text
654
655 \begin_layout Plain Layout
656 Table that has no caption 1
657 \end_layout
658
659 \end_inset
660 </cell>
661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
662 \begin_inset Text
663
664 \begin_layout Plain Layout
665 Table that has no caption 2
666 \end_layout
667
668 \end_inset
669 </cell>
670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
671 \begin_inset Text
672
673 \begin_layout Plain Layout
674 Table that has no caption 3
675 \end_layout
676
677 \end_inset
678 </cell>
679 </row>
680 <row>
681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
682 \begin_inset Text
683
684 \begin_layout Plain Layout
685 Row 1
686 \end_layout
687
688 \end_inset
689 </cell>
690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
691 \begin_inset Text
692
693 \begin_layout Plain Layout
694
695 \end_layout
696
697 \end_inset
698 </cell>
699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
700 \begin_inset Text
701
702 \begin_layout Plain Layout
703 Col 3, row 1
704 \end_layout
705
706 \end_inset
707 </cell>
708 </row>
709 <row>
710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
711 \begin_inset Text
712
713 \begin_layout Plain Layout
714 Row 2
715 \end_layout
716
717 \end_inset
718 </cell>
719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
720 \begin_inset Text
721
722 \begin_layout Plain Layout
723
724 \end_layout
725
726 \end_inset
727 </cell>
728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
729 \begin_inset Text
730
731 \begin_layout Plain Layout
732 Col 3, row 2
733 \end_layout
734
735 \end_inset
736 </cell>
737 </row>
738 </lyxtabular>
739
740 \end_inset
741
742
743 \end_layout
744
745 \end_inset
746
747
748 \end_layout
749
750 \begin_layout Standard
751 Then, one figure: 
752 \end_layout
753
754 \begin_layout Standard
755 \begin_inset Float figure
756 wide false
757 sideways false
758 status open
759
760 \begin_layout Plain Layout
761 \align center
762 \begin_inset Graphics
763         filename lyx-logo.png
764
765 \end_inset
766
767
768 \end_layout
769
770 \begin_layout Plain Layout
771 \begin_inset Caption Standard
772
773 \begin_layout Plain Layout
774 Caption.
775 \end_layout
776
777 \end_inset
778
779
780 \end_layout
781
782 \end_inset
783
784
785 \end_layout
786
787 \begin_layout Section
788 I am the sixth section and I really like bibliographies
789 \end_layout
790
791 \begin_layout Standard
792 This text has references.
793  First reference: 
794 \begin_inset CommandInset citation
795 LatexCommand cite
796 key "big"
797 literal "false"
798
799 \end_inset
800
801 .
802  Second reference: 
803 \begin_inset CommandInset citation
804 LatexCommand cite
805 key "small"
806 literal "false"
807
808 \end_inset
809
810 .
811  Both at the same time: 
812 \begin_inset CommandInset citation
813 LatexCommand cite
814 key "big,small"
815 literal "false"
816
817 \end_inset
818
819 .
820  A book: 
821 \begin_inset CommandInset citation
822 LatexCommand cite
823 key "Gro60"
824 literal "false"
825
826 \end_inset
827
828 .
829  
830 \end_layout
831
832 \begin_layout Standard
833 Many things, just testing for completeness: 
834 \begin_inset CommandInset citation
835 LatexCommand cite
836 key "article,book,booklet,conference,inbook,incollection"
837 literal "false"
838
839 \end_inset
840
841 .
842  
843 \end_layout
844
845 \begin_layout Section
846 I am the seventh section and I deal with indices
847 \end_layout
848
849 \begin_layout Standard
850 First, a term to index: 
851 \begin_inset Index idx
852 status open
853
854 \begin_layout Plain Layout
855 Term to index
856 \end_layout
857
858 \end_inset
859
860 .
861  Then a term to add to the second index: 
862 \begin_inset Index oth
863 status open
864
865 \begin_layout Plain Layout
866 Term to add to the second index
867 \end_layout
868
869 \end_inset
870
871 .
872  
873 \end_layout
874
875 \begin_layout Standard
876 Then several terms for the first index: 
877 \begin_inset Index idx
878 status open
879
880 \begin_layout Plain Layout
881 Term!to!index
882 \end_layout
883
884 \end_inset
885
886 .
887  
888 \end_layout
889
890 \begin_layout Standard
891 With a see: 
892 \begin_inset Index idx
893 status open
894
895 \begin_layout Plain Layout
896 Term|see{index}
897 \end_layout
898
899 \end_inset
900
901 .
902  With a see also: 
903 \begin_inset Index idx
904 status open
905
906 \begin_layout Plain Layout
907 Term|seealso{index}
908 \end_layout
909
910 \end_inset
911
912 .
913  
914 \end_layout
915
916 \begin_layout Standard
917 Several terms with a see: 
918 \begin_inset Index idx
919 status open
920
921 \begin_layout Plain Layout
922 Term!to!index|see{index}
923 \end_layout
924
925 \end_inset
926
927 .
928  Several terms with a see also: 
929 \begin_inset Index idx
930 status open
931
932 \begin_layout Plain Layout
933 Term!to!index|seealso{index}
934 \end_layout
935
936 \end_inset
937
938 .
939  
940 \end_layout
941
942 \begin_layout Standard
943 A start of range: 
944 \begin_inset Index idx
945 status open
946
947 \begin_layout Plain Layout
948 Term to index|(
949 \end_layout
950
951 \end_inset
952
953 .
954  The corresponding end of range: 
955 \begin_inset Index idx
956 status open
957
958 \begin_layout Plain Layout
959 Term to index|)
960 \end_layout
961
962 \end_inset
963
964 .
965 \end_layout
966
967 \begin_layout Standard
968 Several terms with a start of range: 
969 \begin_inset Index idx
970 status open
971
972 \begin_layout Plain Layout
973 Term!to!index|(
974 \end_layout
975
976 \end_inset
977
978 .
979  The corresponding end of range: 
980 \begin_inset Index idx
981 status open
982
983 \begin_layout Plain Layout
984 Term!to!index|)
985 \end_layout
986
987 \end_inset
988
989 .
990 \end_layout
991
992 \begin_layout Standard
993 These terms already appeared before! Start of range: 
994 \begin_inset Index idx
995 status open
996
997 \begin_layout Plain Layout
998 Term!to!index|(
999 \end_layout
1000
1001 \end_inset
1002
1003 .
1004  The corresponding end of range: 
1005 \begin_inset Index idx
1006 status open
1007
1008 \begin_layout Plain Layout
1009 Term!to!index|)
1010 \end_layout
1011
1012 \end_inset
1013
1014 .
1015 \end_layout
1016
1017 \begin_layout Section
1018 I am the eight section and I deal with star sections
1019 \end_layout
1020
1021 \begin_layout Part*
1022 Star part
1023 \end_layout
1024
1025 \begin_layout Section*
1026 Star section (sect1)
1027 \end_layout
1028
1029 \begin_layout Subsection*
1030 Star subsection (sect2)
1031 \end_layout
1032
1033 \begin_layout Subsubsection*
1034 Star subsubsection (sect3)
1035 \end_layout
1036
1037 \begin_layout Paragraph*
1038 Star paragraph (sect4)
1039 \end_layout
1040
1041 \begin_layout Subparagraph*
1042 Star subparagraph (sect5)
1043 \end_layout
1044
1045 \begin_layout Standard
1046 \begin_inset CommandInset bibtex
1047 LatexCommand bibtex
1048 bibfiles "basic"
1049 options "plain"
1050
1051 \end_inset
1052
1053
1054 \end_layout
1055
1056 \end_body
1057 \end_document