Type-1 APL Fonts for LaTeX, pdflatex, and friends
2006-11-13
Here are instructions for making an APL font available for use in documented generated for LaTeX, TeX, and pdflatex, under Linux SuSE 10.1. The saxpsa APL font used here, released for SIGAPL use by Soliton Associates, probably around 1998. was originally created by Joey Tuttle, then modified by Steve Demler.
A tar file containg the font. tetex installation notes, and test document are available here: aplfont.tar. The installation notes for Linux follow:
How to install an APL font in teTeX (Linux).
This is how I got the Demler/Tuttle APL font, saxpsa, installed under SuSE 10.1 teTeX. I managed to get latex, dvips, pdflatex, and gv working this way:
1. Perform all of the following as root. If you don't want to do that, you're on your own. However, if you want to tell me where to put stuff to make that work, please do.
2. Create a saxpsa directory, and extract the font files into it:
tar -xvf aplfont.tar
3. Change to the saxpsa directory, and copy the following files to their new homes.
mkdir /usr/share/texmf/fonts/type1/public/apl
cp saxpsa.pfb /usr/share/texmf/fonts/type1/public/apl/
mkdir /usr/share/texmf/fonts/tfm/public/apl
cp saxpsa.tfm /usr/share/texmf/fonts/tfm/public/apl/
mkdir /usr/share/texmf/fonts/map/dvips/apl
cp saxpsa.map /usr/share/texmf/fonts/map/pdftex.map
NB. Note name change in above! Not sure what's going here, but it works... <\ul>
4. Edit the config files:
vi /usr/share/texmf/dvips/config/config.ps
5. Look for the following text:
% This shows how to add your own map file.
% Remove the comment and adjust the name:
% p +myfonts.map
6. Add the following line after the myfonts.map line:
p +saxpsa.map
7. Perform the commands that nobody ever seems to document:
texhash
updmap-sys
8. At this point, you should be able to (as a normal user) do:
latex apltest.tex
dvips apltest.dvi
gv apltest.ps
pdflatex apltest.tex
acroread apltest.pdf
9, None of latex, pdflatex, or dvips should complain about missing saxpsa fonts. Acroread and gv should show you a screenfull of APL characters in their relevant positions.
10. To use the APL font, use the macros provided in the qdefsax.tex file, as shown in the apltest.tex file. E.g., to assign (0,1,2,3,4) to X, use {\apl X\qassign\qiota\05}.
11. Use the apltest.tex file as an example of how to include APL fonts of various sizes in your LaTeX documents.
12. I found this document to be the key one in understanding fonts in tex:
http://www.pragma-ade.com/pdftex/pdftex-s.pdf