Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-env.tex

raw
1 % $Id: tex4ht-env.tex 1688 2025-06-02 11:19:08Z michal_h21 $
2 % latex tex4ht-env
3 % or htlatex tex4ht-env "xhtml,3"
4 %
5 % Copyright 2009-2025 TeX Users Group
6 % Copyright 1997-2009 Eitan M. Gurari
7 % Released under LPPL 1.3c+.
8 % See tex4ht-cpright.tex for license text.
9
10 \documentclass{article}
11
12 \usepackage{url}
13 \input tex4ht-dir.tex
14
15 \ifx \HCode\Undef
16 \usepackage[xhtml,2,sections+]{tex4ht}
17 \input ProTex.sty
18 \AlProTex{env,<<<>>>,@,title,list}
19 \else
20 \Configure{ProTex}{env,<<<>>>,@,title,list}
21 \fi
22
23 \input{common}
24
25 \begin{document}
26
27 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
28 \section{Outline of Scripts}
29 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30
31 Note: The `-c...' calls are executed in the order of the prsence of
32 the scripts within tex4ht.env. Hence, place the xtpipe translations
33 before validations.
34
35
36 \<tex4ht.env-unix\><<<
37 @<unix copyright@>%
38 @<unix opening comment@>%
39 @<generic note fonts@>%
40 @<unix texmf dir@>%
41 @<unix tfm fonts@>%
42 @<win32 htf fonts@>%
43 @<unix G script@>%
44 @<unix tex4ht.fls@>%
45 @<unix t4ht commands@>%
46 @<xtpipes: unix java help@>
47 @<xtpipes: unix emacspeak@>
48 @<xtpipes: unix jsml@>
49 @<xtpipes: unix docbk@>
50 @<xtpipes: unix xhtml@>
51 @<xtpipes: unix xhtmml@> @%before validate@%
52 @<xtpipes: unix oo@>%
53 @<unix validate@> %
54 @<unix openoffice@>%
55 % end of file
56 >>>
57
58
59 \<tex4ht.env-win32\><<<
60 @<win32 copyright@>%
61 @<win32 opening comment@>%
62 @<generic note fonts@>%
63 @<win32 texmf dir@>%
64 @<win32 tfm fonts@>%
65 @<win32 htf fonts@>%
66 @<win32 G script@>%
67 @<dos t4ht commands@>%
68 @<win32 tex4ht.fls@>%
69 @<xtpipes: win32 java help@>
70 @<xtpipes: win32 emacspeak@>
71 @<xtpipes: win32 jsml@>
72 @<xtpipes: win32 docbk@>
73 @<xtpipes: win32 xhtml@>
74 @<xtpipes: win32 xhtmml@> @%before validate@%
75 @<xtpipes: win32 oo@>%
76 @<win32 validate@> %
77 @<win32 openoffice@>%
78 % end of file
79 >>>
80
81
82
83 \<tex4ht\><<<
84 @<private copyright@>%
85 @<unix opening comment@>%
86 @<generic note fonts@>%
87 @<my texmf dir@>%
88 @<my tfm fonts@>%
89 @<win32 htf fonts@>%
90 @<my G script@>%
91 @<my shared@>%
92 @<my t4ht commands@>%
93 @<my tex4ht.fls@>%
94 @<xtpipes: my java help@>
95 @<xtpipes: my emacspeak@>
96 @<xtpipes: my jsml@>
97 @<xtpipes: my docbk@>
98 @<xtpipes: my xhtml@>
99 @<xtpipes: my xhtmml@> @%before validate@%
100 @<xtpipes: my oo@>
101 @<my validate@> %
102 @<unix openoffice@>%
103 % end of file
104 >>>
105
106
107
108
109
110 %%%%%%%%%%%%%%%%%%
111 \section{Opening Comments}
112 %%%%%%%%%%%%%%%%%%%
113
114 \<unix opening comment\><<<
115 %
116 % Notes:
117 % 1. Empty lines might be harmful.
118 %
119 % 2. Tagged script segments <tag>...</tag> are scanned only if
120 % their names are specified within -ctag switches of tex4ht.c
121 % and t4ht.c. When -c switches are not supplied, a -cdefault
122 % is implicitly assumed.
123 % The tags <tag> and </tag>, but not their bodies, are
124 % ignored if they are not located at the start of their lines.
125 %
126 % 3. Place this file in your work directory and/or root directory
127 % and/or in directory `xxx' of your choice. In the latest case,
128 % compile tex4ht.c and t4ht.c with `#define ENVFILE xxx', or
129 % provide the location of the file to tex4ht and t4ht with
130 % the -e switch.
131 %
132 % 4. Under kpathsea, the substring `%%~' may be employed in
133 % commands to obtain the value of ${TEXMFDIST}.
134 %
135 >>>
136
137
138 \<win32 opening comment\><<<
139 % See comments in the Unix tex4ht.env for how this file gets found --
140 % except that on Windows, we also look in the directory of tex4ht.exe/t4ht.exe.
141 >>>
142
143
144 %%%%%%%%%%%%%%%%%%
145 \section{Fonts}
146 %%%%%%%%%%%%%%%%%%
147
148
149
150
151 %%%%%%%%%%%%%%%%%%
152 \subsection{TFM Files}
153 %%%%%%%%%%%%%%%%%%%
154
155
156
157 \<unix tfm fonts\><<<
158 tpath/tex/texmf/fonts/tfm/!
159 >>>
160
161
162 \<win32 tfm fonts\><<<
163 tc:\path\tfm!
164 >>>
165
166 \<my tfm fonts\><<<
167 t/usr/local/teTeX/share/texmf/fonts/tfm/!
168 t/var/tmp/texfonts/tfm/!
169 t/usr/local/teTeX/texmf/fonts/vf/!
170 >>>
171
172 The \verb't/var/tmp/texfonts/tfm/!' are for fonts created on the fly
173 during the compilation by tex.
174
175
176
177 %%%%%%%%%%%%%%%%%%
178 \subsection{HTF Files}
179 %%%%%%%%%%%%%%%%%%%
180
181 The structure of htf fonts is the same on Windows and Unix, so it
182 doesn't make sense to keep two versions.
183
184
185
186 \<win32 htf fonts\><<<
187 @<win32 iso1 htf@>
188 @<win32 moz htf@>
189 @<win32 iso2 htf@>
190 @<win32 iso5 htf@>
191 @<win32 iso7 htf@>
192 @<win32 iso8 htf@>
193 @<win32 iso15 htf@>
194 @<win32 koi8r htf@>
195 @<win32 sym htf@>
196 @<win32 win1251 htf@>
197 @<win32 uni htf@>
198 @<win32 emspk htf@>
199 @<win32 jsml htf@>
200 >>>
201
202
203
204 \<win32 iso1 htf\><<<
205 <default>
206 i%%~/tex4ht/ht-fonts/iso8859/1/!
207 i%%~/tex4ht/ht-fonts/ascii/!
208 i%%~/tex4ht/ht-fonts/alias/!
209 i%%~/tex4ht/ht-fonts/mozilla/!
210 i%%~/tex4ht/ht-fonts/unicode/!
211 </default>
212 >>>
213
214
215 \<win32 moz htf\><<<
216 <mozhtf>
217 i%%~/tex4ht/ht-fonts/mozilla/!
218 i%%~/tex4ht/ht-fonts/unicode/!
219 i%%~/tex4ht/ht-fonts/ascii/!
220 i%%~/tex4ht/ht-fonts/alias/!
221 </mozhtf>
222 >>>
223
224
225
226 \<win32 uni htf\><<<
227 <unihtf>
228 i%%~/tex4ht/ht-fonts/unicode/!
229 i%%~/tex4ht/ht-fonts/ascii/!
230 i%%~/tex4ht/ht-fonts/alias/!
231 </unihtf>
232 >>>
233
234
235
236 \<win32 emspk htf\><<<
237 <emspkhtf>
238 i%%~/tex4ht/ht-fonts/html-speech/!
239 i%%~/tex4ht/ht-fonts/unicode/!
240 i%%~/tex4ht/ht-fonts/ascii/!
241 i%%~/tex4ht/ht-fonts/alias/!
242 i%%~/tex4ht/ht-fonts/css/emacspeak/!
243 </emspkhtf>
244 >>>
245
246
247 \<win32 jsml htf\><<<
248 <jsmlhtf>
249 i%%~/tex4ht/ht-fonts/jsml/!
250 i%%~/tex4ht/ht-fonts/unicode/!
251 i%%~/tex4ht/ht-fonts/ascii/!
252 i%%~/tex4ht/ht-fonts/alias/!
253 </jsmlhtf>
254 >>>
255
256
257 \<win32 iso2 htf\><<<
258 <iso2htf>
259 i%%~/tex4ht/ht-fonts/iso8859/2/!
260 i%%~/tex4ht/ht-fonts/ascii/!
261 i%%~/tex4ht/ht-fonts/alias/!
262 i%%~/tex4ht/ht-fonts/unicode/!
263 </iso2htf>
264 >>>
265
266
267 \<win32 iso5 htf\><<<
268 <iso5htf>
269 i%%~/tex4ht/ht-fonts/iso8859/5/!
270 i%%~/tex4ht/ht-fonts/ascii/!
271 i%%~/tex4ht/ht-fonts/alias/!
272 i%%~/tex4ht/ht-fonts/unicode/!
273 </iso5htf>
274 >>>
275
276
277
278 \<win32 iso7 htf\><<<
279 <iso7htf>
280 i%%~/tex4ht/ht-fonts/iso8859/7/!
281 i%%~/tex4ht/ht-fonts/ascii/!
282 i%%~/tex4ht/ht-fonts/alias/!
283 i%%~/tex4ht/ht-fonts/unicode/!
284 </iso7htf>
285 >>>
286
287
288
289 \<win32 iso8 htf\><<<
290 <iso8htf>
291 i%%~/tex4ht/ht-fonts/iso8859/8/!
292 i%%~/tex4ht/ht-fonts/ascii/!
293 i%%~/tex4ht/ht-fonts/alias/!
294 i%%~/tex4ht/ht-fonts/unicode/!
295 </iso8htf>
296 >>>
297
298
299 \<win32 iso15 htf\><<<
300 <iso15htf>
301 i%%~/tex4ht/ht-fonts/iso8859/15/!
302 i%%~/tex4ht/ht-fonts/ascii/!
303 i%%~/tex4ht/ht-fonts/alias/!
304 i%%~/tex4ht/ht-fonts/unicode/!
305 </iso15htf>
306 >>>
307
308
309
310 \<win32 koi8r htf\><<<
311 <koi8rhtf>
312 i%%~/tex4ht/ht-fonts/koi/8r/!
313 i%%~/tex4ht/ht-fonts/ascii/!
314 i%%~/tex4ht/ht-fonts/alias/!
315 i%%~/tex4ht/ht-fonts/unicode/!
316 </koi8rhtf>
317 >>>
318
319
320 \<win32 sym htf\><<< %
321 <symhtf>
322 i%%~/tex4ht/ht-fonts/symbol/!
323 i%%~/tex4ht/ht-fonts/unicode/!
324 i%%~/tex4ht/ht-fonts/ascii/!
325 i%%~/tex4ht/ht-fonts/alias/!
326 </symhtf>
327 >>>
328
329
330
331 \<win32 win1251 htf\><<< %
332 <win1251htf>
333 i%%~/tex4ht/ht-fonts/win/1251/!
334 i%%~/tex4ht/ht-fonts/unicode/!
335 i%%~/tex4ht/ht-fonts/ascii/!
336 i%%~/tex4ht/ht-fonts/alias/!
337 </win1251htf>
338 >>>
339
340
341
342
343
344 %%%%%%%%%%%%%%%%%%
345 \subsection{Bookkeeping tex4ht.fls}
346 %%%%%%%%%%%%%%%%%%%
347
348 Currently broken and Disabled.
349
350
351 \<my tex4ht.fls\><<<
352 % * Address for an automatically created bookkeeping file %
353 % * The work directory is assumed for a default %
354 l~/tex4ht.dir/tex4ht.fls
355 >>>
356
357
358
359
360 \<unix tex4ht.fls\><<<
361 % * Address for an automatically created bookkeeping file %
362 % * Ignored under kpathsea %
363 % * The work directory is assumed for a default %
364 l~/tex4ht.dir/tex4ht.fls
365 >>>
366
367
368
369 \<win32 tex4ht.fls\><<<
370 % * Address for an automatically created bookkeeping file %
371 % * Ignored under kpathsea %
372 % * The work directory is assumed for a default %
373 lc:\tex4ht\tex4ht.fls
374 >>>
375
376
377 %%%%%%%%%%%%%%%%%%
378 \subsection{Notes}
379 %%%%%%%%%%%%%%%%%%%
380
381 \<generic note fonts\><<<
382 % * Replace `path', and possibly what follows, with appropriate %
383 % content %
384 % * A path may start with: %
385 % ~ for environment variable HOME %
386 % ~~ for environment variable TEX4HTTFM %
387 % %%~ for ${TEXMFDIST} of KPATHSEA %
388 % * A ! requests recursive search into subdirectories %
389 % * Multiple t and i entries are allowed %
390 % * When supported by kpathsea %
391 % + t entries are ignored %
392 % + the path before /ht-fonts/ is ignored in i records that don't %
393 % represent real addresses %
394 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
395 >>>
396
397
398
399 %%%%%%%%%%%%%%%%%%
400 \section{Bitmap Conversion Scripts}
401 %%%%%%%%%%%%%%%%%%%
402
403
404
405 %%%%%%%%%%%%%
406 \subsection{Unix}
407 %%%%%%%%%%%%%
408
409
410
411
412 \<unix G script\><<<
413 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
414 % dvi-to-xxx %
415 % choose one G-script %
416 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
417 % dvips options %
418 % magnification: -x mag (e.g., -x 1200) %
419 % page size: -T x,y (e.g., -T 14in,14in) %
420 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
421 <netpbm>
422 @<unix netpbm@>
423 </netpbm>
424 <convert>
425 @<unix png gs@>
426 @<unix svg@>
427 G.
428 @<unix dvips convert@>
429 @<variants of convert@>
430 </convert>
431 @<dvipng@>
432 @<request scripts@> %
433 >>>
434
435
436 %%%%%%%%%%%%%
437 \subsection{Windows}
438 %%%%%%%%%%%%%
439
440
441
442 \<win32 G script\><<<
443 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
444 % dvi-to-xxx %
445 % choose one G-script %
446 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
447 % dvips options %
448 % magnification: -x mag (e.g., -x 1200) %
449 % page size: -T x,y (e.g., -T 14in,14in) %
450 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
451 @<variants of convert@>
452 <netpbm>
453 @<dos netpbm@>
454 </netpbm>
455 @<win gs@>
456 <convert>
457 @<dos png gs@>
458 @<win32 svg@>
459 G.
460 @<dos dvips convert@>
461 </convert>
462 @<dvipng@>
463 @<request scripts@> %
464 >>>
465
466
467 %%%%%%%%%%%%%
468 \subsection{Private (on SUN)}
469 %%%%%%%%%%%%%
470
471
472
473 \<my G script\><<<
474 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
475 % Select one of the G scripts %
476 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
477 % dvips options %
478 % magnification: -x mag (e.g., -x 1200) %
479 % page size: -T x,y (e.g., -T 14in,14in) %
480 % gs fonts: -Pfont (e.g., -Pcmz -Pamz) %
481 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
482 <convert-old>
483 @<unix png gs@>
484 @<unix svg@>
485 G.
486 @<old dvips + gs + convert (personal)@>
487 </convert-old>
488 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
489 <netpbm>
490 @<unix netpbm@>
491 </netpbm>
492 @<dvipng@>
493 <convert>
494 @<dvips convert (personal)@>
495 </convert>
496 @<request scripts@> %
497 >>>
498
499
500
501 %%%%%%%%%%%%%
502 \subsection{Script: dvips + gs}
503 % duplicated below, as well as twice here. must fixx!
504 % we don't want to use convert for the sake of simplifying mactex.
505 %%%%%%%%%%%%%
506
507 \<dvips convert (personal)\><<<
508 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
509 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
510 Grm zz%%4.ps >>>
511
512 \<unix dvips convert\><<<
513 %echo "dbg: got to dvips to png via gs (unix dvips convert)"
514 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
515 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
516 Grm zz%%4.ps >>>
517
518
519 \<dos dvips convert\><<<
520 Gif exist zz%%4.ps DEL zz%%4.ps >nul
521 Gif exist %%3 DEL %%3 >nul
522 Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
523 Gconvert -trim +repage -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
524 Gif exist zz%%4.ps DEL zz%%4.ps >nul >>>
525
526
527
528 \<variants of convert\><<<
529 %--------- alternative instructions for old versions of convert
530 % Gconvert -trim -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
531 % Gconvert -crop 0x0 +repage -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
532 % Gconvert -crop 0x0 +page -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3
533 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >>>
534
535 The `-E' option is required for dvips to produce a tight bounding box.
536
537
538 %%%%%%%%%%%%%
539 \subsection{Script: dvips + gs + convert}
540 %%%%%%%%%%%%%
541
542 \<old dvips + gs + convert (unix)\><<<
543 <convert-old>
544 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
545 Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
546 Gconvert zz%%4.ppm -trim +repage -density 110x110 -transparent '#FFFFFF' %%3
547 Grm zz%%4.ps
548 Grm zz%%4.ppm
549 </convert-old> >>>
550
551
552 The intermediate ppm step is to overcome cropping and other problems
553 in convert.
554
555
556
557 \<old dvips + gs + convert (personal)\><<<
558 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
559 Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
560 Gconvert zz%%4.ppm -crop 0x0 +page -density 110x110 -transparent '#FFFFFF' %%3
561 Grm zz%%4.ps
562 Grm zz%%4.ppm >>>
563
564 \<old dvips + gs + convert (windows)\><<<
565 <convert-old>
566 Gif exist zz%%4.ps DEL zz%%4.ps >nul
567 Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
568 Gif exist %%3 DEL %%3 >nul
569 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
570 Ggswin32c -dNOPAUSE -sDEVICE=ppmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r110x110 -sOutputFile=zz%%4.ppm -q zz%%4.ps -c quit
571 Gconvert zz%%4.ppm -trim +repage -density 110x110 -transparent #FFFFFF %%3
572 Gif exist zz%%4.ps DEL zz%%4.ps >nul
573 Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
574 </convert-old> >>>
575
576 The command line options \verb'-Pcmz -Pamz' of dvips requests type 1
577 postscript format for the standard Computer Modern fonts of \TeX.
578
579
580 TextAlphaBits, GraphicsAlphaBits: The number of bits of anti-aliasing
581 information for text or graphics respectively. Legal values are 1 (no
582 anti-aliasing, the default for most devices), 2, or 4.
583
584 -x: magnification * 1000. A variant of \verb'\magnification'. Should use
585 values for which the printers can support the font sizes. Typically,
586 \verb'1.2{\tt\string^}i * 1000'.
587
588 %%%%%%%%%%%%%
589 \subsection{PNG Script: dvi + gs}
590 %%%%%%%%%%%%%
591
592
593
594 \<unix png gs\><<<
595 G.png
596 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
597 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
598 Grm zz%%4.ps >>>
599
600 A piping of the conversion as in
601
602 \begin{verbatim}
603 dvips -E -q -Ppdf -f %%1 -pp %%2 | Ggs -sDEVICE=pngalpha -sOutputFile=- ...
604 \end{verbatim}
605
606 provides faster compilations, but error messages might get lost if
607 they happen to be directed to the standard output stream.
608
609
610 \<dos png gs\><<<
611 G.png
612 Gif exist zz%%4.ps DEL zz%%4.ps >nul
613 Gif exist %%3 DEL %%3 >nul
614 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
615 Ggswin32c -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
616 Gif exist zz%%4.ps DEL zz%%4.ps >nul >>>
617
618
619
620
621 ImageMagic comes with an `identify' utility for inspecting image
622 files. For instance, try `identify -verbatim foo.png'. For additional
623 information, try `identify' or `man identify'.
624
625
626 %%%%%%%%%%%%%
627 \subsection{Script: netpbm}
628 %%%%%%%%%%%%%
629
630
631
632 \<unix netpbm\><<<
633 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
634 Ggs -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit
635 Gmv zz%%4.ppm temp.ppm
636 Gpnmcrop temp.ppm > zz%%4.ppm
637 Gpnmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
638 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
639 Grm zz%%4.ps
640 Grm zz%%4.ppm
641 Grm temp.ppm
642 % Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3 >>>
643
644
645 \<dos netpbm\><<<
646 Gif exist zz%%4.ps DEL zz%%4.ps
647 Gif exist zz%%4.ppm DEL zz%%4.ppm
648 Gif exist temp.ppm DEL temp.ppm
649 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
650 Ggswin32c -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit
651 Gmove /y zz%%4.ppm temp.ppm
652 Gpnmcrop temp.ppm > zz%%4.ppm
653 Gif exist %%3 DEL %%3
654 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
655 Gif exist zz%%4.ps DEL zz%%4.ps
656 Gif exist zz%%4.ppm DEL zz%%4.ppm
657 Gif exist temp.ppm DEL temp.ppm
658 % Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3 >>>
659
660 %%%%%%%%%%%%%
661 \subsection{Script: dvipng}
662 %%%%%%%%%%%%%
663
664 \<dvipng\><<<
665 <dvipng>
666 G.png
667 %echo "dbg: got to dvi to png via (dvipng)"
668 Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
669 G.gif
670 Gdvipng -T tight -D 144 -bg Transparent -gif -pp %%2:%%2 %%1 -o %%3
671 @<unix svg@>
672 G.
673 Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
674 % avoiding convert for mactex.
675 % Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
676 % Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3
677 %Grm zz%%4.ps
678 </dvipng>
679 >>>
680
681
682 %%%%%%%%%%%%%%%%%%
683 \subsection{SVG Bitmap Conversion Scripts}
684 %%%%%%%%%%%%%%%%%%%
685
686 \<unix svg\><<<
687 G.svg
688 Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 --embed-bitmaps -o %%3 %%1 >>>
689
690
691 \<win32 svg\><<<
692 G.svg
693 Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 --embed-bitmaps -o %%3 %%1 >>>
694
695 dvisvgm is included with all \TeX\ distributions nowadays and the
696 conversion is quite fast and efficient.
697
698
699 %%%%%%%%%%%%%
700 \subsection{Request Scripts}
701 %%%%%%%%%%%%%
702
703 \<request scripts\><<<
704 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
705 % Default scripts, shifted rightward 1 pos
706 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
707 s--- needs --- %%1.idv[%%2] ==> %%3 ---
708 b--- characters ---
709 g.png
710 % empty bitmaps %
711 Ecopy empty.png %%1%%2
712 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
713 >>>
714
715
716 %%%%%%%%%%%%%
717 \subsection{Alternative Scripts}
718 %%%%%%%%%%%%%
719
720
721
722
723
724
725 \begin{itemize}
726 \item
727 \begin{verbatim}
728 Gdvips -T 14in,14in -Ppdf -mode epstypro -D 360 -f %%1 -pp %%2 > zz%%4.ps
729 \end{verbatim}
730
731 \item
732 \begin{verbatim}
733 Gtest ! -f %%3
734 Gdvips -pp %%2 -R -E %%1 -o - | convert -transparent '#FFFFFF' -quality 100
735 -density 110 ps:- %%3
736 \end{verbatim}
737
738 \item
739 {A
740 Netpbm-based script
741 (\Link[ftp://ftp.x.org/R5contrib/netpbm-1mar1994.tar.gz]{}{}src\EndLink{})}
742
743 \begin{verbatim}
744 Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -q -dbatch -dNOPAUSE zz%%4.ps -c quit
745 Gmv zz%%4.ppm yz%%4.ppm
746 Gpnmcrop yz%%4.ppm > zz%%4.ppm
747 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
748 \end{verbatim}
749
750 \item
751 {A
752 PDF-based script
753 (\Link[http://www.cs.wisc.edu/\string
754 ~ghost/doc/AFPL/6.50/Ps2pdf.htm]{}{}ps2pdf\EndLink{})}
755 \begin{verbatim}
756 Gdvips -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
757 Gps2pdf zz%%4.ps zz%%4.pdf
758 Gconvert zz%%4.pdf -trim -density 110x110 -transparent '#FFFFFF' %%3
759 \end{verbatim}
760
761
762 \item
763
764 \<win gs\><<<
765 <gs>
766 Gif exist zz%%4.ps DEL zz%%4.ps >nul
767 Gif exist %%3 DEL %%3 >nul
768 Gdvips -E -q -Ppdf -D 110 -mode ibmvga -f %%1 -pp %%2 -o zz%%4.ps
769 Ggswin32c -dbatch -dNOPAUSE -sDEVICE=pngalpha -dEPSCrop ``-dBackgroundColor=16#ffffff'' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r110x110 -sOutputFile=%%3 -q zz%%4.ps -c quit
770 Gif exist zz%%4.ps DEL zz%%4.ps >nul
771 </gs>
772 >>>
773
774
775 \end{itemize}
776
777
778
779 \begin{itemize}
780
781
782
783 \item{A variant of the given script}
784 \begin{verbatim}
785 GDEL zz%%4.ps
786 Gdvips -T 14in,14in -Ppdf -mode epstypro -D 360 -f %%1 -pp %%2 > zz%%4.ps
787 GDEL %%3
788 Gc:/imagemagic/convert zz%%4.ps -trim -density 110x110 -transparent #FFFFFF %%3
789 \end{verbatim}
790 \item{A
791 Netpbm-based script
792 (\Link[ftp://ftp.x.org/R5contrib/netpbm-1mar1994.tar.gz]{}{}src\EndLink{} /
793 binaries for Win 95/98/NT:
794 \Link[http://sourceforge.net/projects/netpbm/]{}{}Netpbm project\EndLink,
795 \Link[ftp://miktex.sourceforge.net/pub/miktex/util/]{}{}MiK\TeX\EndLink
796 )}
797
798 \begin{verbatim}
799 Gif exist zz%%4.ps DEL zz%%4.ps
800 Gif exist zz%%4.ppm DEL zz%%4.ppm
801 Gdvips -T 14in,14in -Ppdf -f %%1 -pp %%2 -o zz%%4.ps
802 Ggswin32c -sDEVICE=ppm -sOutputFile=zz%%4.ppm -q -dbatch -dNOPAUSE zz%%4.ps -c quit
803 Gmove zz%%4.ppm yz%%4.ppm
804 Gpnmcrop yz%%4.ppm > zz%%4.ppm
805 Gif exist %%3 DEL %%3
806 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
807 \end{verbatim}
808
809 or similarly
810
811 % on dvips: -D 600
812 % on gs : -r600x600
813
814 \begin{verbatim}
815 Gif exist zz%%4.ps DEL zz%%4.eps
816 Gif exist zz%%4.ppm DEL zz%%4.ppm
817 Gdvips -E -f %%1 -pp %%2 -o zz%%4.eps
818 Ggswin32c -dEPSCrop -dBATCH -dNOPAUSE -sDEVICE=pbm -q -sOutputFile=zz%%4.ppm zz%%4.eps -c quit
819 Gmove zz%%4.ppm yz%%4.ppm
820 Gpnmcrop yz%%4.ppm > zz%%4.ppm
821 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
822 \end{verbatim}
823
824 \item {IrfanView}
825 \Link[http://www.irfanview.com]{}{}IrfanView\EndLink{}
826 offers a possible alternative for the
827 \`'convert' utility of ImageMagick.
828
829 \item{PDF-based script}
830 \Link{}{pdf-based}\EndLink {A
831 (\Link[http://www.cs.wisc.edu/\string
832 ~ghost/doc/AFPL/6.50/Ps2pdf.htm]{}{}ps2pdf\EndLink{})}
833 \begin{verbatim}
834 Gdvips -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
835 Gps2pdf zz%%4.ps zz%%4.pdf
836 Gconvert zz%%4.pdf -trim -density 110x110 -transparent '#FFFFFF' %%3
837 \end{verbatim}
838
839
840 \end{itemize}
841
842
843
844 %%%%%%%%%%%%%%%%%%%%
845 \section{Open Office}
846 %%%%%%%%%%%%%%%%%%%%
847
848
849
850 %%%%%%%%%%%%%%%%%%%%
851 \subsection{Unix}
852 %%%%%%%%%%%%%%%%%%%%
853
854
855 A `.foo command' record in the script asks to execute the given
856 command for each entry 'File: abc.foo' in the .lg file. A \verb=%%0=
857 stands for the job name, a \verb=%%1= stands for the file name
858 (e.g., 'abc') without the extension. A \verb=%%~= stands for the
859 value of \verb=${TEXMFDIST}= under KPATHSEA, and `\verb=~=' (home dir)
860 when such a value is unavailable.
861
862
863 \<unix openoffice\><<<
864 <oo>
865 %%% openoffice %
866 .4oo mkdir sxw-%%0.dir
867 .4os mkdir sxw-%%0.dir/Pictures
868 .4os mv %%1.4os sxw-%%0.dir/settings.xml
869 .4oo mv %%0.4oo sxw-%%0.dir/content.xml
870 % %
871 .4om mkdir sxw-%%0.dir/%%1
872 .4om mv %%1.4om sxw-%%0.dir/%%1/content.xml
873 .4om cp sxw-%%0.dir/settings.xml sxw-%%0.dir/%%1/settings.xml
874 % %
875 .4of mkdir sxw-%%0.dir/META-INF
876 .4of mv %%1.4of sxw-%%0.dir/META-INF/manifest.xml
877 % %
878 .4ot mv %%1.4ot sxw-%%0.dir/meta.xml
879 .4oy mv %%1.4oy sxw-%%0.dir/styles.xml
880 % .4og cp --parents %%1 Pictures
881 % .4og mkdir -p sxw-%%0.dir/Pictures/%%1
882 % .4og rmdir sxw-%%0.dir/Pictures/%%1
883 .4og cp %%1 sxw-%%0.dir/Pictures/
884 %-- sxw -- %
885 .4ox cd sxw-%%0.dir; zip -r %%0.sxw * ; cd ..
886 % %
887 .4ox mv sxw-%%0.dir/%%0.sxw .
888 % %
889 .4ox rm %%1.4ox
890 .4ox rm -r -f sxw-%%0.dir
891 %-- odt -- %
892 .4od cd sxw-%%0.dir; zip -r %%0.odt * ; cd ..
893 % %
894 .4od mv sxw-%%0.dir/%%0.odt .
895 % %
896 .4od rm %%1.4od
897 .4od rm -r -f sxw-%%0.dir
898 %%% end openoffice %
899 </oo>
900 >>>
901
902 %%%%%%%%%%%%%%%%%%%%%%%%%%%
903 \subsection{Win32}
904 %%%%%%%%%%%%%%%%%%%%%%%%%%%
905
906
907
908
909 \<win32 openoffice\><<<
910 <oo>
911 %%% openoffice %
912 .4oo if exist sxw-%%0.dir rmdir /Q /S sxw-%%0.dir
913 .4oo mkdir sxw-%%0.dir
914 .4os mkdir sxw-%%0.dir\Pictures
915 .4os move %%1.4os sxw-%%0.dir\settings.xml
916 .4oo move %%0.4oo sxw-%%0.dir\content.xml
917 %
918 .4om mkdir sxw-%%0.dir\%%1
919 .4om move %%1.4om sxw-%%0.dir\%%1\content.xml
920 .4om copy sxw-%%0.dir\settings.xml sxw-%%0.dir\%%1\settings.xml
921 %
922 .4of mkdir sxw-%%0.dir\META-INF
923 .4of move %%1.4of sxw-%%0.dir\META-INF\manifest.xml
924 %
925 .4ot move %%1.4ot sxw-%%0.dir\meta.xml
926 .4oy move %%1.4oy sxw-%%0.dir\styles.xml
927 .4og copy %%1 sxw-%%0.dir\Pictures\
928 .4od cd sxw-%%0.dir & zip -r -m %%0.zip * & cd ..
929 % .4od cd sxw-%%0.dir & 7za a -y %%0.zip * & cd ..
930 .4od move sxw-%%0.dir\%%0.zip %%0.odt
931 %
932 .4od del %%1.4od
933 .4od if exist sxw-%%0.dir rmdir /Q /S sxw-%%0.dir
934 %%% end openoffice
935 </oo>
936 >>>
937
938 7za: \url{http://sourceforge.net/projects/sevenzip/}
939
940 Windows uses ampersand character '\verb=&=' as command separator.
941 There are also conditional separators '\verb=&&=' (execute if previous
942 command successful) and '\verb=||=' (execute if previous command
943 failed). It was added in NT so it's not portable to win95(98).
944
945
946
947 \<win32 openoffice-DELETE\><<<
948 %%% openoffice %
949 .4oo mkdir sxw-%%0.dir
950 .4os mkdir sxw-%%0.dir\Pictures
951 .4os move %%1.4os sxw-%%0.dir\settings.xml
952 .4oo move %%0.4oo sxw-%%0.dir\content.xml
953 %
954 .4om mkdir sxw-%%0.dir\%%1
955 .4om move %%1.4om sxw-%%0.dir\%%1\content.xml
956 .4om copy sxw-%%0.dir\settings.xml sxw-%%0.dir\%%1\settings.xml
957 %
958 .4of mkdir sxw-%%0.dir\META-INF
959 .4of move %%1.4of sxw-%%0.dir\META-INF\manifest.xml
960 %
961 .4ot move %%1.4ot sxw-%%0.dir\meta.xml
962 .4oy move %%1.4oy sxw-%%0.dir\styles.xml
963 .4og copy %%1 sxw-%%0.dir\Pictures\%%1
964 %-- sxw --
965 .4ox cd sxw-%%0.dir\
966 .4ox cd sxw-%%0.dir\META-INF
967 .4ox zip sxw-%%0.dir\%%0.sxw sxw-%%0.dir\META-INF\*.*
968 .4ox cd ..
969 .4ox cd sxw-%%0.dir\Pictures
970 .4ox zip sxw-%%0.dir\%%0.sxw sxw-%%0.dir\Pictures
971 .4ox cd ..
972 .4ox zip -j sxw-%%0.dir\%%0.sxw sxw-%%0.dir\*
973 .4ox cd ..
974 %
975 .4ox move sxw-%%0.dir\%%0.sxw .
976 %
977 .4ox del %%1.4ox
978 .4ox echo y | del sxw-%%0.dir\Pictures\*.*
979 .4ox rd sxw-%%0.dir\Pictures
980 .4ox echo y | del sxw-%%0.dir\META-INF\*.*
981 .4ox rd sxw-%%0.dir\META-INF
982 .4ox echo y | del sxw-%%0.dir\*.*
983 .4ox rd /S sxw-%%0.dir
984 %-- odt --
985 .4od cd sxw-%%0.dir\
986 .4od cd sxw-%%0.dir\META-INF
987 .4od zip sxw-%%0.dir\%%0.odt sxw-%%0.dir\META-INF\*.*
988 .4od cd ..
989 .4od cd sxw-%%0.dir\Pictures
990 .4od zip sxw-%%0.dir\%%0.odt sxw-%%0.dir\Pictures
991 .4od cd ..
992 .4od zip -j sxw-%%0.dir\%%0.odt sxw-%%0.dir\*
993 .4od cd ..
994 %
995 .4od move sxw-%%0.dir\%%0.odt .
996 %
997 .4od del %%1.4od
998 .4od echo y | del sxw-%%0.dir\Pictures\*.*
999 .4od rd sxw-%%0.dir\Pictures
1000 .4od echo y | del sxw-%%0.dir\META-INF\*.*
1001 .4od rd sxw-%%0.dir\META-INF
1002 .4od echo y | del sxw-%%0.dir\*.*
1003 .4od rd sxw-%%0.dir
1004 % (1) if 'echo y | del ...' does not work try 'del /Q ...' instead
1005 % (2) if rd fails to do the job, try replacing 'rd' with 'rd /s /q'
1006 %%% end openoffice %
1007 </oo>
1008 >>>
1009
1010
1011 t.m.trzeciak (Tolmek):
1012
1013 \begin{verbatim}
1014 'rd' won't remove non-empty directory. It should be:
1015 rd /s /q sxw-test-tex4ht.dir
1016 \end{verbatim}
1017
1018
1019
1020 Contributed by Hans-Peter Kohler:
1021
1022 \<win32 openofficeDELETE\><<<
1023 %
1024 % Activate the following non-concurent sub script, if the previous
1025 % one does not work. That is, interchange <oo> with <oo-alt>
1026 % and </oo> with </oo-alt>.
1027 %
1028 <oo-alt>
1029 %%% openoffice %
1030 .4os mkdir Pictures
1031 .4os move %%1.4os settings.xml
1032 .4oo move %%0.4oo content.xml
1033 %
1034 .4om mkdir %%1
1035 .4om move %%1.4om %%1\content.xml
1036 .4om copy settings.xml %%1\settings.xml
1037 %
1038 .4of mkdir META-INF
1039 .4of move %%1.4of META-INF\manifest.xml
1040 %
1041 .4ot move %%1.4ot meta.xml
1042 .4oy move %%1.4oy styles.xml
1043 .4og copy %%1 Pictures\%%1
1044 %-- sxw ---
1045 .4ox zip -m %%0.sxw Pictures
1046 .4ox zip -m %%0.sxw settings.xml
1047 .4ox zip -m %%0.sxw content.xml
1048 .4ox zip -m -r %%0.sxw %%0-m*
1049 .4ox zip -m -r %%0.sxw META-INF
1050 .4ox zip -m %%0.sxw meta.xml
1051 .4ox zip -m %%0.sxw styles.xml
1052 .4ox zip -m -r %%0.sxw Pictures/*
1053 %-- odt ---
1054 .4od zip -m %%0.odt Pictures
1055 .4od zip -m %%0.odt settings.xml
1056 .4od zip -m %%0.odt content.xml
1057 .4od zip -m -r %%0.odt %%0-m*
1058 .4od zip -m -r %%0.odt META-INF
1059 .4od zip -m %%0.odt meta.xml
1060 .4od zip -m %%0.odt styles.xml
1061 .4od zip -m -r %%0.odt Pictures/*
1062 %%% end openoffice %
1063 </oo-alt>
1064 >>>
1065
1066
1067
1068
1069
1070
1071
1072 Contributed: Andrzej Or\l{}owski-Skoczyk; Modified: Wilfried Hennings:
1073
1074 \<win32 openofficeDELETE\><<<
1075 <oo-alt-2>
1076 %%% openoffice %
1077 .4os mkdir sxw-%%0.dir
1078 .4os mkdir Pictures
1079 .4os move %%1.4os sxw-%%0.dir\settings.xml
1080 .4os move %%0.4oo sxw-%%0.dir\content.xml
1081 %
1082 .4om mkdir %%1
1083 .4om move %%1.4om %%1\content.xml
1084 .4om copy sxw-%%0.dir\settings.xml %%1\settings.xml
1085 .4om zip %%0.zip %%1\*
1086 .4om del /Q %%1\*
1087 .4om rmdir %%1
1088 %
1089 .4of mkdir META-INF
1090 .4of move %%1.4of META-INF\manifest.xml
1091 %
1092 .4ot move %%1.4ot sxw-%%0.dir\meta.xml
1093 .4oy move %%1.4oy sxw-%%0.dir\styles.xml
1094 .4og copy %%1 Pictures\%%1
1095 %-- sxw --
1096 .4ox move %%0.zip %%0.sxw
1097 .4ox zip %%0.sxw META-INF\*.*
1098 .4ox zip %%0.sxw Pictures
1099 .4ox zip -j %%0.sxw sxw-%%0.dir\*
1100 %
1101 .4ox del %%1.4ox
1102 .4ox del /Q Pictures\*.*
1103 .4ox rd Pictures
1104 .4ox del /Q META-INF\*.*
1105 .4ox rd META-INF
1106 .4ox del /Q sxw-%%0.dir\*.*
1107 .4ox rd /S sxw-%%0.dir
1108 .4ox del /Q *.tmp
1109 %-- odt --
1110 .4od move %%0.zip %%0.odt
1111 .4od zip %%0.odt META-INF\*.*
1112 .4od zip %%0.odt Pictures
1113 .4od zip -j %%0.odt sxw-%%0.dir\*
1114 %
1115 .4od del %%1.4od
1116 .4od del /Q Pictures\*.*
1117 .4od rd Pictures
1118 .4od del /Q META-INF\*.*
1119 .4od rd META-INF
1120 .4od del /Q sxw-%%0.dir\*.*
1121 .4od rd sxw-%%0.dir
1122 .4od del /Q *.tmp
1123 % if rd fails to do the job, try replacing 'rd' with 'rd /s /q'
1124 %%% end openoffice
1125 </oo-alt-2>
1126 >>>
1127
1128
1129 \<win32 openoffice-AndrzejDELETE\><<<
1130 <oo-alt-2>
1131 %%% openoffice %
1132 .4os mkdir sxw-%%0.dir
1133 .4os mkdir Pictures
1134 .4os move %%1.4os sxw-%%0.dir\settings.xml
1135 .4os move %%0.4oo sxw-%%0.dir\content.xml
1136 %
1137 .4om mkdir %%1
1138 .4om move %%1.4om %%1\content.xml
1139 .4om copy sxw-%%0.dir\settings.xml %%1\settings.xml
1140 %
1141 .4of mkdir META-INF
1142 .4of move %%1.4of META-INF\manifest.xml
1143 %
1144 .4ot move %%1.4ot sxw-%%0.dir\meta.xml
1145 .4oy move %%1.4oy sxw-%%0.dir\styles.xml
1146 .4og copy %%1 Pictures\%%1
1147 %-- sxw --
1148 .4ox zip %%0.sxw META-INF\*.*
1149 .4ox zip %%0.sxw Pictures
1150 .4ox zip -j %%0.sxw sxw-%%0.dir\*
1151 %
1152 .4ox del %%1.4ox
1153 .4ox del /Q Pictures\*.*
1154 .4ox rd Pictures
1155 .4ox del /Q META-INF\*.*
1156 .4ox rd META-INF
1157 .4ox del /Q sxw-%%0.dir\*.*
1158 .4ox rd /S sxw-%%0.dir
1159 %-- odt --
1160 .4od zip %%0.odt META-INF\*.*
1161 .4od zip %%0.odt Pictures
1162 .4od zip -j %%0.odt sxw-%%0.dir\*
1163 %
1164 .4od del %%1.4od
1165 .4od del /Q Pictures\*.*
1166 .4od rd Pictures
1167 .4od del /Q META-INF\*.*
1168 .4od rd META-INF
1169 .4od del /Q sxw-%%0.dir\*.*
1170 .4od rd sxw-%%0.dir
1171 % if rd fails to do the job, try replacing 'rd' with 'rd /s /q'
1172 %%% end openoffice
1173 </oo-alt-2>
1174 >>>
1175
1176
1177
1178
1179
1180 Contributed by Andreas Gobel:
1181
1182
1183 \<win32 openoffice\><<<
1184 %
1185 % Platforms (e.g., cygwin) with cp and mv utilities of
1186 % http://www.mingw.org/msys.shtml may use the following script.
1187 % It is capable of moving pictures from subdirectories required,
1188 % for instance, by \includegraphics{bitmaps/test.eps}
1189 %
1190 <oo-msys>
1191 %%% openoffice %
1192 .4os mkdir Pictures
1193 .4os mv %%1.4os settings.xml
1194 .4oo mv %%0.4oo content.xml
1195 %
1196 .4om mkdir %%1
1197 .4om mv %%1.4om %%1\content.xml
1198 .4om cp settings.xml %%1\settings.xml
1199 %
1200 .4of mkdir META-INF
1201 .4of mv %%1.4of META-INF\manifest.xml
1202 %
1203 .4ot mv %%1.4ot meta.xml
1204 .4oy mv %%1.4oy styles.xml
1205 .4og cp %%1 Pictures\
1206 %-- sxw --
1207 .4ox zip %%0.sxw Pictures
1208 .4ox zip %%0.sxw settings.xml
1209 .4ox zip %%0.sxw content.xml
1210 .4ox zip -r %%0.sxw %%0-m*
1211 .4ox zip -r %%0.sxw META-INF
1212 .4ox zip %%0.sxw meta.xml
1213 .4ox zip %%0.sxw styles.xml
1214 .4ox zip -r %%0.sxw Pictures/*
1215 %-- odt --
1216 .4od zip %%0.odt Pictures
1217 .4od zip %%0.odt settings.xml
1218 .4od zip %%0.odt content.xml
1219 .4od zip -r %%0.odt %%0-m*
1220 .4od zip -r %%0.odt META-INF
1221 .4od zip %%0.odt meta.xml
1222 .4od zip %%0.odt styles.xml
1223 .4od zip -r %%0.odt Pictures/*
1224 %
1225 %%% end openoffice %
1226 </oo-msys>
1227 >>>
1228
1229
1230
1231
1232
1233 %%%%%%%%%%%%%
1234 \subsection{xtpipes}
1235 %%%%%%%%%%%%%
1236
1237
1238
1239
1240
1241
1242
1243 \<xtpipes: my oo\><<<
1244 <ooxtpipes>
1245 .4oo mv %%0.4oo %%0.tmp
1246 .4oo java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
1247 .4om mv %%1.4om %%1.tmp
1248 .4om java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
1249 </ooxtpipes>
1250 >>>
1251
1252
1253 \<xtpipes: unix oo\><<<
1254 <ooxtpipes>
1255 .4oo mv %%0.4oo %%0.tmp
1256 .4oo java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
1257 .4om mv %%1.4om %%1.tmp
1258 .4om java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
1259 </ooxtpipes>
1260 >>>
1261
1262
1263 \<xtpipes: win32 oo\><<<
1264 <ooxtpipes>
1265 .4oo move %%0.4oo %%0.tmp
1266 .4oo java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
1267 .4om move %%1.4om %%1.tmp
1268 .4om java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
1269 </ooxtpipes>
1270 >>>
1271
1272
1273
1274
1275 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1276 \section{JavaHelp}
1277 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1278
1279 \<xtpipes: my java help\><<<
1280 <javahelp>
1281 .html mv %%1.html %%1.tmp
1282 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp
1283 .jhm echo "java -jar ${HOME}/javahelp.dir/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html"
1284 .jhm echo "--- Warning --- Beware of leftover %%1*.html files from other compilations"
1285 .jhm java -jar ${HOME}/javahelp.dir/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
1286 </javahelp>
1287 <javahelp-prog>
1288 .java rm -r -f %%0-java.dir
1289 .java mkdir %%0-java.dir
1290 .java cp *.java %%0-java.dir/.
1291 .java javac -classpath ${HOME}/javahelp.dir/jh2.0/javahelp/lib/jh.jar %%0-java.dir/%%1.java
1292 .java chdir %%0-java.dir; jar -cf %%1.jar *.class ; chdir ..
1293 .java mv %%0-java.dir/%%1.jar .
1294 .java rm -r -f %%0-java.dir
1295 .java zip -r %%1 %%0-doc %%1.jar
1296 </javahelp-prog>
1297 >>>
1298
1299
1300 \<xtpipes: my java help\><<<
1301 <javahelp1>
1302 .jhm java -jar ${HOME}/javahelp.dir/jh1.1.3/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
1303 </javahelp1>
1304 <javahelp1-prog>
1305 .java rm -r -f %%0-java.dir
1306 .java mkdir %%0-java.dir
1307 .java cp *.java %%0-java.dir/.
1308 .java javac -classpath ${HOME}/javahelp.dir/jh1.1.3/javahelp/lib/jh.jar %%0-java.dir/%%1.java
1309 .java chdir %%0-java.dir; jar -cf %%1.jar *.class ; chdir ..
1310 .java mv %%0-java.dir/%%1.jar .
1311 .java rm -r -f %%0-java.dir
1312 .java zip -r %%1 %%0-doc %%1.jar
1313 </javahelp1-prog>
1314 >>>
1315
1316
1317 \begin{verbatim}
1318 jhlatex jhprog "html,3,xml,xmldtd"
1319 javac -classpath ${HOME}/javahelp.dir/jh2.0/javahelp/lib/jh.jar jhprog.java
1320
1321 jh1latex jhprog "html,3,xml,xmldtd"
1322 javac -classpath ${HOME}/javahelp.dir/jh1.1.3/javahelp/lib/jh.jar jhprog.java
1323 \end{verbatim}
1324
1325
1326 \<xtpipes: unix java help\><<<
1327 <javahelp>
1328 .html mv %%1.html %%1.tmp
1329 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp
1330 .jhm echo "java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html"
1331 .jhm echo "--- Warning --- Beware of leftover %%1*.html files from other compilations"
1332 .jhm java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
1333 </javahelp>
1334 <javahelp1>
1335 .jhm java -jar ${HOME}/jh1.1.3/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
1336 </javahelp1>
1337 >>>
1338
1339
1340 \<xtpipes: win32 java help\><<<
1341 <javahelp>
1342 .html move %%1.html %%1.tmp
1343 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp
1344 .jhm java -jar c:\jh2.0\javahelp\bin\jhindexer.jar -db %%0-doc\%%1-jhs %%1*.html
1345 </javahelp>
1346 <javahelp1>
1347 .jhm java -jar c:\jh1.1.3\javahelp\bin\jhindexer.jar -db %%0-doc\%%1-jhs %%1*.html
1348 </javahelp1>
1349 >>>
1350
1351 %%%%%%%%%%%%%%%%%%
1352 \section{Access to OS}
1353 %%%%%%%%%%%%%%%%%%
1354
1355 \<unix t4ht commands\><<<
1356 % t4ht -d%%2 %
1357 Mmv %%1 %%2%%3
1358 Ccp %%1 %%2%%3
1359 % t4ht -d%%2 -m%%1 %
1360 Achmod %%1 %%2%%3
1361 % removed protection %
1362 S*
1363 >>>
1364
1365
1366 \<my t4ht commands\><<<
1367 % t4ht -d%%2 %
1368 Mmv %%1 %%2%%3
1369 Ccp %%1 %%2%%3
1370 % t4ht -e%%1 -d%%2 %
1371 Ecp empty.png %%1%%2
1372 % t4ht -d%%2 -m%%1 %
1373 Achmod %%1 %%2%%3
1374 % removed protection %
1375 S*
1376 >>>
1377
1378 \<dos t4ht commands\><<<
1379 % t4ht -d%%2 %
1380 Mmove %%1 %%2%%3
1381 Ccopy %%1 %%2%%3
1382 % removed protection %
1383 S*
1384 >>>
1385
1386 Note: the permission option `S' takes into account also trailing spaces.
1387
1388
1389 %%%%%%%%%%%%%%%%%%
1390 \section{Validation}
1391 %%%%%%%%%%%%%%%%%%
1392
1393
1394
1395 \<unix validate\><<<
1396 <validatehtml>
1397 .html xmllint --noout --valid --html %%1.html
1398 </validatehtml>
1399 <validate>
1400 .xml xmllint --noout --valid %%1.xml
1401 .html xmllint --noout --valid %%1.html
1402 .css mycssparser %%1.css
1403 </validate>
1404 >>>
1405
1406 % Xmake -f NSGMLS name=%%1 ext=%%2
1407
1408
1409 \<win32 validate\><<<
1410 <validatehtml>
1411 </validatehtml>
1412 <validate>
1413 .xml xmllint --noout --valid %%1.xml
1414 .html xmllint --noout --valid %%1.html
1415 .css mycssparser %%1.css
1416 </validate>
1417 >>>
1418
1419
1420 % Xif "%%2"=="html" nsgmls -wxml -wall -c catalog -s xml.dcl %%1.%%2
1421 % Xecho "*****************************************"
1422
1423
1424
1425
1426 \def\.#1.{\csname #1\endcsname}
1427
1428
1429 \<my validate\><<<
1430 <validatehtml>
1431 .html xmllint --noout --valid --html %%1.html
1432 .xml xmllint --noout --valid %%1.xml
1433 .hs java -cp @.HOME.texmf/tex4ht/bin/xv4ht.jar xv4ht %%1.hs @.HOME.texmf/tex4ht/base/solaris/xv4ht.cat
1434 .jhm java -cp @.HOME.texmf/tex4ht/bin/xv4ht.jar xv4ht %%1.jhm @.HOME.texmf/tex4ht/base/solaris/xv4ht.cat
1435 .css vcss %%1.css
1436 </validatehtml>
1437 <validate>
1438 .xml xmllint --noout --valid %%1.xml
1439 .html xmllint --noout --valid %%1.html
1440 .css vcss %%1.css
1441 .4om echo "rxp -V -s -e %%1.4om"
1442 .4om rxp -V -s -e %%1.4om
1443 .4oo xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.0-os.rng -noout %%0.4oo
1444 .4oo xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.1.rng -noout %%0.4oo
1445 .4oy xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.0-os.rng -noout %%0-styles.4oy
1446 .4oy xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.1.rng -noout %%0-styles.4oy
1447 .4om perl -pe 's/math://g' %%1.4om | perl -pe 's/xmlns:[^=]*="[^"]*"//g' | perl -pe 's/xlink:[^=]*="[^"]*"//g' > tmp.tmp ; xmllint --valid --noout --catalogs tmp.tmp
1448 </validate>
1449 Xmake -f \HOME texmf/base/NSGMLS name=%%1 ext=%%2 %%3
1450 >>>
1451
1452
1453
1454
1455
1456 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1457 \section{Emacspeak}
1458 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1459
1460 \<xtpipes: my emacspeak\><<<
1461 <emspk>
1462 .html mv %%1.html %%1.tmp
1463 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.html %%1.tmp
1464 .html xmllint --noout %%1.html
1465 </emspk>
1466 >>>
1467
1468
1469 \<xtpipes: unix emacspeak\><<<
1470 <emspk>
1471 .html mv %%1.html %%1.tmp
1472 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.html %%1.tmp
1473 </emspk>
1474 >>>
1475
1476
1477 \<xtpipes: win32 emacspeak\><<<
1478 <emspk>
1479 .html move %%1.html %%1.tmp
1480 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.html %%1.tmp
1481 </emspk>
1482 >>>
1483
1484
1485 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1486 \section{JSML}
1487 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1488
1489 \<xtpipes: my jsml\><<<
1490 <jsml>
1491 .jsml mv %%1.jsml %%1.tmp
1492 .jsml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp
1493 .jsml xmllint --noout %%1.jsml
1494 </jsml>
1495 >>>
1496
1497
1498 \<xtpipes: unix jsml\><<<
1499 <jsml>
1500 .jsml mv %%1.jsml %%1.tmp
1501 .jsml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp
1502 </jsml>
1503 >>>
1504
1505
1506 \<xtpipes: win32 jsml\><<<
1507 <jsml>
1508 .jsml move %%1.jsml %%1.tmp
1509 .jsml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp
1510 </jsml>
1511 >>>
1512
1513
1514
1515
1516
1517
1518
1519 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1520 \section{DocBook}
1521 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1522
1523 \<xtpipes: my docbk\><<<
1524 <docbk>
1525 .xml cp %%1.xml %%1.tmp
1526 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.xml %%1.tmp
1527 .xml xmllint --relaxng /home/4/gurari/dtd.dir/docbook.dir/docbook-5.0/rng/docbook.rng -noout -dropdtd -nonet %%0.xml
1528 </docbk>
1529 >>>
1530
1531
1532 \<xtpipes: unix docbk\><<<
1533 <docbk>
1534 .xml cp %%1.xml %%1.tmp
1535 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.xml %%1.tmp
1536 </docbk>
1537 >>>
1538
1539
1540 \<xtpipes: win32 docbk\><<<
1541 <docbk>
1542 .xml copy %%1.xml %%1.tmp
1543 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.xml %%1.tmp
1544 </docbk>
1545 >>>
1546
1547
1548
1549
1550
1551
1552
1553
1554 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1555 \section{XHTML}
1556 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1557
1558 \<xtpipes: my xhtml\><<<
1559 <xhtml>
1560 .html mv %%1.html %%1.tmp
1561 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp
1562 .html xmllint --noout %%1.html
1563 .xht mv %%1.xht %%1.tmp
1564 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp
1565 .xht xmllint --noout %%1.xht
1566 .xml mv %%1.xml %%1.tmp
1567 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp
1568 .xml xmllint --noout %%1.xml
1569 </xhtml>
1570 >>>
1571
1572
1573 \<xtpipes: unix xhtml\><<<
1574 <xhtml>
1575 .html mv %%1.html %%1.tmp
1576 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp
1577 .xht mv %%1.xht %%1.tmp
1578 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp
1579 .xml mv %%1.xml %%1.tmp
1580 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp
1581 </xhtml>
1582 >>>
1583
1584
1585 \<xtpipes: win32 xhtml\><<<
1586 <xhtml>
1587 .html move %%1.html %%1.tmp
1588 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp
1589 .xht move %%1.xht %%1.tmp
1590 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp
1591 .xml move %%1.xml %%1.tmp
1592 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp
1593 </xhtml>
1594 >>>
1595
1596
1597
1598 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1599 \section{XHTML + MathML}
1600 %%%%%%%%%%%%%%%%%%%%%%%%%%%
1601
1602 \<xtpipes: my xhtmml\><<<
1603 <xhtmml>
1604 .html mv %%1.html %%1.tmp
1605 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp
1606 .html xmllint --noout %%1.html
1607 .xht mv %%1.xht %%1.tmp
1608 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp
1609 .xht xmllint --noout %%1.xht
1610 .xml mv %%1.xml %%1.tmp
1611 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp
1612 .xml xmllint --noout %%1.xml
1613 </xhtmml>
1614 >>>
1615
1616
1617 \<xtpipes: unix xhtmml\><<<
1618 <xhtmml>
1619 .html mv %%1.html %%1.tmp
1620 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp
1621 .xht mv %%1.xht %%1.tmp
1622 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp
1623 .xml mv %%1.xml %%1.tmp
1624 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp
1625 </xhtmml>
1626 >>>
1627
1628
1629 \<xtpipes: win32 xhtmml\><<<
1630 <xhtmml>
1631 .html move %%1.html %%1.tmp
1632 .html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp
1633 .xht move %%1.xht %%1.tmp
1634 .xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp
1635 .xml move %%1.xml %%1.tmp
1636 .xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp
1637 </xhtmml>
1638 >>>
1639
1640
1641
1642
1643
1644 %%%%%%%%%%%%%%%%%%
1645 \section{Copyright}
1646 %%%%%%%%%%%%%%%%%%
1647
1648 \input{tex4ht-cpright}
1649
1650
1651 \<unix copyright\><<<
1652 % tex4ht.env-unix (@version), generated from @jobname.tex
1653 % Copyright 2009-2024 TeX Users Group
1654 % Copyright @CopyYear.1997. Eitan M. Gurari
1655 @<TeX4ht copyright@>>>>
1656
1657 \<private copyright\><<<
1658 % tex4ht.env (private) (@version), generated from @jobname.tex
1659 % (can be used as ~/.tex4ht)
1660 % Copyright 2009-2024 TeX Users Group
1661 % Copyright @CopyYear.1997. Eitan M. Gurari
1662 @<TeX4ht copyright@>>>>
1663
1664 \<win32 copyright\><<<
1665 % tex4ht.env-win32 (@version), generated from @jobname.tex
1666 % Copyright 2009-2024 TeX Users Group
1667 % Copyright @CopyYear.1997. Eitan M. Gurari
1668 @<TeX4ht copyright@>>>>
1669
1670 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1671
1672 % Let's no longer create tex4ht.env; it's too easy to mistakenly update
1673 % a system version with it. Post-Eitan, we haven't tried to keep it in
1674 % sync with the others.
1675 %\OutputCode\<tex4ht\>
1676
1677 \OutputCodE\<tex4ht.env-unix\>
1678 \OutputCodE\<tex4ht.env-win32\>
1679
1680 \end{document}
1681
1682 Date: Thu, 14 Nov 2013 13:08:12 -0800
1683 From: Richard Koch <[email protected]>
1684 To: Karl Berry <[email protected]>
1685
1686 [...]
1687
1688 The syntax of tex4ht.env is certainly unclear. Eitan says at the top
1689 that <tag> is ignored if it doesn't start a line, and then has a vague
1690 comment about defaults.
1691
1692 Looking at the <convert> section, everything here seems to call dvips to get a
1693 ps, and then output a graphic, either png or svg. The section has
1694
1695 G.png prefaced by a space
1696 G.svg prefaced by no space
1697 G. prefaced by no space
1698
1699 I guessed this meant that output of either a png or svg was acceptable, and
1700 the preferred method is G.
1701
1702 So as a test, I left everything alone except the existing "G." section, which I
1703 commented out. Then I added my own "G." section, containing the existing
1704 G.png code, because it calls ghostscript rather than convert.
1705
1706 Next there is a netpbm section. The Mac doesn't have netpbm, so this section
1707 seems to do no harm and I left it alone.
1708
1709 The final graphic section has tag <dvipng> and the programs inside seem to
1710 all start with a dvi, skip the ps step, and get either a png or a gif. The
1711 section has
1712
1713 G.png with no initial space
1714 G.gif with no initial space
1715 G. with no initial space
1716
1717 With little evidence, I took this to mean that conversion starting with a dvi
1718 file can end with either a png or a gif, but that the preferred method is in G.
1719 As before, I commented out the old "G." because it used convert, and replaced
1720 it with a "G." section containing the contents of G.png because it uses
1721 Gdvipng instead of convert.
1722
1723 Then I tried a sample file. It worked fine, even when I disabled
1724 convert. Earlier attempts to change tex4ht.env resulted in no png files
1725 and lots "missing picture" icons in the html, but this time all those
1726 png files were created and the html output looked fine on a browser.
1727
1728 This evidence suggests, but does not prove, that Ghostscript itself
1729 would be a satisfactory conversion method. The change seems to take more
1730 time, but perhaps this is startup time and large projects wouldn't see
1731 much difference.
1732
1733 END OF TODAY'S HOBBY SESSION
1734
1735 Dick