Debian Codegraph @

texmf-dist/doc/generic/tex4ht/mn32.html

raw
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
5 <html xmlns="http://www.w3.org/1999/xhtml"
6 >
7 <head><title></title>
8 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9 <meta name="generator" content="TeX4ht (https://tug.org/tex4ht/)" />
10 <meta name="originator" content="TeX4ht (https://tug.org/tex4ht/)" />
11 <!-- xhtml,th4,index -->
12 <meta name="src" content="mn.tex" />
13 <link rel="stylesheet" type="text/css" href="mn.css" />
14 <meta name="viewport" content="width=device-width, initial-scale=1" />
15 </head><body
16 >
17 <a
18 href="mn31.html#mn-port.html" >exit</a> <h3 class="SubSectionHead"><a
19 name="QQ1-32-72"></a>Placement of the Environment File</h3>
20 <a
21 name="index32-72001"></a> <a
22 name="index32-72002"></a> <a
23 name="index32-72003"></a> <a
24 name="index32-72004"></a> <a
25 name="index32-72005"></a><a
26 name="envloc"></a> The <span class="cmtt-10">tex4ht.c </span>and <span class="cmtt-10">t4ht.c </span>programs retrieve the information about their platform from an environment file.
27 The programs search the file at the following locations, in the given order.
28 <ul type="disc" >
29 <li>The address specified within the <a
30 href="mn39.html" >command lines</a> of <span class="cmtt-10">tex4ht </span>and <span class="cmtt-10">t4ht</span>, and identified there by the prefix &#8216;<span class="cmtt-10">-e</span>&#8217;.
31 </li>
32 <li>The address <span class="cmtt-10">tex4ht.env </span>in the work directory. </li>
33 <li>At the location specified by an optional environment variable named <span class="cmtt-10">TEX4HTENV</span>. </li>
34 <li>The address <span class="cmtt-10">tex4ht.env </span>in the <a
35 href="mn33.html" name="mn33.html" >root</a> directory. </li>
36 <li>The address provided in the variable <a
37 href="mn37.html#x-ENVFILE" name="ENVFILE">ENVFILE</a> of tex4ht and t4ht during compilation. </li>
38 <li>At the directories of kpathsea, to be searched by that utility, if the <span class="cmtt-10">tex4ht.c </span>and <span class="cmtt-10">t4ht.c </span>programs are compiled
39 with the &#8216;<span class="cmtt-10">-DKPATHSEA</span>&#8217; switch on.
40 <!--l. 8046--><p class="indent" > For instance,
41 </p><!--l. 8048--><p class="indent" > <span class="cmtt-10">gcc -o tex4ht tex4ht.c -DENVFILE=&#8217;"~/tex4ht.dir/texmf/tex4ht/base/unix/tex4ht.env"&#8217;</span>
42 <span class="cmtt-10">-DKPATHSEA -DHAVE_DIRENT_H -lkpathsea</span>
43 </p><!--l. 8054--><p class="noindent" >or
44 </p><!--l. 8056--><p class="indent" > <span class="cmtt-10">gcc -O2 -DKPATHSEA -I/usr/include -L/usr/lib -o tex4ht tex4ht.c -DHAVE_DIRENT_H</span>
45 <span class="cmtt-10">-lkpathsea</span>
46 </p><!--l. 8065--><p class="indent" > When the address of <span class="cmtt-10">tex4ht.env </span>is not explicitly given, the <span class="cmtt-10">texmf.cnf </span>file might need records similar to the
47 following ones.
48 </p><div class="Verbatim"><span class="cmtt-10">&#x00A0;</span><span class="cmtt-10">&#x00A0;TEX4HTFONTSET=alias,iso8859</span><span class="cmtt-10">&#x00A0;</span>
49 <br /><span class="cmtt-10">&#x00A0;</span><span class="cmtt-10">&#x00A0;TEX4HTINPUTS=.;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//</span><span class="cmtt-10">&#x00A0;</span>
50 <br /><span class="cmtt-10">&#x00A0;</span><span class="cmtt-10">&#x00A0;T4HTINPUTS=.;$TEXMF/tex4ht/base//</span><span class="cmtt-10">&#x00A0;</span>
51 <br /></div>
52 <!--l. 8075--><p class="noindent" ></p></li>
53 <li>The instruction
54 <div
55 class="centerline"><span class="cmtt-10">apt-get install gcc libkpathsea4 libkpathsea-dev</span></div>
56 <!--l. 8080--><p class="noindent" >when executed as root installs the following packages on Ubuntu/Debian.
57 </p><!--l. 8086--><p class="indent" >
58 </p><ul >
59 <li>gcc: the standard C compiler </li>
60 <li>libkpathsea4: library for TeX path searching, part of the texlive distribution provides files like
61 /usr/lib/libkpathsea.so.4.0.0 </li>
62 <li>libkpathsea-dev: development files for libkpathsea provides numerous header files (*.h) in /usr/include/kpathsea
63 </li></ul>
64 <!--l. 8099--><p class="indent" > If a file is already present, a warning is issued and the instruction can be retried after omitting the request for
65 the installed package.
66 </p>
67 </li></ul>
68 <!--l. 8109--><p class="indent" > A given address may start with the character &#8216;<span class="cmtt-10">~</span>&#8217;. This character is interpreted to be the directory address of the
69 root (as provided in an environment variable named <span class="cmtt-10">HOME</span>).
70 </p><!--l. 8115--><p class="indent" > The file <span class="cmtt-10">tex4ht.env </span>may be renamed to &#8216;<span class="cmtt-10">.tex4ht</span>&#8217;, if your system allows names consisting only of the extension
71 part.
72
73 </p>
74 <hr />
75 <!--l. 8122--><p class="indent" > <small>Generated August 24, 2020 - <a href="/tex4ht/">tex4ht home page</a></small></p>
76 </body></html>