% mkht.4ht (2023-09-10-08:49), generated from tex4ht-mkht.tex % Copyright 2009-2023 TeX Users Group % Copyright 1997-2009 Eitan M. Gurari % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3c of this license or (at your option) any % later version. The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3c or later is part of all distributions % of LaTeX version 2005/12/01 or later. % % This work has the LPPL maintenance status "maintained". % % The Current Maintainer of this work % is the TeX4ht Project . % % If you modify this program, changing the % version identification would be appreciated. % \immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-09-10-08:49\else |version\fi} \immediate\write-1{version 2023-09-10-08:49} \def\exit{\documentclass{article}\begin{document}\end{document}\endinput} \bgroup \def\missing#1{\aftergroup\exit \immediate\write16{---------------------------- error ---------------------------- ^^JRequires #1ProTex.sty from https://tug.org/tex4ht^^J% ---------------------------------------------------------------}} \openin15=ProTex.sty \ifeof15 \missing{}\else \closein15 \fi \openin15=AlProTex.sty \ifeof15 \missing{Al}\else \closein15 \fi \egroup \let\ScriptFileName\relax \let\AddExtn\relax \documentclass{article} \ifx \HCode\UnDef \input tex4ht.sty \Preamble{xhtml} \input ProTex.sty \AlProTex{foo,<<<>>>,|,title,list} \begin{document} \EndPreamble \else \Configure{ProTex}{foo,<<<>>>,|,title,list,[[]]} \begin{document} \fi \catcode`\:=11 \def\OutputCodE\<#1.#2\>{{\xdef\ScriptFileName{#1} \:DoName\def{#1}{\<#1.#2\>} \OutputCode[#2]\<#1\>}} \def\winextn{bat} \def\AddExtn{\ifx\ext\winextn .bat\fi} \tableofcontents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{LaTeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< || | | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | >>> \<<< latex |<@|>5 |<'|>|||empty>>> \<<< \HCode |<'|>|<@|>2|<'|>.a.b.c.\input |<'|> |<@|>1>>> \<<< \makeatletter||<2e + 209|>\makeatother>>> \<<< \def\HCode{\futurelet\HCode\HChar}\def\HChar{|}>>> \<<< \ifx"\HCode|\expandafter\HCode\else\expandafter\Link\fi>>> \<<< \def\HCode"##1"{\Link##1}>>> \<2e + 209\><<< \def\Link#1.a.b.c.{|<2e|>|<209|>}>>> \<2e\><<< \g@addto@macro\@documentclasshook{|}>>> \<209\><<< |\def\documentstyle{|||<209+tex4ht|>}>>> \<<< \RequirePackage[#1||<,html|>]{tex4ht}>>> \<<< |{#1||<,html|>}>>> \<209+tex4ht\><<< |<209+tex4ht+...|>\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}>>> \<209+tex4ht+...\><<< \def\HCode####1{\documentstyle[tex4ht,}>>> \<<< \let\HCode\documentstyle>>> \<<< \let\documentstyle\HCode>>> \<<< ||| | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | >>> \<<< latex |<@|>5 |<'|>|||empty>>> \<<< \makeatletter||<2e only|>\makeatother>>> \<2e only\><<< \def\Link#1.a.b.c.{|<2e|>}>>> \<<< ||| | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | >>> \<<< latex |<@|>5 |<'|>|||empty>>> \<<< \makeatletter||<209 only|>\makeatother>>> \<209 only\><<< \def\Link#1.a.b.c.{|<209|>}>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{TeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< ||| | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | >>> \<<< etex |<@|>5 |<'|>|||empty>>> \<<< |||empty>>> \<<< \def\Link#1.a.b.c.{|{|\input tex4ht.sty }}>>> \<<< \expandafter\def\csname tex4ht\endcsname>>> %%%%%%%%%%%%%%%%%%%% \section{Texinfo} %%%%%%%%%%%%%%%%%%%% The loading of tex4ht takes place at the @rm command at the end of the texinfo.tex file. \<<< ||| | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | | texindex ? >>> \<<< etex |<@|>5 |<'|>|||empty>>> \<<< |\let\svrm=\rm\def\rm{\svrm|}>>> \<<< \ifx\c\comment\def\rm{\let\rm=\svrm|}\expandafter\rm\fi>>> \<<< |\csname tex4ht\endcsname||empty>>> \<<< \catcode`\@=12\catcode`\\=0 >>> \<<< \catcode`\@=0\catcode`\\=13 >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{XeTeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< ||| | | |tex4ht -.xdv ||<@|>1 | |t4ht -.xdv ||<@|>1 | >>> \<<< xetex -no-pdf |<@|>5 |<'|>|||empty>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{XeLaTeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< ||| | | |tex4ht -.xdv ||<@|>1 | |t4ht -.xdv ||<@|>1 | >>> \<<< xelatex -no-pdf |<@|>5 |<'|>|||empty>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{MeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< ||| | | |tex4ht ||<@|>1 | |t4ht ||<@|>1 | >>> \<<< mex |<@|>5 |<'|>|||empty>>> %%%%%%%%%%%%%%%%%%%%%% \section{Script Components} %%%%%%%%%%%%%%%%%%%%%% \def\setcats{\catcode`\\=12 \catcode`\%=12 \catcode`\~=12 \catcode`\_=12 } \def\Remark{\bgroup \catcode`\#=12 \setcats \Rema} \def\Rema#1{\egroup\def\Rem{#1}} \def\Ii{\def\II} \def\Iii{\bgroup \setcats \Iiicont} \def\Iiicont#1{\egroup\def\III.##1.{#1}} \def\Iv{\bgroup \setcats \Ivcont} \def\Ivcont#1{\egroup\def\IV.##1.{#1}} \def\Quote{\bgroup \setcats \Qcont} \def\Qcont#1{\egroup\def\quote{#1}} \def\Argchar{\bgroup \setcats \Acont}\def\Acont#1{\egroup\def\argchar{#1}} \def\Dirchar{\bgroup \setcats \Dicont}\def\Dicont#1{\egroup\def\dirchar{#1}} \def\Echooff{\bgroup \setcats \Dcont}\def\Dcont#1{\egroup\def\echoOff{#1}} \def\Ext{\bgroup \setcats \Econt} \def\Econt#1{\egroup\def\ext{#1}% \def\firstln{unix}\ifx \firstln\ext \def\firstln##1endfirstln{##1}% \else \def\firstln##1endfirstln{}\fi } \def\Base{\bgroup \setcats \Bcont} \def\Bcont#1{\egroup\def\base{#1}} \def\Script{\def\script##1##2} % #1 -- file #2 -- extension \def\Options#1{\ifx \OPTIONS\UnDef \def\OPTIONS{#1}\fi} \def\Latex#1{\ifx \latex\UnDef \def\latex{#1}\fi} \let\Rem=\relax \let\II=\relax \let\III=\relax \let\IV=\relax \let\quote=\relax \let\argchar=\relax \let\dirchar=\relax \let\echoOff=\relax \let\ext=\relax \ifx \script\UnDef \let\script=\relax \fi \let\base=\relax \let\firstln=\relax \<<< |Rem>>> \<<< |II>>> \<<< |III.|<@|>3.>>> \<<< |IV.|<@|>4.>>> \<'\><<< |quote>>> \<@\><<< |argchar>>> \<<< |dirchar>>> \<<< |base>>> \<<< |echoOff>>> \<<< |firstln#!/bin/sh # stop at first error set -e # No interaction on the TeX runs is desirable. # Simpler to do that here than on the individual commands; # let's hope exec redirections are portable enough. exec >> Despite the name, this macro is not for Windows. It is unconditionally included in all the scripts. It should only be the copyright notice, which somehow gets transformed for Unix. Thus we go to lots of trouble to insert the at-echo off only for Windows. \<<< | |Rem |ScriptFileName|AddExtn (2023-09-10-08:49), generated from tex4ht-mkht.tex |Rem Copyright 2009-2020 TeX Users Group |Rem Copyright 2003-2009 Eitan M. Gurari |Rem |Rem This work may be distributed and/or modified under the |Rem conditions of the LaTeX Project Public License, either |Rem version 1.3 of this license or (at your option) any |Rem later version. The latest version of this license is in |Rem http://www.latex-project.org/lppl.txt |Rem and version 1.3 or later is part of all distributions |Rem of LaTeX version 2003/12/01 or later. |Rem |Rem This work has the LPPL maintenance status "maintained". |Rem |Rem The Current Maintainer of this work |Rem is the TeX4ht Project . |Rem |Rem If you modify this file, changing the |Rem version identification be appreciated. >>> \def\IfExt#1,#2//{\def\next{#1}% \ifx \next\ext \def\next{\csname iftrue\endcsname}% \else \ifx \next\empty \def\next{\csname iffalse\endcsname}% \else \def\next{\IfExt#2,,//}\fi\fi \next} \begingroup \catcode`\:=11 \catcode`\^=7 \catcode`\^^M=13% % \gdef\make#1{% \expandafter\IfExt\OPTIONS,,//% % \subsection{#1}% \def\temp##1{\par{\tt\string##1: \meaning##1}}% \temp\quote \temp\argchar \temp\dirchar \temp\echoOff \temp\ext \temp\script \temp\base \temp\firstln \temp\latex \temp\Rem \temp\II \temp\III \temp\IV \def\pref{#1} % \<\pref latex\latex.\ext\><<< \ >>> % \OutputCodE\<\pref latex\latex.\ext\> \script{\pref latex}{\ext} % \expandafter\let\csname\pref latex\latex\endcsname=\UnDef % \<\pref tex.\ext\><<< \ >>> % % \OutputCodE\<\pref tex.\ext\> \script{\pref tex}{\ext} % % \<\pref texi.\ext\><<< \ >>> % % \OutputCodE\<\pref texi.\ext\> \script{\pref texi}{\ext} % % \<\pref xetex.\ext\><<< \ >>> % % \OutputCodE\<\pref xetex.\ext\> \script{\pref xetex}{\ext} % % \<\pref xelatex.\ext\><<< \ >>> % % \OutputCodE\<\pref xelatex.\ext\> \script{\pref xelatex}{\ext} % % \<\pref mex.\ext\><<< \ >>> % % \OutputCodE\<\pref mex.\ext\> \script{\pref mex}{\ext} % % % \fi } % \endgroup \ifx \JOBNAME\UnDefined \def\one{\Ii} \def\two{\Iii} \def\three{\Iv} \Latex{} % {}, {2e}, {209} \def\temp{unix}\ifx\script\temp \Options{unix} % {unix,bat}, {unix}, {bat} %%%%%%%%%% \Ext{unix} %%%%%%%%%% \Base{} \Quote{'} \Argchar{$} \Dirchar{-f/} \Echooff{} \Remark{#} \else \def\temp{bat}\ifx\script\temp \Options{bat} %%%%%%%%%%%%%%%%%% \Options{bat} %%%%%%%%%%%%%%%%%% %%%%%%%%% \Ext{bat} %%%%%%%%% \Base{} \Quote{} \Argchar{%} \Dirchar{} \Echooff{@echo off} \Remark{Rem } \else \bgroup \def\1{\space\space\space} \def\2{\space\space\space\space\space\space} \catcode`\%=12 \catcode`\#=12 \catcode`\~=12 \catcode`\@=0 \catcode`\\=12 @immediate@write16{|-------------------------------------------------------------} @immediate@write16{|@2@1 A sample of a scripts generator file } @immediate@write16{|} @immediate@write16{|@1 Creates a foolatex script for commands} @immediate@write16{|} @immediate@write16{|@2 foolatex file} @immediate@write16{|} @immediate@write16{|@1 similar to htlatex for commands} @immediate@write16{|} @immediate@write16{|@2 htlatex file "html,...1..." " ...2..." "...3..."} @immediate@write16{|} @immediate@write16{|@1 with the arguments ...1..., ...2..., and ...3... } @immediate@write16{|@1 embedded in the new script. General usage} @immediate@write16{|} @immediate@write16{|@2 foolatex file "..." "..." "..."} @immediate@write16{|} @immediate@write16{|----------------- sample.tex --------------------------------} @immediate@write16{|% latex sample} @immediate@write16{|} @immediate@write16{| \def\script{bat} } @immediate@write16{| % \def\script{unix} } @immediate@write16{|} @immediate@write16{| \input ./mkht.4ht } @immediate@write16{|} @immediate@write16{| \one{,html,...1...}} @immediate@write16{| \two{-i/tex4ht/ht-fonts/#1 ...2...} % bat } @immediate@write16{| % \two{-i~/tex4ht/texmf/tex4ht/ht-fonts/#1 ...2...} % unix } @immediate@write16{| \three{#1 ...3...}} @immediate@write16{| \make{foo}} @immediate@write16{|} @immediate@write16{| \end{document} } @immediate@write16{-------------------------------------------------------------} @egroup \def\next{\csname fi\endcsname \csname fi\endcsname \csname fi\endcsname\end{document}} \fi \fi \expandafter\endinput \fi \input \JOBNAME \end{document} \endinput