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