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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Sep 29 15:51:29 CEST 2022


Author: michal_h21
Date: 2022-09-29 13:51:29 +0000 (Thu, 29 Sep 2022)
New Revision: 1203

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
fixed biblatex bibliographies in beamer

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-09-27 14:51:50 UTC (rev 1202)
+++ trunk/lit/ChangeLog	2022-09-29 13:51:29 UTC (rev 1203)
@@ -1,3 +1,9 @@
+2022-09-29  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (beamer.4ht),
+	* tex4ht-html4.tex (html4.4ht): fixed tag mismatch for BibLaTeX
+	bibliographies that are spread over several slides.
+
 2022-09-27  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (beamer.4ht): don't redeclare \addtocontents, in

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-09-27 14:51:50 UTC (rev 1202)
+++ trunk/lit/tex4ht-4ht.tex	2022-09-29 13:51:29 UTC (rev 1203)
@@ -25958,6 +25958,34 @@
 
 >>>
 
+ Beamer can break BibLaTeX's bibliography across several slides, 
+ which can lead in tag mis-match, as the closing tags for the bibliography 
+ are inserted as child of other element, than the opening tags.
+
+ This redefinition uses Beamer's macros to insert tags for each individual
+ bib item, without container item that would cause problems.
+
+
+\<conf beamer current\><<<
+\NewConfigure{beamerbiblatex}{3}
+\@ifpackageloaded{biblatex}{
+  \pend:defI\beamer at biblabeltemplate{%
+    \ifdefined\end:itm\end:itm\fi%
+    \gdef\end:itm{\c:beamerbiblatex}%
+    \a:beamerbiblatex%
+  }
+  \append:defI\beamer at biblabeltemplate{\b:beamerbiblatex}
+  \AfterPreamble{%
+    \def\bibConfigure{%
+      \ConfigureList{thebibliography}%
+      {\PushMacro\end:itm\let\end:itm=\empty}%
+      {\end:itm\PopMacro\end:itm\global\let\end:itm\end:itm}{}{}%
+    }
+  }
+}
+{}
+
+>>>
 %%%%%%%%%%%%%
 \SubSection{beamerbasetoc}
 %%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-09-27 14:51:50 UTC (rev 1202)
+++ trunk/lit/tex4ht-html4.tex	2022-09-29 13:51:29 UTC (rev 1203)
@@ -14319,6 +14319,12 @@
      div.Beispiel, div.Examples, div.example, div.examples{color:green;}}
 >>>
 
+\<beamer environments\><<<
+\Configure{beamerbiblatex}{\HCode{<div class="bibitem"><div class="label">}}
+{\HCode{</div><div class="bibcontent">}}{\HCode{</div></div>\Hnewline}}
+\Css{.bibitem{display:grid;grid-template-columns:3em 1fr;}}
+>>>
+
 \<beamer slides\><<<
 \:CheckOption{1} \if:Option
   \ConfigureEnv{slide}



More information about the tex4ht-commits mailing list.