summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/fontfam-catalog.tex
blob: ac49cd7a22470c54561cf1b1d630af7acb727a53 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
%% 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 \char`\{+#5\char`\} \space(#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

\bigskip
\noindent
The text variants of fonts (shown here) are combined with math collections
of fonts:

\begtt
AMS ... AMS fonts math
TX .... TX fonts math
KP .... KP fonts math
\endtt

If {\tt TX} is used then variables (math italic) and roman text are borrowed
from the selected text font. Other math characters are from TX math fonts
collection.
If you are using Xe\TeX{} or Lua\TeX{} then you can load Unicode Math font
instead of this default. See {\tt uni-math.tex} file for more information.


\endinput