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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 7 16:57:04 CET 2019


Author: michal_h21
Date: 2019-11-07 17:57:04 +0200 (Thu, 07 Nov 2019)
New Revision: 619

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

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-11-07 13:20:11 UTC (rev 618)
+++ trunk/lit/ChangeLog	2019-11-07 15:57:04 UTC (rev 619)
@@ -2,6 +2,9 @@
 
 	* tex4ht-4ht.tex (mdframed.4ht): fixed support for frame titles. Disabled
 	native frame drawing.
+	* tex4ht-4ht.tex (minted.4ht),
+	tex4ht-html4.tex (html4.4ht): fixed support for inline syntax
+	highlighting with the Minted package.
 
 2019-11-06 Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2019-11-07 13:20:11 UTC (rev 618)
+++ trunk/lit/Makefile	2019-11-07 15:57:04 UTC (rev 619)
@@ -52,7 +52,7 @@
 	imakeidx.4ht \
 	jurabib.4ht \
   latex.4ht lettrine.4ht listings.4ht longtable.4ht \
-  magyar.4ht mdframed.4ht memoir.4ht multicol.4ht multirow.4ht \
+  magyar.4ht mdframed.4ht memoir.4ht minted.4ht multicol.4ht multirow.4ht \
   nameref.4ht natbib.4ht \
   proof.4ht pstricks.4ht \
   quoting.4ht \

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2019-11-07 13:20:11 UTC (rev 618)
+++ trunk/lit/mktex4ht-cnf.tex	2019-11-07 15:57:04 UTC (rev 619)
@@ -158,6 +158,7 @@
 \AddFile{9}{verbatim}
 \AddFile{7}{moreverb}
 \AddFile{7}{fancyvrb}
+\AddFile{9}{minted}
 \AddFile{9}{prosper}
 \AddFile{9}{prosper-a}
 \AddFile{8}{powerdot}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-11-07 13:20:11 UTC (rev 618)
+++ trunk/lit/tex4ht-4ht.tex	2019-11-07 15:57:04 UTC (rev 619)
@@ -23693,7 +23693,35 @@
 of LaTeX.  The \''\:gobbleII' is for getting rid of the
 \`'\insert\footins'.
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{minted}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\<minted.4ht\><<<
+% minted.4ht (|version), generated from |jobname.tex
+% Copyright 2019 TeX Users Group
+|<TeX4ht license text|>
+\NewConfigure{InlineCode}{2}
+
+\def\:tempa#1{%
+  \endgroup%
+  \begingroup%
+  \Configure{BVerbatimInput}{}{}{}{}{}\a:InlineCode%
+  \begingroup%
+  \o:minted at inline@iii:{#1}%
+  \b:InlineCode%
+  \endgroup%
+}
+
+\HLet\minted at inline@iii\:tempa
+
+\Hinput{minted}
+\endinput
+>>> \AddFile{9}{minted}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Chapter{Slides}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 

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



More information about the tex4ht-commits mailing list