DocBook: update test cases.

This commit is contained in:
Thibaut Cuvelier 2020-10-07 05:03:24 +02:00
parent 6a0e93f162
commit 1a86e26841
6 changed files with 100 additions and 56 deletions

View File

@ -105,12 +105,12 @@ diese Wörter geschweift einklammern<!-- } -->
</informalexample> </informalexample>
<para>oder verwenden Sie die Glossen-Option <emphasis>ex</emphasis>:</para> <para>oder verwenden Sie die Glossen-Option <emphasis>ex</emphasis>:</para>
<para>Mein Luftkissenfahrzeug ist voller Aale</para> <para>Mein Luftkissenfahrzeug ist voller Aale</para>
<bridgehead renderas="sect2">Tipps &amp; Tricks</bridgehead> <bridgehead renderas='sect2'>Tipps &amp; Tricks</bridgehead>
<bridgehead renderas="sect3">Seitenumbrüche innerhalb von Glossen vermeiden</bridgehead> <bridgehead renderas='sect3'>Seitenumbrüche innerhalb von Glossen vermeiden</bridgehead>
<para>In der Standardeinstellung können innerhalb von Glossen Seiten umbrochen werden, was natürlich nicht erwünscht ist. Um dies zu umgehen, können Sie in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x2026;&#x21D2;Dokumentklasse&#x21D2;Klassenoptionen&#x21D2;Benutzerdefiniert</emphasis> die Option <emphasis>noglossbreaks</emphasis> eingeben; dies wird die meisten Umbrüche verhindern. Wenn trotzdem welche vorkommen, können Sie Glossen in Boxen packen (über <emphasis role='sans'>Einfügen&#x21D2;Box&#x21D2;Rahmenlos</emphasis>).</para> <para>In der Standardeinstellung können innerhalb von Glossen Seiten umbrochen werden, was natürlich nicht erwünscht ist. Um dies zu umgehen, können Sie in <emphasis role='sans'>Dokument&#x21D2;Einstellungen&#x2026;&#x21D2;Dokumentklasse&#x21D2;Klassenoptionen&#x21D2;Benutzerdefiniert</emphasis> die Option <emphasis>noglossbreaks</emphasis> eingeben; dies wird die meisten Umbrüche verhindern. Wenn trotzdem welche vorkommen, können Sie Glossen in Boxen packen (über <emphasis role='sans'>Einfügen&#x21D2;Box&#x21D2;Rahmenlos</emphasis>).</para>
<bridgehead renderas="sect3">Fußnoten in Glossen</bridgehead> <bridgehead renderas='sect3'>Fußnoten in Glossen</bridgehead>
<para>Sie können zwar eine Fußnote in eine <emphasis>Glosse</emphasis> einfügen, dies führt aber zu einem LaTeX-Fehler. Wenn Sie Fußnoten benötigen, schreiben Sie an der Stelle, an der das Fußnotenzeichen erscheinen soll, im TeX-Modus <code>\footnotemark</code> in die Glosse. Direkt nach (und außerhalb) der Glosse schreiben Sie, ebenfalls im TeX-Modus,<code> \footnotetext{Die Fußnote ...}</code>. Sollten Sie mehrere Fußnoten brauchen, geben Sie einfach mehrere dieser Befehlspaare ein.</para> <para>Sie können zwar eine Fußnote in eine <emphasis>Glosse</emphasis> einfügen, dies führt aber zu einem LaTeX-Fehler. Wenn Sie Fußnoten benötigen, schreiben Sie an der Stelle, an der das Fußnotenzeichen erscheinen soll, im TeX-Modus <code>\footnotemark</code> in die Glosse. Direkt nach (und außerhalb) der Glosse schreiben Sie, ebenfalls im TeX-Modus,<code> \footnotetext{Die Fußnote ...}</code>. Sollten Sie mehrere Fußnoten brauchen, geben Sie einfach mehrere dieser Befehlspaare ein.</para>
<bridgehead renderas="sect3">Glossen (und Beispiele) in Beamer-Präsentationen</bridgehead> <bridgehead renderas='sect3'>Glossen (und Beispiele) in Beamer-Präsentationen</bridgehead>
<para>Wenn Sie das Linguistik-Modul in einer Beamer-Präsentation verwenden wollen, beachten Sie bitte folgendes:</para> <para>Wenn Sie das Linguistik-Modul in einer Beamer-Präsentation verwenden wollen, beachten Sie bitte folgendes:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>

