summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/fontfam-catalog.tex
blob: db9077c3ccfc69650563637be294fd5f50fb218b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%% fontfam-catalog.tex
%%%%%%%%%%%%%%%%%%%%%%
% Petr Olsak, 2016

% This is module for OPmac macros, see http://petr.olsak.net/opmac.html 
% This module is automatically loaded when \fontfam[Catalog] is used.

% See end of the file fontfam.tex for more details.

\def\fontfamexecC#1#2#3#4#5#6#7{\testfotenc{#6}%
   \iftrue\ifx\relax#2\relax \else
   \par #7
      \edef\basicfont{\fontname\the\font}%
      \noindent {[#1]}\par\nobreak 
      \def\variants{#2}
      \pcatA {}#3\relax
      \medskip
   \fi\fi
}
\def\pcatA#1{\ifx#1\relax\par\else
   \def\prefix{#1}\expandafter\pcatB\variants\relax
   \expandafter\pcatA\fi
}
\def\pcatB#1{\ifx#1\relax\par\else
   \indent 
   {\currtt \ifx\prefix\empty \else \expandafter\string\prefix\fi
    \string#1 }{\prefix#1%
      \edef\tmp{\ifx\prefix\empty\else\fontname\the\font\fi}%
      \ifx\tmp\basicfont 
          \ifx#1\rm \fontfamsample \else {\currtt Not available}\fi
      \else \fontfamsample \fi
      \par}%
   \expandafter\pcatB\fi
}

\nonum\sec Font Catalogue

\begingroup

Generated \the\day/\the\month/\the\year\space by 
{\tt \string\fontfam[Catalog]} (from OPmac).
Encoding: \fotenc, \dimen0=\baselineskip
size: \expandafter\ignorept\the\fontdim /\expandafter\ignorept\the\dimen0
\bigskip

\ifx\sizespec\empty \def\sizespec{at10pt}\fi
\letfont\currtt=\tentt
\ifx\loadmathfonts\undefined \let\loadmathfonts=\relax \fi
\let\fontfamexec=\fontfamexecC
\ifx\fontfamsample\undefined
   \def\fontfamsample{ABCDabcd Qsty fi fl áéíóúüů řžč ÁÉÍÓÚÜŮ ŘŽČ 0123456789}
   \ifx\chyph\undefined \ismacro\fotenc{8t}\iftrue
   \def\fontfamsample{ABCDabcd Qsty fi fl 
      \char225\char233\char237\char243\char250\char252\char183{ }% 
      \char176\char186\char163{ }%
      \char193\char201\char205\char211\char218\char220\char151{ }%
      \char144\char154\char130{ }0123456789}     
\fi\fi\fi
\fontfamL
\endgroup

\endinput