summaryrefslogtreecommitdiff
path: root/usergrps/uktug/baskervi/4_2/ptmr.tex
blob: fc2530c72ced21fc19c85d9b5f80927ceab27316 (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

\documentclass{article}
\pagestyle{empty}
\begin{document}
\newcount\slot
\newcount\p
 
\def\fonttable#1{{%
   \font\foo=#1 at12pt \foo
   \global\slot=0
   \global\p=0
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
      \fontrow 
}}
 
\def\fontrow{%
   \global\p=0
   \setbox0\hbox{}
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \fontcell 
   \ifnum\p<16 \leavevmode\box0\par \fi
}
 
\def\fontcell{%
   \setbox0\hbox{%
      \unhbox0 
      \hbox to 10pt{%
         \hss 
         \penalty1 
         \char\slot 
         \global\advance\p by \lastpenalty
         \hss
      }%
   }%
   \global\advance\slot by 1
}

   \fonttable{ptmr} 
\end{document}