View File

@ -54,6 +54,7 @@
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation> </informalequation>
<para>See <xref linkend="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz" />.</para> <para>See <xref linkend="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz" />.</para>
<para>Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML: <inlineequation> <para>Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML: <inlineequation>
<alt role='tex'>\testmacro</alt> <alt role='tex'>\testmacro</alt>
@ -112,8 +113,8 @@
<title>I am the fourth section and I deal with formatting. </title> <title>I am the fourth section and I deal with formatting. </title>
<para>The following paragraph should be code. </para> <para>The following paragraph should be code. </para>
<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>
</programlisting>I am no more code. </para> I am no more code. </para>
<para>This line has inline code. <code>This has typewriter font</code><footnote> <para>This line has inline code. <code>This has typewriter font</code><footnote>
<para>I repeat that in a footnote.</para> <para>I repeat that in a footnote.</para>
</footnote>. </para> </footnote>. </para>
@ -214,21 +215,25 @@ I am a second line of code.
<section> <section>
<title>I am the eight section and I deal with star sections</title> <title>I am the eight section and I deal with star sections</title>
<bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead> <bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead>
<bridgehead renderas="sect1">Star section (sect1)</bridgehead> <bridgehead renderas='sect1'>Star section (sect1)</bridgehead>
<bridgehead renderas="sect2">Star subsection (sect2)</bridgehead> <bridgehead renderas='sect2'>Star subsection (sect2)</bridgehead>
<bridgehead renderas="sect3">Star subsubsection (sect3)</bridgehead> <bridgehead renderas='sect3'>Star subsubsection (sect3)</bridgehead>
<bridgehead renderas="sect4">Star paragraph (sect4)</bridgehead> <bridgehead renderas='sect4'>Star paragraph (sect4)</bridgehead>
<bridgehead renderas="sect5">Star subparagraph (sect5)</bridgehead> <bridgehead renderas='sect5'>Star subparagraph (sect5)</bridgehead>
</section> </section>
<bibliography> <bibliography>
<title>References</title> <title>References</title>
<biblioentry xml:id="article"> <biblioentry xml:id="article">
<title>The title of the work</title><volumenum>4</volumenum><artpagenums>201-213</artpagenums><bibliomisc role="type">article</bibliomisc> <title>The title of the work</title>
<volumenum>4</volumenum>
<artpagenums>201-213</artpagenums>
<bibliomisc role="type">article</bibliomisc>
<pubdate>1993</pubdate> <pubdate>1993</pubdate>
<biblioset relation="journal"> <biblioset relation="journal">
<title>The name of the journal</title> <title>The name of the journal</title>
</biblioset> </biblioset>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Adams</surname> <surname>Adams</surname>
@ -239,12 +244,16 @@ I am a second line of code.
<bibliomisc role="note">An optional note</bibliomisc> <bibliomisc role="note">An optional note</bibliomisc>
</biblioentry> </biblioentry>
<biblioentry xml:id="book"> <biblioentry xml:id="book">
<title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><bibliomisc role="type">book</bibliomisc> <title>The title of the work</title>
<volumenum>4</volumenum>
<edition>3</edition>
<bibliomisc role="type">book</bibliomisc>
<publisher> <publisher>
<publishername>The name of the publisher</publishername> <publishername>The name of the publisher</publishername>
<address>The address</address></publisher> <address>The address</address></publisher>
<pubdate>1993</pubdate> <pubdate>1993</pubdate>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Babington</surname> <surname>Babington</surname>
@ -254,9 +263,11 @@ I am a second line of code.
<bibliomisc role="note">An optional note</bibliomisc> <bibliomisc role="note">An optional note</bibliomisc>
</biblioentry> </biblioentry>
<biblioentry xml:id="booklet"> <biblioentry xml:id="booklet">
<title>The title of the work</title><bibliomisc role="type">booklet</bibliomisc> <title>The title of the work</title>
<bibliomisc role="type">booklet</bibliomisc>
<pubdate>1993</pubdate> <pubdate>1993</pubdate>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Caxton</surname> <surname>Caxton</surname>
@ -265,12 +276,15 @@ I am a second line of code.
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
<biblioentry xml:id="conference"> <biblioentry xml:id="conference">
<title>The title of the work</title><artpagenums>213</artpagenums><bibliomisc role="type">conference</bibliomisc> <title>The title of the work</title>
<artpagenums>213</artpagenums>
<bibliomisc role="type">conference</bibliomisc>
<publisher> <publisher>
<publishername>The publisher</publishername> <publishername>The publisher</publishername>
</publisher> </publisher>
<pubdate>1993</pubdate> <pubdate>1993</pubdate>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Draper</surname> <surname>Draper</surname>
@ -279,12 +293,15 @@ I am a second line of code.
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
<biblioentry xml:id="inbook"> <biblioentry xml:id="inbook">
<title>The title of the work</title><artpagenums>201-213</artpagenums><bibliomisc role="type">inbook</bibliomisc> <title>The title of the work</title>
<artpagenums>201-213</artpagenums>
<bibliomisc role="type">inbook</bibliomisc>
<publisher> <publisher>
<publishername>The name of the publisher</publishername> <publishername>The name of the publisher</publishername>
</publisher> </publisher>
<pubdate>1993</pubdate> <pubdate>1993</pubdate>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Eston</surname> <surname>Eston</surname>
@ -293,7 +310,11 @@ I am a second line of code.
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
<biblioentry xml:id="incollection"> <biblioentry xml:id="incollection">
<title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><artpagenums>201-213</artpagenums><bibliomisc role="type">incollection</bibliomisc> <title>The title of the work</title>
<volumenum>4</volumenum>
<edition>3</edition>
<artpagenums>201-213</artpagenums>
<bibliomisc role="type">incollection</bibliomisc>
<publisher> <publisher>
<publishername>The name of the publisher</publishername> <publishername>The name of the publisher</publishername>
<address>The address of the publisher</address></publisher> <address>The address of the publisher</address></publisher>
@ -301,7 +322,8 @@ I am a second line of code.
<biblioset relation="book"> <biblioset relation="book">
<title>The title of the book</title> <title>The title of the book</title>
</biblioset> </biblioset>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Peter</firstname> <firstname>Peter</firstname>
<surname>Farindon</surname> <surname>Farindon</surname>
@ -311,12 +333,15 @@ I am a second line of code.
<bibliomisc role="note">An optional note</bibliomisc> <bibliomisc role="note">An optional note</bibliomisc>
</biblioentry> </biblioentry>
<biblioentry xml:id="small"> <biblioentry xml:id="small">
<title>A small paper</title><volumenum>-1</volumenum><bibliomisc role="type">article</bibliomisc> <title>A small paper</title>
<volumenum>-1</volumenum>
<bibliomisc role="type">article</bibliomisc>
<pubdate>1997</pubdate> <pubdate>1997</pubdate>
<biblioset relation="journal"> <biblioset relation="journal">
<title>The journal of small papers</title> <title>The journal of small papers</title>
</biblioset> </biblioset>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<surname>Freely</surname> <surname>Freely</surname>
<othername role="suffix">I. P.</othername> <othername role="suffix">I. P.</othername>
@ -332,9 +357,11 @@ I am a second line of code.
<bibliomisc role="note">to appear</bibliomisc> <bibliomisc role="note">to appear</bibliomisc>
</biblioentry> </biblioentry>
<biblioentry xml:id="Gro60"> <biblioentry xml:id="Gro60">
<title>Éléments de géométrie algébrique</title><bibliomisc role="type">book</bibliomisc> <title>Éléments de géométrie algébrique</title>
<bibliomisc role="type">book</bibliomisc>
<pubdate>1960</pubdate> <pubdate>1960</pubdate>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Alexander</firstname> <firstname>Alexander</firstname>
<surname>Grothendieck</surname> <surname>Grothendieck</surname>
@ -343,12 +370,15 @@ I am a second line of code.
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
<biblioentry xml:id="big"> <biblioentry xml:id="big">
<title>A big paper</title><volumenum>MCMXCVII</volumenum><bibliomisc role="type">article</bibliomisc> <title>A big paper</title>
<volumenum>MCMXCVII</volumenum>
<bibliomisc role="type">article</bibliomisc>
<pubdate>7991</pubdate> <pubdate>7991</pubdate>
<biblioset relation="journal"> <biblioset relation="journal">
<title>The journal of big papers</title> <title>The journal of big papers</title>
</biblioset> </biblioset>
<authorgroup><author> <authorgroup>
<author>
<personname> <personname>
<firstname>Hugh</firstname> <firstname>Hugh</firstname>
<surname>Jass</surname> <surname>Jass</surname>
@ -356,4 +386,5 @@ I am a second line of code.
</author> </author>
</authorgroup> </authorgroup>
</biblioentry> </biblioentry>
</bibliography></article> </bibliography>
</article>

