[Top] [Contents] [Index] [ ? ]

Texinfo to HTML

This Manual (Edition 0.11, last updated at 09. July 2000) describes the texi2html Perl script which converters Texinfo into HTML.

Please send bug reports about this manual to Karl Heinz Marbaise khmarbaise@gmx.de. Please state exact version/edition of the manual (can be found at start of Texinfo source file; use the entry Id under Revisions).

Please note:
 
This manual is currently under
construction and of course incomplete ;-)

1. Overview about texi2html  
2. Installation of texi2html  Installation process.
3. Customizing files  Customizing.
4. Customizing what gets expanded  
5. Customizing page layout:  
6. Initialization file  
7. Extension file  
6.1 Initialization file options  
8. Command Line Options  

 -- The Detailed Node Listing ---

Overview

1.2 Why `texi2html' and not `makeinfo'?  

Installation process

2. Installation of texi2html  Installation process.

Initialization file options

6.1.1 Number sections.  Number sectioning.
6.1.2 Avoid menu redundancy  
6.1.3 Center Image  
6.1.4 Example Indent Cell  
6.1.5 Small Example Indent  Sample Indent Cell.
6.1.6 Small Font Size  
6.1.7 Top Heading  
6.1.8 Index Chapter  
6.1.9 Split Index  
6.1.10 HREF Dir Instead File.  HREF Dir Instead file.

Command Line Options

8.1 Debugging  
8.2 DocType  DocType (HTML)
8.3 Check  Checking files.
8.4 Expand  Expanding info, tex areas etc.
8.5 Glossary  
8.6 Invisible  
8.7 Iso  
8.8 Include Direcotry  Include directories.
8.9 Top File  
8.10 Table Of content File  Table of content File.
8.11 Frames  
8.12 Menu's  
8.13 Number sections  
8.14 Split  Splitting.
8.15 Section navigation  Navigation.
8.16 Subdirectory  
8.17 Short extension  
8.18 Prefix  
8.19 Output filename  Output.
8.20 Short Cross References  Short Ref.
8.21 Index Summary  
8.22 Verbose output  Verbose.
8.23 Language Support  Language.
8.24 LaTeX2HTML for @math and @tex  LaTeX2HTML.

LaTeX2HTML for @math and @tex

8.24.1 Where to find latex2html  Where to find LaTeX2HTML.
8.24.2 Skip calling LaTeX2HTML  
8.24.3 Temporary files for LaTeX2HTML  

Indices

A. Indices  Command Line Option Index.
A.2 Variable Index  

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1. Overview about texi2html

Texinfo is the official documentation format of the GNU project. It uses a single source file to produce both online information and printed output.

It is often proposed to have a way to produce HTML from Texinfo sources, like the GNU-Info format. It is much simpler to create one converter instead of writing all documentation new in HTML, cause there is so much documentation in Texinfo format all over the world.

The purpose of `texi2html' is to convert Texinfo documents into HTML.

1.1 Ways to get HTML  Ways to get HTML files.
1.2 Why `texi2html' and not `makeinfo'?  Why texi2html and not makeinfo?.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.1 Ways to get HTML

You would like to HTML files out of your Texinfo files? You have two choices. The first one is to use makeinfo itself to create HTML files. The resulted file is only one big file and you don't have much possibilities to change the layout of some sort of configuration you like. ...


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2 Why `texi2html' and not `makeinfo'?

In contrast to the HTML produced by makeinfo --html (the makeinfo program is part of the Texinfo distribution), the HTML output of `texi2html' is highly configurable. Among other differences, with texi2html allows you to customize your entire page layout (like headers, footers, style sheets, etc), split documents at various levels, and use latex2html to convert @tex sections.

texi2html should reasonably convert all Texinfo 4.0 constructs. If not, please send a bug report to texi2html@mathematik.uni-kl.de.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2. Installation of texi2html

description of the installation process. What do you need? How?


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3. Customizing files

Result from using `-frames'

 
texi2html -V -frames texi2html.texi
Explanation of the output differences against default, whatever this is ;-)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. Customizing what gets expanded

Test starting.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. Customizing page layout:

a) General: Philosopy, and how it works
aa) Navigation panels
b) Top page
c) Section pages
d) Misc pages (ToC, About, etc)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6. Initialization file

`texi2html.init'

Initialization options are read first from `/usr/local/etc/texi2htmlrc' (the exact location being changeable with the `--sysconfdir=dir' option to the configure script), then from `$HOME/.texi2htmlrc', then any command-line options including `-init_file' option; with later settings overriding earlier ones.

