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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 7 17:09:14 CET 2019


Author: michal_h21
Date: 2019-11-07 18:09:14 +0200 (Thu, 07 Nov 2019)
New Revision: 620

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added basic support for the pythontex package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-11-07 15:57:04 UTC (rev 619)
+++ trunk/lit/ChangeLog	2019-11-07 16:09:14 UTC (rev 620)
@@ -5,6 +5,9 @@
 	* tex4ht-4ht.tex (minted.4ht),
 	tex4ht-html4.tex (html4.4ht): fixed support for inline syntax
 	highlighting with the Minted package.
+	* tex4ht-4ht.tex (pythontex.4ht),
+	tex4ht-html4.tex (html4.4ht): fixed support for inline syntax
+	highlighting with the Pythontex package.
 
 2019-11-06 Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2019-11-07 15:57:04 UTC (rev 619)
+++ trunk/lit/Makefile	2019-11-07 16:09:14 UTC (rev 620)
@@ -54,7 +54,7 @@
   latex.4ht lettrine.4ht listings.4ht longtable.4ht \
   magyar.4ht mdframed.4ht memoir.4ht minted.4ht multicol.4ht multirow.4ht \
   nameref.4ht natbib.4ht \
-  proof.4ht pstricks.4ht \
+  proof.4ht pstricks.4ht pythontex.4ht \
   quoting.4ht \
   reading.4ht \
   scrartcl.4ht scrbook.4ht scrreprt.4ht scrjura.4ht sectionbreak.4ht \

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2019-11-07 15:57:04 UTC (rev 619)
+++ trunk/lit/mktex4ht-cnf.tex	2019-11-07 16:09:14 UTC (rev 620)
@@ -159,6 +159,7 @@
 \AddFile{7}{moreverb}
 \AddFile{7}{fancyvrb}
 \AddFile{9}{minted}
+\AddFile{9}{pythontex}
 \AddFile{9}{prosper}
 \AddFile{9}{prosper-a}
 \AddFile{8}{powerdot}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-11-07 15:57:04 UTC (rev 619)
+++ trunk/lit/tex4ht-4ht.tex	2019-11-07 16:09:14 UTC (rev 620)
@@ -23721,7 +23721,35 @@
 \endinput
 >>> \AddFile{9}{minted}
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{pythontex}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\<pythontex.4ht\><<<
+% pythontex.4ht (|version), generated from |jobname.tex
+% Copyright 2019 TeX Users Group
+|<TeX4ht license text|>
+\def\:tempa#1{%
+  \endgroup%
+  \begingroup%
+  \Configure{BVerbatimInput}{}{}{}{}{}\ifmmode\else\a:InlineCode\fi%
+  \begingroup%
+  \o:pytx at InlineMargBgroup:{#1}%
+  \ifmmode\else\b:InlineCode\fi%
+  \endgroup%
+}
+
+\HLet\pytx at InlineMargBgroup\:tempa
+
+\NewConfigure{InlineCode}{2}
+
+\Hinput{pythontex}
+\endinput
+>>> \AddFile{9}{pythontex}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Chapter{Slides}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2019-11-07 15:57:04 UTC (rev 619)
+++ trunk/lit/tex4ht-html4.tex	2019-11-07 16:09:14 UTC (rev 620)
@@ -15073,7 +15073,9 @@
    {\gHAdvance\HRow by 1 \ifnum \HRow>1 \HCode{<br />}\fi}{}
 >>>
 
+%%%%%%%%%%%%%%%%%%%%
 \subsection{minted}
+%%%%%%%%%%%%%%%%%%%%
 
 Configuration for the inline code
 \<configure html4 minted\><<<
@@ -15081,7 +15083,15 @@
 >>>
 
 
+%%%%%%%%%%%%%%%%%%%%
+\subsection{pythontex}
+%%%%%%%%%%%%%%%%%%%%
 
+Configuration for the inline code
+\<configure html4 pythontex\><<<
+\Configure{InlineCode}{\HCode{<code>}}{\HCode{</code>}}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%
 \subsection{Listings}
 %%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list