1
% (1) latex tex4ht-mkht
2
% (2) latex mkht-scripts.4ht
6
% (1) xhlatex tex4ht-mkht "html,3"
7
% (2) xhlatex mkht-scripts.4ht "html,3"
10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12
% Copyright (C) 1997-- Eitan M. Gurari %
14
% This work may be distributed and/or modified under the %
15
% conditions of the LaTeX Project Public License, either %
16
% version 1.3 of this license or (at your option) any %
17
% later version. The latest version of this license is %
19
% http://www.latex-project.org/lppl.txt %
20
% and version 1.3 or later is part of all distributions %
21
% of LaTeX version 2003/12/01 or later. %
23
% This work has the LPPL maintenance status "maintained".%
25
% This Current Maintainer of this work %
26
% is Eitan M. Gurari. %
28
% gurari@cse.ohio-state.edu %
29
% http://www.cse.ohio-state.edu/~gurari %
30
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33
\documentclass{article}
35
\def\CodeDel{{<<<-}{->>>}}
40
\AlProTex{4ht,<<<>>>,?,title,list}
42
\Configure{ProTex}{4ht,<<<>>>,?,title,list,[[]]}
47
%%%%%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49
\newcount\tmpcnt \tmpcnt\time \divide\tmpcnt 60
50
\edef\temp{\the\tmpcnt}
51
\multiply\tmpcnt -60 \advance\tmpcnt \time
53
\edef\version{\the\year-\ifnum \month<10 0\fi
54
\the\month-\ifnum \day<10 0\fi\the\day
55
-\ifnum \temp<10 0\fi \temp
56
:\ifnum \tmpcnt<10 0\fi\the\tmpcnt}
59
\ifnum #1=\year #1\space\space\space\space\space\space
60
\else #1--\the\year\fi
67
\expandafter\toks\expandafter{\mkhtNote}
69
%%%%%%%%%%%%%%%%%%%%% end definitions %%%%%%%%%%%%%%%%%%%%%%%%%
74
\section{TeX Dialects}
79
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
92
|<unix line|>|<latex|>
95
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
96
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
102
latex |<@|>5 |<'|>|<definitions|>|<get parameters|>|empty>>>
104
\<get parameters\><<<
105
\HCode |<'|>|<@|>2|<'|>.a.b.c.\input |<'|> |<@|>1>>>
109
\makeatletter|<get 2nd arg|>|<2e + 209|>\makeatother>>>
112
\def\HCode{\futurelet\HCode\HChar}\def\HChar{|<double quotes??|>}>>>
114
\<double quotes??\><<<
115
\ifx"\HCode|<remove qts|>\expandafter\HCode\else\expandafter\Link\fi>>>
118
\def\HCode"##1"{\Link##1}>>>
122
\def\Link#1.a.b.c.{|<2e|>|<209|>}>>>
125
\g@addto@macro\@documentclasshook{|<require package|>}>>>
128
|<save|>\def\documentstyle{|<recall|>|<options|>|<209+tex4ht|>}>>>
130
\<require package\><<<
131
\RequirePackage[#1|<II|>|<,html|>]{tex4ht}>>>
135
|<def tex4ht|>{#1|<II|>|<,html|>}>>>
139
|<209+tex4ht+...|>\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}>>>
141
\<209+tex4ht+...\><<<
142
\def\HCode####1{\documentstyle[tex4ht,}>>>
146
\let\HCode\documentstyle>>>
149
\let\documentstyle\HCode>>>
154
|<unix line|>|<latex2e|>
157
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
158
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
166
latex |<@|>5 |<'|>|<definitions2e|>|<get parameters|>|empty>>>
169
\makeatletter|<get 2nd arg|>|<2e only|>\makeatother>>>
173
\def\Link#1.a.b.c.{|<2e|>}>>>
179
\<htlatex 209...\><<<
180
|<unix line|>|<latex209|>
183
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
184
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
192
latex |<@|>5 |<'|>|<definitions209|>|<get parameters|>|empty>>>
194
\<definitions209\><<<
195
\makeatletter|<get 2nd arg|>|<209 only|>\makeatother>>>
199
\def\Link#1.a.b.c.{|<209|>}>>>
205
\OutputCodE\<\pref latex\latex.\ext\> \script{\pref latex}{\ext} %
206
\expandafter\let\csname\pref latex\latex\endcsname=\UnDef
211
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
213
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
219
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
221
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
228
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
229
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
234
tex |<@|>5 |<'|>|<tex definitions|>|<get parameters|>|empty>>>
237
\<tex definitions\><<<
238
|<set hook|>|<get 2nd arg|>|empty>>>
241
\def\Link#1.a.b.c.{|<def tex4ht|>{|<options|>\input tex4ht.sty }}>>>
245
\expandafter\def\csname tex4ht\endcsname>>>
251
\<\pref tex.\ext\><<<
255
\OutputCodE\<\pref tex.\ext\> \script{\pref tex}{\ext} %
259
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
261
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
269
The loading of tex4ht takes place at the @rm command at the end of the
273
|<unix line|>|<texinfo|>
276
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
277
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
283
tex |<@|>5 |<'|>|<texinfo definitions|>|<get parameters|>|empty>>>
286
\<texinfo definitions\><<<
287
|<tex definitions|>\let\svrm=\rm\def\rm{\svrm|<tex4ht into texinfo|>}>>>
289
\<tex4ht into texinfo\><<<
290
\ifx\c\comment\def\rm{\let\rm=\svrm|<load into texinfo|>}\expandafter\rm\fi>>>
292
\<load into texinfo\><<<
293
|<change cats|>\csname tex4ht\endcsname|<restore cats|>|empty>>>
296
\catcode`\@=12\catcode`\\=0 >>>
299
\catcode`\@=0\catcode`\\=13 >>>
304
\<\pref texi.\ext\><<<
308
\OutputCodE\<\pref texi.\ext\> \script{\pref texi}{\ext} %
313
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
315
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
325
|<unix line|>|<texexec|>
326
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
327
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
332
texexec --arg="opt-arg=|<@|>2" --use=tex4ht |<@|>5 |<@|>1 >>>
334
\immediate\write16{...............................fix......}
336
perl /home/4//gurari/main.dir/try.dir/context.dir/context/perltk/texexec.pl%
338
\immediate\write16{........................................}
342
\<\pref context.\ext\><<<
346
\OutputCodE\<\pref context.\ext\> \script{\pref texexec}{\ext} %
351
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
353
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
358
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
360
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
366
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
367
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
372
mex |<@|>5 |<'|>|<tex definitions|>|<get parameters|>|empty>>>
378
\<\pref mex.\ext\><<<
382
\OutputCodE\<\pref mex.\ext\> \script{\pref mex}{\ext} %
386
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
388
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
393
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
394
% \subsection{MeX il2-pl}
395
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
398
% |<unix line|>|<mex-pl|>
401
% |<base|>tex4ht |<dir ch|>|<@|>1 |<III|>
402
% |<base|>t4ht |<dir ch|>|<@|>1 |<IV|>
407
% mex-pl -translate-file=il2-pl |<'|>|<tex definitions|>|<get parameters|>|empty>>>
413
% \<\pref mex-pl.\ext\><<<
417
% \OutputCodE\<\pref mex-pl.\ext\> \script{\pref mex-pl}{\ext} %
424
\section{Markup Dialects}
428
\subsection{HTML: ht}
433
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1}
434
\Iv{#1 -cvalidatehtml ## -d~/WWW/temp/ -m644 }
441
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
442
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env}
443
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidatehtml }
448
The first line is for `ht ... ...' scripts.
451
"", "ht", "", "", "", "-cvalidatehtml",
452
"ht", "htlatex", "latex", "", "", "-cvalidatehtml",
453
"ht", "httex", "tex", "", "", "-cvalidatehtml",
454
"ht", "httexi", "texi", "", "", "-cvalidatehtml",
455
"ht", "httexexec", "texexec", "", "", "-cvalidatehtml",
460
\subsection{XHTML: xh}
465
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1}
466
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
472
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
473
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env}
474
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
483
\subsection{Unicode XHTML: uxh}
487
\Ii{,xhtml,uni-html4}
488
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
489
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
494
\Ii{,xhtml,uni-html4}
495
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
496
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env
498
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
503
"uxh", "uxhlatex", "latex", "xhtml,uni-html4", " -cunihtf", "-cvalidate",
504
"uxh", "uxhtex", "tex", "xhtml,uni-html4", " -cunihtf", "-cvalidate",
505
"uxh", "uxhtexi", "texi", "xhtml,uni-html4", " -cunihtf", "-cvalidate",
506
"uxh", "uxhtexexec","texexec", "xhtml,uni-html4", " -cunihtf", "-cvalidate",
510
\subsection{XHTML+MathML: xhm}
515
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
516
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
522
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
523
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cunihtf}
524
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
530
"xhm", "xhmlatex", "latex", "xhtml,mathml", " -cunihtf", "-cvalidate",
531
"xhm", "xhmtex", "tex", "xhtml,mathml", " -cunihtf", "-cvalidate",
532
"xhm", "xhmtexi", "texi", "xhtml,mathml", " -cunihtf", "-cvalidate",
533
"xhm", "xhmtexexec","texexec", "xhtml,mathml", " -cunihtf", "-cvalidate",
538
\subsection{Mozilla XHTML+MathML: mz}
543
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf}
544
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
550
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
551
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cmozhtf}
552
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
558
"mz", "mzlatex", "latex", "xhtml,mozilla", " -cmozhtf", "-cvalidate",
559
"mz", "mztex", "tex", "xhtml,mozilla", " -cmozhtf", "-cvalidate",
560
"mz", "mztexi", "texi", "xhtml,mozilla", " -cmozhtf", "-cvalidate",
561
"mz", "mztexexec", "texexec", "xhtml,mozilla", " -cmozhtf", "-cvalidate",
566
\subsection{OpenOffice: oo}
571
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf}
578
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
579
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cmozhtf}
580
\Iv{#1 -coo -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
586
"oo", "oolatex", "latex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-coo -cvalidate",
587
"oo", "ootex", "tex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-coo -cvalidate",
588
"oo", "ootexi", "texi", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-coo -cvalidate",
589
"oo", "ootexexec", "texexec", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-coo -cvalidate",
593
\subsection{TEI: tei, teim}
598
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
599
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
603
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
604
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
610
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
611
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cunihtf}
612
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
616
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
617
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cunihtf}
618
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
624
"tei", "teilatex", "latex", "xhtml,tei", " -cunihtf", "-cvalidate",
625
"tei", "teitex", "tex", "xhtml,tei", " -cunihtf", "-cvalidate",
626
"tei", "teitexi", "texi", "xhtml,tei", " -cunihtf", "-cvalidate",
627
"tei", "teitexexec","texexec", "xhtml,tei", " -cunihtf", "-cvalidate",
628
"teim", "teimlatex", "latex", "xhtml,tei-mml"," -cunihtf", "-cvalidate",
629
"teim", "teimtex", "tex", "xhtml,tei-mml"," -cunihtf", "-cvalidate",
630
"teim", "teimtexi", "texi", "xhtml,tei-mml"," -cunihtf", "-cvalidate",
631
"teim", "teimtexexec","texexec","xhtml,tei-mml"," -cunihtf", "-cvalidate",
636
\subsection{DocBook: db, dbm}
641
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
642
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
645
\Ii{,xhtml,docbook-mml}
646
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
647
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
653
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
654
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cunihtf}
655
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
658
\Ii{,xhtml,docbook-mml}
659
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
660
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cunihtf}
661
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
668
"db", "dblatex", "latex", "xhtml,docbook", " -cunihtf", "-cvalidate",
669
"db", "dbtex", "tex", "xhtml,docbook", " -cunihtf", "-cvalidate",
670
"db", "dbtexi", "texi", "xhtml,docbook", " -cunihtf", "-cvalidate",
671
"db", "dbtexexec", "texexec", "xhtml,docbook", " -cunihtf", "-cvalidate",
672
"dbm", "dbmlatex", "latex", "xhtml,docbook-mml", " -cunihtf", "-cvalidate",
673
"dbm", "dbmtex", "tex", "xhtml,docbook-mml", " -cunihtf", "-cvalidate",
674
"dbm", "dbmtexi", "texi", "xhtml,docbook-mml", " -cunihtf", "-cvalidate",
675
"dbm", "dbmtexexec","texexec", "xhtml,docbook-mml", " -cunihtf", "-cvalidate",
681
\subsection{MS Word HTML: w}
687
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -csymhtf}
688
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
694
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
695
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -csymhtf}
696
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate }
704
"w", "wlatex", "latex", "xhtml,word", " -csymhtf", "",
705
"w", "wtex", "tex", "xhtml,word", " -csymhtf", "",
706
"w", "wtexi", "texi", "xhtml,word", " -csymhtf", "",
707
"w", "wtexexec", "texexec", "xhtml,word", " -csymhtf", "",
714
\subsection{JavaHelp: jh}
718
\Ii{,html,javahelp,3.2,unicode}
719
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10}
720
\Iv{#1 -d$1-doc/ -m644 -cjavahelp -cvalidate }
725
\Ii{,html,javahelp,3.2,unicode}
726
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
727
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env
729
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -d%1-doc\ -cjavahelp }
735
\Ii{,html,javahelp,3.2,unicode,jh1.0}
736
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10}
737
\Iv{#1 -d$1-doc/ -m644 ## -cvalidate }
742
\Ii{,html,javahelp,3.2,unicode,jh1.0}
743
\Iii{-ic:\tex4ht\texmf\tex4ht\ht-fonts\#1
744
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env
746
\Iv{#1 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -d%1-doc\ -cjavahelp1 }
751
"jh", "jhlatex", "latex", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidate",
752
"jh", "jhtex", "tex", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidate",
753
"jh", "jhtexi", "texi", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidate",
754
"jh", "jhtexexec","texexec", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidate",
758
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
760
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
765
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
766
% mkht.4ht ?version %
767
% Copyright (C) ?CopyYear.1997. Eitan M. Gurari %
770
\def\exit{\documentclass{article}\begin{document}\end{document}\endinput}
772
\def\missing#1{\aftergroup\exit
773
\immediate\write16{---------------------------- error
774
----------------------------
775
^^JRequires #1ProTex.sty from
776
http://www.cse.ohio-state.edu/\string
777
~gurari/systems.html^^J%
778
---------------------------------------------------------------}}
779
\openin15=ProTex.sty \ifeof15 \missing{}\else \closein15 \fi
780
\openin15=AlProTex.sty \ifeof15 \missing{Al}\else \closein15 \fi
783
\documentclass{article}
789
\AlProTex{foo,<<<>>>,|,title,list}
793
\Configure{ProTex}{foo,<<<>>>,|,title,list,[[]]}
801
%%%%%%%%%%%%%%%%%%%%%%
802
\section{Script Components}
803
%%%%%%%%%%%%%%%%%%%%%%
805
\def\setcats{\catcode`\\=12 \catcode`\%=12 \catcode`\~=12
809
\def\Remark{\bgroup \catcode`\#=12 \setcats \Rema} \def\Rema#1{\egroup\def\Rem{#1}}
811
\def\Iii{\bgroup \setcats \Iiicont} \def\Iiicont#1{\egroup\def\III.##1.{#1}}
812
\def\Iv{\bgroup \setcats \Ivcont} \def\Ivcont#1{\egroup\def\IV.##1.{#1}}
813
\def\Quote{\bgroup \setcats \Qcont} \def\Qcont#1{\egroup\def\quote{#1}}
814
\def\Argchar{\bgroup \setcats \Acont}\def\Acont#1{\egroup\def\argchar{#1}}
815
\def\Dirchar{\bgroup \setcats \Dcont}\def\Dcont#1{\egroup\def\dirchar{#1}}
816
\def\Ext{\bgroup \setcats \Econt} \def\Econt#1{\egroup\def\ext{#1}%
817
?<unix shebang line?>}
818
\def\Base{\bgroup \setcats \Bcont} \def\Bcont#1{\egroup\def\base{#1}}
819
\def\Script{\def\script##1##2} % #1 -- file #2 -- extension
820
\def\Options#1{\ifx \OPTIONS\UnDef \def\OPTIONS{#1}\fi}
821
\def\Latex#1{\ifx \latex\UnDef \def\latex{#1}\fi}
831
\ifx \script\UnDef \let\script=\relax \fi
864
\def\IfExt#1,#2//{\def\next{#1}%
865
\ifx \next\ext \def\next{\csname iftrue\endcsname}%
866
\else \ifx \next\empty \def\next{\csname iffalse\endcsname}%
867
\else \def\next{\IfExt#2,,//}\fi\fi \next}
870
\catcode`\:=11 \catcode`\^=7 \catcode`\^^M=13%
873
\expandafter\IfExt\OPTIONS,,//%
876
\def\temp##1{\par{\tt\string##1: \meaning##1}}%
890
\<\pref latex\latex.\ext\><<<
891
\<htlatex \latex...\>
906
The script should have an explicit shebang (\#!) line. A command on
907
the first line implies a call for [t]csh interpretation. To avoid
908
shebang at the first line, leave the first line blank.
911
\<unix shebang line\><<<-
912
\def\firstln{unix}\ifx \firstln\ext
913
\def\firstln##1endfirstln{##1}%
914
\else \def\firstln##1endfirstln{}\fi
921
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
922
\section{mkht-scripts.4ht}
923
%%%%%%%%%%%%%%%%%%%%%%%%%%%
929
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
930
% mkht-scripts.4ht ?version %
931
% Copyright (C) ?CopyYear.2000. Eitan M. Gurari %
935
\def\JOBNAME{mkht-scripts.4ht}
936
\def\next{\input mkht.4ht \endinput}
940
\Options{unix,bat} % {unix,bat}, {unix}, {bat}
941
\Latex{} % {}, {2e}, {209}
944
\section{Unix Scripts}
951
\Script{% #1 -- file #2 -- extension
952
\Needs{"sed -e 's/\#\# -d/ -d/g' < #1.#2 > /home/4/gurari/tex4ht.dir/bin/solaris/#1"}%
953
\Needs{"chmod 700 /home/4/gurari/tex4ht.dir/bin/solaris/#1"}%
954
\Needs{"mkdir mn.dir/ht-unix"}%
955
\Needs{"cp #1.#2 mn.dir/ht-unix/#1"}%
966
\section{MS Window Scripts}
976
\ifOption{Needs}{\Script{%
977
\Needs{"mkdir mn.dir/ht-win32"}%
978
\Needs{"cp #1.#2 mn.dir/ht-win32/."}%
995
The htlatex-oriented scripts have the following outline.
1001
tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3
1005
The latex command may be introduced with a filename residing out of
1006
the work directory. However, it produces the dvi code in the work
1007
directory. Consequently, when activated by htlatex-oriented scripts,
1008
the tex4ht.c and t4ht.c utilities need to look for the dvi code in the
1009
work directory. The -f prefix asks these utilities to ignore the
1010
paths possibly appearing in \verb!$1!. A path is recognized by
1011
determining whether the character immediately after \verb'-f' is a
1012
directory indicator character `\verb+\+' or `\verb+/+'.
1020
\section{Perl Script}
1028
?<perl copyright notice?>
1030
$^W=1; # turn warning on
1031
?<available options?>
1033
print "mk4ht (?version)\n";
1035
print "improper command\n";
1036
showInstrucions(); exit(1);
1038
my @command=("","","","","");
1042
foreach $param (@ARGV) {
1044
for( $j=1; $j<$#options; $j+=6 ){
1045
if( $param eq $options[$j] ){
1046
if( $options[$j-1] eq "" ){
1047
$command[0] = $options[$j];
1049
$command[0] = "ht".$options[$j+1];
1051
$command[2] = $options[$j+2];
1052
$command[3] = $options[$j+3];
1053
$command[4] = $options[$j+4];
1056
if( $j>$#options ){ print "improper command: $param \n";
1057
showInstrucions(); exit(1); }
1058
} elsif ( $i== 1 ) {
1059
$command[1] = $param;
1060
} elsif ( $i== 2 ) {
1061
if( $command[2] eq "" ){
1062
$command[2] = $param;
1064
$command[2] = $param. "," . $command[2];
1066
} elsif ( $i== 3 ) {
1067
$command[3] = $param . $command[3];
1069
$command[4] = $param. " " .$command[4];
1073
my $commando = $command[0] . " " . $command[1] . " \"".
1074
$command[2] . "\" \"". $command[3] . "\" \"" .
1076
print "$commando\n";
1078
if( $rtrn = system($commando) ){
1079
print "--- error --- failed to execute command\n";
1080
} else { exit( !$rtrn ); }
1086
\<available options\><<<-
1093
sub showInstrucions(){
1094
print " option1: mk4ht #1 \"#2\" \"#3\" \"#4\" \"#5\"\n";
1096
print " #1: htlatex, mzlatex, oolatex, dblatex, dbmlatex,\n";
1097
print " teilatex, teimlatex, uxhlatex, wlatex, xhlatex,\n";
1098
print " xhmlatex\n";
1100
print " also 'tex', 'texi', and 'texexec' instead of 'latex'\n";
1102
print " #2: file name\n";
1103
print " #3: optional arguments for latex/tex/texi/texexec \n";
1104
print " #4: optional arguments for tex4ht.c\n";
1105
print " #5: optional arguments for t4ht.c\n";
1107
print " option2: mk4ht ht #2 #3 \"#4\" \"#5\"\n";
1110
print " #2: latex, tex\n";
1111
print " #3: file name\n";
1112
print " #4: optional arguments for tex4ht.c\n";
1113
print " #5: optional arguments for t4ht.c\n";
1115
print " Within the program, in column three of the options\n";
1116
print " variable, the requests for the commands \"latex\",\n";
1117
print " \"tex\", etc. can be replaced with other equivalent\n";
1118
print " commands (e.g., \"tex -fmt=latex\").\n";
1129
\item The `use strict' should be employed when not
1130
dynamically exporting variables.
1131
\item Put `my' on local declarations.
1145
\immediate\write16{--------------------------------------------------------}
1146
\immediate\write16{* Compile mkht-scripts.4ht with latex to get the
1148
\immediate\write16{* For shorter latex2e scripts, compile a file whose
1150
\immediate\write16{\space\space\space\space\def\string\latex{2e}
1151
\string\input\space mkht-scripts.4ht }
1152
\immediate\write16{* For shorter latex209 scripts, compile a file whose
1154
\immediate\write16{\space\space\space\space\def\string\latex{209}
1155
\string\input\space mkht-scripts.4ht }
1156
\immediate\write16{* Remove the extension .unix from the file names }
1157
\immediate\write16{--------------------------------------------------------}
1160
\<TeX4ht copyright\><<<-
1162
% This work may be distributed and/or modified under the %
1163
% conditions of the LaTeX Project Public License, either %
1164
% version 1.3 of this license or (at your option) any %
1165
% later version. The latest version of this license is %
1167
% http://www.latex-project.org/lppl.txt %
1168
% and version 1.3 or later is part of all distributions %
1169
% of LaTeX version 2003/12/01 or later. %
1171
% This work has the LPPL maintenance status "maintained".%
1173
% This Current Maintainer of this work %
1174
% is Eitan M. Gurari. %
1176
% If you modify this program your changing its signature %
1177
% with a directive of the following form will be %
1179
% \message{signature} %
1181
% gurari@cse.ohio-state.edu %
1182
% http://www.cse.ohio-state.edu/~gurari %
1183
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1184
\immediate\write-1{version |version}
1187
\<perl copyright notice\><<<-
1189
# Copyright (C) ?CopyYear.2003. Eitan M. Gurari
1192
# This work may be distributed and/or modified under the %
1193
# conditions of the LaTeX Project Public License, either %
1194
# version 1.3 of this license or (at your option) any %
1195
# later version. The latest version of this license is %
1197
# http://www.latex-project.org/lppl.txt %
1198
# and version 1.3 or later is part of all distributions %
1199
# of LaTeX version 2003/12/01 or later. %
1201
# This work has the LPPL maintenance status "maintained".%
1203
# This Current Maintainer of this work %
1204
# is Eitan M. Gurari. %
1206
# gurari@cse.ohio-state.edu %
1207
# http://www.cse.ohio-state.edu/~gurari %
1208
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1223
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1226
\OutputCode\<mkht-scripts\>
1228
\OutputCodE\<mk4ht.perl\>
1229
%"mv mk4ht.perl mk4ht"
1233
\immediate\write16{--------------------------------------------------------}
1234
\immediate\write16{Compile mkht-scripts.4ht with latex to get the
1236
\immediate\write16{Use the option `Needs' to automatically move the
1237
files to private directories.}
1238
\immediate\write16{--------------------------------------------------------}