File: tex4ht.man

package info (click to toggle)
tex4ht 20011214-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,272 kB
  • ctags: 992
  • sloc: xml: 17,548; ansic: 9,389; makefile: 129; sh: 43; sed: 8
file content (285 lines) | stat: -rw-r--r-- 7,698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
.\" Written by Andrew Gray <ajpg@debian.org>, 12 March 1999
.\" Revised Tue, 22 Jun 1999 09:53:47 +0100
.\" Revised Sun, 16 Jul 2000 14:08:07 +0100
.TH TEX4HT 1 "16 July 2000"
.SH NAME
tex4ht \- for authoring hypertext with tex/latex
.SH SYNOPSIS
.B tex4ht
.I file[.dvi]
[
.BI \-t tfm-font-dir
] [
.BI \-i htf-font-dir
] [
.BI \-e env-file
] [
.BI \-d out-dir
] [
.BI \-g bitmap-file-ext
] [
.BR \-h ( e|g|s )
] [
.BR \-P ( * | \fIfilter\fP )
]
.LP
.B t4ht
.I file[.lg]
[
.BI \-d out-dir
] [
.BI \-m mode
] [
.BI \-e env-file
] [
.BI \-h htf-conf-file
] [
.B \-p
] [
.B \-i
] [
.BR \-S ( * | \fIfilter\fP )
]
.LP
.B ht
tex | latex
.IR file " [ " "t4ht options" " ]"
.LP
.BR httex | htlatex | httexi
.I file
.RI "[ " "options1" " ]"
.RI "[ " "options2" " ]"
.RI "[ " "options3" " ]"
.SH "DESCRIPTION"
This manual page documents briefly the
.BR tex4ht " and " t4ht
commands, and related scripts,
.BR ht ", " httex ", " htlatex " and " httexi .
This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page.  Instead, it has documentation
in HTML (hypertext) format; see below.  Please refer to the HTML documentation
for more details or up to date information.
.LP
.B tex4ht
is a highly configurable TeX-based authoring system for producing hypertext.
It interacts with TeX-based applications through style files and
postprocessors, leaving the processing of the source files to the native TeX
compiler. Consequently, tex4ht can handle the features of TeX-based systems in
general, and of LaTeX in particular.  
.PP
The auxiliary program, 
.BR t4ht ,
is used to generate images as required by the HTML file, for anything that
cannot be rendered using simple HTML text and coding.  (The method and
programs used for generating the images are configurable.)  In addition, it
puts together the CSS (Cascade Style Sheet) files, and issues system calls for
services requested in the source (La)TeX files.
.PP
The shell scripts 
.BR ht ", " httex ", " htlatex " and " httexi
are wrappers round the other programs, also running 
.BR tex (1)
or
.BR latex (1)
as required.
.SH OPTIONS
The following is only a very brief summary of the main program options.
For more details of the command-line and configuration options, see the HTML
manual pages (see below).
.SS General directory/file search options
Several of the options detailed below relate to setting directory paths to
find particular kinds of files.  Note the following when specifying
directories for the programs:
.IP 1.
There must be no space between the option letter (eg,
.BR \-t )
and the directory/file name.
.IP 2.
The directory name must end with a trailing slash
.RB ( / ,
or
.B /!
\- see below).
.IP 3.
You can add an exclamation mark
.RB ( ! )
to the end of the directory name, to enable sub-directory searching.
.IP 4.
Only one directory can be specified at a time.  To search multiple
directories, either use the sub-directory searching facility or repeat the
option.  (The directory search options can be repeated as often as required.)
.LP
As well as command-line options, most of these options can (and normally
should) be set in the configuration file,
.IR tex4ht.env .
The format within this file is similar, but without using a hyphen before the
option letter.  See the HTML manual pages for more details on the
configuration options available.
.LP
In addition, if tex4ht has been compiled with support for the
.B kpathsea
search library, some options (eg, directories for font files) can be set in
the global configuration file used by all the TeX-related programs that make
use of the library.
.SS Options for tex4ht
.TP
.BI \-t tfm-font-dir
Set directory for TFM font files to
.IR tfm-font-dir .
.TP
.BI \-i htf-font-dir
Set directory for HTF font files (used by tex4ht) to
.IR htf-font-dir .
.TP
.BI \-e env-file
Specify address of the tex4ht configuration file
.IR tex4ht.env .
.TP
.BI \-d out-dir
Set the directory for outputting files 
.RI ( .html ", " .css )
to
.IR out-dir .
Note that tex4ht-specific files 
.RI ( .idv ", " .lg )
will still be output to the current directory.
.TP
.BI \-g bitmap-file-ext
Set the extension of bitmap images to
.I bitmap-file-ext
instead of the default
.IR .gif .
Note that the extension should begin with a dot
.RB ( . ).
Note also that this option only affects images generated automatically for
symbol fonts, and not images generated with the 
.B \(rsPicture
macro of tex4ht.
.TP
.B \-he
Trace errors and warnings (produces verbose output).
.TP
.B \-hg
Trace groups
.TP
.B \-hs
Trace 
.BR \(rsspecial s.
.TP
.BI \-P filter
Restrict system calls requested in the source (La)TeX files to utilities whose
names have
.I filter
as a prefix.  Use a single asterisk as
.I filter
to allow any system calls.
.SS Options for t4ht
.TP
.BI \-d out-dir
Output files to directory
.IR out-dir ,
instead of to the current directory.
.TP
.BI \-m mode
Create files with access mode as indicated by
.IR mode .
The 
.I mode
should be a numeric mode, as used by the
.BR chmod (1)
command.
.TP
.BI \-e env-file
Specify address of the tex4ht configuration file
.IR tex4ht.env .
.TP
.BI \-h htf-conf-file
Set the font configuration file to
.IR htf-conf-file .
The default is
.IR htfcss.env .
.TP
.B \-p
Do not convert pictures (ie, images generated with macros like
.BR \(rsPicture ,
not characters in symbol fonts that will be automatically converted into a
graphic file).
.TP
.B \-i
Generate verbose debugging output.
.TP
.BI \-S filter
Restrict system calls requested in the source (La)TeX files to utilities whose
names have
.I filter
as a prefix.  Use a single asterisk as
.I filter
to allow any system calls.
.SS Options for ht
.B ht
is a small shell script that is used to run the tex4ht programs.  It has two
compulsory arguments, as follows:
.IP 1.
The TeX command name to run, usually either
.B tex
or
.BR latex .
.IP 2.
The input file name, without any extension.
.PP
It may take any additional options, which will be passed on to the call to
.BR t4ht .
.SS Options for httex, htlatex and httexi
.BR httex ", " htlatex " and " httexi
are shell scripts that can be used for files that do not explicitly load the
configuration files.  Each script takes one mandatory file argument, followed
by up to three optional arguments, as follows:
.IP 1.
Options for the tex4ht macros (used with tex or latex).
.IP 2.
Directory for tex4ht font files (*.htf).
.IP 3.
Options for the t4ht program.
.LP
See the HTML documentation for more details and examples.
.SH FILES
.TP
.I @TEX4HTDIR@/tex4ht.env
Configuration file for tex4ht.
.TP
.I @TEXMFCNF@
Global configuration file for all TeX-related programs using the kpathsea path
searching library.
.TP
.I @HTFDIR@/*.htf
Hypertext font files used by tex4ht.
.TP
.IR @TEXDIR@/tex4ht.sty " and " @TEXEXTRADIR@/*.4ht
Macro files used by tex or latex when using tex4ht to generate HTML output.
.TP
.I @DOCDIR@/mn.html
top-level HTML file for the manual
.SH "SEE ALSO"
The use of the tex4ht macros is documented in the HTML manuals (see file name
above).
.PP
.BR tex (1),
.BR latex (1),
.BR amstex (1),
.BR kpsewhich (1)
.SH BUGS
This manual page is not complete.  Users should refer to the HTML manuals that
form part of the system for fuller details of the configuration options and
for details of the use of the tex4ht style files.
.B tex4ht
is still a work in progress, so bug reports
and requests are very welcome:  contact Eitan Gurari
<gurari@cis.ohio-state.edu>.
.SH AUTHOR
This manual page was written by Andrew Gray <ajpg@debian.org>,
for the Debian GNU/Linux system (but may be used by others).
.PP
The 
.B tex4ht
programs and macro files were written by Eitan Gurari
<gurari@cis.ohio-state.edu>.