File: tex2page.1

package info (click to toggle)
drscheme 1%3A209-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 59,656 kB
  • ctags: 49,370
  • sloc: ansic: 254,796; cpp: 59,293; sh: 20,675; lisp: 14,368; makefile: 5,096; pascal: 3,724; perl: 2,814; asm: 1,070; java: 843; yacc: 755; lex: 258; sed: 93
file content (206 lines) | stat: -rw-r--r-- 6,148 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
.na
.nh
. 
.TH tex2page 1 "2003-08-16" 
. 
.SH NAME
. 
tex2page - converts TeX documents to Web pages 
. 
.SH SYNOPSIS
. 
    tex2page --help
    tex2page --version
    tex2page <pathname>
. 
.SH DESCRIPTION
. 
tex2page makes Web pages from LaTeX and plain-TeX
documents.  
. 
.PP
The command
.LP
    tex2page <pathname>
.LP
converts the TeX source file <pathname> to the HTML
file <jobname>.html, where <jobname> is the
basename of <pathname>.  Some auxiliary HTML files
and some image files may also be created.  The
argument <pathname> can be a full or relative pathname.
If the latter, it is reckoned relative to the current
directory.  The extension may be omitted if it is .tex. 
. 
.PP
In order to resolve cross-references, it may be
necessary to invoke tex2page a couple of times.
The log displayed on the console will inform you
if such is the case.  This log is also saved in the
file <jobname>.hlog.
. 
.PP
If tex2page is called without an argument, or if the
file named by the argument doesn't exist, tex2page
prints a brief help message and exits.  If you
repeatedly (i.e., >= 5 times) call it faultily despite
its helpful advice, tex2page will visibly lose
its patience.
. 
.PP
The complete documentation for tex2page is included in
the tex2page distribution, and may also be viewed on
the Web at 
.LP
    http://www.ccs.neu.edu/~dorai/tex2page/tex2page-doc.html
. 
.SH OPTIONS
. 
tex2page can be called with the following options
instead of an argument filename.
. 
.IP --help
Print help message and exit.
. 
.IP --version
Print version information and exit.
. 
.SH DIAGNOSTICS
. 
If tex2page encounters a fatal error in the document, 
it displays the prompt
.LP
    Type e to edit file at point of error; x to quit
    ?
.LP
If you now type e, a text editor is fired up, showing
the offending file -- which may or may not be the
main input file -- at the line containing the error.
The particular editor chosen and the arguments with
which it is called depends on the environment variables
TEXEDIT or EDITOR (see the ENVIRONMENT section).
. 
.PP
If you type x, the editor is not called, and tex2page
immediately exits.
. 
.SH ENVIRONMENT
. 
.IP TEXINPUTS
tex2page uses the same search path as TeX to search for
\einput and \eopenin files.  The default search path is
implementation-dependent but can be changed by setting
the environment variable TEXINPUTS to a list of
colon-separated directories.  (If you wish to merely
prepend your list to the default list, end your list
with a colon.)  Add two trailing forward slashes to any
directory in TEXINPUTS that you want to recursively
search all subdirectories of.
. 
.IP TIIPINPUTS
If the environment variable TIIPINPUTS is set, tex2page
will use the TIIPINPUTS value as its search path
instead of TEXINPUTS.  TIIPINPUTS  does not
support the double-slash mechanism of TEXINPUTS.
. 
.IP TEXEDIT
If the environment variable TEXEDIT is set, tex2page
uses its string value as the editor call to use when it
encounters a fatal error (see the DIAGNOSTICS section).
A possible value for TEXEDIT is ``vim +%d %s''.  This
calls the editor vim with %s replaced by the
offending file's name, and %d replaced by the number of
the offending line.
. 
.IP EDITOR
If TEXEDIT is not set, the value of the environment
variable EDITOR is chosen as the editor.  Note that
unlike TEXEDIT which contains the editor call as a
template, EDITOR contains simply the editor's name.
If EDITOR is also not set, vi is chosen as the
editor.  
.IP
The editor is called with the arguments ` +<n>
<f>', where <f> is the offending file's name and
<n> is the offending line number.  It is not
possible to alter the way the file and line
arguments are supplied, but fortunately this style
is accepted by vi, emacs, and all their clones.  If
you use an editor that requires a different
argument style, use TEXEDIT.
. 
.SH FILES
. 
.IP "<jobname>.hdir, .tex2page.hdir, ~/.tex2page.hdir"
By default, tex2page generates its output HTML
files in the current directory.  You can specify a
different directory by naming it in one of the
following files:
.IP
    <jobname>.hdir in the current directory, or
    .tex2page.hdir in the current directory, or
    .tex2page.hdir in your home directory;
.IP
where <jobname> is the basename of the input
document.  The first of these three files that
exists overrides the rest.
.IP
The name in the .hdir file can be, or contain, the
TeX control-sequence \ejobname, which expands to
<jobname>, the basename of the input document.
. 
.IP <jobname>.t2p 
Before processing a TeX source file whose basename
is <jobname>, tex2page will automatically load the
file <jobname>.t2p, if it exists.  <jobname>.t2p is
a good place to put macros that are specific to the
HTML version of the document.
. 
.IP "tex2page.tex, tex2page.sty"
tex2page recognizes some commands that are not
supplied in the LaTeX or plain-TeX formats --
typically these are commands that add value to the
HTML output.  In order to keep an input document
that uses these extra commands processable by TeX,
working TeX definitions are provided in the TeX
macro file tex2page.tex and the LaTeX macro package
file tex2page.sty.  Copy these macro files from the
tex2page distribution to a directory in your
TEXINPUTS. 
.IP
Plain-TeX documents can use
.IP
    \einput tex2page
.IP
while LaTeX documents can use
.IP
    \eusepackage{tex2page}
. 
.SH SYSTEM REQUIREMENTS
. 
tex2page runs on Scheme or Common Lisp.  It may also
make use of the following programs: BibTeX, MakeIndex,
Ghostscript, Dvips, MetaPost, and the NetPBM library.
. 
.PP
Out of the box, tex2page runs in MzScheme, but
the distribution includes configuration information
to allow tex2page to run on a variety of Scheme 
and Common Lisp implementations.  See file INSTALL.
. 
.SH BUGS
. 
Email to dorai @ ccs.neu.edu.
. 
.SH SEE ALSO
. 
tex(1), latex(1), mzscheme(1), bibtex(1),
makeindex(1L), mpost(1).
. 
.SH COPYRIGHT
. 
Copyright 1997-2003 by Dorai Sitaram.
.PP
Permission to distribute and use this work for any
purpose is hereby granted provided this copyright
notice is included in the copy.  This work is provided
as is, with no warranty of any kind.