View File

@ -9,13 +9,13 @@
<affiliation> <affiliation>
<orgname>Astronomy Department, University of California, Berkeley, CA 94720</orgname> <orgname>Astronomy Department, University of California, Berkeley, CA 94720</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</orgname> <orgname>Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>Society of Fellows, Harvard University.</orgname> <orgname>Society of Fellows, Harvard University.</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</orgname> <orgname>present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</orgname>
</affiliation> </affiliation>
</author> </author>
@ -24,10 +24,10 @@
<affiliation> <affiliation>
<orgname>National Optical Astronomy Observatories, Tucson, AZ 85719</orgname> <orgname>National Optical Astronomy Observatories, Tucson, AZ 85719</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>Visiting Programmer, Space Telescope Science Institute</orgname> <orgname>Visiting Programmer, Space Telescope Science Institute</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>Patron, Alonso's Bar and Grill</orgname> <orgname>Patron, Alonso's Bar and Grill</orgname>
</affiliation> </affiliation>
<email>aastex-help@aas.org</email> <email>aastex-help@aas.org</email>
@ -37,7 +37,7 @@
<affiliation> <affiliation>
<orgname>Space Telescope Science Institute, Baltimore, MD 21218</orgname> <orgname>Space Telescope Science Institute, Baltimore, MD 21218</orgname>
</affiliation> </affiliation>
<affiliation role="alternate"> <affiliation role='alternate'>
<orgname>Patron, Alonso's Bar and Grill</orgname> <orgname>Patron, Alonso's Bar and Grill</orgname>
</affiliation> </affiliation>
</author> </author>
@ -249,7 +249,8 @@
</m:mrow> </m:mrow>
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation> where <inlineequation> </informalequation>
where <inlineequation>
<alt role='tex'>p</alt> <alt role='tex'>p</alt>
<m:math> <m:math>
@ -516,7 +517,8 @@
</m:mtr> </m:mtr>
</m:mtable> </m:mtable>
</m:math> </m:math>
</informalequation> giving </informalequation>
giving
<informalequation> <informalequation>
<alt role='tex'>\hat{a}=\left(\begin{array}{cc} <alt role='tex'>\hat{a}=\left(\begin{array}{cc}
0 &amp; (\hat{a})_{+}\\ 0 &amp; (\hat{a})_{+}\\
@ -595,14 +597,16 @@
</m:mrow> </m:mrow>
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation> The spinors are expressed in terms of two-component Weyl spinors as </informalequation>
The spinors are expressed in terms of two-component Weyl spinors as
<informalequation> <informalequation>
<alt role='tex'>u=\left(\begin{array}{c} <alt role='tex'>u=\left(\begin{array}{c}
(u)_{-}\\ (u)_{-}\\
(u)_{+} (u)_{+}
\end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}.</alt> \end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}.</alt>
<mathphrase>MathML export failed. Please report this as a bug.</mathphrase> <mathphrase>MathML export failed. Please report this as a bug.</mathphrase>
</informalequation></para> </informalequation>
</para>
<para>The Weyl spinors are given in terms of helicity eigenstates <inlineequation> <para>The Weyl spinors are given in terms of helicity eigenstates <inlineequation>
<alt role='tex'>\chi_{\lambda}(p)</alt> <alt role='tex'>\chi_{\lambda}(p)</alt>
<m:math> <m:math>
@ -720,7 +724,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mtr> </m:mtr>
</m:mtable> </m:mtable>
</m:math> </m:math>
</informalequation></section> </informalequation>
</section>
</section> </section>
<section> <section>
<title>Floating material and so forth</title> <title>Floating material and so forth</title>
@ -763,7 +768,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow> </m:mrow>
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation> where </informalequation>
where
<informalequation> <informalequation>
<alt role='tex'>d_{1}=\sqrt{\left(\begin{array}{c} <alt role='tex'>d_{1}=\sqrt{\left(\begin{array}{c}
\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} \frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c}
@ -931,7 +937,8 @@ v(p,\lambda)_{\pm} &amp; = &amp; \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi
</m:mrow> </m:mrow>
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation></para> </informalequation>
</para>
<para>In these expressions <inlineequation> <para>In these expressions <inlineequation>
<alt role='tex'>x_{0}</alt> <alt role='tex'>x_{0}</alt>
<m:math> <m:math>

View File

@ -39,7 +39,8 @@
</m:mrow> </m:mrow>
</m:mrow> </m:mrow>
</m:math> </m:math>
</informalequation><section> </informalequation>
<section>
<title>I am the first subsection</title> <title>I am the first subsection</title>
<para>I am the only paragraph of the first subsection. </para> <para>I am the only paragraph of the first subsection. </para>
</section> </section>
@ -56,11 +57,11 @@
<section> <section>
<title>I am the third section and I deal with star sections</title> <title>I am the third section and I deal with star sections</title>
<bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead> <bridgehead renderas='other' otherrenderas='part'>Star part</bridgehead>
<bridgehead renderas="sect1">Star section (sect1)</bridgehead> <bridgehead renderas='sect1'>Star section (sect1)</bridgehead>
<bridgehead renderas="sect2">Star subsection (sect2)</bridgehead> <bridgehead renderas='sect2'>Star subsection (sect2)</bridgehead>
<bridgehead renderas="sect3">Star subsubsection (sect3)</bridgehead> <bridgehead renderas='sect3'>Star subsubsection (sect3)</bridgehead>
<bridgehead renderas="sect4">Star paragraph (sect4)</bridgehead> <bridgehead renderas='sect4'>Star paragraph (sect4)</bridgehead>
<bridgehead renderas="sect5">Star subparagraph (sect5)</bridgehead> <bridgehead renderas='sect5'>Star subparagraph (sect5)</bridgehead>
</section> </section>
<bibliography> <bibliography>
<title>References</title> <title>References</title>

View File

@ -86,6 +86,10 @@
\begin_body \begin_body
\begin_layout Title
Document title
\end_layout
\begin_layout Standard \begin_layout Standard
\series bold \series bold

View File

@ -2,5 +2,6 @@
<!-- This DocBook file was created by LyX 2.4.0dev <!-- This DocBook file was created by LyX 2.4.0dev
See http://www.lyx.org/ for more information --> See http://www.lyx.org/ for more information -->
<article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.2"> <article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.2">
<title>Document title</title>
<para><emphasis role='bold'>Fett</emphasis> <emphasis>hervorgehoben</emphasis> <code>monospace</code><emphasis role='underline'> unterstrichen.</emphasis></para> <para><emphasis role='bold'>Fett</emphasis> <emphasis>hervorgehoben</emphasis> <code>monospace</code><emphasis role='underline'> unterstrichen.</emphasis></para>
</article> </article>