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