[tex4ht-commits] [SCM] tex4ht updated: r743 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Jun 18 22:49:17 CEST 2020


Author: michal_h21
Date: 2020-06-18 23:49:16 +0300 (Thu, 18 Jun 2020)
New Revision: 743

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-docbook.tex
Log:
Fixed \maketitle output in Docbook

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-06-16 14:40:37 UTC (rev 742)
+++ trunk/lit/ChangeLog	2020-06-18 20:49:16 UTC (rev 743)
@@ -1,3 +1,9 @@
+2020-06-18 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-docbook.tex (docbook.4ht): fixed output from \maketitle command in
+	accordance with the current Docbook documentation.
+	https://github.com/michal-h21/make4ht/issues/27
+
 2020-06-16 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (longtable.4ht): fixed LOT for longtable + fixed missing

Modified: trunk/lit/tex4ht-docbook.tex
===================================================================
--- trunk/lit/tex4ht-docbook.tex	2020-06-16 14:40:37 UTC (rev 742)
+++ trunk/lit/tex4ht-docbook.tex	2020-06-18 20:49:16 UTC (rev 743)
@@ -321,11 +321,14 @@
 \Configure{BODY}{}{}
 \Configure{TITLE+} {}
 \ifx \a:TITLE\:UnDef
-   \Configure{TITLE}{\Protect\IgnorePar
-      \HCode{<title>}}{\HCode{</title>\Hnewline}}
+\Configure{TITLE}{}{}
 \fi
 >>>
 
+There used to be this configuration, but the resulting title element was empty.
+Publication title should be inside info element anyway. This element is inserted by maketitle.
+% \Configure{TITLE}{\Protect\IgnorePar
+%    \HCode{<title>}}{\HCode{</title>\Hnewline}}
 
 
 
@@ -608,40 +611,40 @@
 
 \<article maketitle\><<<
 \Configure{maketitle}
-   {\HCode{<para role="maketitle">}}
-   {\HCode{</para>}}
-   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
+   {\HCode{<info role="maketitle">}}
+   {\HCode{</info>}}
+   {\HCode{<title>}}{\HCode{</title>}}
 \Configure{thanks author date and} {}{}
-   {\HCode{<note role="author"><para><personname><othername>}}
-   {\HCode{</othername></personname></para></note>}}
-   {\HCode{<note role="date"><para>}}
-   {\HCode{</para></note>}}
+   {\HCode{<author><personname><othername>}}
+   {\HCode{</othername></personname></author>}}
+   {\HCode{<date>}}
+   {\HCode{</date>}}
    {}{}
 >>>
 
 \<report maketitle\><<<
 \Configure{maketitle}
-   {\HCode{<para role="maketitle">}}
-   {\HCode{</para>}}
-   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
+   {\HCode{<info role="maketitle">}}
+   {\HCode{</info>}}
+   {\HCode{<title>}}{\HCode{</title>}}
 \Configure{thanks author date and} {}{}
-   {\HCode{<note role="author"><para><personname><othername>}}
-   {\HCode{</othername></personname></para></note>}}
-   {\HCode{<note role="date"><para>}}
-   {\HCode{</para></note>}}
+   {\HCode{<author><personname><othername>}}
+   {\HCode{</othername></personname></author>}}
+   {\HCode{<date>}}
+   {\HCode{</date>}}
    {}{}
 >>>
 
 \<book maketitle\><<<
 \Configure{maketitle}
-   {\HCode{<para role="maketitle">}}
-   {\HCode{</para>}}
-   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
+   {\HCode{<info role="maketitle">}}
+   {\HCode{</info>}}
+   {\HCode{<title>}}{\HCode{</title>}}
 \Configure{thanks author date and} {}{}
-   {\HCode{<note role="author"><para><personname><othername>}}
-   {\HCode{</othername></personname></para></note>}}
-   {\HCode{<note role="date"><para>}}
-   {\HCode{</para></note>}}
+   {\HCode{<author><personname><othername>}}
+   {\HCode{</othername></personname></author>}}
+   {\HCode{<date>}}
+   {\HCode{</date>}}
    {}{}
 >>>
 



More information about the tex4ht-commits mailing list.