Debian Codegraph @

texmf-dist/tex4ht/base/unix/tex4ht.env

raw
1 % tex4ht.env-unix (2025-06-02-14:00), generated from tex4ht-env.tex
2 % Copyright 2009-2024 TeX Users Group
3 % Copyright 1997-2009 Eitan M. Gurari
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.%
20 %
21 % Notes:
22 % 1. Empty lines might be harmful.
23 %
24 % 2. Tagged script segments <tag>...</tag> are scanned only if
25 % their names are specified within -ctag switches of tex4ht.c
26 % and t4ht.c. When -c switches are not supplied, a -cdefault
27 % is implicitly assumed.
28 % The tags <tag> and </tag>, but not their bodies, are
29 % ignored if they are not located at the start of their lines.
30 %
31 % 3. Place this file in your work directory and/or root directory
32 % and/or in directory `xxx' of your choice. In the latest case,
33 % compile tex4ht.c and t4ht.c with `#define ENVFILE xxx', or
34 % provide the location of the file to tex4ht and t4ht with
35 % the -e switch.
36 %
37 % 4. Under kpathsea, the substring `%%~' may be employed in
38 % commands to obtain the value of ${TEXMFDIST}.
39 %
40 %
41 % * Replace `path', and possibly what follows, with appropriate %
42 % content %
43 % * A path may start with: %
44 % ~ for environment variable HOME %
45 % ~~ for environment variable TEX4HTTFM %
46 % %%~ for ${TEXMFDIST} of KPATHSEA %
47 % * A ! requests recursive search into subdirectories %
48 % * Multiple t and i entries are allowed %
49 % * When supported by kpathsea %
50 % + t entries are ignored %
51 % + the path before /ht-fonts/ is ignored in i records that don't %
52 % represent real addresses %
53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54 %
55 %
56 tpath/tex/texmf/fonts/tfm/!
57 %
58 <default>
59 i%%~/tex4ht/ht-fonts/iso8859/1/!
60 i%%~/tex4ht/ht-fonts/ascii/!
61 i%%~/tex4ht/ht-fonts/alias/!
62 i%%~/tex4ht/ht-fonts/mozilla/!
63 i%%~/tex4ht/ht-fonts/unicode/!
64 </default>
65
66 <mozhtf>
67 i%%~/tex4ht/ht-fonts/mozilla/!
68 i%%~/tex4ht/ht-fonts/unicode/!
69 i%%~/tex4ht/ht-fonts/ascii/!
70 i%%~/tex4ht/ht-fonts/alias/!
71 </mozhtf>
72
73 <iso2htf>
74 i%%~/tex4ht/ht-fonts/iso8859/2/!
75 i%%~/tex4ht/ht-fonts/ascii/!
76 i%%~/tex4ht/ht-fonts/alias/!
77 i%%~/tex4ht/ht-fonts/unicode/!
78 </iso2htf>
79
80 <iso5htf>
81 i%%~/tex4ht/ht-fonts/iso8859/5/!
82 i%%~/tex4ht/ht-fonts/ascii/!
83 i%%~/tex4ht/ht-fonts/alias/!
84 i%%~/tex4ht/ht-fonts/unicode/!
85 </iso5htf>
86
87 <iso7htf>
88 i%%~/tex4ht/ht-fonts/iso8859/7/!
89 i%%~/tex4ht/ht-fonts/ascii/!
90 i%%~/tex4ht/ht-fonts/alias/!
91 i%%~/tex4ht/ht-fonts/unicode/!
92 </iso7htf>
93
94 <iso8htf>
95 i%%~/tex4ht/ht-fonts/iso8859/8/!
96 i%%~/tex4ht/ht-fonts/ascii/!
97 i%%~/tex4ht/ht-fonts/alias/!
98 i%%~/tex4ht/ht-fonts/unicode/!
99 </iso8htf>
100
101 <iso15htf>
102 i%%~/tex4ht/ht-fonts/iso8859/15/!
103 i%%~/tex4ht/ht-fonts/ascii/!
104 i%%~/tex4ht/ht-fonts/alias/!
105 i%%~/tex4ht/ht-fonts/unicode/!
106 </iso15htf>
107
108 <koi8rhtf>
109 i%%~/tex4ht/ht-fonts/koi/8r/!
110 i%%~/tex4ht/ht-fonts/ascii/!
111 i%%~/tex4ht/ht-fonts/alias/!
112 i%%~/tex4ht/ht-fonts/unicode/!
113 </koi8rhtf>
114
115 <symhtf>
116 i%%~/tex4ht/ht-fonts/symbol/!
117 i%%~/tex4ht/ht-fonts/unicode/!
118 i%%~/tex4ht/ht-fonts/ascii/!
119 i%%~/tex4ht/ht-fonts/alias/!
120 </symhtf>
121
122 <win1251htf>
123 i%%~/tex4ht/ht-fonts/win/1251/!
124 i%%~/tex4ht/ht-fonts/unicode/!
125 i%%~/tex4ht/ht-fonts/ascii/!
126 i%%~/tex4ht/ht-fonts/alias/!
127 </win1251htf>
128
129 <unihtf>
130 i%%~/tex4ht/ht-fonts/unicode/!
131 i%%~/tex4ht/ht-fonts/ascii/!
132 i%%~/tex4ht/ht-fonts/alias/!
133 </unihtf>
134
135 <emspkhtf>
136 i%%~/tex4ht/ht-fonts/html-speech/!
137 i%%~/tex4ht/ht-fonts/unicode/!
138 i%%~/tex4ht/ht-fonts/ascii/!
139 i%%~/tex4ht/ht-fonts/alias/!
140 i%%~/tex4ht/ht-fonts/css/emacspeak/!
141 </emspkhtf>
142
143 <jsmlhtf>
144 i%%~/tex4ht/ht-fonts/jsml/!
145 i%%~/tex4ht/ht-fonts/unicode/!
146 i%%~/tex4ht/ht-fonts/ascii/!
147 i%%~/tex4ht/ht-fonts/alias/!
148 </jsmlhtf>
149
150 %
151 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
152 % dvi-to-xxx %
153 % choose one G-script %
154 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155 % dvips options %
156 % magnification: -x mag (e.g., -x 1200) %
157 % page size: -T x,y (e.g., -T 14in,14in) %
158 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
159 <netpbm>
160 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
161 Ggs -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit
162 Gmv zz%%4.ppm temp.ppm
163 Gpnmcrop temp.ppm > zz%%4.ppm
164 Gpnmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
165 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
166 Grm zz%%4.ps
167 Grm zz%%4.ppm
168 Grm temp.ppm
169 % Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3
170 </netpbm>
171 <convert>
172 G.png
173 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
174 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
175 Grm zz%%4.ps
176 G.svg
177 Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 --embed-bitmaps -o %%3 %%1
178 G.
179 %echo "dbg: got to dvips to png via gs (unix dvips convert)"
180 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
181 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
182 Grm zz%%4.ps
183 %--------- alternative instructions for old versions of convert
184 % Gconvert -trim -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
185 % Gconvert -crop 0x0 +repage -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
186 % Gconvert -crop 0x0 +page -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
187 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
188 </convert>
189 <dvipng>
190 G.png
191 %echo "dbg: got to dvi to png via (dvipng)"
192 Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
193 G.gif
194 Gdvipng -T tight -D 144 -bg Transparent -gif -pp %%2:%%2 %%1 -o %%3
195 G.svg
196 Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 --embed-bitmaps -o %%3 %%1
197 G.
198 Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
199 % avoiding convert for mactex.
200 % Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
201 % Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3
202 %Grm zz%%4.ps
203 </dvipng>
204
205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
206 % Default scripts, shifted rightward 1 pos
207 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208 s--- needs --- %%1.idv[%%2] ==> %%3 ---
209 b--- characters ---
210 g.png
211 % empty bitmaps %
212 Ecopy empty.png %%1%%2
213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
214 %
215 %
216 % * Address for an automatically created bookkeeping file %
217 % * Ignored under kpathsea %
218 % * The work directory is assumed for a default %
219 l~/tex4ht.dir/tex4ht.fls
220 %
221 % t4ht -d%%2 %
222 Mmv %%1 %%2%%3
223 Ccp %%1 %%2%%3
224 % t4ht -d%%2 -m%%1 %
225 Achmod %%1 %%2%%3
226 % removed protection %
227 S*
228 %
229 <javahelp>
230 .html mv %%1.html %%1.tmp
231 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp
232 .jhm echo "java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html"
233 .jhm echo "--- Warning --- Beware of leftover %%1*.html files from other compilations"
234 .jhm java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
235 </javahelp>
236 <javahelp1>
237 .jhm java -jar ${HOME}/jh1.1.3/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
238 </javahelp1>
239
240 <emspk>
241 .html mv %%1.html %%1.tmp
242 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.html %%1.tmp
243 </emspk>
244
245 <jsml>
246 .jsml mv %%1.jsml %%1.tmp
247 .jsml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp
248 </jsml>
249
250 <docbk>
251 .xml cp %%1.xml %%1.tmp
252 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.xml %%1.tmp
253 </docbk>
254
255 <xhtml>
256 .html mv %%1.html %%1.tmp
257 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp
258 .xht mv %%1.xht %%1.tmp
259 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp
260 .xml mv %%1.xml %%1.tmp
261 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp
262 </xhtml>
263
264 <xhtmml>
265 .html mv %%1.html %%1.tmp
266 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp
267 .xht mv %%1.xht %%1.tmp
268 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp
269 .xml mv %%1.xml %%1.tmp
270 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp
271 </xhtmml>
272
273 <ooxtpipes>
274 .4oo mv %%0.4oo %%0.tmp
275 .4oo java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
276 .4om mv %%1.4om %%1.tmp
277 .4om java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
278 </ooxtpipes>
279 %
280 <validatehtml>
281 .html xmllint --noout --valid --html %%1.html
282 </validatehtml>
283 <validate>
284 .xml xmllint --noout --valid %%1.xml
285 .html xmllint --noout --valid %%1.html
286 .css mycssparser %%1.css
287 </validate>
288 %
289 <oo>
290 %%% openoffice %
291 .4oo mkdir sxw-%%0.dir
292 .4os mkdir sxw-%%0.dir/Pictures
293 .4os mv %%1.4os sxw-%%0.dir/settings.xml
294 .4oo mv %%0.4oo sxw-%%0.dir/content.xml
295 % %
296 .4om mkdir sxw-%%0.dir/%%1
297 .4om mv %%1.4om sxw-%%0.dir/%%1/content.xml
298 .4om cp sxw-%%0.dir/settings.xml sxw-%%0.dir/%%1/settings.xml
299 % %
300 .4of mkdir sxw-%%0.dir/META-INF
301 .4of mv %%1.4of sxw-%%0.dir/META-INF/manifest.xml
302 % %
303 .4ot mv %%1.4ot sxw-%%0.dir/meta.xml
304 .4oy mv %%1.4oy sxw-%%0.dir/styles.xml
305 % .4og cp --parents %%1 Pictures
306 % .4og mkdir -p sxw-%%0.dir/Pictures/%%1
307 % .4og rmdir sxw-%%0.dir/Pictures/%%1
308 .4og cp %%1 sxw-%%0.dir/Pictures/
309 %-- sxw -- %
310 .4ox cd sxw-%%0.dir; zip -r %%0.sxw * ; cd ..
311 % %
312 .4ox mv sxw-%%0.dir/%%0.sxw .
313 % %
314 .4ox rm %%1.4ox
315 .4ox rm -r -f sxw-%%0.dir
316 %-- odt -- %
317 .4od cd sxw-%%0.dir; zip -r %%0.odt * ; cd ..
318 % %
319 .4od mv sxw-%%0.dir/%%0.odt .
320 % %
321 .4od rm %%1.4od
322 .4od rm -r -f sxw-%%0.dir
323 %%% end openoffice %
324 </oo>
325 %
326 % end of file
327