| 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>Modify</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#mn34.html" >exit Modify</a> |
| 19 |
<h3 class="SubSectionHead"><a |
| 20 |
name="QQ1-34-73"></a>The Composition of tex4ht.env</h3> |
| 21 |
<a |
| 22 |
name="index34-73001"></a>TeX4ht consults this file for system-dependent information. The file consists of a sequence of directives, where |
| 23 |
each directive occupies a line and is identified with a distinguished character code in the first column. The following |
| 24 |
are the possible character codes and their meaning. |
| 25 |
<dl > |
| 26 |
<dt>b</dt><dd> |
| 27 |
This character identifies for <span class="cmtt-10">tex4ht </span>a comment to be placed in the ‘<span class="cmtt-10">.lg</span>’ file, before the <a |
| 28 |
href="mn38.html#bsc" name="bsc-1">scripts</a> for creating pictures |
| 29 |
for symbols. |
| 30 |
</dd><dt>g</dt><dd> |
| 31 |
<a |
| 32 |
name="index34-73002"></a>This character identifies the extension tex4ht should associate to names of the files of pictures the |
| 33 |
postprocessor requests (for instance, bitmap files of glyphs.). The default corresponds to a setting of the form |
| 34 |
‘<span class="cmtt-10">g.png</span>’. |
| 35 |
<!--l. 8153--><p class="indent" > An extension name can also be encoded into tex4ht during compilation time through the variable |
| 36 |
<a |
| 37 |
href="mn37.html#x-LGTYP" name="LGTYP">LGTYP</a>. |
| 38 |
</p><!--l. 8157--><p class="indent" > Alternatively, an extension can be provided in the command line of tex4ht, in which case the character code |
| 39 |
should be present and immediately preceded by a ‘<span class="cmtt-10">-</span>’ character. |
| 40 |
</p> |
| 41 |
</dd><dt>i</dt><dd> |
| 42 |
This character identifies to <span class="cmtt-10">tex4ht </span>a directory <a |
| 43 |
href="mn40.html#ch-i" name="ch.i">where</a> the hypertext font (.htf) files of <span class="cmtt-10">tex4ht </span>are |
| 44 |
stored. |
| 45 |
</dd><dt>l</dt><dd> |
| 46 |
<a |
| 47 |
name="index34-73003"></a>This character identifies a <a |
| 48 |
href="mn35.html" name="mn35.html" >bookkeeping file</a> where <span class="cmtt-10">tex4ht </span>can record information about paths to files it uses. |
| 49 |
</dd><dt>s</dt><dd> |
| 50 |
This character identifies to <span class="cmtt-10">tex4ht </span>a <a |
| 51 |
href="mn38.html#sc" name="sc-1">command</a> for requesting in the <span class="cmtt-10">lg </span>file the translation of dvi pictures to |
| 52 |
bitmaps. When needed, a sequence of such commands can be placed in consecutive lines to form a block of |
| 53 |
commands for handling the translation. |
| 54 |
</dd><dt>t</dt><dd> |
| 55 |
<a |
| 56 |
name="index34-74005"></a>This character identifies to <span class="cmtt-10">tex4ht </span>the directory <a |
| 57 |
href="mn36.html" name="mn36.html" >where</a> the font metric (.tfm) files of TeX are stored. |
| 58 |
</dd><dt>A</dt><dd> |
| 59 |
This character identifies to <span class="cmtt-10">t4ht </span>a <a |
| 60 |
href="mn-upgrade.html#accscript">script</a> for changing access mode of files. |
| 61 |
</dd><dt>C</dt><dd> |
| 62 |
This character identifies a <a |
| 63 |
href="mn-upgrade.html#mvscript">script</a> for satisfying requests made in the <span class="cmtt-10">lg </span>file to copy files between directories. |
| 64 |
</dd><dt>E</dt><dd> |
| 65 |
This character identifies a <a |
| 66 |
href="mn-upgrade.html#mvscript">script</a> for satisfying requests made in the <span class="cmtt-10">lg </span>file to get substitutions for empty |
| 67 |
pictures. |
| 68 |
</dd><dt>F</dt><dd> |
| 69 |
This character identifies to <span class="cmtt-10">t4ht </span>a <a |
| 70 |
href="mn-upgrade.html#dv2png">script</a> for translating into other formats characters from dvi files. |
| 71 |
<!--l. 8362--><p class="indent" > A ‘F.ext’ record marks a conditional F-subscript. It states that the following F-records will apply only to |
| 72 |
pictures whose extension names are ‘ext’. |
| 73 |
</p><!--l. 8366--><p class="indent" > A ‘F.’ record marks a default F-subscript. It applies to pictures whose extension names do not get dedicated |
| 74 |
F-subscripts. |
| 75 |
</p><!--l. 8369--><p class="indent" > The ‘F.ext’ and ‘F.’ records are not needed, in case all the pictures are to be processed by a single set of |
| 76 |
F-records. |
| 77 |
</p><!--l. 8372--><p class="noindent" ><span class="cmbx-10">Example</span>: |
| 78 |
</p><div class="Verbatim"><span class="cmtt-10">F.gif</span><span class="cmtt-10"> </span> |
| 79 |
<br /><span class="cmtt-10">F-gif-script</span><span class="cmtt-10"> </span> |
| 80 |
<br /><span class="cmtt-10">F.png</span><span class="cmtt-10"> </span> |
| 81 |
<br /><span class="cmtt-10">F-png-script</span><span class="cmtt-10"> </span> |
| 82 |
<br /><span class="cmtt-10">F.</span><span class="cmtt-10"> </span> |
| 83 |
<br /><span class="cmtt-10">F-script</span><span class="cmtt-10"> </span> |
| 84 |
<br /></div> |
| 85 |
</dd><dt>G</dt><dd> |
| 86 |
This character identifies to <span class="cmtt-10">t4ht </span>a <a |
| 87 |
href="mn-upgrade.html#dv2png">script</a> for translating general dvi figures into other formats. |
| 88 |
<!--l. 8391--><p class="indent" > A ‘G.ext’ record marks a conditional G-subscript. It states that the following G-records will apply only to |
| 89 |
pictures whose extension names are ‘ext’. |
| 90 |
</p><!--l. 8395--><p class="indent" > A ‘G.’ record marks a default G-subscript. It applies to pictures whose extension names do not get dedicated |
| 91 |
G-subscripts. |
| 92 |
</p><!--l. 8398--><p class="indent" > The ‘G.ext’ and ‘G.’ records are not needed, in case all the pictures are to be processed by a single set of |
| 93 |
G-records. |
| 94 |
</p><!--l. 8401--><p class="noindent" ><span class="cmbx-10">Example</span>: |
| 95 |
</p><div class="Verbatim"><span class="cmtt-10">G.gif</span><span class="cmtt-10"> </span> |
| 96 |
<br /><span class="cmtt-10">G-gif-script</span><span class="cmtt-10"> </span> |
| 97 |
<br /><span class="cmtt-10">G.png</span><span class="cmtt-10"> </span> |
| 98 |
<br /><span class="cmtt-10">G-png-script</span><span class="cmtt-10"> </span> |
| 99 |
<br /><span class="cmtt-10">G.</span><span class="cmtt-10"> </span> |
| 100 |
<br /><span class="cmtt-10">G-script</span><span class="cmtt-10"> </span> |
| 101 |
<br /></div> |
| 102 |
</dd><dt>M</dt><dd> |
| 103 |
This character identifies a <a |
| 104 |
href="mn-upgrade.html#mvscript">script</a> for satisfying requests made in the <span class="cmtt-10">lg </span>file to move files between directories. |
| 105 |
</dd><dt>S</dt><dd> |
| 106 |
This character specifies what security measures <span class="cmtt-10">t4ht </span>should take when invoking other utilities. In the absence of |
| 107 |
this directive, all the calls to system services are ignored. On the other hand, a directive of the form ‘<span class="cmtt-10">S*</span>’ allows all |
| 108 |
system calls. A selective access to system calls can be obtained with <span class="cmtt-10">S </span>directives, which specify the prefixes of |
| 109 |
command names that should be allowed to go through. |
| 110 |
<!--l. 8428--><p class="indent" > The <span class="cmtt-10">S </span>directives can be fed as switches to the command lines <span class="cmtt-10">t4ht</span>. |
| 111 |
</p> |
| 112 |
</dd><dt>P</dt><dd> |
| 113 |
A variant of he <span class="cmtt-10">S </span>switch for <span class="cmtt-10">tex4ht</span>. Rarely useful. |
| 114 |
|
| 115 |
</dd><dt>X</dt><dd> |
| 116 |
This character identifies to <span class="cmtt-10">t4ht </span>a script for postprocessing the files which <span class="cmtt-10">tex4ht </span>outputs. The file names are |
| 117 |
represented by ‘<span class="cmtt-10">%%1</span>’, and their extensions by ‘<span class="cmtt-10">%%2</span>’. Such scripts, for instance, may invoke validators to check the |
| 118 |
correctness of the files against given DTD’s and request XSL transformations. |
| 119 |
<!--l. 8441--><p class="indent" > The command line of <span class="cmtt-10">t4ht </span>may include a flag ‘<span class="cmtt-10">-X</span>’ whose content is represented by ‘<span class="cmtt-10">%%3</span>’ in the |
| 120 |
script. |
| 121 |
</p><!--l. 8445--><p class="indent" > Example: <span class="cmtt-10">Xmake -f mymake name=%%1 ext=%%2 %%3</span> |
| 122 |
</p> |
| 123 |
</dd><dt><span class="cmbx-10">. </span>(dot)</dt><dd> |
| 124 |
A variant of the X script applied to files whose extension names are provided after the dot. The file names are |
| 125 |
represented by ‘<span class="cmtt-10">%%1</span>’, and the jobnames by ‘<span class="cmtt-10">%%0</span>’. |
| 126 |
<!--l. 8451--><p class="indent" > Example: <span class="cmtt-10">.xml echo "name=%%1.xml"</span> |
| 127 |
</p> |
| 128 |
</dd><dt><span class="cmtt-10"><</span></dt><dd> |
| 129 |
Tagged script segments <span class="cmtt-10"><tag>...</tag> </span>are scanned only if their names are specified within <span class="cmtt-10">-ctag </span>switches of |
| 130 |
<span class="cmtt-10">tex4ht.c </span>and <span class="cmtt-10">t4ht.c</span>. When such switches are not supplied, a the switch <span class="cmtt-10">-cdefault </span>is implicitly |
| 131 |
assumed. |
| 132 |
</dd></dl> |
| 133 |
<!--l. 8461--><p class="indent" > Lines starting with other characters are treated as comments, and empty lines may be treated as file |
| 134 |
terminators by <span class="cmtt-10">tex4ht </span>and <span class="cmtt-10">t4ht</span>. |
| 135 |
</p><!--l. 8467--><p class="noindent" ><span class="cmbx-10">Examples: </span><a |
| 136 |
href="tex4ht-env-unix.txt" >Unix-oriented</a>, <a |
| 137 |
href="tex4ht-env-win32.txt" >MS-oriented</a> |
| 138 |
|
| 139 |
</p> |
| 140 |
<hr /> |
| 141 |
<!--l. 8474--><p class="indent" > <small>Generated August 24, 2020 - <a href="/tex4ht/">tex4ht home page</a></small></p> |
| 142 |
</body></html> |