The default initialization options are defined in the `texi2html.init' file contained in the Texi2html distribution (which gets includes near the biginning of the texi2html script that gets installed).

To customize `texi2html' it is best if you copy the appropriate sections from the `texi2html.init' contents into an appropriate local initialization file, make the necessary changes there, and then have texi2html read this inialization file by one of the means described above.

For an example on what you can produces with texi2html have a look at the following sites: http://www.singular.uni-kl.de/Manual/html/


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1 Initialization file options

This section describes in detail all option which can only be used in initialization file (`texi2html.init'), but not on command line. This mean the only way to change those options is to change the initialization file.

6.1.1 Number sections.  Number sectioning.
6.1.2 Avoid menu redundancy  
6.1.3 Center Image  
6.1.4 Example Indent Cell  
6.1.5 Small Example Indent  Sample Indent Cell.
6.1.6 Small Font Size  
6.1.7 Top Heading  
6.1.8 Index Chapter  
6.1.9 Split Index  
6.1.10 HREF Dir Instead File.  HREF Dir Instead file.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.1 Number sections.

if set, and $T2H_NUMBER_SECTIONS is set, then use node names in menu entries, instead of section names

$T2H_NODE_NAME_IN_MENU = 0;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.2 Avoid menu redundancy

if set and menu entry equals menu descr, then do not print menu descr. Likewise, if node name equals entry name, do not print entry name. $T2H_AVOID_MENU_REDUNDANCY = 1;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.3 Center Image

if set, center @image by default otherwise, do not center by default $T2H_CENTER_IMAGE = 1;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.4 Example Indent Cell

used as identation for block enclosing command @example, etc If not empty, must be enclosed in <td></td> $T2H_EXAMPLE_INDENT_CELL = '<td>&nbsp;</td>';


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.5 Small Example Indent

same as above, only for @small $T2H_SMALL_EXAMPLE_INDENT_CELL = "<td>&nbsp;</td>";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.6 Small Font Size

# font size for @small $T2H_SMALL_FONT_SIZE = "-1";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.7 Top Heading

if non-empty, and no @..heading appeared in Top node, then use this as header for top node/section, otherwise use value of @settitle or @shorttitle (in that order) $T2H_TOP_HEADING = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.8 Index Chapter

if set, use this chapter for Index button, else use first chapter whose name matches index (case insensitive) $T2H_INDEX_CHAPTER = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.9 Split Index

if set and $T2H_SPLIT is set, then split index pages at the next letter after they have more than that many entries

$T2H_SPLIT_INDEX = 100;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1.10 HREF Dir Instead File.

if set (e.g., to `index.html') replace hrefs to this file (i.e., to `index.html') by `./'

$T2H_HREF_DIR_INSTEAD_FILE = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7. Extension file

Here I have to put some explanation about the extension file `texi2html.ext'.

I'm not sure which purpose the extension file has. May be Olaf can answer this question.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8. Command Line Options

8.1 Debugging  
8.2 DocType  DocType (HTML)
8.3 Check  Checking files.
8.4 Expand  Expanding info, tex areas etc.
8.5 Glossary  
8.6 Invisible  
8.7 Iso  
8.8 Include Direcotry  Include directories.
8.9 Top File  
8.10 Table Of content File  Table of content File.
8.11 Frames  
8.12 Menu's  
8.13 Number sections  
8.14 Split  Splitting.
8.15 Section navigation  Navigation.
8.16 Subdirectory  
8.17 Short extension  
8.18 Prefix  
8.19 Output filename  Output.
8.20 Short Cross References  Short Ref.
8.21 Index Summary  
8.22 Verbose output  Verbose.
8.23 Language Support  Language.
8.24 LaTeX2HTML for @math and @tex  LaTeX2HTML.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.1 Debugging

`-debug'

debugging: 0 -- no debugging; other values; see beginning of texi2html

$DEBUG_TOC = 1; $DEBUG_INDEX = 2; $DEBUG_BIB = 4; $DEBUG_GLOSS = 8; $DEBUG_DEF = 16; $DEBUG_HTML = 32; $DEBUG_USER = 64; $DEBUG_L2H = 128;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.2 DocType

`-doctype'

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.3 Check

`-check' if set, only check files and give the list of all things that look like untranslated Texinfo commands


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.4 Expand

`-expand' if set to tex (or, info) expand @iftex and @tex (or, @ifinfo) sections else, neither expand @iftex, @tex, nor @ifinfo sections


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.5 Glossary

`-glossary' if set, uses section named Footnotes for glossary


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.6 Invisible

`-invisible' $T2H_INVISIBLE_MARK is the text used to create invisible destination anchors for index links (you can for instance use the `invisible.xbm' file shipped with this program). This is a workaround for a known bug of many WWW browsers, including Netscape. For me, it works fine without it -- on the contrary: if there, it inserts space between headers and start of text (obachman 3/99)

 
$T2H_INVISIBLE_MARK = "";
# $T2H_INVISIBLE_MARK = '&#160;';


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.7 Iso

