summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-uselmfonts.html
blob: 574b26563c5a1ff95ec6ee00ca47cd422fa9b4a9 (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
<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 &#8220;It is presumed that a potential
user knows what to do with all these files&#8221;.  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&#8217;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> &#8212;
<i>fonts</i>, <i>dvips</i>, <i>tex</i> and <i>doc</i>.  The <i>doc</i>
subtree really need not be copied (it&#8217;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 &#8220;Refresh
  filename database&#8221; operation, which you performed after installing
  files, also updates the system&#8217;s &#8220;PostScript resources database&#8221;.
<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 (&#8220;roman&#8221;, &#8220;sans-serif&#8221; and
&#8220;typewriter&#8221;).  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://mirror.ctan.org/fonts/lm.zip">fonts/lm</a> (or <a href="http://mirror.ctan.org/fonts/lm/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/lm.html">catalogue entry</a>
</dl>
<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>