The time to create a hypertext document depends mainly on the time it takes to translate its figures into gif.
The number of figures can be reduced by employing browser-based fonts (e.g., `<FONT FACE="SYMBOL">
') of TeX4ht
for creating special symbols, instead of pictorial-based fonts of TeX4ht.
For DOS-like file names use `htm
' instead of `html
', within the \Preamble
commands and the extensions of the
file names.
LaTeX Documents | |||
1 | Getting Started with TeX/LaTeX | Wilkins | |
2 | An Introduction to TeX and Friends | Maltby | |
3 | Essential LaTeX | Jon Warbrick | |
4 | Psfig/TeX 1.10 Users Guide | Darrell | |
5 | PSTricks samples | Van Zandt | |
6 | METAFONT for Beginners | Tobin | |
7 | Simple Drawings with MetaFont | Wagner | |
8 | A Few Words on Fonts | Murphy | |
9 | XyMTeX: A Macro Package for Typesetting Chemical Structural Formulas | Fujita | |
10 | TeXProject: A Mini Manual | Bressan, Gurari | |
TeX Documents | |||
11 | A Gentle Introduction to TeX | Doob | |
12 | Using TeX on the Vax to Typeset Documents: A Primer | St Sauver | |
13 | mfpic ---
Pictures in TeX with MetaFont | Leathrum, Tobin | |
14 | The WEB System of Structured Documentation | Knuth | |
15 | Mathematical Approximation and Documentation | Watson, Jr. | |
AmsLaTeX and AmsTeX Documents | |||
16 | Sample Paper for the amsmath Package | Version 1.02 | |
17 | Newtheorem and theoremstyle test | Michael Downes | |
18 | AMS-LaTeX User's Guide | Version 1.2 | |
19 | User's Guide to AMS-TeX | Version 2.1 |
Script:
ht latex GSWLaTeX
Changes:
\begin{document}
' with the following
\input TeX4ht.sty \Preamble{html,sections-,3,fonts} \begin{document} \EndPreamble
Script:
ht latex maltby-intro
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html,fonts,next,3} \begin{document} \EndPreamble
\maketitle
'.
\let\smallfont=\empty \HFont\smallfont{SMALL} \long\def\result#1{\begin{quote}{\smallfont #1}\end{quote}}
Script:
ht latex essential
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html,sections-,2} \begin{document} \EndPreamble \let\Xfigure=\figure \def\figure{\Xfigure \everypar{\HCode{<P>}} \def\section##1{\HCode{<H2>1 ##1</H2>}} \def\subsection##1{\HCode{<H3>1.1 ##1</H3>}}} \renewcommand{\egstart}{\Columns[, VALIGN="TOP" WIDTH="\ifnum \Col=1 350\else 220\fi"]{2}\begin{egbox}} \renewcommand{\egmid}{\end{egbox}\vfill\break \IgnorePar \begin{egbox}} \renewcommand{\egend}{\end{egbox}\EndColumns} \catcode`\@=11 \def\maketitle{% \begin{center}\HCode{<H2>}\@title\HCode{</H2>}\@docnumber \\\relax \@date \\\@author \end{center}} \catcode`\@=12
<PRE>
or other insertions before its leading comment. If it did, comment
that part out.
Script:
ht latex psfig-doc
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html,fonts,sections-,2} \begin{document} \EndPreamble \Configure{centerline}{\HCode{<CENTER>}}{\HCode{</CENTER>}} \let\Xpsfig=\psfig \def\psfig#1{\hbox{\Picture+[pict]{}\Xpsfig{#1}\EndPicture}}
samples.tex, , pst-coil.sty , pst-coil.tex , pst-node.tex , pst-plot.sty , pstricks.sty , pstricks.tex , pstricks.con (13 pictures)
Script:
ht latex samples.tex
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html} \begin{document} \EndPreamble \let\Xexample=\example \def\example{\File{none.html}% \hbox\bgroup \Picture+[pict]{}\Xexample} \let\Xendexample=\endexample \def\endexample{\Xendexample\EndPicture \EndFile{none.html}% \Link[\PictureFile]{}{}\tt\TITLE\EndLink \HCode{<BR>}\egroup} \let\Xcreator=\creator \def\creator#1{\gdef\TITLE{#1}\Xcreator{#1}} \let\Xtitle=\title \def\title#1{\bgroup \def\label##1{}\def\tt##1{##1}\let\N=\string \xdef\TITLE{\TITLE: #1}\egroup \Xtitle{#1}}
Script:
ht latex metafont-for-beginners
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html,sections-,fonts,2} \begin{document} \EndPreamble
Script:
ht latex drawing
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{html,fonts,2} \begin{document} \EndPreamble
\tableofcontents[likesection]
' after `\maketitle
'
Script:
ht latex simple-nfss
Changes:
\begin{document}
' with the following.
\catcode`\"=12 \input TeX4ht.sty \Preamble{html,sections-,fonts,2} \begin{document} \EndPreamble \catcode`\"=\active
\begin{document}
' in xymtex.tex with
\input TeX4ht.sty \Preamble{html,bib1,3} \begin{document} \EndPreamble \def\qquad{~~~~~~} \ConfigureEnv{minipage} {\HCode{<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD>}} {\HCode{</TD></TR></TABLE>}} {} {}
You might also want to include the following code.
\Configure{picture}{+}{}
\setbox...=\hbox{\PictureOff
' the 10 occurences of `\setbox...=\hbox{%
' in xymsubst.tex
that
don't appear in verbatim environments
\vspace*{1cm}
' with `\ifHtml \else \vspace*{1cm}\fi
' within the second table
environment of xymcarb.tex
.
Script:
ht latex manual
Changes:
\begin{document}
' with
\input TeX4ht.sty \Preamble{htm,2,fonts} \begin{document} \EndPreamble
Script:
ht tex gentle
Changes:
\let\oldleft=\left \let\oldright=\right \input TeX4ht.sty \Preamble{html,sty,plain} \EndPreamble
^\the\footnotenum
' with `^{\the\footnotenum}
'
\def\enduser{\endgroup}
' with `\def\enduser{\endgroup\HtmlEnv}
'.
\def\datestamp{...}
'
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \let\left=\oldleft \let\right=\oldright \def\section#1{\advance\secnum by 1 \subsecnum=0 \exno=0 \ifnum \secnum > 0 \Section{#1} \else \LikeSection{#1} \ifnum \secnum=0 \TableOfContents[Section,LikeSection,subsection] \long\def\temp##1\section{\section}% \else \let\temp=\empty \fi \expandafter\temp \fi } \def\tocSection#1#2#3{\def\val{#1}\Assign\subval=0 #1 #2 \HCode{<BR>}} \NewSection\subsection {\advance\subsecnum by 1 \HCode{<H3>}\the\secnum.\the\subsecnum\space} {\HCode{</H3>}\IgnorePar}{} {\Advance\subval by 1 \val.\subval\space #2 \HCode{<BR>}} \CutAt{+Section} \CutAt{+LikeSection,Section} \def\BeforeSectionButton#1{} \def\AfterSectionButton#1{\HCode{<BR>}} \let\BeforeLikeSectionButton=\BeforeSectionButton \let\AfterLikeSectionButton=\AfterSectionButton \def\TeXref#1{{\HCode{<TABLE ALIGN="RIGHT"><TR><TD><U><SMALL>}% \TeX book: #1\HCode{</U></SMALL></TD></TR></TABLE>}}} \let\Xdatestamp=\datestamp \def\datestamp{\EndHPage{}\Xdatestamp} \def\maketable[#1]{\HCode{<CENTER><B>}#1\HCode{</B></CENTER>}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_
primer.tex, fontsize.tex, indexit.tex (116 pictures + 106 pictorial characters)
Script:
ht tex tex_primer
Changes:
\def\leaderfill
'.
\catcode`\|=12 \def\leaderfill{.....} \input TeX4ht.sty \Preamble{html,sty,plain,fonts,no_^} \EndPreamble %% sectioning \centerline{\twlbf ....} %% title \CutAt{+LikeSection} \def\BeforeLikeSectionButton#1{\IgnorePar\HCode{<BR>}} \def\AfterLikeSectionButton#1{} \catcode`\^=13 \let\Xcenterline=\centerline \def\centerline#1{\HFontsOff \def\temp{#1}\Ycenterline#1[//]\HFontsOn} \def\Ycenterline#1#2[//]{% \ifx #1\twlbf \bgroup \let\twlbf=\empty \def^##1{##1} \xdef\temp{\temp} \egroup \LikeSection{\temp} \else \ifx #1\twlrm\HCode{<BR><SMALL>}\fi \ifx #1\stnbf\HCode{<STRONG>}\fi \Xcenterline{\temp} \ifx #1\stnbf\HCode{</STRONG>}\fi \ifx #1\twlrm\HCode{</SMALL><BR>}\fi \fi } \Configure{tabalign}{\IgnorePar\HCode{<CENTER>}} {\IgnorePar\HCode{</CENTER>}}{}{} \let\oldfootnote=\footnote \def\footnote#1{% \Configure{tabalign}[1]% \oldfootnote{\HCode{<SUP>}#1\HCode{</SUP>}}} \HFont\twlrm{NONE} \HFont\twli{EM} \HFont\twlsy{EM} \HFont\twlbf{STRONG} \HFont\twltt{CODE} \HFont\twlit{EM} \HFont\twlsl{EM} \HFont\twlex{NONE} \let\oldeightpoint=\eightpoint \def\eightpoint{\HFontsOff\oldeightpoint} \let\oldninepoint=\ninepoint \def\ninepoint{\HFontsOff\oldninepoint} \let\oldtenpoint=\tenpoint \def\tenpoint{\HFontsOff\oldtenpoint} \let\oldelevenpoint=\elevenpoint \def\elevenpoint{\HFontsOff\oldelevenpoint} \let\oldtwelvepoint=\twelvepoint \def\twelvepoint{\HFontsOff\oldtwelvepoint} \let\oldfourteenpoint =\fourteenpoint \def\fourteenpoint {\HFontsOff\oldfourteenpoint} \let\oldseventeenpoint=\seventeenpoint \def\seventeenpoint{\HFontsOff\oldseventeenpoint} \catcode`\|=13
---
Pictures in TeX with MetaFont (Leathrum, Tobin) Script:
ht tex mfpicdoc
Changes:
\centerline {\bf Pictures in \TeX\ with \MF}
' with
\input TeX4ht.sty \Preamble{html,sty,plain,sections-,fonts} \EndPreamble \NewSection\head{\IgnorePar\HCode{<H2>}} {\HCode{</H2>}\IgnorePar}{} {\hbox{#2\HCode{<BR>}}} \NewSection\subhead{\IgnorePar\HCode{<H3>}} {\HCode{</H3>}\IgnorePar}{} {\hbox{\HCode{<NOBR>}~~~#2\HCode{</NOBR><BR>}}} \def\mail#1{\Link[mailto:#1]{}{}{\tt #1}\EndLink} \def\toc{\HCode{<CENTER>}\Columns[,VALIGN="TOP"]{2} \TableOfContents[head,subhead] \EndColumns \HCode{</CENTER>}} \CutAt{head} \let\oldhead=\head \def\head{\toc \let\toc=\empty \oldhead} \HCode{<CENTER><H1>}{Pictures in \TeX\ with \MF}\HCode{</H1></CENTER>}
Script:
ht tex webman
Changes:
\input TeX4ht.sty \Preamble{html,no_^,fonts,sections-,sty,plain} \EndPreamble
\gdef\verbatimgobble#1^^M{}}
'.
\def\lpile{% \HCode{<TABLE><TR><TD>}\aftergroup\endlpile \def\cr{\HCode{</TD></TR><TR><TD>}}} \def\endlpile{\HCode{</TD></TR></TABLE>}} \def\lheader{} \def\rheader{} \let\Xverbatim=\verbatim \def\verbatim{\HCode{<PRE>}\Xverbatim \everypar{}\aftergroup\endpre} \def\endpre{\HCode{</PRE>}} \expandafter\def\csname section\endcsname#1.{% {\def\.##1{##1}\xdef\temp{#1}}\Xsection\temp} \def\Xsection{\par\HCode{<P>}\TableOfContents[LikeSection] \def\Xsection{\par\LikeSection}\LikeSection} \let\Xcenterline=\centerline \def\centerline#1{\let\centerline=\Xcenterline \LikeChapter{#1}} \CutAt{LikeSection} \HFont\ninerm{NONE} \HFont\ninett{CODE} \HFont\eighttt{CODE} \HFont\quoterm{NONE} \HFont\quoteit{EM}
\def\pstat#1#2#3...{...}
' with
\def\pstat#1#2#3 #4{\yskip\noindent\HTable{% \.{#1} applied to \.{#2} (cpu time #3 sec)\cr #4}}
Script:
ht tex maad
Changes:
\input pictex
'
\input TeX4ht.sty \Preamble{html,pictex,sty,plain,fonts} \EndPreamble %-------------------- detect chapters and appendixes ------ % Chapters: \centerline{\bf Cha...} % Appendixes: \centerline{\bf App...} % Other titles: \centerline{\bf ...} \let\Xcenterline=\centerline \let\BF=\bf \def\centerline#1{\futurelet\temp\checkbf #1//\let\bf=\BF} \def\checkbf{\ifx \temp\bf \let\bf=\beginbf \else \def\temp##1//{\Xcenterline{##1}} \expandafter\temp \fi} \def\Appendix{App} \def\Chapter{Cha} \def\endbf{\HCode{</B>}} \def\beginbf#1#2#3{\let\bf=\BF \def\temp{#1#2#3}% \def\next##1//{\Xcenterline{{\bf#1#2#3##1}}} \CheckChapter{#1#2#3}% \CheckAppendix{#1#2#3}% \next } \def\CheckChapter#1{% \ifx \temp\Chapter \def\next##1 ##2##3//{\LikeSection{Cha##1 ##2}##3}% \fi} \def\CheckAppendix#1{% \ifx \temp\Appendix \def\next##1 ##2##3//{\LikeSection{App##1 ##2}##3}% \fi} %-------------------- detect sections --------------------- \let\oldnoindent=\noindent \def\noindent{\futurelet\temp\noindentA} \def\noindentA{\oldnoindent \ifx \temp\bgroup \def\temp##1{{\checktitle ##1}}% \expandafter\temp \fi} \def\checktitle{\futurelet\temp\checkmore} \def\checkmore{\ifx \temp\bf \def\temp##1{\futurelet\temp\decide}\expandafter\temp \fi} \def\decide{\ifx \temp\llap \def\llap##1{\let\llap=\temp {\let\quad=\space \LikeSection{##1}}}\fi bf} %-------------------- other ------------------------------- \Configure{settabs} {\HCode{<TABLE>}\aftergroup\endsettabs} {\HCode{<TR>}}{\HCode{</TR>}}% {\HCode{<TD>}}{\HCode{</TD>}}% \def\endsettabs{\HCode{</TABLE>}} \CutAt{+LikeSection}
\read-1 to\answer
' with `\def\answer{N}
'
Script:
ht latex testmath
Changes:
\begin{document}
' with
\input AmsTeX4ht.sty \Preamble{html,sections-,fonts,3,_^ref} \Contribute{BODY}{BGCOLOR="\#FFFFFF"} \Configure{enumerate}{i1aA} \ConfigureEnv{equation} {\HCode{<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="15"><TR VALIGN="TOP"><TD>}% \AfterPicture{\HCode{</TD><TD>}}} {\HCode{</TD></TR></TABLE></CENTER>}\IgnorePar}{}{} \let\oldcn=\cn \def\cn{\leavevmode\oldcn} \begin{document} \EndPreamble
Bmatrix
environment (e.g., by introducing the code
`\newenvironment{Bmatrix}{\begin{bmatrix}}{\end{bmatrix}}
').
Script:
ht latex testmath
Changes:
\begin{document}
' with
\input AmsTeX4ht.sty \Preamble{html,fonts,sections-} \begin{document} \EndPreamble
\thm@headpunct{:}%
'. Script:
ht latex amsldoc
Changes:
\documentclass[leqno,titlepage,openany]{amsldoc}
'
\makeatletter \let\old@makechapterhead=\@makechapterhead \makeatother
\begin{document}
' with
\renewcommand{\chaptername}{} \makeatletter \let\@makechapterhead=\old@makechapterhead \makeatother \let\svvec=\vec \input AmsTeX4ht.sty \Preamble{html,sections-,fonts,2} \let\vec=\svvec \def\chapterPrefix#1{\IgnorePar \HCode{<H2>} --\thechapter--\HCode{<BR>}} \def\appendixPrefix#1{\IgnorePar \HCode{<H2>} --Appendix \thechapter--\HCode{<BR>}} \renewenvironment{eqxample}{\par \ConfigureEnv{minipage}{\HCode{<TABLE WIDTH="100\%"><TR><TD>}} {\HCode{</TD><TD ALIGN="RIGHT">} \ConfigureEnv{minipage}{}{\IgnorePar\HCode{</TD><TR></TABLE>}}{}{} }{}{} \noindent\begin{minipage}{.5\columnwidth}% \def\producing{\end{minipage}\begin{minipage}{.5\columnwidth}% \Picture*{} \hbox\bgroup\kern-.2pt\vrule width.2pt\vbox\bgroup\parindent0pt\relax \abovedisplayskip3pt \abovedisplayshortskip\abovedisplayskip \belowdisplayskip0pt \belowdisplayshortskip\belowdisplayskip \noindent} }{% \par \hrule height0pt width\hsize \egroup\vrule width.2pt\kern-.2pt\egroup \EndPicture \end{minipage}% \par } \renewcommand{\spx}[1]{\(\lspx#1\rspx\)} \let\olderrorbullet=\errorbullet \def\errorbullet{\Picture+[*** ]{}\olderrorbullet\EndPicture \SavePicture\errorbullet[*** ]} \ConfigureEnv{error} {\HCode{<P>}} {} {} {} \def\autoindex#1{} % Hide the \addcontentsline's with \ifHtml's or insert the following code. \let\oldtocchapter=\tocchapter \def\tocchapter#1#2#3{\def\temp{#1}\ifx \temp\empty \else \oldtocchapter{#1}{#2}{#3}\fi} \let\oldtocsection=\tocsection \def\tocsection#1#2#3{\def\temp{#1}\ifx \temp\empty \else \oldtocsection{#1}{#2}{#3}\fi} \Contribute{BODY}{BGCOLOR="\#FFFFFF"} \begin{document} \EndPreamble
Script:
ht tex amsguide
Changes in amsguide.tex
:
%% TITLE PAGE
'.
\input AmsTeX4ht.sty \Preamble{html,fonts,plain,/obeylines,sections-,sty,next} % \Configure{fonts}{\leavevmode}{} \Configure{rightline} {\HCode{<DIV ALIGN="RIGHT">}}{\HCode{</DIV>}\ShowPar} \Configure{title}{\IgnorePar\HCode{<HR><DIV ALIGN="CENTER"><H2>}} {\IgnorePar\HCode{</H2></DIV>}} \Configure{date}{\IgnorePar\HCode{<CENTER>}} {\IgnorePar\HCode{</CENTER><HR>}} \let\oldhead=\head \def\head{\let\makeheadline=\empty \oldhead} \let\oldamshead=\amshead \def\amshead{\def\\{. }\oldamshead} \let\oldbeginexample=\beginexample \def\beginexample{\IgnorePar \HCode{<TABLE CELLPADDING="15"><TR><TD>}\IgnorePar \oldbeginexample} \let\oldendexample=\endexample \def\endexample{\IgnorePar\oldendexample \IgnorePar \HCode{</TD></TR></TABLE>}\IgnorePar\par} \def\BBB#1{\ShowPar\par $\bullet$ {\bf#1}\ShowPar\par} \long\def\toc#1\endtoc{} \let\olddocument=\document \def\document{\olddocument \TableOfContents[amshead,amssubhead] \CutAt{amshead} \TocAt{amshead,amssubhead,amssubsubhead} } \EndPreamble
\shipout\vbox to\vsize{
' with `\ifHtml\else \expandafter\shipout\fi \vbox
to\vsize{\HFont\fourtnbf{H1}
'
\setbox1=\hbox{\tt\\dedicatory...\\enddedicatory\ }} \setbox0=\vbox{\hsize=\wd1\parindent=0pt\tt\obeylines
with
\setbox1=\hbox{\HFontsOff\tt\\dedicatory...\\enddedicatory\ } \setbox0=\vbox{\IgnorePar\HFontsOff\Configure{obeylines}{}{}{}% \hsize=\wd1\parindent=0pt\tt\obeylines
}\setbox0\lastbox\unhbox0\unskip,\hfill{
' (don't leave any space between the `upharpoonright
' and
the \cr
).
\tt
from `\tt\endsubsubhead
'
\input amstex
'.
\newdimen\dropfoliodepth \newdimen\headlineheight \newdimen\headlinespace
Changes in amstinst.tex
:
\head
between an `\ifHtml\else
' and a `\fi
'
\setbox0\vbox{\tt\+install.exe& amsinst.bat& amstex.ini\cr}
' with
`\setbox0\vbox{{\tt\+install.exe& amsinst.bat& amstex.ini\cr}}
'.