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