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
|
<head>
<title>UK TeX FAQ -- question label uselmfonts</title>
</head><body>
<h3>Using the Latin Modern fonts</h3>
<p/>The <i>lm</i> fonts are an exciting addition to
the armoury of the (La)TeX user: high quality outlines of fonts that
were until recently difficult to obtain, all in a free and
relatively compact package. However, the spartan information file
that comes with the fonts remarks “It is presumed that a potential
user knows what to do with all these files”. This answer aims to
fill in the requirements: the job is really not terribly difficult.
<p/>Note that teTeX distributions, from version 3.0, already have the
<i>lm</i> fonts: all you need do is use them. The fonts may also
be installed via the package manager, in a current MiKTeX system.
The remainder of this answer, then, is for people who don’t use such
systems.
<p/>The font (and related) files appear on CTAN as a set of
single-entry <a href="FAQ-tds.html">TDS trees</a> —
<i>fonts</i>, <i>dvips</i>, <i>tex</i> and <i>doc</i>. The <i>doc</i>
subtree really need not be copied (it’s really a pair of sample
files), but copy the other three into your existing Local
<code>$TEXMF</code> tree, and
<a href="FAQ-inst-wlcf.html">update the filename database</a>.
<p/>Now, incorporate the fonts in the set searched by PDFLaTeX,
<i>dvips</i>, <i>dvipdfm</i>/<i>dvipdfmx</i>, your
previewers and Type 1-to-PK conversion programs, by
<ul>
<li> On a teTeX system earlier than version 2.0, edit the file
<i>$TEXMF/dvips/config/updmap</i> and insert an absolute path for
the <i>lm.map</i> just after the line that starts
<code>extra_modules="</code> (and before the closing quotes).
<li> On a teTeX version 2.0 (or later), execute the command
<pre>
updmap --enable Map lm.map
</pre>
<li> On a MiKTeX system earlier than version 2.2, the “Refresh
filename database” operation, which you performed after installing
files, also updates the system’s “PostScript resources database”.
<li> On a MiKTeX system, version 2.2 or later, update
<i>updmap.cfg</i> as described in the MiKTeX
<a href="http://docs.miktex.org/manual/psfonts.html#chgupdmapcfg">online documentation</a>.
Then execute the command <code>initexmf --mkmaps</code>, and the
job is done.
</ul>
<p/>To use the fonts in a LaTeX document, you should
<blockquote>
<code>\</code><code>usepackage{lmodern}</code>
</blockquote><p>
this will make the fonts the default
for all three LaTeX font families (“roman”, “sans-serif” and
“typewriter”). You also need
<blockquote>
<code>\</code><code>usepackage[T1]{fontenc}</code>
</blockquote><p>
for text, and
<blockquote>
<code>\</code><code>usepackage{textcomp}</code>
</blockquote><p>
if you want to use any of the TS1-encoding symbols. There is
no support for using fonts according to the OT1 encoding.
<dl>
<dt><tt><i>Latin Modern fonts</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/fonts/lm.zip">fonts/lm</a> (or <a href="http://www.tex.ac.uk/tex-archive/fonts/lm/">browse the directory</a>)
</dl>
<p/>
<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=uselmfonts">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=uselmfonts</a>
</body>
|