summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex121
1 files changed, 115 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index f3db98f2e41..47c8e40bce7 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 921 2021-05-02 17:08:51Z karl $
+% $Id: tex4ht-4ht.tex 933 2021-05-06 21:38:57Z karl $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2021 TeX Users Group
@@ -3796,6 +3796,69 @@ fonts which results in compilation failure.
\:dontusepackage{newcomputermodern}
>>> \AddFile{9}{newcomputermodern-hooks}
+\<add to usepackage\><<<
+\Configure{PackageHooks}{newcomputermodern.sty}{newcomputermodern-hooks.4ht}
+>>>
+
+%%%%%%%%%%%%%%%%%
+\Section{fontawesome}
+%%%%%%%%%%%%%%%%%
+
+We need to prevent use of OpenType fonts with Fontawesome5 package.
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{fontawesome5-utex-helper.sty}%
+{fontawesome5-utex-helper-hooks.4ht}
+\Configure{PackageHooks}{fontawesome5.sty}{fontawesome5-hooks.4ht}
+>>>
+
+This file prevents loading of OpenType fonts that are loaded automatically
+when LuaLaTeX or XeLaTeX are used. It loads Type 1 fonts instead.
+
+\<fontawesome5-utex-helper-hooks.4ht\><<<
+% fontawesome5-utex-helper-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+\:dontusepackage{fontawesome5-utex-helper}
+\RequirePackage{fontawesome5-generic-helper}
+\endinput
+>>> \AddFile{9}{fontawesome5-utex-helper-hooks}
+
+It seems that catcode of : character is wrongly set after end of this package
+when we use package hooks. It is probably because of some Expl3 catcode
+checks. We need to reset the catcode manually.
+
+\<fontawesome5-hooks.4ht\><<<
+% fontawesome5-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+\:AtEndOfPackage{\catcode`\:=12}
+\endinput
+>>> \AddFile{9}{fontawesome5-hooks}
+
+Finally, we can provide some configuration for Fontawesome itself. It turns all
+icons to pictures by TeX4ht conversion.
+
+\<fontawesome5.4ht\><<<
+% fontawesome5.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+\NewConfigure{fontawesome}{2}
+\ExplSyntaxOn
+\cs_new_protected:Nn\temp:nn{%
+\a:fontawesome%
+\o:fontawesome_use_icon:nn:{#1}{#2}
+\b:fontawesome}
+
+\HLet\fontawesome_use_icon:nn\temp:nn
+\ExplSyntaxOff
+\Configure{fontawesome}{\Picture+{}}{\EndPicture}
+\Hinput{fontawesome5}
+\endinput
+>>> \AddFile{9}{fontawesome5}
+
+
+
%%%%%%%%%%%%%%%%%
\Section{biblatex}
%%%%%%%%%%%%%%%%%
@@ -4843,7 +4906,7 @@ We can load nameref from the early hook file
\<hyperref-hooks.4ht\><<<
% hyperref-hooks.4ht (|version), generated from |jobname.tex
% Copyright 2021 TeX Users Group
-|<TeX4ht copyright|>
+|<TeX4ht license text|>
\:AtEndOfPackage{%
\@ifpackageloaded{nameref}{}
{%
@@ -26808,6 +26871,18 @@ need also a treatment similar to \''\CT@column@color'?
\NewConfigure{rowcolor}{1}
>>>
+Fixes for colored hlines
+
+\<fix colortbl\><<<
+% default hline color is black
+\def\hline:color{000}
+% save rule color in format usable in CSS
+\newcommand\tmp:arrayrulecolor[2][named]{%
+\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}%
+}
+\HLet\arrayrulecolor\tmp:arrayrulecolor
+>>>
+
\SubSection{Utilities}
This should enable use of \`|\color| command in array declaration
@@ -31538,7 +31613,7 @@ We must fix some exerquiz issues before we load the package itself.
\<exerquiz-hooks.4ht\><<<
% exerquiz-hooks.4ht (|version), generated from |jobname.tex
% Copyright 2021 TeX Users Group
-|<TeX4ht copywrite|>
+|<TeX4ht license text|>
\ifdefined\headerps@out\else%
\def\headerps@out#1{}%
\fi
@@ -31885,6 +31960,41 @@ of \''\:temp' below.
\Configure{chessboard}{\Picture*{}\Save:TikzPict}{\Restore:TikzPict\EndPicture}
>>> \AddFile{9}{chessboard}
+%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{menukeys.sty}
+%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<menukeys.4ht\><<<
+% menukeys.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht license text|>
+% use the following Configuration to patch all defined styles (not commands!)
+\NewConfigure{defmenukey}[1]{%
+ % define \Configure{menukey<stylename>} - it will be used to insert \Picture+ ... \EndPicture
+ \NewConfigure{menukey#1}{2}
+ % insert hooks into style's pre and post macros
+ \expandafter\pend:def\csname tw@style@#1@pre\endcsname{\csname a:menukey#1\endcsname}%
+ \expandafter\append:def\csname tw@style@#1@post\endcsname{\csname b:menukey#1\endcsname}%
+ % use pictures by default for the style configuration
+ \Configure{menukey#1}{\Picture*{}}{\EndPicture}
+}
+
+\Configure{defmenukey}{menus}
+\Configure{defmenukey}{paths}
+\Configure{defmenukey}{roundedkeys}
+\Configure{defmenukey}{roundedmenus}
+\Configure{defmenukey}{angularmenus}
+\Configure{defmenukey}{typewriterkeys}
+\Configure{defmenukey}{hyphenatepaths}
+\Configure{defmenukey}{pathswithfolder}
+\Configure{defmenukey}{shadowedangularkeys}
+\Configure{defmenukey}{pathswithblackfolder}
+\Configure{defmenukey}{hyphenatepathswithfolder}
+\Configure{defmenukey}{hyphenatepathswithblackfolder}
+
+\Hinput{menukeys}
+\endinput
+>>> \AddFile{9}{menukeys}
%%%%%%%%%%%%%%%%%%%%%%%%
\Section{vanilla.sty}
@@ -38363,10 +38473,9 @@ The following is needed to compensate for the extra \''\relax\space' in
>>>
\<spanish defs\><<<
-\let\:tempc\es@accent
-\pend:defIII\:tempc{%
+\def\:tempc#1#2#3{%
\expandafter\:text@composite@x
- \csname OT1\string##1\endcsname##3\@empty}
+ \csname OT1\string#1\endcsname#3\@empty}
\HLet\es@accent\:tempc
\def\:text@composite@x#1#2{%
\expandafter\ifx \csname \string#1-\string#2\endcsname\relax