texlive[49270] Master/texmf-dist/tex/generic/tex4ht/html4.4ht:

commits+karl at tug.org commits+karl at tug.org
Thu Nov 29 17:37:51 CET 2018


Revision: 49270
          http://tug.org/svn/texlive?view=revision&revision=49270
Author:   karl
Date:     2018-11-29 17:37:51 +0100 (Thu, 29 Nov 2018)
Log Message:
-----------
AddJs,AddCss,webfonts, tex4ht r450,451

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=450

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2018-11-29 14:30:59 UTC (rev 49269)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2018-11-29 16:37:51 UTC (rev 49270)
@@ -1,4 +1,4 @@
-% html4.4ht (2018-10-15-15:56), generated from tex4ht-html4.tex
+% html4.4ht (2018-11-29-08:37), generated from tex4ht-html4.tex
 % Copyright 2009-2018 TeX Users Group
 % Copyright 1997-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2018-10-15-15:56}
+\immediate\write-1{version 2018-11-29-08:37}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -552,6 +552,41 @@
 %
      \let\PsCode\relax
 }
+
+
+\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}}
+}
+
+
+\newcommand\AddFontFace[4]{%
+\Css{@font-face {
+    font-family: #1;
+    src: local("#2"),
+        url('#3');
+    #4
+ }}
+ \Configure{Needs}{File: #3}\Needs{}
+}
+
+
+% If more font families are used, they need to have different names
+\NewConfigure{FontFamily}{2}
+
+\Configure{FontFamily}{rmfamily}{Latin Modern}
+
+% Declarations for common font styles, just local family name and font file name are needed to be provided
+\NewConfigure{NormalFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: normal;font-style: normal;}}
+\NewConfigure{BoldFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: bold;font-style: normal;}}
+\NewConfigure{ItalicFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: normal;font-style: italic;}}
+\NewConfigure{BoldItalicFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: bold;font-style: italic;}}
+
   \Configure{writetoc}{}
 \Configure{CutAtTITLE+}{}
 \Configure{HPageTITLE+}{}
@@ -39436,6 +39471,7 @@
 \endinput\empty\empty\empty\empty\empty\empty
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{exam}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -39527,6 +39563,7 @@
 \endinput\empty\empty\empty\empty\empty\empty
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{fontspec}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -39546,7 +39583,6 @@
 
 
 
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{framed}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -39587,6 +39623,7 @@
 \endinput\empty\empty\empty\empty\empty\empty
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{skak}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -39597,7 +39634,6 @@
 \endinput\empty\empty\empty\empty\empty\empty
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{animate}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex-live-commits mailing list