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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Apr 30 17:45:20 CEST 2021


Author: michal_h21
Date: 2021-04-30 15:45:20 +0000 (Fri, 30 Apr 2021)
New Revision: 920

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
modernized Beamer support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-04-30 09:01:14 UTC (rev 919)
+++ trunk/lit/ChangeLog	2021-04-30 15:45:20 UTC (rev 920)
@@ -6,6 +6,8 @@
 	* tex4ht-mathml.tex (mathml.4ht): added special group to \math<xx> commands,
 	in order to support their use in subscripts and superscripts without extra
 	groups in TeX documents.
+	* tex4ht-4ht.tex (beamer.4ht),
+	tex4ht-html4.tex (html4.4ht): modernized Beamer support.
 
 2021-04-29  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-04-30 09:01:14 UTC (rev 919)
+++ trunk/lit/tex4ht-4ht.tex	2021-04-30 15:45:20 UTC (rev 920)
@@ -24669,6 +24669,7 @@
 \else
    |<conf beamer 3.01|>
 \fi
+|<conf beamer current|>
 \Hinput{beamer}
 \endinput
 >>>        \AddFile{9}{beamer}
@@ -24774,10 +24775,6 @@
 \pend:def\sectiontemplate{\a:sectionintoc}
 \append:def\sectiontemplate{\b:sectionintoc}
 
-\NewConfigure{sectionshadedintoc}{2}
-\NewConfigure{sectionintoc}{2}
-\NewConfigure{subsectionshadedintoc}{2}
-\NewConfigure{subsectionintoc}{2}
 >>>
 
 \<conf beamer 0.3\><<<
@@ -24867,8 +24864,39 @@
 \pend:defI\structure{\a:structure}
 \append:defI\structure{\b:structure}
 \NewConfigure{structure}{2}
+\NewConfigure{sectionshadedintoc}{2}
+\NewConfigure{sectionintoc}{2}
+\NewConfigure{subsectionshadedintoc}{2}
+\NewConfigure{subsectionintoc}{2}
 >>>
 
+\<conf beamer current\><<<
+\let\Hy at EveryPageAnchor\relax
+\def\pgf at trimright@final{0pt}
+\def\pgf at trimleft@final{0pt}
+\let\origEndP\EndP
+\AtBeginDocument{\def\EndP{\let\EndP\origEndP}\SaveEndP}
+
+
+\NewConfigure{frame}{2}
+\NewConfigure{frametitle}{2}
+\AddToHook{env/beamer at frameslide/before}{\RecallEndP\a:frame}
+\AddToHook{env/beamer at frameslide/after}{\b:frame}
+
+\long\def\:temp[#1]#2{%
+\a:frametitle%
+\o:beamer@@frametitle:[#1]{#2}%
+\b:frametitle%
+}
+
+\HLet\beamer@@frametitle\:temp
+% Beamer redefines \emph, it is necessary to insert hooks again
+
+\pend:defI\emph{\a:emph}%
+\append:defI\emph{\b:emph}%
+
+>>>
+
 %%%%%%%%%%%%%
 \SubSection{beamerbasetoc}
 %%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2021-04-30 09:01:14 UTC (rev 919)
+++ trunk/lit/tex4ht-html4.tex	2021-04-30 15:45:20 UTC (rev 920)
@@ -14270,11 +14270,22 @@
 \fi
 >>>
 
+This is code for the moder Beamer 
 
+\<beamer slides\><<<
 
+\Configure{frame}{\ifvmode\IgnorePar\fi\EndP
+    \HCode{<div class="slide">}
+}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+\Configure{frametitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<h2>}\NoFonts}{\EndNoFonts\ifvmode\IgnorePar\fi\EndP\HCode{</h2>}\par\ShowPar}
+\Css{div.slide {border:solid black 0.4pt;margin-bottom:1em;}}
 
+>>>
 
 
+
+
+
 \<beamer toc 0.8 and 0.3\><<<
 \Configure{frametitle}
    {\ifvmode \IgnorePar\fi \EndP \HCode{<h2 class="frametitle">}\bgroup



More information about the tex4ht-commits mailing list.