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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 29 15:09:48 CET 2018


Author: michal_h21
Date: 2018-11-29 16:09:48 +0200 (Thu, 29 Nov 2018)
New Revision: 450

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Added \Configure{AddCss} and \Configure{AddJs} configurations

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-11-24 21:52:17 UTC (rev 449)
+++ trunk/lit/ChangeLog	2018-11-29 14:09:48 UTC (rev 450)
@@ -1,3 +1,8 @@
+2018-11-29  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): Added \Configure{AddJs} and
+	\Configure{AddCss} for external script and style sheet inclusion.
+
 2018-11-24  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (amsmath.4ht): <TeX4ht copywrite>.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2018-11-24 21:52:17 UTC (rev 449)
+++ trunk/lit/tex4ht-html4.tex	2018-11-29 14:09:48 UTC (rev 450)
@@ -17208,9 +17208,22 @@
 >>>
 
 
+\<external scripts and styles\><<<
 
+\NewConfigure{AddCss}[1]{%
+  \Configure{Needs}{File: #1}\Needs{}
+  \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="#1" />\Hnewline}}
+}
 
+\NewConfigure{AddJs}[1]{%
+  \Configure{Needs}{File: #1}\Needs{}
+  \Configure{@HEAD}{\HCode{\Hnewline<script type="text/javascript" src="#1"></script>\Hnewline}}
+}
+>>>
 
+
+
+
 %%%%%%%%%%%%%%%%
 \section{?????}
 %%%%%%%%%%%%%%%%
@@ -20521,6 +20534,8 @@
      \csname EndPauseMathClass\endcsname \EndNoFonts
      |<tex4ht halign and cr/crcr|>%
      |<delay postscript|>}
+
+|<external scripts and styles|>
 >>>
 
 



More information about the tex4ht-commits mailing list