summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-inst-wlcf.html
blob: 2303718154d27ddb38bb91e654597643a7d0c719 (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
<head>
<title>UK TeX FAQ -- question label inst-wlcf</title>
</head><body>
<h3>Installing files &ldquo;where (La)TeX can find them&rdquo;</h3>
<p/><p/>In the past, package documentation used always to tell you to put your
files &ldquo;where LaTeX can find them&rdquo;; this was always unhelpful &mdash;
if you knew where that <em>was</em>, you didn&rsquo;t need telling, but if you
<em>didn&rsquo;t</em> know, you were completely stuck.
<p/>It was from this issue that the whole idea of the TDS sprang;
&ldquo;where to put&rdquo; questions now come down to &ldquo;where&rsquo;s the TDS
tree?&rdquo;.
<p/>We therefore answer the question by considering:
<ul>
<li> <a href="FAQ-what-TDS.html">what tree to use</a>, and
<li> <a href="FAQ-install-where.html">where in the tree to put the files</a>.
</ul>
<p/>Once we know the answer to both questions, and we&rsquo;ve created any
directories that are needed, we simply copy files to their rightful
location.
<p/>This has done what the old requirement specified: LaTeX (or
whatever) <em>can</em> (in principle) find the files.  However, in order
that the software <em>will</em> find the files, we need to update an
index file.
<p/>On a MiKTeX system, open the window
  <code>Start</code>-&gt; 
  <code>All Programs</code>-&gt; 
  <code>MiKTeX &lt;<i>version</i>&gt;</code>-&gt; 
  <code>Settings</code>,
and click on <code>Refresh FNDB</code>.
The job may also be done in a command window, using the command:
<blockquote>
<pre>
initexmf --update-fndb
</pre>
</blockquote><p>
The 
<a href="http://docs.miktex.org/manual/initexmf.html">MiKTeX documentation</a>
gives further details about <code>initexmf</code>.
<p/>On a teTeX or TeX Live-based system, use the command
<code>texhash</code> (or if that&rsquo;s not available, <code>mktexlsr</code> &mdash;
they ought to be different names for the same program).
<p/>Having done all this, the new package will be available for use.
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf</a>
</body>