diff --git a/autotests/export/docbook/basic.bib b/autotests/export/docbook/basic.bib new file mode 100644 index 0000000000..88a9fe7b14 --- /dev/null +++ b/autotests/export/docbook/basic.bib @@ -0,0 +1,109 @@ +@article{small, +author = {Freely, I. P., and Wright, Jason, and Johannes, Ditto}, +title = {A small paper}, +journal = {The journal of small papers}, +year = 1997, +volume = {-1}, +note = {to appear}, +} + +@article{big, +author = {Jass, Hugh}, +title = {A big paper}, +journal = {The journal of big papers}, +year = 7991, +volume = {MCMXCVII}, +} + +@book{Gro60, + title = {\'El\'ements de g\'eom\'etrie alg\'ebrique}, + author = {Alexander Grothendieck}, + year = 1960, + shorthand = {EGAI}, + isbn = "0471491101" +} + +% The next ones are more systematical. They come from https://verbosus.com/bibtex-style-examples.html (retrieved 2017-10-11). +@article{article, + author = {Peter Adams}, + title = {The title of the work}, + journal = {The name of the journal}, + year = 1993, + number = 2, + pages = {201-213}, + month = 7, + note = {An optional note}, + volume = 4 +} + +@book{book, + author = {Peter Babington}, + title = {The title of the work}, + publisher = {The name of the publisher}, + year = 1993, + volume = 4, + series = 10, + address = {The address}, + edition = 3, + month = 7, + note = {An optional note}, + isbn = {3257227892} +} + +@booklet{booklet, + title = {The title of the work}, + author = {Peter Caxton}, + howpublished = {How it was published}, + address = {The address of the publisher}, + month = 7, + year = 1993, + note = {An optional note} +} + +@conference{conference, + author = {Peter Draper}, + title = {The title of the work}, + booktitle = {The title of the book}, + year = 1993, + editor = {The editor}, + volume = 4, + series = 5, + pages = 213, + address = {The address of the publisher}, + month = 7, + organization = {The organization}, + publisher = {The publisher}, + note = {An optional note} +} + +@inbook{inbook, + author = {Peter Eston}, + title = {The title of the work}, + chapter = 8, + pages = {201-213}, + publisher = {The name of the publisher}, + year = 1993, + volume = 4, + series = 5, + address = {The address of the publisher}, + edition = 3, + month = 7, + note = {An optional note} +} + +@incollection{incollection, + author = {Peter Farindon}, + title = {The title of the work}, + booktitle = {The title of the book}, + publisher = {The name of the publisher}, + year = 1993, + editor = {The editor}, + volume = 4, + series = 5, + chapter = 8, + pages = {201-213}, + address = {The address of the publisher}, + edition = 3, + month = 7, + note = {An optional note} +} diff --git a/autotests/export/docbook/basic.lyx b/autotests/export/docbook/basic.lyx new file mode 100644 index 0000000000..0bd87cecbb --- /dev/null +++ b/autotests/export/docbook/basic.lyx @@ -0,0 +1,1057 @@ +#LyX 2.4 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +\newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices true +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\index Other index +\shortcut oth +\color #cc0000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +I am a title +\end_layout + +\begin_layout Author +I am an author +\end_layout + +\begin_layout Date +I am a date +\end_layout + +\begin_layout Abstract +I am an abstract +\end_layout + +\begin_layout Abstract +I am also an abstract +\end_layout + +\begin_layout Standard +I am a standard paragraph. + +\end_layout + +\begin_layout Section +I am the first section +\begin_inset CommandInset label +LatexCommand label +name "sec:Sec-1" + +\end_inset + + +\end_layout + +\begin_layout Standard +I am the first paragraph of the first section. + +\end_layout + +\begin_layout Standard +I am the second paragraph of the first section. + +\end_layout + +\begin_layout Quote +I am a quote +\begin_inset Formula $\,with\,a\,formula$ +\end_inset + +. + +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +Formula! +\] + +\end_inset + + +\begin_inset Formula +\begin{equation} +\text{I am a formula with a ref.}\label{eq:EQ.} +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +See +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Sec-2kqgsdiflhqsdlifgjuzer=povtuizmvnuer=t vmsrmfli uh =a'\"rtpfuoé&\"'rtpc!m'caôrgifzapeuùtvgz" +plural "false" +caps "false" +noprefix "false" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Also, a formula with an user-defined macro that outputs well in LaTeX but + cannot in MathML (hence replaced by picture): +\begin_inset Formula $\testmacro$ +\end_inset + +. + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +latexCommandThatShouldBeCommented +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +I am the first subsection +\end_layout + +\begin_layout Standard +I am the only paragraph of the first subsection. + +\end_layout + +\begin_layout Subsection +I am the second subsection +\end_layout + +\begin_layout Standard +I am the only paragraph of the second subsection. + +\end_layout + +\begin_layout Section +I am the second section +\begin_inset CommandInset label +LatexCommand label +name "sec:Sec-2kqgsdiflhqsdlifgjuzer=povtuizmvnuer=t vmsrmfli uh =a'\"rtpfuoé&\"'rtpc!m'caôrgifzapeuùtvgz" + +\end_inset + + +\end_layout + +\begin_layout Standard +I am the only paragraph of the second section. + +\begin_inset CommandInset href +LatexCommand href +name "Hyperlink." +target "http://example.org" +literal "false" + +\end_inset + + +\begin_inset Quotes eld +\end_inset + +Text between quotes. +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +See +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Sec-1" +plural "false" +caps "false" +noprefix "false" + +\end_inset + +. +\end_layout + +\begin_layout Section +I am the third section and I have fun with lists +\end_layout + +\begin_layout Enumerate +First item. + +\begin_inset Newline newline +\end_inset + +Second line of the first item, after a line break. + +\end_layout + +\begin_layout Enumerate +Second item. + +\end_layout + +\begin_layout Itemize +Item has no order (1). + +\end_layout + +\begin_layout Itemize +Item has no order (2). + +\end_layout + +\begin_layout Description +Word description +\end_layout + +\begin_layout Description +Sentence meaning +\end_layout + +\begin_layout Section +I am the fourth section and I deal with formatting. + +\end_layout + +\begin_layout Standard +The following paragraph should be code. + +\end_layout + +\begin_layout Standard +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +I am some code. + +\end_layout + +\begin_layout Plain Layout + +I am a second line of code. + +\end_layout + +\end_inset + +I am no more code. + +\end_layout + +\begin_layout Standard +This line has inline code. + +\family typewriter +This has typewriter font +\family default + +\begin_inset Foot +status open + +\begin_layout Plain Layout +I repeat that in a footnote. +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +On the other hand, +\begin_inset Foot +status open + +\begin_layout Plain Layout +this footnote +\end_layout + +\begin_layout Plain Layout +has multiple +\end_layout + +\begin_layout Plain Layout +paragraphs. +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Section +I am the fifth section and I deal with floats +\end_layout + +\begin_layout Standard +Now, three tables: +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Table 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table 3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 2 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +I am a table caption below the table. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +I am a table caption above the table. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Table 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table 3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 2 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Table that has no caption 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table that has no caption 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Table that has no caption 3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 1 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Col 3, row 2 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Then, one figure: +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename lyx-logo.png + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Caption. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +I am the sixth section and I really like bibliographies +\end_layout + +\begin_layout Standard +This text has references. + First reference: +\begin_inset CommandInset citation +LatexCommand cite +key "big" +literal "false" + +\end_inset + +. + Second reference: +\begin_inset CommandInset citation +LatexCommand cite +key "small" +literal "false" + +\end_inset + +. + Both at the same time: +\begin_inset CommandInset citation +LatexCommand cite +key "big,small" +literal "false" + +\end_inset + +. + A book: +\begin_inset CommandInset citation +LatexCommand cite +key "Gro60" +literal "false" + +\end_inset + +. + +\end_layout + +\begin_layout Standard +Many things, just testing for completeness: +\begin_inset CommandInset citation +LatexCommand cite +key "article,book,booklet,conference,inbook,incollection" +literal "false" + +\end_inset + +. + +\end_layout + +\begin_layout Section +I am the seventh section and I deal with indices +\end_layout + +\begin_layout Standard +First, a term to index: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term to index +\end_layout + +\end_inset + +. + Then a term to add to the second index: +\begin_inset Index oth +status open + +\begin_layout Plain Layout +Term to add to the second index +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +Then several terms for the first index: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +With a see: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term|see{index} +\end_layout + +\end_inset + +. + With a see also: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term|seealso{index} +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +Several terms with a see: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|see{index} +\end_layout + +\end_inset + +. + Several terms with a see also: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|seealso{index} +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +A start of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term to index|( +\end_layout + +\end_inset + +. + The corresponding end of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term to index|) +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Standard +Several terms with a start of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|( +\end_layout + +\end_inset + +. + The corresponding end of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|) +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Standard +These terms already appeared before! Start of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|( +\end_layout + +\end_inset + +. + The corresponding end of range: +\begin_inset Index idx +status open + +\begin_layout Plain Layout +Term!to!index|) +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Section +I am the eight section and I deal with star sections +\end_layout + +\begin_layout Part* +Star part +\end_layout + +\begin_layout Section* +Star section (sect1) +\end_layout + +\begin_layout Subsection* +Star subsection (sect2) +\end_layout + +\begin_layout Subsubsection* +Star subsubsection (sect3) +\end_layout + +\begin_layout Paragraph* +Star paragraph (sect4) +\end_layout + +\begin_layout Subparagraph* +Star subparagraph (sect5) +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "basic" +options "plain" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/basic.xml b/autotests/export/docbook/basic.xml new file mode 100644 index 0000000000..f208ae61da --- /dev/null +++ b/autotests/export/docbook/basic.xml @@ -0,0 +1,369 @@ + + +
+ +I am a title +I am an author +I am a date + +I am an abstract +I am also an abstract + + +I am a standard paragraph. +
+I am the first section +I am the first paragraph of the first section. + +I am the second paragraph of the first section. + +
I am a quote + + + \,with\,a\,formula + + + with + a + formula + + + + . +
+ + + + Formula! + + Formula! + + + + + + + \text{I am a formula with a ref.}\label{eq:EQ.} + + + I am a formula with a ref. + + + + + + +See . + +Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML (hence replaced by picture): + + + \testmacro + + . + +
+I am the first subsection +I am the only paragraph of the first subsection. +
+
+I am the second subsection +I am the only paragraph of the second subsection. +
+
+
+I am the second section +I am the only paragraph of the second section. Hyperlink. “Text between quotes.” + +See . +
+
+I am the third section and I have fun with lists + + +First item. +Second line of the first item, after a line break. + + +Second item. + + + + +Item has no order (1). + + +Item has no order (2). + + + +Word + + + description + +Sentence + + + meaning + + +
+
+I am the fourth section and I deal with formatting. +The following paragraph should be code. + +I am some code. +I am a second line of code. I am no more code. + +This line has inline code. This has typewriter fontI repeat that in a footnote. +. + +On the other hand, this footnote + +has multiple + +paragraphs. +. +
+
+I am the fifth section and I deal with floats +Now, three tables: + + + + + + + + + + + + + + + + + + +
I am a table caption below the table.
Table 1Table 2Table 3
Row 1Col 3, row 1
Row 2Col 3, row 2
+ + + + + + + + + + + + + + + + + + +
I am a table caption above the table.
Table 1Table 2Table 3
Row 1Col 3, row 1
Row 2Col 3, row 2
+ + + + +Table that has no caption 1 +Table that has no caption 2 +Table that has no caption 3 + +Row 1 + +Col 3, row 1 + +Row 2 + +Col 3, row 2 + + + +Then, one figure: + + +
Caption. + + + + + + +
+
+
+I am the sixth section and I really like bibliographies +This text has references. First reference: . Second reference: . Both at the same time: , . A book: . + +Many things, just testing for completeness: , , , , , . +
+
+I am the seventh section and I deal with indices +First, a term to index: Term to index. Then a term to add to the second index: Term to add to the second index. + +Then several terms for the first index: Termtoindex. + +With a see: Termindex. With a see also: Termindex. + +Several terms with a see: Termtoindexindex. Several terms with a see also: Termtoindexindex. + +A start of range: Term to index. The corresponding end of range: Term to index. + +Several terms with a start of range: Termtoindex. The corresponding end of range: Termtoindex. + +These terms already appeared before! Start of range: Termtoindex. The corresponding end of range: Termtoindex. +
+
+I am the eight section and I deal with star sections +Star part +Star section (sect1) +Star subsection (sect2) +Star subsubsection (sect3) +Star paragraph (sect4) +Star subparagraph (sect5) +
+ +References + +The title of the work4201-213article +1993 + +The name of the journal + + + +Peter +Adams + + + +2 +An optional note + + +The title of the work43book + +The name of the publisher +
The address
+1993 + + +Peter +Babington + + + +An optional note +
+ +The title of the workbooklet +1993 + + +Peter +Caxton + + + + + +The title of the work213conference + +The publisher + +1993 + + +Peter +Draper + + + + + +The title of the work201-213inbook + +The name of the publisher + +1993 + + +Peter +Eston + + + + + +The title of the work43201-213incollection + +The name of the publisher +
The address of the publisher
+1993 + +The title of the book + + + +Peter +Farindon + + + +An optional note +
+ +A small paper-1article +1997 + +The journal of small papers + + + +Freely +I. P. + + + + +Ditto +Johannes + + + +to appear + + +Éléments de géométrie algébriquebook +1960 + + +Alexander +Grothendieck + + + + + +A big paperMCMXCVIIarticle +7991 + +The journal of big papers + + + +Hugh +Jass + + + + +
+
\ No newline at end of file diff --git a/autotests/export/docbook/basic_book.lyx b/autotests/export/docbook/basic_book.lyx new file mode 100644 index 0000000000..de77312d67 --- /dev/null +++ b/autotests/export/docbook/basic_book.lyx @@ -0,0 +1,157 @@ +#LyX 2.4 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass book +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Book title +\end_layout + +\begin_layout Author +Book author +\end_layout + +\begin_layout Standard +Book abstract in info. + +\end_layout + +\begin_layout Chapter +First chapter (outside part) +\end_layout + +\begin_layout Standard +Paragraph. + +\end_layout + +\begin_layout Part +First part +\end_layout + +\begin_layout Standard +Part intro. + +\end_layout + +\begin_layout Chapter +First chapter of first part +\end_layout + +\begin_layout Standard +Paragraph. + +\end_layout + +\begin_layout Chapter +Second chapter of first part +\end_layout + +\begin_layout Standard +Paragraph. + +\end_layout + +\begin_layout Part +Second part +\end_layout + +\begin_layout Standard +Part 2 intro. + +\end_layout + +\begin_layout Chapter +First chapter of second part +\end_layout + +\begin_layout Standard +Paragraph. + +\end_layout + +\begin_layout Chapter +Second chapter of second part +\end_layout + +\begin_layout Standard +Paragraph. + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/basic_book.xml b/autotests/export/docbook/basic_book.xml new file mode 100644 index 0000000000..c94d2faeaf --- /dev/null +++ b/autotests/export/docbook/basic_book.xml @@ -0,0 +1,45 @@ + + + + +Book title +Book author + +Book abstract in info. + + + +First chapter (outside part) +Paragraph. + + +First part + +Part intro. + + +First chapter of first part +Paragraph. + + +Second chapter of first part +Paragraph. + + + +Second part + +Part 2 intro. + + +First chapter of second part +Paragraph. + + +Second chapter of second part +Paragraph. + + + + \ No newline at end of file diff --git a/autotests/export/docbook/list_depth.lyx b/autotests/export/docbook/list_depth.lyx new file mode 100644 index 0000000000..cbb550b3be --- /dev/null +++ b/autotests/export/docbook/list_depth.lyx @@ -0,0 +1,101 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children no +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content true +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test document +\end_layout + +\begin_layout Itemize + +\series bold +Title. +\begin_inset Newline newline +\end_inset + + +\series default +Content. +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/list_depth.xml b/autotests/export/docbook/list_depth.xml new file mode 100644 index 0000000000..3833931da9 --- /dev/null +++ b/autotests/export/docbook/list_depth.xml @@ -0,0 +1,13 @@ + + +
+Test document + + +Title. +Content. + + + +
diff --git a/autotests/export/docbook/listings.lyx b/autotests/export/docbook/listings.lyx new file mode 100644 index 0000000000..fdab16d859 --- /dev/null +++ b/autotests/export/docbook/listings.lyx @@ -0,0 +1,113 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 595 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children no +\language american +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content true +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test document +\end_layout + +\begin_layout Standard +This is a programlisting: +\end_layout + +\begin_layout Standard +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +First line of programlisting +\end_layout + +\begin_layout Plain Layout + +Second line of programlisting +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/listings.xml b/autotests/export/docbook/listings.xml new file mode 100644 index 0000000000..e65de60a90 --- /dev/null +++ b/autotests/export/docbook/listings.xml @@ -0,0 +1,10 @@ + + +
+Test document +This is a programlisting: +First line of programlisting +Second line of programlisting + +
\ No newline at end of file diff --git a/autotests/export/docbook/lists.lyx b/autotests/export/docbook/lists.lyx new file mode 100644 index 0000000000..02541e0e74 --- /dev/null +++ b/autotests/export/docbook/lists.lyx @@ -0,0 +1,129 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children no +\language american +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content true +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test document +\end_layout + +\begin_layout Standard +A list: +\end_layout + +\begin_layout Itemize +First item +\end_layout + +\begin_deeper +\begin_layout Itemize +First first item +\end_layout + +\begin_layout Itemize +First second item +\end_layout + +\begin_layout Standard +Text after first item +\end_layout + +\end_deeper +\begin_layout Itemize +Second item +\end_layout + +\begin_deeper +\begin_layout Enumerate +Second first item +\end_layout + +\begin_layout Enumerate +Second second item +\end_layout + +\begin_layout Standard +Text after second item +\end_layout + +\end_deeper +\end_body +\end_document diff --git a/autotests/export/docbook/lists.xml b/autotests/export/docbook/lists.xml new file mode 100644 index 0000000000..0468223317 --- /dev/null +++ b/autotests/export/docbook/lists.xml @@ -0,0 +1,33 @@ + + +
+Test document +A list: + + +First item + + +First first item + + +First second item + + +Text after first item + + +Second item + + +Second first item + + +Second second item + + +Text after second item + + +
\ No newline at end of file diff --git a/autotests/export/docbook/lyx-logo.png b/autotests/export/docbook/lyx-logo.png new file mode 100644 index 0000000000..bb26282530 Binary files /dev/null and b/autotests/export/docbook/lyx-logo.png differ diff --git a/autotests/export/docbook/mathml_ns_entities.lyx b/autotests/export/docbook/mathml_ns_entities.lyx new file mode 100644 index 0000000000..958e01347a --- /dev/null +++ b/autotests/export/docbook/mathml_ns_entities.lyx @@ -0,0 +1,109 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 595 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children no +\language american +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content true +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test document +\end_layout + +\begin_layout Standard +A formula: +\begin_inset Formula +\[ +\Vert,\vert +\] + +\end_inset + +A second formula: +\begin_inset Formula +\[ +\left\Vert \mathbf{a^{T}\,x}\right\Vert _{2}\leq x_{0} +\] + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/mathml_ns_entities.xml b/autotests/export/docbook/mathml_ns_entities.xml new file mode 100644 index 0000000000..2ee7f39b61 --- /dev/null +++ b/autotests/export/docbook/mathml_ns_entities.xml @@ -0,0 +1,51 @@ + + +
+Test document +A formula: + + + \Vert,\vert + + ,| + + + + A second formula: + + + \left\Vert \mathbf{a^{T}\,x}\right\Vert _{2}\leq x_{0} + + + + + + + + + a + + T + + x + + + + + + 2 + + + + x + + 0 + + + + + + + +
diff --git a/autotests/export/docbook/olddb_article.lyx b/autotests/export/docbook/olddb_article.lyx new file mode 100644 index 0000000000..174a226925 --- /dev/null +++ b/autotests/export/docbook/olddb_article.lyx @@ -0,0 +1,122 @@ +#LyX 2.4 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass docbook +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Article title +\end_layout + +\begin_layout Author +Article author +\end_layout + +\begin_layout Authorgroup +Article author group +\end_layout + +\begin_layout Date +Article date +\end_layout + +\begin_layout Abstract +Article abstract. + +\end_layout + +\begin_layout RevisionHistory +Article revision history. + +\end_layout + +\begin_layout Revision +Article revision. + +\end_layout + +\begin_layout RevisionRemark +Article revision remark. + +\end_layout + +\begin_layout Verse +Literal. + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/olddb_article.xml b/autotests/export/docbook/olddb_article.xml new file mode 100644 index 0000000000..7cd3de3edc --- /dev/null +++ b/autotests/export/docbook/olddb_article.xml @@ -0,0 +1,25 @@ + + +
+ +Article title + +Article author + + +Article author group + +Article date + +Article abstract. + + +Article revision history. +Article revision. +Article revision remark. + +Literal. + + +
\ No newline at end of file diff --git a/autotests/export/docbook/olddb_book.lyx b/autotests/export/docbook/olddb_book.lyx new file mode 100644 index 0000000000..801086e017 --- /dev/null +++ b/autotests/export/docbook/olddb_book.lyx @@ -0,0 +1,122 @@ +#LyX 2.4 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass docbook-book +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Book title +\end_layout + +\begin_layout Author +Book author +\end_layout + +\begin_layout Authorgroup +Book author group +\end_layout + +\begin_layout Date +Book date +\end_layout + +\begin_layout Abstract +Book abstract. + +\end_layout + +\begin_layout RevisionHistory +Book revision history. + +\end_layout + +\begin_layout Revision +Book revision. + +\end_layout + +\begin_layout RevisionRemark +Book revision remark. + +\end_layout + +\begin_layout Verse +Literal. + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/olddb_book.xml b/autotests/export/docbook/olddb_book.xml new file mode 100644 index 0000000000..5debd71ff9 --- /dev/null +++ b/autotests/export/docbook/olddb_book.xml @@ -0,0 +1,28 @@ + + + + +Book title + +Book author + + +Book author group + +Book date + +Book abstract. + + +Book revision history. + + +Book revision. +Book revision remark. + + +Literal. + + + \ No newline at end of file diff --git a/autotests/export/docbook/subfigures.lyx b/autotests/export/docbook/subfigures.lyx new file mode 100644 index 0000000000..c92131ae10 --- /dev/null +++ b/autotests/export/docbook/subfigures.lyx @@ -0,0 +1,849 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 595 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children no +\language american +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content true +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test document +\end_layout + +\begin_layout Standard +Formalgroup with two images: +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename lyx-logo.png + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subfigure a. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hspace*{\fill} +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename lyx-logo.png + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subfigure b. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Formalgroup, figures above. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Formalgroup, figures below. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename lyx-logo.png + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subfigure a. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hspace*{\fill} +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename lyx-logo.png + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subfigure b. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Formalgroup with two tables: +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subtable a. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hspace*{\fill} +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subtable b. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Formalgroup, tables above. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Formalgroup, tables above. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subtable a. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hspace*{\fill} +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Subtable b. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/subfigures.xml b/autotests/export/docbook/subfigures.xml new file mode 100644 index 0000000000..4a7c122291 --- /dev/null +++ b/autotests/export/docbook/subfigures.xml @@ -0,0 +1,98 @@ + + +
+Test document +Formalgroup with two images: + +Formalgroup, figures above. +
+Subfigure a. + + + + + +
+
+Subfigure b. + + + + + +
+
+ +Formalgroup, figures below. +
+Subfigure a. + + + + + +
+
+Subfigure b. + + + + + +
+
+Formalgroup with two tables: + +Formalgroup, tables above. + + + + + + + + + + +
Subtable a.
ab
cd
+ + + + + + + + + + + +
Subtable b.
ab
cd
+
+ +Formalgroup, tables above. + + + + + + + + + + +
Subtable a.
ab
cd
+ + + + + + + + + + +
Subtable b.
ab
cd
+
+ +