[tex4ht-commits] [SCM] tex4ht updated: r872 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sun Jan 24 22:17:09 CET 2021
Author: michal_h21
Date: 2021-01-24 23:17:09 +0200 (Sun, 24 Jan 2021)
New Revision: 872
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
trunk/lit/tex4ht-html4.tex
trunk/lit/tex4ht-html5.tex
Log:
Added support for abstracts in memoir
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-01-24 20:45:33 UTC (rev 871)
+++ trunk/lit/ChangeLog 2021-01-24 21:17:09 UTC (rev 872)
@@ -4,8 +4,12 @@
https://puszcza.gnu.org.ua/bugs/?477
* tex4ht-4ht.tex (article.4ht, report.4ht): added support for abstract
titles.
- tex4ht-html4.tex (html4.4ht),
- tex4ht-html5.tex (html5.4ht): fixes support for abstracts.
+ * tex4ht-html4.tex (html4.4ht),
+ * tex4ht-html5.tex (html5.4ht): fixed support for abstracts.
+ * tex4ht-4ht.tex (memoir.4ht, abstract.4ht),
+ * tex4ht-html4.tex (html4.4ht),
+ * tex4ht-html5.tex (html5.4ht): added support for abstracts in Memoir.
+ https://tex.stackexchange.com/a/579953/2891
2021-01-21 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2021-01-24 20:45:33 UTC (rev 871)
+++ trunk/lit/mktex4ht-cnf.tex 2021-01-24 21:17:09 UTC (rev 872)
@@ -74,6 +74,7 @@
\AddFile{9}{pd1enc}
\AddFile{4}{inputenc}
\AddFile{8}{memoir}
+\AddFile{8}{abstract}
\AddFile{8}{verse}
\AddFile{8}{mempatch}
\AddFile{9}{revtex4}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-01-24 20:45:33 UTC (rev 871)
+++ trunk/lit/tex4ht-4ht.tex 2021-01-24 21:17:09 UTC (rev 872)
@@ -14790,7 +14790,36 @@
\Def:Section\book{\thebook}{#1}
>>>
+Memoir reimplements abstract.sty
+
+\<memoir cfg\><<<
+|<abstract.sty conf|>
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{abstract}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<abstract.4ht\><<<
+% abstract.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+|<abstract.sty conf|>
+\Hinput{abstract}
+\endinput
+>>> \AddFile{8}{abstract}
+
+\<abstract.sty conf\><<<
+\NewConfigure{abstracttitle}{2}
+\newenvironment{abstracttitle4ht}{\a:abstracttitle}{\b:abstracttitle\par\noindent}
+% get rid of all extra <span> elements introduced by smaller font size
+% \renewcommand{\abstracttextfont}{\normalfont}
+% \renewcommand{\abstractnamefont}{\normalfont}
+% use our dummy environment to insert tags around the abstract title
+\renewcommand{\absnamepos}{abstracttitle4ht}
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{verse}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2021-01-24 20:45:33 UTC (rev 871)
+++ trunk/lit/tex4ht-html4.tex 2021-01-24 21:17:09 UTC (rev 872)
@@ -9944,6 +9944,7 @@
\Css{.booknumber{display:block;}}
\Configure{toToc}{book}{part}
+|<abstract|>
>>>
Modified: trunk/lit/tex4ht-html5.tex
===================================================================
--- trunk/lit/tex4ht-html5.tex 2021-01-24 20:45:33 UTC (rev 871)
+++ trunk/lit/tex4ht-html5.tex 2021-01-24 21:17:09 UTC (rev 872)
@@ -279,6 +279,7 @@
\<configure html5 memoir\><<<
|<figcaption|>
+|<abstract|>
>>>
\section{Tables}
@@ -326,6 +327,7 @@
\section{Abstracts}
+
\<abstract\><<<
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<section role="doc-abstract" class="abstract">\Hnewline}}
More information about the tex4ht-commits
mailing list.