| 1 |
% showfonts.4ht (2021-07-04-09:13), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2003-2009 Eitan M. Gurari |
| 3 |
% Copyright 2009-2021 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2021-07-04-09:13} |
| 21 |
|
| 22 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 23 |
% Compile this style file and check the log file for |
| 24 |
% instructions on how to use it. |
| 25 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 26 |
\newcount\i |
| 27 |
\def\cont{\ifnum \i<256 \expandafter\next \fi } |
| 28 |
\def\showfonts{\vfill\break |
| 29 |
\def\row{\tt \the\i}\let\ttl=\empty \i=0 |
| 30 |
\addcol} |
| 31 |
\def\addcol#1{\if !#1!% |
| 32 |
\def\next{\row \cr \global\advance\i by 1 \cont } |
| 33 |
\i=0 \ifx \HCode\UnDef \expandafter\halign |
| 34 |
\else \expandafter\TeXhalign \fi |
| 35 |
{&##\quad\cr\ttl\cr\cont \cr} |
| 36 |
\par \hrule\par |
| 37 |
\else |
| 38 |
\edef\ttl{\ttl}% |
| 39 |
\expandafter\font \csname x\the\i\endcsname=#1 |
| 40 |
\expandafter\let\csname row\the\i\endcsname=\row |
| 41 |
\edef\row{% |
| 42 |
\expandafter\noexpand\csname row\the\i\endcsname |
| 43 |
& \csname x\the\i\endcsname \char\i} |
| 44 |
\advance\i by 1 \expandafter\addcol |
| 45 |
\fi |
| 46 |
} |
| 47 |
\ifx \section\undefined |
| 48 |
\writesixteen{-----------------------------------------------} |
| 49 |
\writesixteen{| This style file provides the command} |
| 50 |
\writesixteen{| \noexpand\showfonts {font1} ... {fontN} {}} |
| 51 |
\writesixteen{| for exhibiting fonts.} |
| 52 |
\writesixteen{| } |
| 53 |
\writesixteen{| Example:} |
| 54 |
\writesixteen{| \noexpand\documentclass{article}} |
| 55 |
\writesixteen{| \noexpand\input showfonts.4ht} |
| 56 |
\writesixteen{| \noexpand\begin{document}} |
| 57 |
\writesixteen{| \noexpand\showfonts {cmr10}{cmtt10} {}} |
| 58 |
\writesixteen{| \noexpand\end{document}} |
| 59 |
\writesixteen{-----------------------------------------------} |
| 60 |
\def\next{% |
| 61 |
\csname bye\endcsname |
| 62 |
\documentclass {article} |
| 63 |
\begin {document} |
| 64 |
\end {document} |
| 65 |
} |
| 66 |
\expandafter\next |
| 67 |
\fi |
| 68 |
|