How to Use Other Fonts


There are quite a few different fonts availble for LaTeX/Tex; more than either FrameMaker or EZ. If you're interested, look files ending in .tfm in the directory:
/usr/athena/lib/tex/fonts
Those are the font metric files that latex uses; if there's a font-metric file for it, latex can typeset in it (although it may not be able to print it in all sizes). Currently, there are 240 different font-metric files.

For example, if you wanted to use the tengwar font specified by the file tengwar.tfm, you'd have a document like:

 \documentstyle[]{article}
 \begin{document}
 \newfont{\elvish}{tengwar}

 The One Ring:

 {\elvish
 Three rings for the elven kings under the sky
 Nine for mortal men doomed to die
 Seven for the dwarf lords in their halls of stone
 One for the dark lord on his dark throne
 In the land of Mordor where the shadows lie
 One ring to rule them all, one ring to find them
 One ring to bring them all and in the darkness bind them
 In the land of Mordor where the shadows lie.}
 \end{document}
The phrase The One Ring: would be typeset in normal text, but the other text would be typeset in the tengwar font, which is for elvish languages.

There are samples of all the fonts in the directory:

/mit/consult/lib/tex/misc/fonts
The files new1.dvi, new2.dvi, new3.dvi, and new4.dvi are the ones you want to preview; they contain samples of the fonts. The .tex files that were used to create these are also in the same directory.

You can view .dvi files in that directory and see what the fonts will look like when you print them by typing

attach consult
xdvi /mit/consult/lib/tex/misc/fonts/new1.dvi &
and so on for the other files.

If you want to change all the fonts in a document to some postscript font, you need to add the appropriate documentstyle option, as listed below. Note that Palatino is not available on the old LN03 printers:

	Font Desired		Documentstyle needed
	------------		--------------------
	Times Roman		timrom
	New Century Schlbk	newcen
	Palatino		palatino
If you are using dvips instead of dvi2ps, use the following options instead:
	Font Desired		Documentstyle needed
	------------		--------------------
	Times Roman		times			*
	New Century Schlbk	ncs			*
	Avant Garde		avantgarde		*
	Helvetica		helvetica		*
	Palatino		new-pal			**
The asterisk indicates that the style files are in the sipb locker, so you must attach sipb, and you must extend your TEXINPUTS environment variable so that includes the directory /mit/sipb/lib/tex/macros, e.g.:
attach sipb
attach texfonts
setenv TEXINPUTS .:/usr/athena/lib/tex/macros:/mit/sipb/lib/tex/macros
setenv TEXFONTS .:/usr/athena/lib/tex/fonts:/mit/sipb/lib/tex/fonts/\
     tfm:/mit/sipb/lib/tex/fonts/vf:/mit/texfonts:/mit/texfonts/ipa:
setenv TEXPKS $TEXFONTS
extend TEXPKS /mit/sipb/lib/tex/fonts/pk:
setenv PKFONTS $TEXPKS
You can add these lines to your .environment file if you wish them to take effect automatically whenever you log in. The double asterisk indicates the file is in the consult directory. Follow the same directions as above substituting sipb with consult, i.e.:
attach consult
setenv TEXINPUTS .:/usr/athena/lib/tex/macros:/mit/consult/lib/tex/macros:
Of course, you can extend your TEXINPUTS even more to include all three directories if you wish.