summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht142
1 files changed, 83 insertions, 59 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht b/Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht
index 5bfefa9f99a..5bcfe2e6f4d 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/cond4ht.4ht
@@ -1,8 +1,12 @@
%Needs: tex cond4ht.4ht
-\def\ConfigFiles{\input mktex4ht.cnf} % Please,modify the bodies of the
+%% begin comment 29/09/2016 (dg)
+%% detaching mktex4ht.cnf as
+%% a separate file mktex4ht-cnf.tex (copy of mktex4ht.cnf)
+%% end
+\def\ConfigFiles{\input mktex4ht-cnf.tex} % Please, modify the bodies of the
\def\mkfilename{mktex4ht.4ht} % first four macros.
-\def\author{Eitan M. Gurari} % The input file should consist
-\def\firstdate{1999} % of records \AddFile{i}{name}
+ % The input file should consist
+ % of records \AddFile{i}{name}
% where i stands for a priority number
% in the range 0--9, and name stands for
% for a sty/cls file name. For instance,
@@ -10,9 +14,9 @@
% \AddFile{1}{latex} \AddFile{2}{article}
% \AddFile{5}{amsmath} \AddFile{2}{report} ...
-% cond4ht.4ht 2005-02-21-19:17 %
-% Copyright (C) 2001--2005 Eitan M. Gurari %
-% %
+% cond4ht.4ht (2019-09-29-14:18), generated from tex4ht-cond4ht.tex
+% Copyright 2009-2016 TeX Users Group
+% Copyright 1997-2009 Eitan M. Gurari
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% This work may be distributed and/or modified under the %
@@ -26,37 +30,23 @@
% %
% This work has the LPPL maintenance status "maintained".%
% %
-% This Current Maintainer of this work %
-% is Eitan M. Gurari. %
+% The Current Maintainer of this work %
+% is TeX4ht Project Team. %
% %
% If you modify this program your changing its signature %
% with a directive of the following form will be %
% appreciated. %
% \message{signature} %
% %
-% gurari@cse.ohio-state.edu %
-% http://www.cse.ohio-state.edu/~gurari %
+% tex4ht@tug.org %
+% http://www.tug.org/tex4ht %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2005-02-21-19:17}
-
-
-\ifx \CopyYear\UnDef
-
-\csname newcount\endcsname\tmpcnt \tmpcnt\time \divide\tmpcnt 60
-\edef\temp{\the\tmpcnt}
-\multiply\tmpcnt -60 \advance\tmpcnt \time
+\immediate\write-1{version 2019-09-29-14:18}
-\edef\version{\the\year-\ifnum \month<10 0\fi
- \the\month-\ifnum \day<10 0\fi\the\day
- -\ifnum \temp<10 0\fi \temp
- :\ifnum \tmpcnt<10 0\fi\the\tmpcnt}
-
-\def\CopyYear.#1.{%
- \ifnum #1=\year #1\space\space\space\space\space\space
- \else #1--\the\year\fi
-}
-\def\BREAK{^^J}
+\ifx \BREAK\UnDef
+ \def\BREAK{^^J}
+ \input common.tex
\fi
@@ -342,6 +332,18 @@ it an explicitly check. On the other hand, we should avoid duplications.
\<Hinclude latex lib\><<<
+\ifx\InputIfFileExists\UnDef%
+\def\input:if:fileexists#1#2#3{%
+ \openin15 #1.4ht%
+ \ifeof15%
+ #3%
+ \else%
+ \input #1%
+ \fi\closein15%
+}%
+\else
+\let\input:if:fileexists\InputIfFileExists%
+\fi%
\Hinclude{\input #1.4ht}{fontmath}
|<*.4ht out of order|>
\def\h:input#1.#2.#3!*?: {%
@@ -350,16 +352,13 @@ it an explicitly check. On the other hand, we should avoid duplications.
\else
\let\:temp\empty
\no:dupl{#1}{%
- \openin15 #1.4ht
- \ifeof15
- \:CheckOption{debug}\if:Option
- \:warning{No configuration file for
- #1.\if .#2.tex\else #2\fi}%
- \fi
- \let\:temp\empty
- \else
- \def\:temp{\input #1.4ht }%
- \fi \closein15
+ \def\:warn:msg{}
+ \:CheckOption{debug}\if:Option
+ \def\:warn:msg{%
+ \:warning{No configuration file for #1.\if .#2.tex\else #2\fi}%
+ }
+ \fi%
+ \def\:temp{\input:if:fileexists{#1.4ht}{}{\:warn:msg}}%
}%
\fi \:temp}
\edef\:temp{\noexpand\Hinclude
@@ -443,34 +442,32 @@ it an explicitly check. On the other hand, we should avoid duplications.
tex4ht-4ht, e.g., for adding cases to {\tt\string\exit:ifnot}.
+\input tex4ht-cpright % needed for this generation:
+
\<\mkfilename\><<<
% \def\HTML{...} \def\CONFIG{...} \def\MAKETITLE{...} \def\EXIST{...}
% \def\OPTIONS{...} \def\PREAMBLE{...}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% %
-% Compile this file with the command `xhlatex |mkfilename', %
-% and read the instructions at mktex4ht.html => index %
-% => mktex4ht. %
-% %
-% The compilation needs the files ProTex.sty & AlProTex.sty %
-% from %
-% http://www.cse.ohio-state.edu/~gurari/systems.html %
-% %
-% This file is designed for machines--not human beings! You %
-% are strognly advised not to look at the code which follows %
-% the copyright notice. %
-% %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% |mkfilename |version %
-% Copyright (C) |CopyYear.|firstdate. |author %
-|<TeX4ht copyright|>
+%
+% Compile this file with the command `xhlatex |mkfilename',
+% and read the instructions at mktex4ht.html => index => mktex4ht.
+%
+% The compilation needs the files ProTex.sty & AlProTex.sty from
+% http://ctan.org/pkg/protex
+%
+% This file is designed for machines--not human beings! You
+% are strongly advised not to look at the code which follows
+% the copyright notice.
+%
+% |mkfilename (|version), generated from |jobname.4ht
+% Copyright 2009-2016 TeX Users Group
+% Copyright 1997-2009 Eitan M. Gurari
+|<TeX4ht copywrite|>
|<list of info files|>
\openin15=ProTex.sty \ifeof15
\immediate\write16{--- Needs ProTex.sty \& AlProTex.sty
- from http://www.cse.ohio-state.edu/\string
- ~gurari/systems.html --}
+ from http://ctan.org/pkg/protex --}
\fi \closein15
@@ -554,7 +551,7 @@ tex4ht-4ht, e.g., for adding cases to {\tt\string\exit:ifnot}.
% for bootstrapping, when html4.4ht is not available %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx \b:HEAD\UnDef
- \let\tbl:XV=\empty
+% \let\tbl:XV=\empty
\let\:Hii=\empty
\let\End:Hii=\empty
\let\:SPAN=\empty
@@ -648,16 +645,36 @@ WARNING: Missing definition for {\tt \string\CONFIG }
|<set Hinclude|>
+%% begin comment 29/09/2016 (dg)
+%% file \jobname.4ct does not exist on first run;
+%% it should be available on second and third run
+%% end
+\newif\ifFirstPass\FirstPassfalse
+\openin15=\Jobname.4ct
+ \ifeof15
+ \FirstPasstrue
+ \message{^^J warning *********** FIRST PASS **************************** ^^J}
+ \fi
+\closein15
+
\chapter{Containers for the Configurations}
+%%
+%% Skip processing lit entries on first pass
+%%
+
+\ifFirstPass\else
\catcode`\:=11
\expandafter\GetLit\HTML,,,!*?: \relax
\catcode`\:=12
+\fi
+
|<include info4ht|>
+
\end{document}
\endinput
>>>
@@ -720,6 +737,13 @@ WARNING: Missing definition for {\tt \string\CONFIG }
>>>
+%%
+%% set a hook for skipping mktex4ht.4ht generation from tex4ht-4ht.tex
+%% The file should be generated when cond4ht.4ht is processed,
+%% not when tex4ht-4ht.
+%%
+%%
+\csname Skipmkfilename\endcsname
\expandafter\OutputCodE\expandafter\<\mkfilename\>
\csname BYE\endcsname