From 02216551b3c51d70159c1196672df244e4871bf3 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Fri, 10 May 2019 00:39:56 +0200 Subject: [PATCH] Adding DocBook test cases. --- autotests/export/docbook/basic.bib | 109 ++ autotests/export/docbook/basic.lyx | 1057 +++++++++++++++++ autotests/export/docbook/basic.xml | 369 ++++++ autotests/export/docbook/basic_book.lyx | 157 +++ autotests/export/docbook/basic_book.xml | 45 + autotests/export/docbook/list_depth.lyx | 101 ++ autotests/export/docbook/list_depth.xml | 13 + autotests/export/docbook/listings.lyx | 113 ++ autotests/export/docbook/listings.xml | 10 + autotests/export/docbook/lists.lyx | 129 ++ autotests/export/docbook/lists.xml | 33 + autotests/export/docbook/lyx-logo.png | Bin 0 -> 3661 bytes .../export/docbook/mathml_ns_entities.lyx | 109 ++ .../export/docbook/mathml_ns_entities.xml | 51 + autotests/export/docbook/olddb_article.lyx | 122 ++ autotests/export/docbook/olddb_article.xml | 25 + autotests/export/docbook/olddb_book.lyx | 122 ++ autotests/export/docbook/olddb_book.xml | 28 + autotests/export/docbook/subfigures.lyx | 849 +++++++++++++ autotests/export/docbook/subfigures.xml | 98 ++ 20 files changed, 3540 insertions(+) create mode 100644 autotests/export/docbook/basic.bib create mode 100644 autotests/export/docbook/basic.lyx create mode 100644 autotests/export/docbook/basic.xml create mode 100644 autotests/export/docbook/basic_book.lyx create mode 100644 autotests/export/docbook/basic_book.xml create mode 100644 autotests/export/docbook/list_depth.lyx create mode 100644 autotests/export/docbook/list_depth.xml create mode 100644 autotests/export/docbook/listings.lyx create mode 100644 autotests/export/docbook/listings.xml create mode 100644 autotests/export/docbook/lists.lyx create mode 100644 autotests/export/docbook/lists.xml create mode 100644 autotests/export/docbook/lyx-logo.png create mode 100644 autotests/export/docbook/mathml_ns_entities.lyx create mode 100644 autotests/export/docbook/mathml_ns_entities.xml create mode 100644 autotests/export/docbook/olddb_article.lyx create mode 100644 autotests/export/docbook/olddb_article.xml create mode 100644 autotests/export/docbook/olddb_book.lyx create mode 100644 autotests/export/docbook/olddb_book.xml create mode 100644 autotests/export/docbook/subfigures.lyx create mode 100644 autotests/export/docbook/subfigures.xml 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 0000000000000000000000000000000000000000..bb26282530565a22f037acc5ccedbe025e93f984 GIT binary patch literal 3661 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 VAIPQN9lHVmdRj)BICbY2{{wHt&BXu! literal 0 HcmV?d00001 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
+
+ +
-- 2.39.2