DocBook: fix indentation for section titles (including stars).

This commit is contained in:
Thibaut Cuvelier 2020-08-29 18:40:31 +02:00
parent fc2c36289b
commit 97cfabb883
3 changed files with 69 additions and 29 deletions

View File

@ -1,5 +1,5 @@
#LyX 2.4 created this file. For more info see http://www.lyx.org/ #LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 544 \lyxformat 598
\begin_document \begin_document
\begin_header \begin_header
\save_transient_properties true \save_transient_properties true
@ -9,11 +9,11 @@
\newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}} \newcommand{\testmacro}{\ensuremath{\operatorname{testmacro}}}
\end_preamble \end_preamble
\use_default_options true \use_default_options true
\maintain_unincluded_children false \maintain_unincluded_children no
\language english \language english
\language_package default \language_package default
\inputencoding auto \inputencoding auto-legacy
\fontencoding global \fontencoding auto
\font_roman "default" "default" \font_roman "default" "default"
\font_sans "default" "default" \font_sans "default" "default"
\font_typewriter "default" "default" \font_typewriter "default" "default"
@ -21,7 +21,9 @@
\font_default_family default \font_default_family default
\use_non_tex_fonts false \use_non_tex_fonts false
\font_sc false \font_sc false
\font_osf false \font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100 \font_sf_scale 100 100
\font_tt_scale 100 100 \font_tt_scale 100 100
\use_microtype false \use_microtype false
@ -56,6 +58,7 @@
\justification true \justification true
\use_refstyle 1 \use_refstyle 1
\use_minted 0 \use_minted 0
\use_lineno 0
\index Index \index Index
\shortcut idx \shortcut idx
\color #008000 \color #008000
@ -75,11 +78,15 @@
\papercolumns 1 \papercolumns 1
\papersides 1 \papersides 1
\paperpagestyle default \paperpagestyle default
\tablestyle default
\tracking_changes false \tracking_changes false
\output_changes false \output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0 \html_math_output 0
\html_css_as_file 0 \html_css_as_file 0
\html_be_strict false \html_be_strict false
\docbook_table_output 0
\end_header \end_header
\begin_body \begin_body
@ -139,6 +146,10 @@ I am a quote
\end_layout \end_layout
\begin_layout Standard
Now, we're outside quotes.
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Formula \begin_inset Formula
\[ \[
@ -386,6 +397,8 @@ Now, three tables:
\begin_layout Standard \begin_layout Standard
\begin_inset Float table \begin_inset Float table
placement document
alignment document
wide false wide false
sideways false sideways false
status open status open
@ -511,6 +524,8 @@ I am a table caption below the table.
\begin_layout Standard \begin_layout Standard
\begin_inset Float table \begin_inset Float table
placement document
alignment document
wide false wide false
sideways false sideways false
status open status open
@ -636,6 +651,8 @@ Col 3, row 2
\begin_layout Standard \begin_layout Standard
\begin_inset Float table \begin_inset Float table
placement document
alignment document
wide false wide false
sideways false sideways false
status open status open
@ -753,6 +770,8 @@ Then, one figure:
\begin_layout Standard \begin_layout Standard
\begin_inset Float figure \begin_inset Float figure
placement document
alignment document
wide false wide false
sideways false sideways false
status open status open

View File

@ -29,6 +29,7 @@
</m:math> </m:math>
</inlineequation>. </para> </inlineequation>. </para>
</blockquote> </blockquote>
<para>Now, we're outside quotes.</para>
<para><informalequation> <para><informalequation>
<alt role='tex'>Formula!</alt> <alt role='tex'>Formula!</alt>
<m:math> <m:math>
@ -72,22 +73,37 @@
</section> </section>
<section> <section>
<title>I am the third section and I have fun with lists</title> <title>I am the third section and I have fun with lists</title>
<orderedlist><listitem>First item. <orderedlist>
<br /> <listitem>
Second line of the first item, after a line break. </listitem></orderedlist> <para>First item. </para>
<orderedlist><listitem>Second item. </listitem></orderedlist> <para>Second line of the first item, after a line break. </para>
<itemizedlist><listitem>Item has no order (1). </listitem></itemizedlist> </listitem>
<itemizedlist><listitem>Item has no order (2). </listitem></itemizedlist> <listitem>
<variablelist><listitem><varlistentry> <para>Second item. </para>
</listitem>
Word description<!-- Output Error: Closing tag `listitem' when other tags are open, namely: --> </orderedlist>
<!-- Output Error: varlistentry --> <itemizedlist>
</varlistentry></listitem></variablelist> <listitem>
<variablelist><listitem><varlistentry> <para>Item has no order (1). </para>
</listitem>
Sentence meaning<!-- Output Error: Closing tag `listitem' when other tags are open, namely: --> <listitem>
<!-- Output Error: varlistentry --> <para>Item has no order (2). </para>
</varlistentry></listitem></variablelist> </listitem>
</itemizedlist>
<variablelist>
<varlistentry>
<term>Word</term>
<listitem>
<para>description</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Sentence</term>
<listitem>
<para>meaning</para>
</listitem>
</varlistentry>
</variablelist>
</section> </section>
<section> <section>
<title>I am the fourth section and I deal with formatting. </title> <title>I am the fourth section and I deal with formatting. </title>
@ -95,9 +111,11 @@ Sentence meaning<!-- Output Error: Closing tag `listitem' when other tags are op
<para><programlisting>I am some code. <para><programlisting>I am some code.
I am a second line of code. I am a second line of code.
</programlisting>I am no more code. </para> </programlisting>I am no more code. </para>
<para>This line has inline code. <code>This has typewriter font</code><footnote><para>I repeat that in a footnote.</para> <para>This line has inline code. <code>This has typewriter font</code><footnote>
<para>I repeat that in a footnote.</para>
</footnote>. </para> </footnote>. </para>
<para>On the other hand, <footnote><para>this footnote</para> <para>On the other hand, <footnote>
<para>this footnote</para>
<para>has multiple </para> <para>has multiple </para>
<para>paragraphs.</para> <para>paragraphs.</para>
</footnote>. </para> </footnote>. </para>
@ -145,7 +163,7 @@ I am a second line of code.
</tr> </tr>
</tbody> </tbody>
</table> </table>
<informaltable> <table>
<tbody> <tbody>
<tr> <tr>
<td align='center' valign='top'>Table that has no caption 1</td> <td align='center' valign='top'>Table that has no caption 1</td>
@ -163,7 +181,8 @@ I am a second line of code.
<td align='center' valign='top'>Col 3, row 2</td> <td align='center' valign='top'>Col 3, row 2</td>
</tr> </tr>
</tbody> </tbody>
</informaltable> </table>
<para>Then, one figure: </para> <para>Then, one figure: </para>
<figure> <figure>
<title>Caption.</title> <title>Caption.</title>
@ -334,5 +353,4 @@ I am a second line of code.
</author> </author>
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
</bibliography> </bibliography></article>
</article>

View File

@ -7,7 +7,7 @@
# commands that are useful for article-like document classes, but not # commands that are useful for article-like document classes, but not
# for letters. # for letters.
Format 82 Format 84
Style Part Style Part
Category Sectioning Category Sectioning
@ -40,6 +40,7 @@ Style Part
EndFont EndFont
HTMLTag h1 HTMLTag h1
DocBookTag title DocBookTag title
DocBookTagType paragraph
DocBookSectionTag part DocBookSectionTag part
DocBookForceAbstractTag partintro DocBookForceAbstractTag partintro
End End
@ -75,6 +76,7 @@ Style Chapter
EndFont EndFont
HTMLTag h1 HTMLTag h1
DocBookTag title DocBookTag title
DocBookTagType paragraph
DocBookSectionTag chapter DocBookSectionTag chapter
End End
@ -108,6 +110,7 @@ Style Section
EndFont EndFont
HTMLTag h2 HTMLTag h2
DocBookTag title DocBookTag title
DocBookTagType paragraph
DocBookSectionTag section DocBookSectionTag section
End End