| 1 |
#!/usr/bin/perl |
| 2 |
# |
| 3 |
# (c) Copyright 2004 Apostolos Syropoulos |
| 4 |
# |
| 5 |
# This program can be used to geneate a table of the glyphs |
| 6 |
# that are provided by the ``phaistos'' LaTeX package. |
| 7 |
# This program is absolutely free software. |
| 8 |
# |
| 9 |
open (XX, "phaistos.sty") || die "Can't open file './phaistos.sty'\n"; |
| 10 |
open (YY, ">glyphs.tex") || die "Can't create file './glyphs.tex'\n"; |
| 11 |
print YY <<Header; |
| 12 |
\\documentclass[a4paper]{article} |
| 13 |
\\usepackage{phaistos,multicol,fullpage} |
| 14 |
\\begin{document} |
| 15 |
\\small |
| 16 |
\\setlength{\\columnseprule}{0.5pt} |
| 17 |
\\begin{multicols}{4} |
| 18 |
\\noindent |
| 19 |
Header |
| 20 |
while(<XX>){ |
| 21 |
if (s/^\\DeclareTextSymbol\{\\//) { |
| 22 |
/^(\w*)/; |
| 23 |
print YY "\\verb|\\$1 = |\\$1\\newline \n"; |
| 24 |
} |
| 25 |
} |
| 26 |
print YY <<Trailer; |
| 27 |
\\end{multicols} |
| 28 |
\\thispagestyle{empty} |
| 29 |
\\end{document} |
| 30 |
Trailer |
| 31 |
__END__ |