1 |
1026 |
ivang |
\input texinfo @c -*-texinfo-*-
|
2 |
|
|
|
3 |
|
|
@comment %**start of header
|
4 |
|
|
@setfilename texi2www
|
5 |
|
|
@settitle texi2www user's guide
|
6 |
|
|
@setcontentsaftertitlepage
|
7 |
|
|
@comment %**end of header
|
8 |
|
|
|
9 |
|
|
@finalout
|
10 |
|
|
|
11 |
|
|
@titlepage
|
12 |
|
|
@title texi2www
|
13 |
|
|
@author Tim Singletary
|
14 |
|
|
@end titlepage
|
15 |
|
|
|
16 |
|
|
@iftex
|
17 |
|
|
@everyfooting @| Jan 2 1996
|
18 |
|
|
@end iftex
|
19 |
|
|
|
20 |
|
|
@comment ******************************************************** TOP
|
21 |
|
|
@node Top,,,(dir)
|
22 |
|
|
@ifhtml
|
23 |
|
|
This document describes @var{texi2www}, a utility for converting
|
24 |
|
|
texinfo to HTML.
|
25 |
|
|
|
26 |
|
|
This document provides a pretty good example of @var{texi2www}'s texinfo
|
27 |
|
|
to HTML conversion. @href{Click here,,,texi2wwwdoc.texi.txt} to view
|
28 |
|
|
the texinfo source to this document.
|
29 |
|
|
@end ifhtml
|
30 |
|
|
|
31 |
|
|
@menu
|
32 |
|
|
* Overview:: What is texi2www? texinfo? HTML? mosaic? WWW?
|
33 |
|
|
* Real life:: A real-life example using texi2www
|
34 |
|
|
* Invocation:: Command line args, etc.
|
35 |
|
|
* Extensions:: @@ commands not in GNU texinfo
|
36 |
|
|
* Known Bugs:: Oops!
|
37 |
|
|
* Demo:: What various things look like
|
38 |
|
|
|
39 |
|
|
* texi2dvi::
|
40 |
|
|
|
41 |
|
|
* Index::
|
42 |
|
|
@end menu
|
43 |
|
|
|
44 |
|
|
@ifhtml
|
45 |
|
|
@today{}.
|
46 |
|
|
@end ifhtml
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
@comment **************************************************** CHAPTER
|
50 |
|
|
@node Overview
|
51 |
|
|
@unnumbered Overview
|
52 |
|
|
@cindex What is HTML
|
53 |
|
|
@cindex What is texinfo
|
54 |
|
|
@cindex What is mosaic
|
55 |
|
|
@cindex texi2html
|
56 |
|
|
@cindex info2html
|
57 |
|
|
@cindex Other texinfo to HTML converters
|
58 |
|
|
|
59 |
|
|
@var{Texi2www} converts texinfo to HTML:
|
60 |
|
|
|
61 |
|
|
@table @asis
|
62 |
|
|
@item
|
63 |
|
|
@table @asis
|
64 |
|
|
@item texinfo
|
65 |
|
|
A documentation system that uses a single source file to produce both
|
66 |
|
|
on-line documentation and printed output. For details see
|
67 |
|
|
@ref{Top,the Texinfo User's Guide,Overview,texinfo,The Texinfo User's Guide}.
|
68 |
|
|
@item HTML
|
69 |
|
|
@href{HyperText Markup Language,,,
|
70 |
|
|
http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html}
|
71 |
|
|
used in World Wide Web documents. Programs like mosaic
|
72 |
|
|
understand HTML.
|
73 |
|
|
@end table
|
74 |
|
|
@end table
|
75 |
|
|
|
76 |
|
|
Texinfo's on-line documentation viewers (emacs, info, xinfo, etc.) are
|
77 |
|
|
quite limited when compared to mosaic. Mosaic supports multiple fonts,
|
78 |
|
|
variable width fonts, embedded images, and hypertext links to anywhere
|
79 |
|
|
(not just to other texinfo documents). In addition, mosaic keeps a
|
80 |
|
|
history of nodes visited and can easily go back to previously visited
|
81 |
|
|
nodes.
|
82 |
|
|
|
83 |
|
|
@var{Texinfo} converts @var{texinfo} directly to @var{HTML} without
|
84 |
|
|
going through an intermediate @var{info} conversion.
|
85 |
|
|
|
86 |
|
|
Other @var{texinfo} to @var{HTML} converters include:
|
87 |
|
|
|
88 |
|
|
@table @asis
|
89 |
|
|
@item
|
90 |
|
|
@href{@var{http://wwwcn.cern.ch/dci/texi2html/},,,
|
91 |
|
|
http://wwwcn.cern.ch/dci/texi2html/}; and
|
92 |
|
|
@item
|
93 |
|
|
@href{@var{http://www.ericsson.nl/info2www/info2www.html},,,
|
94 |
|
|
http://www.ericsson.nl/info2www/info2www.html}
|
95 |
|
|
@end table
|
96 |
|
|
|
97 |
|
|
Texi2html is very good, but is different from texi2www in several respects,
|
98 |
|
|
including:
|
99 |
|
|
|
100 |
|
|
@itemize
|
101 |
|
|
@item Texi2www processes @@ifinfo blocks, whereas texi2html processes
|
102 |
|
|
@@iftex blocks.
|
103 |
|
|
@item Texi2www always generates menus, whereas menu generation is
|
104 |
|
|
optional in texi2html.
|
105 |
|
|
@item Texi2www generates a seperate document for each node, wherease
|
106 |
|
|
texi2html can combine several nodes into one document.
|
107 |
|
|
@item Texi2www adds @href{@code{@@ifhtml} blocks,ifhtml blocks},
|
108 |
|
|
@href{@code{@@html} blocks,html blocks}, and @href{@code{@@href@{@}},
|
109 |
|
|
href}. Texi2html has @code{@@ifhtml} blocks, but they work like
|
110 |
|
|
texi2www's @code{@@html} blocks.
|
111 |
|
|
@item Texi2www uses icons for the prev, up, and next links; texi2html
|
112 |
|
|
doesn't.
|
113 |
|
|
@end itemize
|
114 |
|
|
|
115 |
|
|
Texi2www is written in perl and may be used and distributed under the
|
116 |
|
|
terms of the @href{GNU General Public License,Copying,emacs}.
|
117 |
|
|
|
118 |
|
|
Texi2www was written by
|
119 |
|
|
@href{Tim Singletary,,,
|
120 |
|
|
http://sunland.gsfc.nasa.gov/personnel/aam/singletary.html}
|
121 |
|
|
(@cite{tsingle@@sunland.gsfc.nasa.gov}) and is available at
|
122 |
|
|
@href{@var{ftp://sunland.gsfc.nasa.gov/pub/tarfiles/texi2www.tgz},,,
|
123 |
|
|
ftp://sunland.gsfc.nasa.gov/pub/tarfiles/texi2www.tgz}.
|
124 |
|
|
|
125 |
|
|
@comment **************************************************** CHAPTER
|
126 |
|
|
@node Real life
|
127 |
|
|
@chapter A Real Life Example
|
128 |
|
|
|
129 |
|
|
Here's how I used texi2www to set up a
|
130 |
|
|
@href{directory of texinfo documents,,,
|
131 |
|
|
http://sunland.gsfc.nasa.gov/info/dir.html}.
|
132 |
|
|
This discussion is the minimum I had to do to set up
|
133 |
|
|
@href{texinfo,,,http://sunland.gsfc.nasa.gov/info/texinfo/Top.html} and
|
134 |
|
|
texi2www.
|
135 |
|
|
First, I created the directory ``@var{$HTDOCS/info}'' (@var{$HTDOCS} is
|
136 |
|
|
the root directory of my web server).
|
137 |
|
|
|
138 |
|
|
Then, I copied arrow icons ``@var{missing-arrow.gif}'',
|
139 |
|
|
``@var{next-arrow.gif}'', ``@var{prev-arrow.gif}'', and
|
140 |
|
|
``@var{up-arrow.gif}'' into ``@var{$HTDOCS/info}''.
|
141 |
|
|
(I obtained my icons from
|
142 |
|
|
@cite{Rutgers University Network Services} at
|
143 |
|
|
@href{http://ns2.rutgers.edu/doc-images/buttons,,,
|
144 |
|
|
http://ns2.rutgers.edu/doc-images/buttons}.)
|
145 |
|
|
|
146 |
|
|
Next, I created subdirectories ``@var{$HTDOCS/info/texinfo}'' and
|
147 |
|
|
``@var{$HTDOCS/info/texi2wwwdoc}''.
|
148 |
|
|
(I determined the names of these subdirectories by examining the
|
149 |
|
|
``@var{@@setfilename}'' line in the texinfo files.
|
150 |
|
|
files; @var{texi2wwwdoc.texi} contains the line
|
151 |
|
|
``@var{@@setfilename texi2wwwdoc.info}'' and @var{texinfo.texi} contains
|
152 |
|
|
``@var{@@setfilename texinfo.info}''.
|
153 |
|
|
|
154 |
|
|
Next, I copied the texinfo files into the appropriate directories. This
|
155 |
|
|
step isn't strictly required, but I think its a good idea since it makes
|
156 |
|
|
it simple to keep track of which texinfo files generated which set of
|
157 |
|
|
html documents.
|
158 |
|
|
|
159 |
|
|
Then I generated the html documents. I used the commands:
|
160 |
|
|
@example
|
161 |
|
|
> cd $HTDOCS/info/texinfo
|
162 |
|
|
> texi2www texinfo.texi
|
163 |
|
|
Normal completion.
|
164 |
|
|
> cd ../texi2wwwdoc
|
165 |
|
|
> texi2www texi2wwwdoc.texi
|
166 |
|
|
Normal completion.
|
167 |
|
|
@end example
|
168 |
|
|
Examing these directories shows that a bunch of @var{.html} files got
|
169 |
|
|
generated, including, in each directory, ``@var{Top.html}''.
|
170 |
|
|
|
171 |
|
|
Finally, I created a table of contents file
|
172 |
|
|
``@var{$HTDOCS/info/dir.html}''. The first version of that file looked
|
173 |
|
|
like:
|
174 |
|
|
|
175 |
|
|
@example
|
176 |
|
|
<HTML>
|
177 |
|
|
<HEAD><TITLE>info directory table of contents</TITLE></HEAD>
|
178 |
|
|
<BODY>
|
179 |
|
|
<MENU>
|
180 |
|
|
<LI><A HREF="texinfo/Top.html">texinfo</A>
|
181 |
|
|
GNU texinfo version 3.1
|
182 |
|
|
<LI><A HREF="texi2wwwdoc/Top.html">texi2www</A>
|
183 |
|
|
Converts texinfo to html
|
184 |
|
|
</MENU>
|
185 |
|
|
</BODY></HTML>
|
186 |
|
|
@end example
|
187 |
|
|
|
188 |
|
|
@comment **************************************************** CHAPTER
|
189 |
|
|
@node Invocation
|
190 |
|
|
@chapter Invocation
|
191 |
|
|
@cindex Command line options
|
192 |
|
|
@cindex Obtaining gif files
|
193 |
|
|
|
194 |
|
|
@unnumberedsec Synopsys
|
195 |
|
|
|
196 |
|
|
@code{texi2www [options] texinfo-file}
|
197 |
|
|
|
198 |
|
|
@unnumberedsec Options
|
199 |
|
|
@table @asis
|
200 |
|
|
|
201 |
|
|
@item @code{-dir} @var{path}
|
202 |
|
|
Specifies the path to the directory where the
|
203 |
|
|
generated files get placed. If not specified, the current
|
204 |
|
|
directory is assumed.
|
205 |
|
|
|
206 |
|
|
@item @code{-footer} @var{file}
|
207 |
|
|
Specifies a file whose contents get
|
208 |
|
|
appended at the bottom of each generated HTML file. Typically
|
209 |
|
|
looks something like:
|
210 |
|
|
|
211 |
|
|
@example
|
212 |
|
|
<HR>
|
213 |
|
|
<P>Back to our <A HREF="../../homepage.html">home page</A>.</P>
|
214 |
|
|
@end example
|
215 |
|
|
|
216 |
|
|
@item @code{-icons} @var{path}
|
217 |
|
|
Specifies the path (relative to the directory where the generated
|
218 |
|
|
files get placed) to the arrow files. If not specified, @file{..}
|
219 |
|
|
is assumed. The names of the arrow
|
220 |
|
|
files are @file{up_arrow.gif}, @file{left_arrow.gif},
|
221 |
|
|
@file{right_arrow.gif}, and @file{missing_arrow.gif}
|
222 |
|
|
|
223 |
|
|
@end table
|
224 |
|
|
|
225 |
|
|
@unnumberedsec Directory structure
|
226 |
|
|
|
227 |
|
|
Texi2www will generate a set of HTML files from each texinfo document;
|
228 |
|
|
each set of HTML files must go in a seperate directory (why? one reason
|
229 |
|
|
is because each set includes a file named @code{Top.html}!).
|
230 |
|
|
|
231 |
|
|
These directories should be subdirectories of the same base directory.
|
232 |
|
|
Assume the base directory is @code{$TEXIBASE}. Then HTML files for
|
233 |
|
|
emacs go in directory @code{$TEXIBASE/emacs}, HTML files for texinfo go
|
234 |
|
|
in @code{$TEXIBASE/texinfo}, etc, where the name of the subdirectory is
|
235 |
|
|
the same as the name of the info file (so cross references between
|
236 |
|
|
documents will work).
|
237 |
|
|
|
238 |
|
|
In addition to the subdirectories of HTML files, @code{$TEXIBASE}
|
239 |
|
|
contains a file @code{dir.html} and the four arrow gif files
|
240 |
|
|
@code{up_arrow.gif}, @code{left_arrow.gif}, @code{right_arrow.gif}, and
|
241 |
|
|
@code{missing_arrow.gif}.
|
242 |
|
|
|
243 |
|
|
@code{$TEXIBASE/dir.html} is typically just a menu of links to the
|
244 |
|
|
subdirectories and can be as simple as
|
245 |
|
|
|
246 |
|
|
@example
|
247 |
|
|
<HTML><HEAD><TITLE>dir</TITLE></HEAD>
|
248 |
|
|
<BODY>
|
249 |
|
|
<MENU>
|
250 |
|
|
<LI><A HREF="emacs/Top.html">emacs</A>
|
251 |
|
|
<LI><A HREF="texinfo/Top.html">texinfo</A>
|
252 |
|
|
</MENU>
|
253 |
|
|
</BODY></HTML>
|
254 |
|
|
@end example
|
255 |
|
|
|
256 |
|
|
(@code{$TEXIBASE/dir.html} is not generated via texi2www and must be
|
257 |
|
|
created by hand).
|
258 |
|
|
|
259 |
|
|
|
260 |
|
|
|
261 |
|
|
@comment **************************************************** CHAPTER
|
262 |
|
|
@node Extensions
|
263 |
|
|
@chapter Extensions
|
264 |
|
|
@ifhtml
|
265 |
|
|
Texi2www understands the following extensions to pure texinfo:
|
266 |
|
|
@end ifhtml
|
267 |
|
|
@menu
|
268 |
|
|
* ifhtml blocks:: @code{@@ifhtml} and @code{@@end ifhtml}
|
269 |
|
|
* html blocks:: @code{@@html} and @code{@@end html}
|
270 |
|
|
* href:: @code{@@href@{text,node,file,URL@}}
|
271 |
|
|
* gif:: @code{@@gif@{gif-file@}}
|
272 |
|
|
@end menu
|
273 |
|
|
|
274 |
|
|
@comment ******************************************************* NODE
|
275 |
|
|
@comment Top -> Extensions ->
|
276 |
|
|
@node ifhtml blocks
|
277 |
|
|
@section @code{@@ifhtml} and @code{@@end ifhtml}
|
278 |
|
|
@cindex Conditional HTML blocks
|
279 |
|
|
|
280 |
|
|
@var{@@ifhtml} blocks are similar to @var{@@ifinfo} and @var{@@iftex}
|
281 |
|
|
blocks. Lines between @var{@@ifhtml} and @var{@@end ifhtml} get
|
282 |
|
|
processed when generating the hypertext manual but get ignored when
|
283 |
|
|
generating the printed manual.
|
284 |
|
|
|
285 |
|
|
@var{texinfo.tex} (in @var{/usr/local/lib/tex/macros} on my machine)
|
286 |
|
|
needs to be modified in order to use @@ifhtml. I inserted
|
287 |
|
|
@example
|
288 |
|
|
\def\ifhtml@{\doignore@{ifhtml@}@}
|
289 |
|
|
@end example
|
290 |
|
|
after the @code{\def\ifinfo@{\doignore@{ifinfo@}@}} line (line
|
291 |
|
|
596 ???).
|
292 |
|
|
|
293 |
|
|
In most cases, it is better to use @var{@@ifinfo} than @var{@@ifhtml}.
|
294 |
|
|
|
295 |
|
|
@comment ******************************************************* NODE
|
296 |
|
|
@node html blocks
|
297 |
|
|
@section @code{@@html} and @code{@@end html}
|
298 |
|
|
@cindex Pure HTML blocks
|
299 |
|
|
|
300 |
|
|
@var{@@html} blocks are similar to @var{@@tex} blocks; @var{@@html}
|
301 |
|
|
blocks only get processed when generating HTML and lines within
|
302 |
|
|
@var{@@html} blocks may contain HTML commands.
|
303 |
|
|
|
304 |
|
|
@ifhtml
|
305 |
|
|
For example,
|
306 |
|
|
|
307 |
|
|
@example
|
308 |
|
|
@@html
|
309 |
|
|
produces <EM><EM></EM> in HTML is like @@var@{@@@@var@} in texinfo.
|
310 |
|
|
@@end html
|
311 |
|
|
@end example
|
312 |
|
|
|
313 |
|
|
@html
|
314 |
|
|
produces <EM><EM></EM> in HTML is like @var{@@var} in texinfo.
|
315 |
|
|
@end html
|
316 |
|
|
@end ifhtml
|
317 |
|
|
|
318 |
|
|
@var{texinfo.tex} (in @var{/usr/local/lib/tex/macros} on my machine)
|
319 |
|
|
needs to be modified in order to use @@ifhtml. I inserted
|
320 |
|
|
@example
|
321 |
|
|
\def\html@{\doignore@{html@}@}
|
322 |
|
|
@end example
|
323 |
|
|
after the @code{\def\ifinfo@{\doignore@{ifinfo@}@}} line (line
|
324 |
|
|
596 ???).
|
325 |
|
|
|
326 |
|
|
@comment ******************************************************* NODE
|
327 |
|
|
@node href
|
328 |
|
|
@section @code{@@href@{text,node,file,URL@}}
|
329 |
|
|
|
330 |
|
|
Use @code{@@href@{text,node,file,URL@}} when you want a hypertext link in an
|
331 |
|
|
HTML document and plain text everywhere else.
|
332 |
|
|
|
333 |
|
|
@var{Text} is the text you want displayed in the document.
|
334 |
|
|
@var{Node},@var{file}, and @var{URL} indicate what @var{text} is linked to.
|
335 |
|
|
@var{Node} and @var{file} are a normal texinfo style node reference;
|
336 |
|
|
@var{URL} is a HTML URL.
|
337 |
|
|
One of @var{node} or @var{URL} must be specified (if both are specified,
|
338 |
|
|
@var{URL} is used).
|
339 |
|
|
|
340 |
|
|
The @href{texinfo source used to create this
|
341 |
|
|
document,,,texi2wwwdoc.texi.txt} contains numerous examples of how
|
342 |
|
|
@@href might be used.
|
343 |
|
|
|
344 |
|
|
@var{texinfo.tex} (in @var{/usr/local/lib/tex/macros} on my machine)
|
345 |
|
|
needs to be modified in order to use @@href@{@}. All I did was insert
|
346 |
|
|
@example
|
347 |
|
|
\def\href#1{\hrefX[#1,,,]}
|
348 |
|
|
\def\hrefX[#1,#2,#3,#4]{#1}
|
349 |
|
|
@end example
|
350 |
|
|
before the @code{\def\pxref} line (line 3497 ???).
|
351 |
|
|
|
352 |
|
|
@comment ******************************************************* NODE
|
353 |
|
|
@node gif
|
354 |
|
|
@section @code{@@gif@{@var{pict.gif}@}}
|
355 |
|
|
|
356 |
|
|
This extension provides a method for inserting a gif file in both the
|
357 |
|
|
html and printed document. For example, here are my arrow icons:
|
358 |
|
|
@*
|
359 |
|
|
prev: @gif{prev-arrow.gif},
|
360 |
|
|
up: @gif{up-arrow.gif},
|
361 |
|
|
and next: @gif{next-arrow.gif}
|
362 |
|
|
|
363 |
|
|
@subsection @code{@@gif@{@}} and @var{texi2www}
|
364 |
|
|
|
365 |
|
|
@var{texi2www} copies @var{pict.gif} to the destination directory.
|
366 |
|
|
|
367 |
|
|
@subsection @code{@@gif@{@}} and @var{texi2dvi}
|
368 |
|
|
|
369 |
|
|
@href{@var{texi2dvi},texi2dvi} converts @var{pict.gif} to a font and
|
370 |
|
|
uses this font to insert the picture in the document. This conversion
|
371 |
|
|
to a font requires that the pbmplus and bm2font utilities be installed on
|
372 |
|
|
your system:
|
373 |
|
|
|
374 |
|
|
@table @asis
|
375 |
|
|
@item pbmplus
|
376 |
|
|
A suite of utilities for manipulating images. @var{texi2dvi} uses
|
377 |
|
|
@var{giftopnm}, @var{pnmscale}, @var{pnmnlfilt}, @var{ppmquant},
|
378 |
|
|
and @var{ppmtogif}. These utilities can be obtained from
|
379 |
|
|
@href{@code{
|
380 |
|
|
<ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.tar.gz>},,,
|
381 |
|
|
ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.tar.gz}.
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
@item bm2font
|
385 |
|
|
@var{bm2font} converts a bitmap images (including ``@code{.gif}''
|
386 |
|
|
images) to a font that can be used in a @TeX{} document.
|
387 |
|
|
@var{bm2font} can be obtained from
|
388 |
|
|
@href{@code{<ftp://ftp.shsu.edu/tex-archive/graphics/bm2font.tar.gz>},,,
|
389 |
|
|
ftp://ftp.shsu.edu/tex-archive/graphics/bm2font.tar.gz}.
|
390 |
|
|
@end table
|
391 |
|
|
|
392 |
|
|
@comment **************************************************** CHAPTER
|
393 |
|
|
@node Known Bugs
|
394 |
|
|
@chapter Known Bugs
|
395 |
|
|
|
396 |
|
|
@enumerate
|
397 |
|
|
|
398 |
|
|
@item The @href{@code{@@center},titlefont center sp,texinfo} command
|
399 |
|
|
doesn't work since HTML doesn't support centering yet.
|
400 |
|
|
|
401 |
|
|
@item The @href{@code{@@noindent},noindent,texinfo} and
|
402 |
|
|
@href{@code{@@exdent},exdent,texinfo} commands don't work since
|
403 |
|
|
HTML doesn't include any facility to control indentation.
|
404 |
|
|
|
405 |
|
|
@item Mark specifications in the @href{@code{@@itemize},itemize,texinfo}
|
406 |
|
|
command are ignored since HTML doesn't include any facility to
|
407 |
|
|
specify the tag in itemized lists.
|
408 |
|
|
|
409 |
|
|
@item The @href{emacs texinfo files need to be tweaked,
|
410 |
|
|
problems with emacs} to work with @var{texi2www}.
|
411 |
|
|
|
412 |
|
|
@item One @href{@code{@@gif},gif} command is allowed per line.
|
413 |
|
|
|
414 |
|
|
@end enumerate
|
415 |
|
|
|
416 |
|
|
@unnumberedsec Fixed Bugs
|
417 |
|
|
|
418 |
|
|
@enumerate
|
419 |
|
|
|
420 |
|
|
@item Previous versions didn't handle nested tables correctly. The
|
421 |
|
|
@@item following an inner @@table would be drawn in the wrong
|
422 |
|
|
font. @var{(tsingle, Jan 2 1996)}
|
423 |
|
|
|
424 |
|
|
@item Previous versions didn't capitalize
|
425 |
|
|
@href{@code{@@sc@{@}},Smallcaps,texinfo} text. (There's still
|
426 |
|
|
the problem of HTML not supporting true smallcaps, however).
|
427 |
|
|
@var{(tsingle, Sep 6 1995)}
|
428 |
|
|
|
429 |
|
|
@item Previous versions of @var{texi2www} didn't correctly index
|
430 |
|
|
@href{@code{@@ftable} and @code{@@vtable},ftable vtable,texinfo}
|
431 |
|
|
items; this bug has been fixed! @var{(tsingle, Aug 17 1995)}
|
432 |
|
|
|
433 |
|
|
@end enumerate
|
434 |
|
|
|
435 |
|
|
@node problems with emacs
|
436 |
|
|
@section emacs.texi @result{} HTML problems
|
437 |
|
|
|
438 |
|
|
The file @var{man/commands.texi} distributed with GNU Emacs version
|
439 |
|
|
version 19.25 contains, near the top of the file:
|
440 |
|
|
|
441 |
|
|
@example
|
442 |
|
|
@@c See file emacs.texi for copying conditions.
|
443 |
|
|
@@iftex
|
444 |
|
|
@@chapter Characters, Keys and Commands
|
445 |
|
|
|
446 |
|
|
This chapter explains the character set used by Emacs for input commands
|
447 |
|
|
and for the contents of files, and also explains the concepts of
|
448 |
|
|
@@dfn@{keys@} and @@dfn@{commands@} which are necessary for understanding how
|
449 |
|
|
your keyboard input is understood by Emacs.
|
450 |
|
|
@@end iftex
|
451 |
|
|
@@node User Input, Keys, Screen, Top
|
452 |
|
|
@@section Keyboard Input
|
453 |
|
|
@end example
|
454 |
|
|
|
455 |
|
|
Texi2www doesn't see the @@chapter since it's inside an @@iftex block;
|
456 |
|
|
this confuses texi2www's chapter numbering. My fix was to change this
|
457 |
|
|
section to:
|
458 |
|
|
|
459 |
|
|
@example
|
460 |
|
|
@@c See file emacs.texi for copying conditions.
|
461 |
|
|
@@node User Input, Keys, Screen, Top
|
462 |
|
|
@@chapter Characters, Keys and Commands
|
463 |
|
|
@@iftex
|
464 |
|
|
|
465 |
|
|
This chapter explains the character set used by Emacs for input commands
|
466 |
|
|
and for the contents of files, and also explains the concepts of
|
467 |
|
|
@@dfn@{keys@} and @@dfn@{commands@} which are necessary for understanding how
|
468 |
|
|
your keyboard input is understood by Emacs.
|
469 |
|
|
@@end iftex
|
470 |
|
|
@@section Keyboard Input
|
471 |
|
|
@end example
|
472 |
|
|
|
473 |
|
|
@var{killing.texi}, @var{misc.texi}, and @var{trouble.texi} have similar
|
474 |
|
|
problems.
|
475 |
|
|
|
476 |
|
|
@comment **************************************************** CHAPTER
|
477 |
|
|
@node Demo
|
478 |
|
|
@appendix Sample output
|
479 |
|
|
|
480 |
|
|
This document itself is a pretty good example of what texi2www supports
|
481 |
|
|
and produces. Following are some examples to really make things clear;
|
482 |
|
|
to fully appreciate these examples compare the source and printed output
|
483 |
|
|
to your html viewer.
|
484 |
|
|
|
485 |
|
|
@menu
|
486 |
|
|
* Fonts:: @@var@{@}, etc.
|
487 |
|
|
* Glyphs:: @@result@{@}, etc.
|
488 |
|
|
* Blocks:: @@example ... @@end example, etc.
|
489 |
|
|
* Tables and Lists:: @@table .. @@end table, etc.
|
490 |
|
|
@end menu
|
491 |
|
|
|
492 |
|
|
@comment **************************************************** SECTION
|
493 |
|
|
@node Fonts
|
494 |
|
|
@unnumberedsec Text markup
|
495 |
|
|
|
496 |
|
|
Texi2www supports:
|
497 |
|
|
|
498 |
|
|
@table @asis
|
499 |
|
|
|
500 |
|
|
@item @@b@{@var{bold text}@} @result{} @b{bold text}
|
501 |
|
|
Here is @b{some text} in the @@b font.
|
502 |
|
|
|
503 |
|
|
@item @@cite@{@var{reference}@} @result{} @cite{reference}
|
504 |
|
|
Indicate the name of a book.
|
505 |
|
|
Here is @cite{some text} in the @@cite font.
|
506 |
|
|
|
507 |
|
|
@item @@code@{@var{sample-code}@} @result{} @code{sample-code}
|
508 |
|
|
Indicate text that is a literal example of a piece of a program.
|
509 |
|
|
Here is @code{some text} in the @@code font.
|
510 |
|
|
|
511 |
|
|
@item @@dfn@{@var{term}@} @result{} @dfn{term}
|
512 |
|
|
Indicate the introductory or defining use of a term.
|
513 |
|
|
Here is @dfn{some text} in the @@dfn font.
|
514 |
|
|
|
515 |
|
|
@item @@dmn@{@var{text}@} @result{} @dmn{text}
|
516 |
|
|
Here is @dmn{some text} in the @@dmn font.
|
517 |
|
|
|
518 |
|
|
@item @@emph@{@var{text}@} @result{} @emph{text}
|
519 |
|
|
Here is @emph{some text} in the @@emph font.
|
520 |
|
|
|
521 |
|
|
@item @@file@{@var{file-name}@} @result{} @file{file-name}
|
522 |
|
|
Indicate the name of a file.
|
523 |
|
|
Here is @file{some text} in the @@file font.
|
524 |
|
|
|
525 |
|
|
@item @@i@{@var{italic text}@} @result{} @i{italic text}
|
526 |
|
|
Here is @i{some text} in the @@i font.
|
527 |
|
|
|
528 |
|
|
@item @@kbd@{@var{keyboard-characters}@} @result{} @kbd{keyboard-characters}
|
529 |
|
|
Indicate keyboard input.
|
530 |
|
|
Here is @kbd{some text} in the @@kbd font.
|
531 |
|
|
|
532 |
|
|
@item @@key@{@var{key-name}@} @result{} @key{key-name}
|
533 |
|
|
Indicate the conventional name for a key on a keyboard.
|
534 |
|
|
Here is @key{some text} in the @@key font.
|
535 |
|
|
|
536 |
|
|
@item @@math@{@var{ax^2+b}@} @result{} @math{ax^2+b}
|
537 |
|
|
Here is @r{some text} in the @@math font.
|
538 |
|
|
|
539 |
|
|
@item @@r@{@var{roman font text}@} @result{} @r{roman font text}
|
540 |
|
|
Here is @r{some text} in the @@r font.
|
541 |
|
|
|
542 |
|
|
@item @@samp@{@var{text}@} @result{} @samp{text}
|
543 |
|
|
Indicate text that is a literal example of a sequence of characters.
|
544 |
|
|
Here is @samp{some text} in the @@samp font.
|
545 |
|
|
|
546 |
|
|
@item @@sc@{@var{text}@} @result{} @sc{text}
|
547 |
|
|
Here is @sc{some text} in the @@sc font.
|
548 |
|
|
|
549 |
|
|
@item @@strong@{@var{text}@} @result{} @strong{text}
|
550 |
|
|
Here is @strong{some text} in the @@strong font.
|
551 |
|
|
|
552 |
|
|
@item @@t@{@var{fixed-width text}@} @result{} @t{fixed-width text}
|
553 |
|
|
Here is @t{some text} in the @@t font.
|
554 |
|
|
|
555 |
|
|
@item @@titlefont@{@var{text}@} @result{} @titlefont{text}
|
556 |
|
|
Here is @titlefont{some text} in the @@titlefont font.
|
557 |
|
|
|
558 |
|
|
@item @@var@{@var{metasyntactic-variable}@} @result{} @var{metasyntactic-variable}
|
559 |
|
|
Indicate a metasyntactic variable.
|
560 |
|
|
Here is @var{some text} in the @@var font.
|
561 |
|
|
|
562 |
|
|
@end table
|
563 |
|
|
|
564 |
|
|
|
565 |
|
|
@comment **************************************************** SECTION
|
566 |
|
|
@node Glyphs
|
567 |
|
|
@unnumberedsec Glyphs
|
568 |
|
|
|
569 |
|
|
@table @asis
|
570 |
|
|
|
571 |
|
|
@item @@TeX@{@} @result{} @TeX{}
|
572 |
|
|
@item @@bullet@{@} @result{} @bullet{}
|
573 |
|
|
@item @@copyright@{@} @result{} @copyright{}
|
574 |
|
|
@item @@dots@{@} @result{} @dots{}
|
575 |
|
|
@item @@equiv@{@} @result{} @equiv{}
|
576 |
|
|
@item @@error@{@} @result{} @error{}
|
577 |
|
|
@item @@expansion@{@} @result{} @expansion{}
|
578 |
|
|
@item @@minus@{@} @result{} @minus{}
|
579 |
|
|
@item @@point@{@} @result{} @point{}
|
580 |
|
|
@item @@print@{@} @result{} @print{}
|
581 |
|
|
@item @@result@{@} @result{} @result{}
|
582 |
|
|
@item @@today@{@} @result{} @today{}
|
583 |
|
|
|
584 |
|
|
@end table
|
585 |
|
|
|
586 |
|
|
@comment **************************************************** SECTION
|
587 |
|
|
@node Blocks
|
588 |
|
|
@unnumberedsec Blocks
|
589 |
|
|
|
590 |
|
|
@example
|
591 |
|
|
@cartouche
|
592 |
|
|
@@example
|
593 |
|
|
@@cartouche
|
594 |
|
|
Here's two lines
|
595 |
|
|
of text
|
596 |
|
|
@@end cartouche
|
597 |
|
|
@@end example
|
598 |
|
|
@end cartouche
|
599 |
|
|
@end example
|
600 |
|
|
|
601 |
|
|
@display
|
602 |
|
|
@@display
|
603 |
|
|
Here's two lines
|
604 |
|
|
of text
|
605 |
|
|
@@end display
|
606 |
|
|
@end display
|
607 |
|
|
|
608 |
|
|
@example
|
609 |
|
|
@@example
|
610 |
|
|
Here's two lines
|
611 |
|
|
of text
|
612 |
|
|
@@end example
|
613 |
|
|
@end example
|
614 |
|
|
|
615 |
|
|
@format
|
616 |
|
|
@@format
|
617 |
|
|
Here's two lines
|
618 |
|
|
of text
|
619 |
|
|
@@end format
|
620 |
|
|
@end format
|
621 |
|
|
|
622 |
|
|
@lisp
|
623 |
|
|
@@lisp
|
624 |
|
|
Here's two lines
|
625 |
|
|
of text
|
626 |
|
|
@@end lisp
|
627 |
|
|
@end lisp
|
628 |
|
|
|
629 |
|
|
@quotation
|
630 |
|
|
@@quotation
|
631 |
|
|
Here's two lines
|
632 |
|
|
of text
|
633 |
|
|
@@end quotation
|
634 |
|
|
@end quotation
|
635 |
|
|
|
636 |
|
|
@smallexample
|
637 |
|
|
@@smallexample
|
638 |
|
|
Here's two lines
|
639 |
|
|
of text
|
640 |
|
|
@@end smallexample
|
641 |
|
|
@end smallexample
|
642 |
|
|
|
643 |
|
|
@comment **************************************************** SECTION
|
644 |
|
|
@node Tables and Lists
|
645 |
|
|
@unnumberedsec Tables and Lists
|
646 |
|
|
|
647 |
|
|
@example
|
648 |
|
|
@@table @@code
|
649 |
|
|
@@item code-one
|
650 |
|
|
@@table @@var
|
651 |
|
|
@@item var-one
|
652 |
|
|
@@table @@samp
|
653 |
|
|
@@item samp-one
|
654 |
|
|
Hmmm.
|
655 |
|
|
@@item samp-two
|
656 |
|
|
Mmmmh.
|
657 |
|
|
@@end table
|
658 |
|
|
@@item var-two
|
659 |
|
|
Huh?
|
660 |
|
|
@@end table
|
661 |
|
|
@@item code-two
|
662 |
|
|
Duh?
|
663 |
|
|
@@end table
|
664 |
|
|
@end example
|
665 |
|
|
|
666 |
|
|
@table @code
|
667 |
|
|
@item code-one
|
668 |
|
|
@table @var
|
669 |
|
|
@item var-one
|
670 |
|
|
@table @samp
|
671 |
|
|
@item samp-one
|
672 |
|
|
Hmmm.
|
673 |
|
|
@item samp-two
|
674 |
|
|
Mmmmh.
|
675 |
|
|
@end table
|
676 |
|
|
@item var-two
|
677 |
|
|
Huh?
|
678 |
|
|
@end table
|
679 |
|
|
@item code-two
|
680 |
|
|
Duh?
|
681 |
|
|
@end table
|
682 |
|
|
|
683 |
|
|
|
684 |
|
|
@comment **************************************************** CHAPTER
|
685 |
|
|
@node texi2dvi
|
686 |
|
|
@appendix texi2dvi & texinfo.tex
|
687 |
|
|
|
688 |
|
|
Versions of ``@code{texi2dvi}'' and ``@code{texinfo.tex}'' are included
|
689 |
|
|
with this package. These are compatible with the
|
690 |
|
|
@href{texi2www extensions,Extensions}.
|
691 |
|
|
|
692 |
|
|
@appendixsec texi2dvi
|
693 |
|
|
|
694 |
|
|
@appendixsec texinfo.tex
|
695 |
|
|
|
696 |
|
|
``@code{texinfo.tex}'' is a @TeX{} macro used during the @var{texinfo}
|
697 |
|
|
@result{} @var{dvi} conversion.
|
698 |
|
|
|
699 |
|
|
|
700 |
|
|
|
701 |
|
|
|
702 |
|
|
@comment **************************************************** CHAPTER
|
703 |
|
|
@node Index
|
704 |
|
|
@unnumbered Index
|
705 |
|
|
@printindex cp
|
706 |
|
|
|
707 |
|
|
@contents
|
708 |
|
|
@bye
|