summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/fontfam-catalog.tex
blob: 89f1162050506ad8af9690c125c23343465733cf (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%% 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{\ifx\relax#2\relax \else
   {\testfotenc{#6}\iftrue
       \par
       \noindent {\currtt [#1]\quad (#6)\quad \def\tmp{#7} \detok\tmp}\par\nobreak
       #7
       \edef\basicfont{\fontname\the\font}%
       \def\variants{#2}
       \pcatA {}#3\relax
       \medskip
    \else \par 
       \noindent {\currtt -- [#1] (#6) -- is unavailable in \fotenc\space encoding.}
       \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
   {\ifx\ffnamegen\undefined \let\ffsetX=\relax \fi
   \ifx\prefix\empty\ffsetX#1\relax\else\prefix#1\relax\fi
   \ifx\ffvarV\undefined \def\ffvarV{x}\fi
   \ifx#1\tt \ifx\prefix\empty\else \def\ffvarV{!}\fi\fi
   \if!\ffvarV\relax \else
   \indent 
   {\currtt \ifx\prefix\empty \else \expandafter\string\prefix\fi \string#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
   \advance\hsize by2in
   \fontfamsample\par
   \fi}%
   \expandafter\pcatB\fi
}

\nonum\sec Font Catalogue

\begingroup

\ifx\ffdecl\undefined \input ff-mac \fi

\parindent=0pt

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.

See the article \url{http://petr.olsak.net/ftp/olsak/bulletin/kpfonts-plain.pdf}
for information about usage of font modifiers.
\bigskip

\parindent=1em
\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
\def\detok#1{\expandafter\detokA\meaning#1}\def\detokA#1->{}
\fontfamL
\endgroup

\endinput