`-iso'

if set, ISO8879 characters are used for special symbols (like Copyright (C), etc)

$T2H_USE_ISO = 0;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.8 Include Direcotry

`-I'

list directories where @include files are searched for (besides the directory of the doc file) additional `-I' args are add to this list.

@T2H_INCLUDE_DIRS = (".");


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.9 Top File

`-top_file' uses file of this name for top-level file extension is manipulated appropriately, if necessary. If empty, `<basename of document>.html' is used Typically, you would set this to `index.html'.

$T2H_TOP_FILE = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.10 Table Of content File

`-toc_file' uses file of this name for table of contents file extension is manipulated appropriately, if necessary. If empty, `<basename of document>_toc.html' is used

$T2H_TOC_FILE = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.11 Frames

`-frames' if set, output two additional files which use HTML 4.0 frames.

$T2H_FRAMES = 0;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.12 Menu's

`-menu' or `-nomenu' if set, show the Texinfo menus

$T2H_SHOW_MENU = 1;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.13 Number sections

`-number' `-nonumber' if set, number sections and show section names and numbers in references and menus


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.14 Split

`-split section|chapter|none' if set to section (resp. chapter) create one HTML file per (sub)section (resp. chapter) and separate pages for Top, ToC, Overview, Index, Glossary, About. otherwise, create monolithic HTML file which contains whole document

#$T2H_SPLIT = 'section'; $T2H_SPLIT = undef;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.15 Section navigation

`-section_navigation'| `-no-section_navigation'

if set, then navigation panels are printed at the beginning of each section and, possibly at the end (depending on whether or not there were more than $T2H_WORDS_IN_PAGE words on page). This is most useful if you do not want to have section navigation on `-split chapter'


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.16 Subdirectory

`-subdir' if set put result files in this directory if not set result files are put into current directory

$T2H_SUBDIR = undef;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.17 Short extension

`-short_extn' If this is set all HTML file will have extension `.htm' instead of `.html'. This is helpful when shipping the document to PC systems. $T2H_SHORTEXTN = 0;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.18 Prefix

`-prefix' Set the output file prefix, prepended to all `.html', `.gif' and `.pl' files. By default, this is the basename of the document

$T2H_PREFIX = "";


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.19 Output filename

`-o filename'|`-out_file' If set, generate monolithic document output HTML into `filename'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.20 Short Cross References

`-short_ref' if set cross-references are given without section numbers


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.21 Index Summary

`-idx_sum' If value is set, then for each @prinindex $what `$docu_name_$what.idx' is created which contains lines of the form $key\t$ref sorted alphabetically (case matters).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.22 Verbose output

`-verbose' if set, chatter about what we are doing.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.23 Language Support

`-lang' For page titles use $T2H_WORDS->{$T2H_LANG}->{...} as title. To add a new languages, supply list of titles (see $T2H_WORDS). and use ISO 639 language codes (see e.g. perl module `Locale-Codes-1.02.tar.gz' for definitions)

@xref{documentlanguage,,,Texinfo}.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.24 LaTeX2HTML for @math and @tex

`-l2h' if set, uses latex2html for generation of math content.

8.24.1 Where to find latex2html  Where to find LaTeX2HTML.
8.24.2 Skip calling LaTeX2HTML  
8.24.3 Temporary files for LaTeX2HTML  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.24.1 Where to find latex2html

`-l2h_l2h' name/location of latex2html progam.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.24.2 Skip calling LaTeX2HTML

`-l2h_skip' if set, skips actual call to atex2html tries to reuse previously generated content, instead.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.24.3 Temporary files for LaTeX2HTML

`-l2h_tmp' if set, l2h uses this directory for temporarary files. The path leading to this directory may not contain a dot (i.e., a "."), otherwise, l2h will fail


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A. Indices


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A.1 Command Line Option Index

Jump to:   C   D   E   F   G   I   L   M   N   O   P   S   T   V  

Index Entry Section

C
check8.3 Check

D
debug8.1 Debugging
doctype8.2 DocType

E
expand8.4 Expand

F
frames3. Customizing files
frames8.11 Frames

G
glossary8.5 Glossary

I
I8.8 Include Direcotry
idx_sum8.21 Index Summary
init_file6. Initialization file
invisible8.6 Invisible
iso8.7 Iso

L
l2h8.24 LaTeX2HTML for @math and @tex
l2h_l2h8.24.1 Where to find latex2html
l2h_skip8.24.2 Skip calling LaTeX2HTML
l2h_tmp8.24.3 Temporary files for LaTeX2HTML
lang8.23 Language Support

