options.texi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. @c
  2. @c This file is part of the ``Texinfo to HTML Converter'' manual
  3. @c which is part of the ``texi2html'' distribution.
  4. @c
  5. @c License:
  6. @c Copyright (C) 1999, 2000 Free Software Foundation, Inc.
  7. @c
  8. @c This program is free software; you can redistribute it
  9. @c and/or modify it under the terms of the GNU General Public
  10. @c License as published by the Free Software Foundation;
  11. @c either version 2 of the License, or (at your option) any
  12. @c later version.
  13. @c
  14. @c This program is distributed in the hope that it will be
  15. @c useful, but WITHOUT ANY WARRANTY; without even the implied
  16. @c warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  17. @c PURPOSE. See the GNU General Public License for more
  18. @c details.
  19. @c
  20. @c You should have received a copy of the GNU General
  21. @c Public License along with this program; if not, write to
  22. @c the Free Software Foundation, Inc., 59 Temple Place, Suite
  23. @c 330, Boston, MA 02111-1307 USA
  24. @c
  25. @c
  26. @c Revisions:
  27. @c
  28. @c
  29. @c Author:
  30. @c Karl Heinz Marbaise <khmarbaise@gmx.de>
  31. @c
  32. @c Description:
  33. @c Here you can find the description on the
  34. @c command line options.
  35. @c
  36. @c ========================================================
  37. @chapter Command Line Options
  38. @menu
  39. * OptionDebug:: Debugging.
  40. * OptionDocType:: DocType (HTML)
  41. * OptionCheck:: Checking files.
  42. * OptionExpand:: Expanding info, tex areas etc.
  43. * OptionGlossary:: Glossary.
  44. * OptionInvisible:: Invisible.
  45. * OptionIso:: Iso.
  46. * OptionInclude:: Include directories.
  47. * OptionTopFile:: Top File.
  48. * OptionTocFile:: Table of content File.
  49. * OptionFrames:: Frames.
  50. * OptionMenu:: Menus.
  51. * OptionNumber:: Number sections.
  52. * OptionSplit:: Splitting.
  53. * OptionSectionNavigation:: Navigation.
  54. * OptionSubDir:: Subdirectory.
  55. * OptionShortExt:: Short extension.
  56. * OptionPrefix:: Prefix.
  57. * OptionOutput:: Output.
  58. * OptionShortRef:: Short Ref.
  59. * OptionIndexSummary:: Index Summary.
  60. * OptionVerbose:: Verbose.
  61. * OptionLanguage:: Language.
  62. * OptionL2H:: La@TeX{}2HTML.
  63. @end menu
  64. @c --------------------------------------------------------
  65. @node OptionDebug, OptionDocType, Options, Options
  66. @section Debugging
  67. @cindex Debugging
  68. @vindex DEBUG_TOC
  69. @vindex DEBUG_INDEX
  70. @vindex DEBUG_BIB
  71. @vindex DEBUG_GLOSS
  72. @vindex DEBUG_DEF
  73. @vindex DEBUG_HTML
  74. @vindex DEBUG_USER
  75. @vindex DEBUG_L2H
  76. @opindex debug
  77. @option{-debug}
  78. debugging: 0 --- no debugging; other values; see beginning
  79. of texi2html
  80. @var{$DEBUG_TOC} = 1;
  81. @var{$DEBUG_INDEX} = 2;
  82. @var{$DEBUG_BIB} = 4;
  83. @var{$DEBUG_GLOSS} = 8;
  84. @var{$DEBUG_DEF} = 16;
  85. @var{$DEBUG_HTML} = 32;
  86. @var{$DEBUG_USER} = 64;
  87. @var{$DEBUG_L2H} = 128;
  88. @c --------------------------------------------------------
  89. @node OptionDocType, OptionCheck, OptionDebug, Options
  90. @section DocType
  91. @cindex HTML, Doc Type
  92. @opindex doctype
  93. @vindex T2H_DOCTYPE
  94. @option{-doctype}
  95. @example
  96. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  97. @end example
  98. @c --------------------------------------------------------
  99. @node OptionCheck, OptionExpand, OptionDocType, Options
  100. @section Check
  101. @cindex Texinfo, checking
  102. @opindex check
  103. @vindex T2H_CHECK
  104. @option{-check}
  105. if set, only check files and give the list of all things
  106. that look like untranslated Texinfo commands
  107. @c --------------------------------------------------------
  108. @node OptionExpand, OptionGlossary, OptionCheck, Options
  109. @section Expand
  110. @opindex expand
  111. @vindex T2H_EXPAND
  112. @option{-expand}
  113. if set to @strong{tex} (or, @strong{info}) expand
  114. @code{@@iftex} and @code{@@tex} (or, @code{@@ifinfo})
  115. sections else, neither expand @code{@@iftex}, @code{@@tex},
  116. nor @code{@@ifinfo} sections
  117. @c $T2H_EXPAND = "info";
  118. @c --------------------------------------------------------
  119. @node OptionGlossary, OptionInvisible, OptionExpand, Options
  120. @section Glossary
  121. @cindex HTML, Glossary
  122. @cindex Texinfo, Glossary
  123. @opindex glossary
  124. @vindex T2H_USE_GLOSSARY
  125. @option{-glossary}
  126. if set, uses section named @strong{Footnotes} for glossary
  127. @c --------------------------------------------------------
  128. @node OptionInvisible, OptionIso, OptionGlossary, Options
  129. @section Invisible
  130. @cindex Mark, invisible
  131. @cindex invisible, Mark
  132. @opindex invisible
  133. @vindex T2H_INVISIBLE_MARK
  134. @option{-invisible}
  135. @var{$T2H_INVISIBLE_MARK} is the text used to create
  136. invisible destination anchors for index links (you can for
  137. instance use the @file{invisible.xbm} file shipped with
  138. this program). This is a workaround for a known bug of many
  139. @acronym{WWW} browsers, including Netscape. For me, it
  140. works fine without it --- on the contrary: if there, it
  141. inserts space between headers and start of text (obachman
  142. 3/99)
  143. @example
  144. $T2H_INVISIBLE_MARK = "";
  145. # $T2H_INVISIBLE_MARK = '&#160;';
  146. @end example
  147. @c --------------------------------------------------------
  148. @node OptionIso, OptionInclude, OptionInvisible, Options
  149. @section Iso
  150. @cindex ISO8859
  151. @cindex Copyright
  152. @opindex iso
  153. @vindex T2H_USE_ISO
  154. @option{-iso}
  155. if set, ISO8859 characters are used for special symbols
  156. (like Copyright @code{@copyright{}}, etc)
  157. $T2H_USE_ISO = 0;
  158. @c --------------------------------------------------------
  159. @node OptionInclude, OptionTopFile, OptionIso, Options
  160. @section Include Directory
  161. @vindex Include directories
  162. @opindex I
  163. @vindex T2H_INCLUDE_DIRS
  164. @option{-I}
  165. list directories where @code{@@include} files are searched for
  166. (besides the directory of the doc file) additional
  167. @option{-I} args are add to this list.
  168. @@T2H_INCLUDE_DIRS = (".");
  169. @c --------------------------------------------------------
  170. @node OptionTopFile, OptionTocFile, OptionInclude, Options
  171. @section Top File
  172. @cindex Top Level file
  173. @cindex HTML, index.html
  174. @opindex top_file
  175. @vindex T2H_TOP_FILE
  176. @option{-top_file}
  177. uses file of this name for top-level file
  178. extension is manipulated appropriately, if necessary.
  179. If empty, @file{<basename of document>.html} is used.
  180. Typically, you would set this to @file{index.html}.
  181. $T2H_TOP_FILE = "";
  182. @c --------------------------------------------------------
  183. @node OptionTocFile, OptionFrames, OptionTopFile, Options
  184. @section Table Of content File
  185. @cindex Table of content file
  186. @opindex toc_file
  187. @vindex T2H_TOC_FILE
  188. @option{-toc_file}
  189. uses file of this name for table of contents. File extension
  190. is manipulated appropriately, if necessary. If empty,
  191. @file{<basename of document>_toc.html} is used.
  192. $T2H_TOC_FILE = "";
  193. @c --------------------------------------------------------
  194. @node OptionFrames, OptionMenu, OptionTocFile, Options
  195. @section Frames
  196. @vindex HTML, frames
  197. @vindex HTML 4.0, frames
  198. @opindex frames
  199. @vindex T2H_FRAMES
  200. @option{-frames}
  201. if set, output two additional files which use HTML 4.0
  202. @b{frames}.
  203. $T2H_FRAMES = 0;
  204. @c --------------------------------------------------------
  205. @node OptionMenu, OptionNumber, OptionFrames, Options
  206. @section Menus
  207. @cindex HTML, menu
  208. @cindex Texinfo, menu
  209. @opindex menu
  210. @opindex nomenu
  211. @vindex T2H_SHOW_MENU
  212. @option{-menu} or @option{-nomenu} if set, show the Texinfo
  213. menus
  214. $T2H_SHOW_MENU = 1;
  215. @c --------------------------------------------------------
  216. @node OptionNumber, OptionSplit, OptionMenu, Options
  217. @section Number sections
  218. @cindex Section numbering
  219. @opindex number
  220. @opindex nonumber
  221. @vindex T2H_NUMBER_SECTIONS
  222. @option{-number} @option{-nonumber}
  223. if set, number sections and show section names and numbers
  224. in references and menus
  225. @c Just think about it?
  226. @c @defvar $T2H_NUMBER_SECTIONS
  227. @c @c = 1;
  228. @c @end defvar
  229. @c --------------------------------------------------------
  230. @node OptionSplit, OptionSectionNavigation, OptionNumber, Options
  231. @section Split
  232. @cindex HTML, split
  233. @cindex File, split
  234. @opindex split
  235. @vindex T2H_SPLIT
  236. @option{-split section|chapter|none}
  237. if set to @strong{section} (resp. @strong{chapter}) create one
  238. @acronym{HTML} file per (sub)section (resp. chapter) and
  239. separate pages for Top, ToC, Overview, Index, Glossary,
  240. About. Otherwise, create a monolithic @acronym{HTML} file that
  241. contains the whole document.
  242. #$T2H_SPLIT = 'section';
  243. $T2H_SPLIT = undef;
  244. @c --------------------------------------------------------
  245. @node OptionSectionNavigation, OptionSubDir, OptionSplit, Options
  246. @section Section navigation
  247. @cindex HTML, Navigation
  248. @opindex section_navigation
  249. @opindex no-section_navigation
  250. @vindex T2H_SECTION_NAVIGATION
  251. @option{-section_navigation}|
  252. @option{-no-section_navigation}
  253. if set, then navigation panels are printed at the beginning
  254. of each section and, possibly at the end (depending on
  255. whether or not there were more than
  256. @var{$T2H_WORDS_IN_PAGE} words on page). This is most useful
  257. if you do not want to have section navigation on
  258. @option{-split chapter}
  259. @c @vindex T2H_SECTION_NAVIGATION
  260. @c @defvar $T2H_SECTION_NAVIGATION
  261. @c = 1;
  262. @c @end defvar
  263. @c --------------------------------------------------------
  264. @node OptionSubDir, OptionShortExt, OptionSectionNavigation, Options
  265. @section Subdirectory
  266. @cindex Subdirectory
  267. @vindex T2H_SUBDIR
  268. @option{-subdir}
  269. If set, then put result files in the specified directory.
  270. If not set, then result files are put into the current directory.
  271. @c #$T2H_SUBDIR = 'html';
  272. @var{$T2H_SUBDIR} = undef;
  273. @c --------------------------------------------------------
  274. @node OptionShortExt, OptionPrefix, OptionSubDir, Options
  275. @section Short extension
  276. @cindex HTML, .htm extension
  277. @cindex HTML, .html extension
  278. @cindex extension, .html
  279. @cindex extension, .htm
  280. @vindex T2H_SHORTEXTN
  281. @opindex short_extn
  282. @option{-short_extn}
  283. If this is set, then all @acronym{HTML} files will have extension
  284. @file{.htm} instead of @file{.html}. This is helpful when
  285. shipping the document to DOS-based systems.
  286. @var{$T2H_SHORTEXTN} = 0;
  287. @c --------------------------------------------------------
  288. @node OptionPrefix, OptionOutput, OptionShortExt, Options
  289. @section Prefix
  290. @cindex Prefix
  291. @vindex T2H_PREFIX
  292. @opindex prefix
  293. @option{-prefix}
  294. Set the output file prefix, prepended to all @file{.html},
  295. @file{.gif} and @file{.pl} files.
  296. By default, this is the basename of the document
  297. @var{$T2H_PREFIX} = "";
  298. @c --------------------------------------------------------
  299. @node OptionOutput, OptionShortRef, OptionPrefix, Options
  300. @section Output filename
  301. @cindex Output filename
  302. @cindex Filename, output
  303. @vindex T2H_OUT
  304. @opindex o
  305. @opindex out_file
  306. @option{-o filename}|@option{-out_file}
  307. If set, generate monolithic document output @acronym{HTML}
  308. into @file{filename}.
  309. @c --------------------------------------------------------
  310. @node OptionShortRef, OptionIndexSummary, OptionOutput, Options
  311. @section Short Cross References
  312. @cindex References, short
  313. @cindex sections without numbers
  314. @vindex T2H_SHORT_REF
  315. @opindex short_ref
  316. @option{-short_ref}
  317. if set cross-references are given without section numbers
  318. @c --------------------------------------------------------
  319. @node OptionIndexSummary, OptionVerbose, OptionShortRef, Options
  320. @section Index Summary
  321. @cindex Index, Summary
  322. @cindex Summary Index
  323. @cindex HTML, Index
  324. @vindex T2H_IDX_SUMMARY
  325. @opindex idx_sum
  326. @option{-idx_sum}
  327. If value is set, then for each @code{@@prinindex $what}
  328. @file{$docu_name_$what.idx} is created which contains lines of the
  329. form @strong{$key\t$ref} sorted alphabetically (case
  330. matters).
  331. @c --------------------------------------------------------
  332. @node OptionVerbose, OptionLanguage, OptionIndexSummary, Options
  333. @section Verbose output
  334. @cindex Output, verbose
  335. @cindex Verbose output
  336. @cindex Debugging, verbose output
  337. @vindex T2H_VERBOSE
  338. @opindex verbose
  339. @option{-verbose}
  340. if set, chatter about what we are doing.
  341. @c --------------------------------------------------------
  342. @node OptionLanguage, OptionL2H, OptionVerbose, Options
  343. @section Language Support
  344. @cindex Language Support
  345. @cindex Support different languages
  346. @vindex $T2H_LANG
  347. @vindex $T2H_WORDS
  348. @opindex lang
  349. @option{-lang}
  350. For page titles, use
  351. @code{$T2H_WORDS->@{$T2H_LANG@}->@{...@}} as title. To add
  352. a new language, supply list of titles (see @var{$T2H_WORDS}),
  353. and use ISO 639 language codes (see e.g.@: perl module
  354. @file{Locale-Codes-1.02.tar.gz} for definitions).
  355. If you don't give a @option{-lang} then we got it from the
  356. Texinfo source file (@@documentlanguage
  357. @c Put a table with the language codes here!
  358. @c Or better put a reference into the Texinfo
  359. @c Manual, which has a table of ISO 639-Codes.
  360. @c
  361. @c Currently the @xref etc. does not work with
  362. @c external documents, cause we don't know
  363. @c reference (anchor) value or there is no way
  364. @c to get it.
  365. @c The following reference does only work correctly
  366. @c in Info!!!
  367. @pxref{documentlanguage,,,Texinfo}). If there is no
  368. @code{@@documentlanguage} we use the default @code{en} for
  369. the language.
  370. @c
  371. @c put some information about Month names etc. here
  372. @c $MONTH_NAMES !!
  373. @c Supplemental should be a naming scheme for variables in
  374. @c different languages (MONTH_NAMES_DE etc.)
  375. @c --------------------------------------------------------
  376. @node OptionL2H, , OptionLanguage, Options
  377. @section La@TeX{}2HTML for @code{@@math} and @code{@@tex}
  378. @cindex La@TeX{}2HTML
  379. @cindex Conversion of @@math and @@tex
  380. @cindex @@tex
  381. @cindex @@math
  382. @vindex T2H_L2H
  383. @opindex l2h
  384. @option{-l2h}
  385. if set, uses @command{latex2html} for generation of math
  386. content.
  387. @menu
  388. * OptionL2HL2H:: Where to find La@TeX{}2HTML.
  389. * OptionL2HSkip:: Skip calling La@TeX{}2HTML.
  390. * OptionL2Htmp:: Temporary files for La@TeX{}2HTML.
  391. @end menu
  392. @c --------------------------------------------------------
  393. @node OptionL2HL2H, OptionL2HSkip, OptionL2H, OptionL2H
  394. @subsection Where to find @command{latex2html}
  395. @cindex location, La@TeX{}2HTML
  396. @cindex La@TeX{}2HTML, location
  397. @vindex T2H_L2H_L2H
  398. @opindex l2h_l2h
  399. @option{-l2h_l2h}
  400. name/location of @command{latex2html} program.
  401. @c --------------------------------------------------------
  402. @node OptionL2HSkip, OptionL2Htmp, OptionL2HL2H, OptionL2H
  403. @subsection Skip calling La@TeX{}2HTML
  404. @cindex La@TeX{}2HTML, skip calling
  405. @vindex T2H_L2H_SKIP
  406. @opindex l2h_skip
  407. @option{-l2h_skip}
  408. If set, skips actual call to @command{latex2html}: tries to
  409. reuse previously generated content, instead.
  410. @c --------------------------------------------------------
  411. @node OptionL2Htmp, , OptionL2HSkip, OptionL2H
  412. @subsection Temporary files for La@TeX{}2HTML
  413. @cindex Temporary, La@TeX{}2HTML
  414. @cindex La@TeX{}2HTML, Temporary files
  415. @vindex T2H_L2H_TMP
  416. @opindex l2h_tmp
  417. @option{-l2h_tmp}
  418. If set, l2h uses this directory for temporary files. The
  419. path leading to this directory may not contain a dot (i.e.,
  420. a @samp{.}); otherwise, l2h will fail.