M
menu8.12 Menu's

N
no-section_navigation8.15 Section navigation
nomenu8.12 Menu's
nonumber8.13 Number sections
number8.13 Number sections

O
o8.19 Output filename
out_file8.19 Output filename

P
prefix8.18 Prefix

S
section_navigation8.15 Section navigation
short_extn8.17 Short extension
short_ref8.20 Short Cross References
split8.14 Split
sysconfdir6. Initialization file

T
toc_file8.10 Table Of content File
top_file8.9 Top File

V
verbose8.22 Verbose output

Jump to:   C   D   E   F   G   I   L   M   N   O   P   S   T   V  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A.2 Variable Index

Jump to:   $  
D   H   I   T  

Index Entry Section

$
$T2H_LANG8.23 Language Support
$T2H_NODE_NAME_IN_MENU6.1.1 Number sections.
$T2H_WORDS8.23 Language Support

D
DEBUG_BIB8.1 Debugging
DEBUG_DEF8.1 Debugging
DEBUG_GLOSS8.1 Debugging
DEBUG_HTML8.1 Debugging
DEBUG_INDEX8.1 Debugging
DEBUG_L2H8.1 Debugging
DEBUG_TOC8.1 Debugging
DEBUG_USER8.1 Debugging

H
HTML 4.0, frames8.11 Frames
HTML, frames8.11 Frames

I
Include directories8.8 Include Direcotry

T
T2H_AVOID_MENU_REDUNDANCY6.1.2 Avoid menu redundancy
T2H_CENTER_IMAGE6.1.3 Center Image
T2H_CHECK8.3 Check
T2H_DOCTYPE8.2 DocType
T2H_EXAMPLE_INDENT_CELL6.1.4 Example Indent Cell
T2H_EXPAND8.4 Expand
T2H_FRAMES8.11 Frames
T2H_HREF_DIR_INSTEAD_FILE6.1.10 HREF Dir Instead File.
T2H_IDX_SUMMARY8.21 Index Summary
T2H_INCLUDE_DIRS8.8 Include Direcotry
T2H_INDEX_CHAPTER6.1.8 Index Chapter
T2H_INVISIBLE_MARK8.6 Invisible
T2H_L2H8.24 LaTeX2HTML for @math and @tex
T2H_L2H_L2H8.24.1 Where to find latex2html
T2H_L2H_SKIP8.24.2 Skip calling LaTeX2HTML
T2H_L2H_TMP8.24.3 Temporary files for LaTeX2HTML
T2H_NUMBER_SECTIONS6.1.1 Number sections.
T2H_NUMBER_SECTIONS8.13 Number sections
T2H_OUT8.19 Output filename
T2H_PREFIX8.18 Prefix
T2H_SECTION_NAVIGATION8.15 Section navigation
T2H_SHORT_REF8.20 Short Cross References
T2H_SHORTEXTN8.17 Short extension
T2H_SHOW_MENU8.12 Menu's
T2H_SMALL_EXAMPLE_INDENT_CELL6.1.5 Small Example Indent
T2H_SMALL_FONT_SIZE6.1.6 Small Font Size
T2H_SPLIT8.14 Split
T2H_SPLIT_INDEX6.1.9 Split Index
T2H_SUBDIR8.16 Subdirectory
T2H_TOC_FILE8.10 Table Of content File
T2H_TOP_FILE8.9 Top File
T2H_TOP_HEADING6.1.7 Top Heading
T2H_USE_GLOSSARY8.5 Glossary
T2H_USE_ISO8.7 Iso
T2H_VERBOSE8.22 Verbose output

Jump to:   $  
D   H   I   T  


[Top] [Contents] [Index] [ ? ]

Table of Contents


[Top] [Contents] [Index] [ ? ]

Short Table of Contents

1. Overview about texi2html
2. Installation of texi2html
3. Customizing files
4. Customizing what gets expanded
5. Customizing page layout:
6. Initialization file
7. Extension file
8. Command Line Options
A. Indices

[Top] [Contents] [Index] [ ? ]

About this document

This document was generated by System on January, 10 2004 using texi2html

The buttons in the navigation panels have the following meaning:

Button Name Go to From 1.2.3 go to
[ < ] Back previous section in reading order 1.2.2
[ > ] Forward next section in reading order 1.2.4
[ << ] FastBack previous or up-and-previous section 1.1
[ Up ] Up up section 1.2
[ >> ] FastForward next or up-and-next section 1.3
[Top] Top cover (top) of document  
[Contents] Contents table of contents  
[Index] Index concept index  
[ ? ] About this page  

where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:

This document was generated by System on January, 10 2004 using texi2html