New setting `stylesheet_dirs`.
[docutils.git] / docutils / docs / user / config.txt
blob2a06bc8435c15d2750fe57be329ec3bdabc92bcb
1 ========================
2  Docutils Configuration
3 ========================
5 :Author: David Goodger
6 :Contact: docutils-develop@lists.sourceforge.net
7 :Revision: $Revision$
8 :Date: $Date$
9 :Copyright: This document has been placed in the public domain.
11 .. sidebar:: Docutils Security for Web Applications
13    For details about securing web applications, please see `Deploying
14    Docutils Securely <../howto/security.html>`_.
16 .. contents::
19 -------------------
20 Configuration Files
21 -------------------
23 Configuration files are used for persistent customization; they can be
24 set once and take effect every time you use a front-end tool.
25 Configuration file settings override the built-in defaults, and
26 command-line options override all.
28 By default, Docutils checks the following places for configuration
29 files, in the following order:
31 1. ``/etc/docutils.conf``: This is a system-wide configuration file,
32    applicable to all Docutils processing on the system.
34 2. ``./docutils.conf``: This is a project-specific configuration file,
35    located in the current directory.  The Docutils front end has to be
36    executed from the directory containing this configuration file for
37    it to take effect (note that this may have nothing to do with the
38    location of the source files).  Settings in the project-specific
39    configuration file will override corresponding settings in the
40    system-wide file.
42 3. ``~/.docutils``: This is a user-specific configuration file,
43    located in the user's home directory.  Settings in this file will
44    override corresponding settings in both the system-wide and
45    project-specific configuration files.
47 If more than one configuration file is found, all will be read but
48 later entries will override earlier ones.  For example, a "stylesheet"
49 entry in a user-specific configuration file will override a
50 "stylesheet" entry in the system-wide file.
52 The default implicit config file paths can be overridden by the
53 ``DOCUTILSCONFIG`` environment variable.  ``DOCUTILSCONFIG`` should
54 contain a colon-separated (semicolon-separated on Windows) sequence of
55 config file paths to search for; leave it empty to disable implicit
56 config files altogether.  Tilde-expansion is performed on paths.
57 Paths are interpreted relative to the current working directory.
58 Empty path items are ignored.
60 In addition, a configuration file may be explicitly specified with the
61 "--config" command-line option.  This configuration file is read after
62 the three implicit ones listed above (or the ones defined by the
63 ``DOCUTILSCONFIG`` environment variable), and its entries will have
64 priority.
67 -------------------------
68 Configuration File Syntax
69 -------------------------
71 Configuration files are UTF-8-encoded text files.  The
72 ConfigParser.py_ module from Python_'s standard library is used to
73 read them.  From its documentation:
75     The configuration file consists of sections, lead by a "[section]"
76     header and followed by "name: value" entries, with continuations
77     in the style of `RFC 822`_; "name=value" is also accepted.  Note
78     that leading whitespace is removed from values.  ...  Lines
79     beginning with "#" or ";" are ignored and may be used to provide
80     comments.
82 .. Note:: No format string interpolation is done.
84 Configuration file entry names correspond to internal runtime
85 settings.  Underscores ("_") and hyphens ("-") can be used
86 interchangably in entry names; hyphens are automatically converted to
87 underscores.
89 For on/off switch settings (_`booleans`), the following values are
90 recognized:
92 :On: "true", "yes", "on", "1"
93 :Off: "false", "no", "off", "0", "" (no value)
95 .. _list:
97 List values can be comma- or colon-delimited.
99 strip_classes_, strip_elements_with_classes_, stylesheet, and
100 stylesheet_path use the comma as delimiter,
101 whitespace around list values is stripped. ::
103     strip-classes: ham,eggs,
104     strip-elements-with-classes: sugar, salt, flour
105     stylesheet: html4css1.css,
106                 math.css,
107                 style with spaces.css
108     stylesheet-path: ../styles/my.css, ../styles/funny.css
110 expose_internals_, ignore_ and prune_ use the colon as delimiter and do not
111 strip whitespace::
113     expose_internals: b:c:d
116 Example
117 =======
119 This is the contents of the ``tools/docutils.conf`` configuration file
120 supplied with Docutils::
122     # These entries affect all processing:
123     [general]
124     source-link: yes
125     datestamp: %Y-%m-%d %H:%M UTC
126     generator: on
128     # These entries affect HTML output:
129     [html4css1 writer]
130     # Required for docutils-update, the website build system:
131     stylesheet-path: ../docutils/writers/html4css1/html4css1.css
132     embed-stylesheet: no
133     field-name-limit: 20
135 Individual configuration sections and settings are described in the
136 following section.
139 -------------------------------------
140 Configuration File Sections & Entries
141 -------------------------------------
143 Below are the Docutils runtime settings, listed by config file
144 section.  Any setting may be specified in any section, but only
145 settings from active sections will be used.  Sections correspond to
146 Docutils components (module name or alias; section names are always in
147 lowercase letters).  Each `Docutils application`_ uses a specific set
148 of components; corresponding configuration file sections are applied
149 when the application is used.  Configuration sections are applied in
150 general-to-specific order, as follows:
152 1. `[general]`_
154 2. `[parsers]`_, parser dependencies, and the section specific to the
155    Parser used ("[... parser]").  Currently, only `[restructuredtext
156    parser]`_ is applicable.
158 3. `[readers]`_, reader dependencies, and the section specific to the
159    Reader used ("[... reader]").  For example, `[pep reader]`_ depends
160    on `[standalone reader]`_.
162 4. `[writers]`_, writer dependencies, and the section specific to the
163    Writer used ("[... writer]").  For example, `[pep_html writer]`_
164    depends on `[html4css1 writer]`_.
166 5. `[applications]`_, application dependencies, and the section
167     specific to the Application (front-end tool) in use
168     ("[... application]").
170 Since any setting may be specified in any section, this ordering
171 allows component- or application-specific overrides of earlier
172 settings.  For example, there may be Reader-specific overrides of
173 general settings; Writer-specific overrides of Parser settings;
174 Application-specific overrides of Writer settings; and so on.
176 If multiple configuration files are applicable, the process is
177 completed (all sections are applied in the order given) for each one
178 before going on to the next.  For example, a "[pep_html writer]
179 stylesheet" setting in an earlier configuration file would be
180 overridden by an "[html4css1 writer] stylesheet" setting in a later
181 file.
183 Some knowledge of Python_ is assumed for some attributes.
185 .. _ConfigParser.py:
186    http://www.python.org/doc/current/lib/module-ConfigParser.html
187 .. _Python: http://www.python.org/
188 .. _RFC 822: http://www.rfc-editor.org/rfc/rfc822.txt
189 .. _Docutils application: tools.html
192 [general]
193 =========
195 Settings in the "[general]" section are always applied.
197 auto_id_prefix
198 --------------
200 Prefix prepended to all auto-generated IDs generated within the
201 document, after id_prefix_.
203 Default: "id".
204 Options: ``--auto-id-prefix`` (hidden, intended mainly for programmatic use).
206 datestamp
207 ---------
209 Include a time/datestamp in the document footer.  Contains a
210 format string for Python's ``time.strftime``.  See the `time
211 module documentation`__.
213 Default: None.
214 Options: ``--date, -d, --time, -t, --no-datestamp``.
216 Configuration file entry examples::
218     # Equivalent to --date command-line option, results in
219     # ISO 8601 extended format datestamp, e.g. "2001-12-21":
220     datestamp: %Y-%m-%d
222     # Equivalent to --time command-line option, results in
223     # date/timestamp like "2001-12-21 18:43 UTC":
224     datestamp: %Y-%m-%d %H:%M UTC
226     # Disables datestamp; equivalent to --no-datestamp:
227     datestamp:
229 __ http://www.python.org/doc/current/lib/module-time.html
231 debug
232 -----
234 Report debug-level system messages.
236 Default: don't (None).  Options: ``--debug, --no-debug``.
238 dump_internals
239 --------------
241 At the end of processing, write all internal attributes of the
242 document (``document.__dict__``) to stderr.
244 Default: don't (None).
245 Options: ``--dump-internals`` (hidden, for development use only).
247 dump_pseudo_xml
248 ---------------
250 At the end of processing, write the pseudo-XML representation of
251 the document to stderr.
253 Default: don't (None).
254 Options: ``--dump-pseudo-xml`` (hidden, for development use only).
256 dump_settings
257 -------------
259 At the end of processing, write all Docutils settings to stderr.
261 Default: don't (None).
262 Options: ``--dump-settings`` (hidden, for development use only).
264 dump_transforms
265 ---------------
267 At the end of processing, write a list of all transforms applied
268 to the document to stderr.
270 Default: don't (None).
271 Options: ``--dump-transforms`` (hidden, for development use only).
273 error_encoding
274 --------------
276 The text encoding for error output.
278 Default: "ascii".  Options: ``--error-encoding, -e``.
280 error_encoding_error_handler
281 ----------------------------
283 The error handler for unencodable characters in error output.  See
284 output_encoding_error_handler_ for acceptable values.
286 Default: "backslashreplace"
287 Options: ``--error-encoding-error-handler, --error-encoding, -e``.
289 exit_status_level
290 -----------------
292 A system message level threshold; non-halting system messages at
293 or above this level will produce a non-zero exit status at normal
294 exit.  Exit status is the maximum system message level plus 10 (11
295 for INFO, etc.).
297 Default: disabled (5).  Options: ``--exit-status``.
299 expose_internals
300 ----------------
302 List_ of internal attribues to expose as external attributes (with
303 "internal:" namespace prefix).  To specify multiple attributes in
304 configuration files, use colons to separate names; on the command
305 line, the option may be used more than once.
307 Default: don't (None).
308 Options: ``--expose-internal-attribute`` (hidden, for development use only).
310 footnote_backlinks
311 ------------------
313 Enable or disable backlinks from footnotes and citations to their
314 references.
316 Default: enabled (1).
317 Options: ``--footnote-backlinks, --no-footnote-backlinks``.
319 generator
320 ---------
322 Include a "Generated by Docutils" credit and link in the document footer.
324 Default: off (None).  Options: ``--generator, -g, --no-generator``.
326 halt_level
327 ----------
329 The threshold at or above which system messages are converted to
330 exceptions, halting execution immediately.  If `traceback`_ is set, the
331 exception will propagate; otherwise, Docutils will exit.
333 Default: severe (4).  Options: ``--halt, --strict``.
335 id_prefix
336 ---------
338 Prefix prepended to all IDs generated within the document.  See also
339 auto_id_prefix_.
341 Default: "" (empty).
342 Options: ``--id-prefix`` (hidden, intended mainly for programmatic use).
344 input_encoding
345 --------------
347 The text encoding for input.
349 Default: auto-detect (None).  Options: ``--input-encoding, -i``.
351 input_encoding_error_handler
352 ----------------------------
354 The error handler for undecodable characters in the input. Acceptable
355 values include:
357 strict
358     Raise an exception in case of an encoding error.
359 replace
360     Replace malformed data with the official Unicode replacement
361     character, U+FFFD.
362 ignore
363     Ignore malformed data and continue without further notice.
365 Acceptable values are the same as for the "error" parameter of
366 Python's ``unicode`` function; other values may be defined in
367 applications or in future versions of Python.
369 Default: "strict".
370 Options: ``--input-encoding-error-handler, --input-encoding, -i``.
372 language_code
373 -------------
375 Case-insensitive `language tag`_ as defined in `BCP 47`_.
377 Sets the document language, also used for localized directive and
378 role names as well as Docutils-generated text.
380 A typical language identifier consists of a 2-letter language code
381 from `ISO 639`_ (3-letter codes can be used if no 2-letter code
382 exists). The language identifier can have an optional subtag,
383 typically for variations based on country (from `ISO 3166`_
384 2-letter country codes).  Avoid subtags except where they add
385 useful distinguishing information. Examples of language tags
386 include "fr", "en-GB", "pt-br" (the same as "pt-BR"), and
387 "de-1901" (German with pre-1996 spelling).
389 The language of document parts can be specified with a
390 "language-<language tag>" `class attribute`_, e.g.
391 ``.. class:: language-el-polyton`` for a quote in polytonic Greek.
393 Default: English ("en").  Options: ``--language, -l``.
395 .. _class attribute: ../ref/doctree.html#classes
397 output_encoding
398 ---------------
400 The text encoding for output.
402 Default: "UTF-8".  Options: ``--output-encoding, -o``.
404 output_encoding_error_handler
405 -----------------------------
407 The error handler for unencodable characters in the output. Acceptable
408 values include:
410 strict
411     Raise an exception in case of an encoding error.
412 replace
413     Replace malformed data with a suitable replacement marker,
414     such as "?".
415 ignore
416     Ignore malformed data and continue without further notice.
417 xmlcharrefreplace
418     Replace with the appropriate XML character reference, such as
419     "``&#8224;``".
420 backslashreplace
421     Replace with backslashed escape sequences, such as "``\u2020``".
423 Acceptable values are the same as for the "error" parameter of
424 Python's ``encode`` string method; other values may be defined in
425 applications or in future versions of Python.
427 Default: "strict".
428 Options: ``--output-encoding-error-handler, --output-encoding, -o``.
430 record_dependencies
431 -------------------
433 Path to a file where Docutils will write a list of files that were
434 required to generate the output, e.g. included files or embedded
435 stylesheets [#dependencies]_. [#pwd]_ The format is one path per
436 line with forward slashes as separator, the encoding is ``utf8``.
438 Set to ``-`` in order to write dependencies to stdout.
440 This option is particularly useful in conjunction with programs like
441 ``make`` using ``Makefile`` rules like::
443   ham.html: ham.txt $(shell cat hamdeps.txt)
444     rst2html.py --record-dependencies=hamdeps.txt ham.txt ham.html
446 If the filesystem encoding differs from utf8, replace the ``cat``
447 command with a call to a converter, e.g.::
449   $(shell iconv -f utf8 -t latin1 hamdeps.txt)
451 Default: None.  Option: ``--record-dependencies``.
453 report_level
454 ------------
456 Report system messages at or higher than <level>:
458 1  info
459 2  warning
460 3  error
461 4  severe
462 5  none
464 Default: warning (2).
465 Options: ``--report, -r, --verbose, -v, --quiet, -q``.
467 sectnum_xform
468 -------------
470 Enable or disable automatic section numbering by Docutils
471 (docutils.transforms.parts.SectNum) associated with the `sectnum
472 directive`_.
474 If disabled, section numbers might be added to the output by the
475 renderer (e.g. LaTeX or via a CSS style definition).
477 Default: enabled (1).
478 Options: ``--section-numbering``, ``--no-section-numbering``.
480 .. _sectnum directive: ../ref/rst/directives.html#sectnum
482 source_link
483 -----------
485 Include a "View document source" link in the document footer.  URL will
486 be relative to the destination.
488 Default: don't (None).
489 Options: ``--source-link, -s, --no-source-link``.
491 source_url
492 ----------
494 An explicit URL for a "View document source" link, used verbatim.
496 Default: compute if source_link (None).
497 Options: ``--source-url, --no-source-link``.
499 strict_visitor
500 --------------
502 When processing a document tree with the Visitor pattern, raise an
503 error if a writer does not support a node type listed as optional. For
504 transitional development use.
506 Default: disabled (None).
507 Option: ``--strict-visitor`` (hidden, for development use only).
509 strip_classes
510 -------------
512 Comma-separated list_ of "classes" attribute values to remove from all
513 elements in the document tree. The command line option may be used more
514 than once.
516 .. WARNING:: Potentially dangerous; use with caution.
518 Default: disabled (None).  Option: ``--strip-class``.
520 strip_comments
521 --------------
523 Enable the removal of comment elements from the document tree.
525 Default: disabled (None).
526 Options: ``--strip-comments``, ``--leave-comments``.
528 strip_elements_with_classes
529 ---------------------------
531 Comma-separated list_ of "classes" attribute values;
532 matching elements are removed from the document tree.
533 The command line option may be used more than once.
535 .. WARNING:: Potentially dangerous; use with caution.
537 Default: disabled (None).  Option: ``--strip-element-with-class``.
539 title
540 -----
542 The document title as metadata, which does not become part of the
543 document body.  It overrides a document-supplied title.  For
544 example, in HTML output the metadata document title appears in the
545 title bar of the browser window.
547 Default: none.  Option: ``--title``.
549 toc_backlinks
550 -------------
552 Enable backlinks from section titles to table of contents entries
553 ("entry"), to the top of the TOC ("top"), or disable ("none").
555 Default: "entry".
556 Options: ``--toc-entry-backlinks, --toc-top-backlinks, --no-toc-backlinks``.
558 traceback
559 ---------
561 Enable Python tracebacks when halt-level system messages and other
562 exceptions occur.  Useful for debugging, and essential for issue
563 reports.  Exceptions are allowed to propagate, instead of being
564 caught and reported (in a user-friendly way) by Docutils.
566 Default: disabled (None) unless Docutils is run programmatically
567 using the `Publisher Interface`_.
568 Options: ``--traceback, --no-traceback``.
570 .. _Publisher Interface: ../api/publisher.html
572 warning_stream
573 --------------
575 Path to a file for the output of system messages (warnings) [#pwd]_.
577 Default: stderr (None).  Options: ``--warnings``.
580 [parsers]
581 =========
583 Docutils currently supports only one parser, for reStructuredText.
586 [restructuredtext parser]
587 -------------------------
589 file_insertion_enabled
590 ~~~~~~~~~~~~~~~~~~~~~~
592 Enable or disable directives that insert the contents of external
593 files, such as the "include_" & "raw_".  A "warning" system
594 message (including the directive text) is inserted instead.  (See
595 also raw_enabled_ for another security-relevant setting.)
597 Default: enabled (1).
598 Options: ``--file-insertion-enabled, --no-file-insertion``.
600 .. _include: ../ref/rst/directives.html#include
601 .. _raw: ../ref/rst/directives.html#raw
603 pep_references
604 ~~~~~~~~~~~~~~
606 Recognize and link to standalone PEP references (like "PEP 258").
608 Default: disabled (None); enabled (1) in PEP Reader.
609 Options: ``--pep-references``.
611 pep_base_url
612 ~~~~~~~~~~~~
613 Base URL for PEP references.
615 Default: "http://www.python.org/peps/".
616 Option: ``--pep-base-url``.
618 pep_file_url_template
619 ~~~~~~~~~~~~~~~~~~~~~
621 Template for PEP file part of URL, interpolated with the PEP
622 number and appended to pep_base_url_.
624 Default: "pep-%04d".  Option: ``--pep-file-url``.
626 raw_enabled
627 ~~~~~~~~~~~
629 Enable or disable the "raw_" directive.  A "warning" system message
630 (including the directive text) is inserted instead.  (See also
631 file_insertion_enabled_ for another security-relevant setting.)
633 Default: enabled (1).  Options: ``--raw-enabled, --no-raw``.
635 rfc_references
636 ~~~~~~~~~~~~~~
638 Recognize and link to standalone RFC references (like "RFC 822").
640 Default: disabled (None); enabled (1) in PEP Reader.
641 Options: ``--rfc-references``.
643 rfc_base_url
644 ~~~~~~~~~~~~
646 Base URL for RFC references.
648 Default: "http://www.faqs.org/rfcs/".  Option: ``--rfc-base-url``.
650 smart_quotes
651 ~~~~~~~~~~~~
653 Change straight quotation marks to typographic form. `Quote characters`_
654 are selected according to the language of the current block element (see
655 language_code_). Also changes consequtive runs of hyphen-minus and full
656 stops (``---``, ``--``, ``...``) to em-dash, en-dash and ellipsis Unicode
657 characters respectively.
659 Supported values:
661 booleans_ (yes/no)
662   Use smart quotes?
664 alt (or "alternative")
665   Use alternative quote set (if defined for the language).
667 Default: "no". Option: ``--smart-quotes``.
669 New in Docutils 0.10.
671 .. _quote characters:
672    http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks
674 syntax_highlight
675 ~~~~~~~~~~~~~~~~
677 Token type names used by Pygments_ when parsing contents of the code_
678 directive and role.
680 Supported values:
682 long
683   Use hierarchy of long token type names.
684 short
685   Use short token type names. (For use with
686   `Pygments-generated stylesheets`_.)
687 none
688   No code parsing. Use this to avoid the "Pygments not
689   found" warning when Pygments is not installed.
691 Default: "long".  Option: ``--syntax-highlight``.
693 New in Docutils 0.9.
695 .. _Pygments: http://pygments.org/
696 .. _code: ../ref/rst/directives.html#code
697 .. _Pygments-generated stylesheets:
698    http://pygments.org/docs/cmdline/#generating-styles
700 tab_width
701 ~~~~~~~~~
703 Number of spaces for hard tab expansion.
705 Default: 8.  Options: ``--tab-width``.
707 trim_footnote_reference_space
708 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
710 Remove spaces before footnote references.
712 Default: don't (None); may be overriden by a writer-specific
713 footnote_references__ default though.
715 Options: ``--trim-footnote-reference-space, --leave-footnote-reference-space``.
717 __ `footnote_references [latex2e writer]`_
720 [readers]
721 =========
724 [standalone reader]
725 -------------------
727 docinfo_xform
728 ~~~~~~~~~~~~~
730 Enable or disable the bibliographic field list transform
731 (docutils.transforms.frontmatter.DocInfo).
733 Default: enabled (1).  Options: ``--no-doc-info``.
735 doctitle_xform
736 ~~~~~~~~~~~~~~
738 Enable or disable the promotion of a lone top-level section title
739 to document title (and subsequent section title to document
740 subtitle promotion; docutils.transforms.frontmatter.DocTitle).
742 Default: enabled (1).  Options: ``--no-doc-title``.
744 sectsubtitle_xform
745 ~~~~~~~~~~~~~~~~~~
747 Enable or disable the promotion of the title of a lone subsection
748 to a subtitle (docutils.transforms.frontmatter.SectSubTitle).
750 Default: disabled (0).  Options: ``--section-subtitles,
751 --no-section-subtitles``.
754 [pep reader]
755 ------------
757 The `pep_references`_ and `rfc_references`_ settings
758 (`[restructuredtext parser]`_) are set on by default.
761 [python reader]
762 ---------------
764 Not implemented.
767 [writers]
768 =========
770 [docutils_xml writer]
771 ---------------------
773 .. Caution::
775    * In Python versions older than 2.7.3 and 3.2.3, the newlines_ and
776      indents_ options may adversely affect whitespace; use them only for
777      reading convenience (see http://bugs.python.org/issue4147).
779    * The XML declaration carries text encoding information, without which
780      standard tools may be unable to read the generated XML.
782 doctype_declaration
783 ~~~~~~~~~~~~~~~~~~~
785 Generate XML with a DOCTYPE declaration.
787 Default: do (1).  Options: ``--no-doctype``.
789 indents
790 ~~~~~~~
792 Generate XML with indents and newlines.
794 Default: don't (None).  Options: ``--indents``.
796 newlines
797 ~~~~~~~~
799 Generate XML with newlines before and after tags.
801 Default: don't (None).  Options: ``--newlines``.
803 .. _xml_declaration [docutils_xml writer]:
805 xml_declaration
806 ~~~~~~~~~~~~~~~
808 Generate XML with an XML declaration.  Also defined for the
809 `HTML Writer`__.
811 Default: do (1).  Options: ``--no-xml-declaration``.
813 __ `xml_declaration [html4css1 writer]`_
816 [html4css1 writer]
817 ------------------
819 .. _attribution [html4css1 writer]:
821 attribution
822 ~~~~~~~~~~~
824 Format for block quote attributions: one of "dash" (em-dash
825 prefix), "parentheses"/"parens", or "none".  Also defined for the
826 `LaTeX Writer <attribution [latex2e writer]_>`__.
828 Default: "dash".  Options: ``--attribution``.
830 cloak_email_addresses
831 ~~~~~~~~~~~~~~~~~~~~~
833 Scramble email addresses to confuse harvesters.  In the reference
834 URI, the "@" will be replaced by %-escapes (as of RFC 1738).  In
835 the visible text (link text) of an email reference, the "@" and
836 all periods (".") will be surrounded by ``<span>`` tags.
837 Furthermore, HTML entities are used to encode these characters in
838 order to further complicate decoding the email address.  For
839 example, "abc@example.org" will be output as::
841     <a class="reference" href="mailto:abc&#37;&#52;&#48;example&#46;org">
842     abc<span>&#64;</span>example<span>&#46;</span>org</a>
844 .. Note:: While cloaking email addresses will have little to no
845    impact on the rendering and usability of email links in most
846    browsers, some browsers (e.g. the ``links`` browser) may decode
847    cloaked email addresses incorrectly.
849 Default: don't cloak (None).  Option: ``--cloak-email-addresses``.
851 compact_lists
852 ~~~~~~~~~~~~~
854 Remove extra vertical whitespace between items of bullet lists and
855 enumerated lists, when list items are all "simple" (i.e., items
856 each contain one paragraph and/or one "simple" sublist only).  The
857 behaviour can be specified directly via "class" attributes (values
858 "compact" and "open") in the document.
860 Default: enabled (1).
861 Options: ``--compact-lists, --no-compact-lists``.
863 compact_field_lists
864 ~~~~~~~~~~~~~~~~~~~
866 Remove extra vertical whitespace between items of field lists that
867 are "simple" (i.e., all field bodies each contain at most one
868 paragraph).  The behaviour can be specified directly via "class"
869 attributes (values "compact" and "open") in the document.
871 Default: enabled (1).
872 Options: ``--compact-field-lists, --no-compact-field-lists``.
874 .. _embed_stylesheet [html4css1 writer]:
876 embed_stylesheet
877 ~~~~~~~~~~~~~~~~
879 Embed the stylesheet in the output HTML file.  The stylesheet file
880 must specified by the stylesheet_path__ setting and must be
881 accessible during processing.
882 Also defined for the `LaTeX Writer <embed_stylesheet [latex2e writer]_>`__.
884 Default: enabled.  Options: ``--embed-stylesheet,
885 --link-stylesheet``.
887 __ `stylesheet_path [html4css1 writer]`_
889 field_name_limit
890 ~~~~~~~~~~~~~~~~
892 The maximum width (in characters) for one-column field names. Longer
893 field names will span an entire row of the table used to render the field
894 list.  0 indicates "no limit".  See also option_limit_.
896 Default: 14 (i.e. 14 characters).  Option: ``--field-name-limit``.
898 .. _footnote_references [html4css1 writer]:
900 footnote_references
901 ~~~~~~~~~~~~~~~~~~~
903 Format for footnote references, one of "superscript" or "brackets".
904 Also defined for the `LaTeX Writer <footnote_references [latex2e writer]_>`__.
906 Overrides [#override]_ trim_footnote_reference_space_, if
907 applicable. [#footnote_space]_
909 Default: "brackets".  Option: ``--footnote-references``.
911 initial_header_level
912 ~~~~~~~~~~~~~~~~~~~~
914 The initial level for header elements.  This does not affect the
915 document title & subtitle; see doctitle_xform_.
917 Default: 1 (for "<h1>").  Option: ``--initial-header-level``.
919 math_output
920 ~~~~~~~~~~~
922 The format of mathematical content (`math directive`_ and role) in
923 the output document. Supported values are (case insensitive):
925 :MathJax:
926   Format math for display with MathJax_, a JavaScript-based math
927   rendering engine that uses HTML/CSS, JavaScript, and unicode
928   fonts for high-quality typesetting that is scalable and prints
929   at full resolution.
931   Pro:
932     Works 'out of the box' across multiple browsers and platforms.
934     Supports a large subset of LaTeX math commands and constructs
935     (see http://www.mathjax.org/docs/1.1/tex.html).
937   Con:
938     Requires an Internet connection (or a local MathJax
939     installation and configuration).
941     Downloads JavaScript code from a third-party site.
943   A custom URI can be appended after whitespace,
944   for example a local installation ::
946     math-output: MathJax file:/usr/share/javascript/mathjax/MathJax.js
948   or a URI to `access the MathJax CDN using a https secure
949   connection`__.
951   __ http://www.mathjax.org/resources/faqs/#problem-https
953 :HTML:
954   Format math in standard HTML enhanced by CSS rules
956   Requires the ``math.css`` stylesheet (in the system
957   `stylesheet directory <stylesheet_dirs [html4css1 writer]_>`_
959 :MathML:
960   Embed math content as presentational MathML_.
962   Pro:
963     The W3C recommendation for math on the web.
965     Self-contained documents (no JavaScript, no external downloads).
967   Con:
968     Docutil's latex2mathml converter supports only a small
969     subset of LaTeX syntax.
971     With the "html4css1" writer, the resulting HTML document does
972     not validate, as there is no DTD for MathML + XHTML
973     Transitional. However, MathML-enabled browsers will render it
974     fine.
976 :LaTeX:
977   Include literal LaTeX code.
979   The failsave fallback.
981 Default: MathJax.  Option: ``--math-output``.
983 New in Docutils 0.8.
985 .. _math directive: ../ref/rst/directives.html#math
986 .. _MathJax: http://www.mathjax.org/
987 .. _MathPlayer: http://www.dessci.com/en/products/mathplayer/
988 .. _MathML: http://www.w3.org/TR/MathML/
990 option_limit
991 ~~~~~~~~~~~~
993 The maximum width (in characters) for options in option lists.
994 Longer options will span an entire row of the table used to render
995 the option list.  0 indicates "no limit".  See also
996 field_name_limit_.
998 Default: 14 (i.e. 14 characters).  Option: ``--option-limit``.
1000 .. _stylesheet [html4css1 writer]:
1002 stylesheet
1003 ~~~~~~~~~~
1005 A comma-separated list of CSS stylesheet URLs, used verbatim.
1006 Also defined for the `LaTeX Writer <stylesheet [latex2e writer]_>`__.
1008 Overrides also stylesheet-path__. [#override]_
1010 Default: None.  Options: ``--stylesheet``.
1012 __ `stylesheet_path [html4css1 writer]`_
1014 .. _stylesheet_dirs [html4css1 writer]:
1016 stylesheet_dirs
1017 ~~~~~~~~~~~~~~~
1019 A comma-separated list of directories where stylesheets can be found.
1020 Used by the stylesheet_path__ setting when expanding relative path arguments.
1022 Note: This setting defines a "search path" (similar to the PATH variable for
1023 executables). However, the term "path" is already used in the
1024 stylesheet_path__ setting with the meaning of a file location.
1027 __ `stylesheet_path [html4css1 writer]`_
1029 Default: the working directory of the process at launch and the directory
1030 with default stylesheet files (writer and installation specific).
1031 Use the ``--help`` option to get the exact value.
1032 Option: ``--stylesheet-directories``.
1034 .. _stylesheet_path [html4css1 writer]:
1036 stylesheet_path
1037 ~~~~~~~~~~~~~~~
1039 A comma-separated list of paths to CSS stylesheets. Relative paths are
1040 expanded if a matching file is found in the stylesheet_dirs__.
1041 If embed_stylesheet__ is False, paths are rewritten relative to the
1042 output HTML file. Also defined for the `LaTeX Writer`__.
1044 Also overrides "stylesheet". [#override]_
1045 Pass an empty string (to either "stylesheet" or "stylesheet_path") to
1046 deactivate stylesheet inclusion.
1048 Default: "html4css1.css".
1049 Options: ``--stylesheet-path``.
1051 __ `embed_stylesheet [html4css1 writer]`_
1052 __ `stylesheet_path [latex2e writer]`_
1053 __ `stylesheet_dirs [html4css1 writer]`_
1055 .. _table_style [html4css1 writer]:
1057 table_style
1058 ~~~~~~~~~~~
1060 Class value(s) added to tables to allow styling with CSS.
1061 The default sylesheet defines:
1063 borderless
1064   No borders around the table.
1066 booktabs
1067   Lines above and below the table and a thin line after the head.
1069 Default: "".  Option: ``--table-style``.
1071 .. _template [html4css1 writer]:
1073 template
1074 ~~~~~~~~
1076 Path to template file, which must be encoded in UTF-8 [#pwd]_.
1077 Also defined for the `LaTeX Writer`__.
1079 Default: "template.txt" in the docutils/writers/html4css1/
1080 directory (installed automatically; for the exact machine-specific
1081 path, use the ``--help`` option).  Options: ``--template``.
1083 __ `template [latex2e writer]`_
1085 .. _xml_declaration [html4css1 writer]:
1087 xml_declaration
1088 ~~~~~~~~~~~~~~~
1090 Generate XML with an XML declaration.  Also defined for the
1091 `Docutils XML Writer`__.
1093 .. Caution:: The XML declaration carries text encoding
1094    information, without which standard tools may be unable to read
1095    the generated XML.
1097 Default: do (1).  Options: ``--no-xml-declaration``.
1099 __ `xml_declaration [docutils_xml writer]`_
1102 [pep_html writer]
1103 ~~~~~~~~~~~~~~~~~
1105 The PEP/HTML Writer derives from the standard HTML Writer, and shares
1106 all settings defined in the `[html4css1 writer]`_ section.  The
1107 "[html4css1 writer]" section of configuration files is processed
1108 before the "[pep_html writer]" section.
1110 The PEP/HTML Writer's default for the following settings differ from
1111 those of the standard HTML Writer:
1113 `stylesheet_path <stylesheet_path [html4css1 writer]_>`_:
1114   Default: "pep.css"
1116 `template <template [html4css1 writer]_>`_:
1117   Default: ``docutils/writers/pep_html/template.txt`` in the installation
1118   directory.  For the exact machine-specific path, use the ``--help``
1119   option.
1121 no_random
1122 """""""""
1123 Do not use a random banner image.  Mainly used to get predictable
1124 results when testing.
1126 Default: random enabled (None).  Options: ``--no-random`` (hidden).
1128 pep_home
1129 """"""""
1131 Home URL prefix for PEPs.
1133 Default: current directory (".").  Options: ``--pep-home``.
1135 python_home
1136 """""""""""
1137 Python's home URL.
1139 Default: parent directory ("..").  Options: ``--python-home``.
1142 [s5_html writer]
1143 ~~~~~~~~~~~~~~~~
1145 The S5/HTML Writer derives from the standard HTML Writer, and shares
1146 all settings defined in the `[html4css1 writer]`_ section.  The
1147 "[html4css1 writer]" section of configuration files is processed
1148 before the "[s5_html writer]" section.
1150 The S5/HTML Writer's default for the following settings differ
1151 from those of the standard HTML Writer:
1153 compact_lists_:
1154     Default: disable compact lists.
1156 template_:
1157   Default: ``docutils/writers/s5_html/template.txt`` in the installation
1158   directory.  For the exact machine-specific path, use the ``--help``
1159   option.
1162 hidden_controls
1163 """""""""""""""
1165 Auto-hide the presentation controls in slideshow mode, or or keep
1166 them visible at all times.
1168 Default: auto-hide (1).  Options: ``--hidden-controls``,
1169 ``--visible-controls``.
1171 current_slide
1172 """""""""""""
1174 Enable or disable the current slide indicator ("1/15").
1176 Default: disabled (None).  Options: ``--current-slide``,
1177 ``--no-current-slide``.
1179 overwrite_theme_files
1180 """""""""""""""""""""
1182 Allow or prevent the overwriting of existing theme files in the
1183 ``ui/<theme>`` directory.  This has no effect if "theme_url_" is
1184 used.
1186 Default: keep existing theme files (None).  Options:
1187 ``--keep-theme-files``, ``--overwrite-theme-files``.
1189 theme
1190 """""
1192 Name of an installed S5 theme, to be copied into a ``ui/<theme>``
1193 subdirectory, beside the destination file (output HTML).  Note
1194 that existing theme files will not be overwritten; the existing
1195 theme directory must be deleted manually.
1196 Also overrides the "theme_url_" setting. [#override]_
1198 Default: "default".  Option: ``--theme``.
1200 theme_url
1201 """""""""
1202 The URL of an S5 theme directory.  The destination file (output
1203 HTML) will link to this theme; nothing will be copied.  Also overrides
1204 the "theme_" setting. [#override]_
1206 Default: None.  Option: ``--theme-url``.
1208 view_mode
1209 """""""""
1211 The initial view mode, either "slideshow" or "outline".
1213 Default: "slidewhow".  Option: ``--view-mode``.
1216 [latex2e writer]
1217 ----------------
1219 use_latex_toc
1220 ~~~~~~~~~~~~~
1222 To get pagenumbers in the table of contents the table of contents
1223 must be generated by LaTeX. Usually latex must be run twice to get
1224 numbers correct.
1226 Default: on.  Options: ``--use-latex-toc, --use-docutils-toc``.
1228 use_latex_docinfo
1229 ~~~~~~~~~~~~~~~~~
1231 Attach author and date to the document title
1232 instead of the document info table.
1234 Default: off.  Options: ``--use-latex-docinfo, --use-docutils-docinfo``.
1236 docutils_footnotes
1237 ~~~~~~~~~~~~~~~~~~
1238 Use the Docutils-specific macros ``\DUfootnote`` and
1239 ``\DUfootnotetext`` for footnotes.
1241 Default: on.  Option: ``--docutils-footnotes``.
1243 figure_footnotes
1244 ~~~~~~~~~~~~~~~~
1246 Typeset footnote text in a figure float. This may lead to footnotes,
1247 citations, and figures being mixed at page foot.
1249 *Deprecated:* This setting will be removed in a future Docutils
1250 version.
1252 Default: off.  Option: ``--figure-footnotes``.
1254 use_latex_citations
1255 ~~~~~~~~~~~~~~~~~~~
1257 Use \cite for citations instead of a simulation with figure-floats.
1259 Default: off.  Options: ``--use-latex-citations, --figure-citations``.
1261 use_latex_abstract
1262 ~~~~~~~~~~~~~~~~~~
1264 Use LaTeX abstract environment for the document's abstract.
1266 Default: off.  Options: ``--use-latex-abstract, --topic-abstract``.
1268 hyperlink_color
1269 ~~~~~~~~~~~~~~~
1271 Color of any hyperlinks embedded in text.
1273 * "0" or "false" disable coloring of links. (Links will be marked
1274   by red boxes that are not printed),
1275 * "black" results in â€œinvisible“ links,
1277 Set hyperref_options_ to "draft" to completely disable hyperlinking.
1279 Default: "blue".  Option: ``--hyperlink-color``.
1281 hyperref_options
1282 ~~~~~~~~~~~~~~~~
1284 Options for the `hyperref TeX package`_. If hyperlink_color_ is
1285 not "false", the expansion of ::
1287   'colorlinks=true,linkcolor=%s,urlcolor=%s' % (
1288      hyperlink_color, self.hyperlink_color
1290 is prepended.
1292 Default: "".   Option: ``--hyperref-options``.
1294 .. _hyperref TeX package: http://tug.org/applications/hyperref/
1296 documentclass
1297 ~~~~~~~~~~~~~
1299 Specify latex documentclass.
1301 Default: "article".  Option: ``--documentclass``.
1303 documentoptions
1304 ~~~~~~~~~~~~~~~
1306 Specify document options.  Multiple options can be given, separated by
1307 commas.
1309 Default: "a4paper".  Option: ``--documentoptions``.
1311 font_encoding
1312 ~~~~~~~~~~~~~
1314 Specify LaTeX font encoding. Multiple options can be given, separated by
1315 commas. The last value becomes the document default.
1316 Possible values are "", "T1", "OT1", "LGR,T1" or any other combination of
1317 `LaTeX font encodings`_.
1319 Default: "T1".  Option: ``--font-encoding``.
1321 .. _LaTeX font encodings:
1322    http://mirror.ctan.org/macros/latex/doc/encguide.pdf
1324 .. _embed_stylesheet [latex2e writer]:
1326 embed_stylesheet
1327 ~~~~~~~~~~~~~~~~
1329 Embed the stylesheet(s) in the header of the output file.  The
1330 stylesheets must be accessible during processing.  Currently, this
1331 fails if the file is not available via the given path (i.e. the
1332 file is *not* searched in the `TeX input path`_).
1333 Also defined for the `HTML Writer`__ (with default *on*).
1335 Default: off.  Options: ``--embed-stylesheet, --link-stylesheet``.
1337 __ `embed_stylesheet [html4css1 writer]`_
1339 .. _stylesheet [latex2e writer]:
1341 stylesheet
1342 ~~~~~~~~~~
1344 A comma-separated list_ of style files.
1345 Also defined for the `HTML Writer`__.
1347 Overrides also stylesheet_path__. [#override]_
1349 If `embed_stylesheet`__ is False (default), the stylesheet files are
1350 referenced with ``\usepackage`` (extension ``.sty`` or no extension) or
1351 ``\input`` (any other extension).
1353 LaTeX will search the specified files in the `TeX input path`_.
1355 Default: no stylesheet ("").  Option: ``--stylesheet``.
1357 __ `stylesheet_path [latex2e writer]`_
1358 __ `embed_stylesheet [latex2e writer]`_
1359 __ `stylesheet [html4css1 writer]`_
1360 .. _TeX input path:
1361    http://www.tex.ac.uk/cgi-bin/texfaq2html?label=what-TDS
1364 .. _stylesheet_dirs [latex2e writer]:
1366 stylesheet_dirs
1367 ~~~~~~~~~~~~~~~
1369 A comma-separated list of directories where stylesheets can be found.
1370 Used by the stylesheet_path__ setting.
1372 Note: This setting defines a "search path" (similar to the PATH variable for
1373 executables). However, the term "path" is already used in the
1374 stylesheet_path__ setting with the meaning of a file location.
1377 __ `stylesheet_path [latex2e writer]`_
1379 Default: the working directory of the process at launch and the directory
1380 with default stylesheet files (writer and installation specific).
1381 Use the ``--help`` option to get the exact value.
1382 Option: ``--stylesheet-directories``.
1384 .. _stylesheet_path [latex2e writer]:
1386 stylesheet_path
1387 ~~~~~~~~~~~~~~~
1389 A comma-separated list of style files. Relative paths are expanded if a
1390 matching file is found in the stylesheet_dirs__.
1391 If embed_stylesheet__ is False, paths are rewritten relative to the
1392 output file path. Run ``latex`` from the directory containing
1393 the output file. 
1395 The stylesheet__  option is preferred for files in the `TeX input path`_.
1397 Also defined for the
1398 `HTML Writer <stylesheet_path [html4css1 writer]_>`__.
1400 Also overrides stylesheet__. [#override]_
1402 Default: no stylesheet ("").  Option: ``--stylesheet-path``.
1404 __ `stylesheet_dirs [latex2e writer]`_
1405 __ `embed_stylesheet [latex2e writer]`_
1407 __ `stylesheet [latex2e writer]`_
1410 latex_preamble
1411 ~~~~~~~~~~~~~~
1413 LaTeX code that will be inserted in the document preamble.
1414 Can be used to load packages with options or (re-) define LaTeX
1415 macros without writing a custom style file (new in Docutils 0.7).
1417 Default: Load the "PDF standard fonts" (Times, Helvetica,
1418 Courier)::
1420   \usepackage{mathptmx} % Times
1421   \usepackage[scaled=.90]{helvet}
1422   \usepackage{courier}
1424 Option: ``--latex-preamble``.
1427 .. _template [latex2e writer]:
1429 template
1430 ~~~~~~~~
1432 Path to template file, which must be encoded in UTF-8 [#pwd]_.
1433 Also defined for the `HTML Writer`__.
1435 Default: "default.tex" in the docutils/writers/latex2e/
1436 directory (installed automatically; for the exact machine-specific
1437 path, use the ``--help`` option).  Options: ``--template``.
1439 __ `template [html4css1 writer]`_
1441 .. _footnote_references [latex2e writer]:
1443 footnote_references
1444 ~~~~~~~~~~~~~~~~~~~
1446 Format for footnote references: one of "superscript" or
1447 "brackets".  Also defined for the `HTML Writer`__.
1449 Overrides [#override]_ trim_footnote_reference_space_, if
1450 applicable [#footnote_space]_.
1452 Default: "superscript".  Option: ``--footnote-references``.
1454 __ `footnote_references [html4css1 writer]`_
1456 .. _attribution [latex2e writer]:
1458 attribution
1459 ~~~~~~~~~~~
1461 See `attribution [html4css1 writer]`_.
1463 compound_enumerators
1464 ~~~~~~~~~~~~~~~~~~~~
1466 Enable or disable compound enumerators for nested enumerated lists
1467 (e.g. "1.2.a.ii").
1469 Default: disabled (None).
1470 Options: ``--compound-enumerators``, ``--no-compound-enumerators``.
1472 literal_block_env
1473 ~~~~~~~~~~~~~~~~~
1475 When possibile\ [#]_, use the specified environment for literal-blocks.
1477 Default: "" (quoting of whitespace and special chars).
1478 Option: ``--literal-block-env``.
1480 .. [#] A literal-block element, when processed by a Docutils writer might
1481    have it's origin in literal block following "::" or a
1482    ``.. parsed-literal::`` directive.
1484    A LaTeX verbatim environment is only usable if there is no other
1485    markup contained in the literal-block.
1488 section_prefix_for_enumerators
1489 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1491 Enable or disable section ("." subsection ...) prefixes for
1492 compound enumerators.  This has no effect unless
1493 `compound_enumerators`_ are enabled.
1495 Default: disabled (None).
1496 Options: ``--section-prefix-for-enumerators``,
1497 ``--no-section-prefix-for-enumerators``.
1499 section_enumerator_separator
1500 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1502 The separator between section number prefix and enumerator for
1503 compound enumerated lists (see `compound_enumerators`_).
1505 Generally it isn't recommended to use both sub-sections and nested
1506 enumerated lists with compound enumerators.  This setting avoids
1507 ambiguity in the situation where a section "1" has a list item
1508 enumerated "1.1", and subsection "1.1" has list item "1".  With a
1509 separator of ".", these both would translate into a final compound
1510 enumerator of "1.1.1".  With a separator of "-", we get the
1511 unambiguous "1-1.1" and "1.1-1".
1513 Default: "-".  Option: ``--section-enumerator-separator``.
1515 .. _table_style [latex2e writer]:
1517 table_style
1518 ~~~~~~~~~~~
1520 Specify the drawing of separation lines.
1521 Supported values:
1523 standard
1524   lines around and between cells.
1525 booktabs
1526   a line above and below the table and one after the head.
1527 borderless
1528   no lines.
1530 Default: "standard".  Option: ``--table-style``.
1532 [xetex writer]
1533 ~~~~~~~~~~~~~~
1535 The xetex writer derives from the latex2e writer, and shares
1536 all settings defined in the `[latex2e writer]`_ section.  The
1537 "[latex2e writer]" section of configuration files is processed
1538 before the "[xetex writer]" section.
1540 The following settings differ from those of the latex2e writer:
1542 font_encoding_
1543     Disabled  (XeTeX uses Unicode-encoded fonts).
1545 latex_preamble_
1546     Default: Font setup for `Linux Libertine`_,::
1548       % Linux Libertine (free, wide coverage, not only for Linux)
1549       \setmainfont{Linux Libertine O}
1550       \setsansfont{Linux Biolinum O}
1551       \setmonofont[HyphenChar=None]{DejaVu Sans Mono}
1553   The optional argument ``HyphenChar=None`` to the monospace font
1554   prevents word hyphenation in literal text.
1556 template__
1557     Default: "xelatex.tex"
1559 .. _Linux Libertine: http://www.linuxlibertine.org/
1560 __ `template [latex2e writer]`_
1563 [odf_odt writer]
1564 ----------------
1566 The following command line options are specific to ``odtwriter``:
1568 stylesheet
1569 ~~~~~~~~~~
1571 Specify a stylesheet URL, used verbatim.
1573 Default: writers/odf_odt/styles.odt in the installation directory.
1575 odf-config-file
1576 ~~~~~~~~~~~~~~~
1578 Specify a configuration/mapping file relative to the current working
1579 directory for additional ODF options. In particular, this file may
1580 contain a section named "Formats" that maps default style names to names
1581 to be used in the resulting output file allowing for adhering to external
1582 standards. For more info and the format of the configuration/mapping
1583 file, see the `Odt Writer for Docutils`_ document.
1585 cloak-email-addresses
1586 ~~~~~~~~~~~~~~~~~~~~~
1588 Obfuscate email addresses to confuse harvesters while still
1589 keeping email links usable with standards-compliant browsers.
1591 no-cloak-email-addresses
1592 ~~~~~~~~~~~~~~~~~~~~~~~~
1593 Do not obfuscate email addresses.
1595 table-border-thickness
1596 ~~~~~~~~~~~~~~~~~~~~~~
1598 Specify the thickness of table borders in thousands of a cm.
1599 Default is 35.
1601 add-syntax-highlighting
1602 ~~~~~~~~~~~~~~~~~~~~~~~
1604 Add syntax highlighting in literal code blocks.
1606 no-syntax-highlighting
1607 ~~~~~~~~~~~~~~~~~~~~~~
1609 Do not add syntax highlighting in literal code blocks.
1610 (default)
1612 create-sections
1613 ~~~~~~~~~~~~~~~
1615 Create sections for headers.  (default)
1617 no-sections
1618 ~~~~~~~~~~~
1620 Do not create sections for headers.
1622 create-links
1623 ~~~~~~~~~~~~
1624 Create links.
1626 no-links
1627 ~~~~~~~~
1629 Do not create links.  (default)
1631 endnotes-end-doc
1632 ~~~~~~~~~~~~~~~~
1634 Generate endnotes at end of document, not footnotes at bottom of page.
1636 no-endnotes-end-doc
1637 ~~~~~~~~~~~~~~~~~~~
1639 Generate footnotes at bottom of page, not endnotes at end of
1640 document. (default)
1642 generate-list-toc
1643 ~~~~~~~~~~~~~~~~~
1645 Generate a bullet list table of contents, not an
1646 ODF/``oowriter`` table of contents.
1648 generate-oowriter-toc
1649 ~~~~~~~~~~~~~~~~~~~~~
1651 Generate an ODF/``oowriter`` table of contents, not a bullet
1652 list.  (default) **Note:** ``odtwriter`` is not able to
1653 determine page numbers, so you will need to open the generated
1654 document in ``oowriter``, then right-click on the table of
1655 contents and select "Update" to insert page numbers.
1657 custom-odt-header
1658 ~~~~~~~~~~~~~~~~~
1660 Specify the contents of a custom header line.  For details about
1661 custom headers and about special field character sequences, see
1662 section "Custom header/footers: inserting page numbers, date,
1663 time, etc" in the `Odt Writer for Docutils`_ document for
1664 details.
1666 custom-odt-footer
1667 ~~~~~~~~~~~~~~~~~
1669 Specify the contents of a custom footer line.  For details about
1670 custom footers and about special field character sequences, see
1671 section "Custom header/footers: inserting page numbers, date,
1672 time, etc" in the `Odt Writer for Docutils`_ document for
1673 details.
1675 .. _Odt Writer for Docutils: odt.html
1678 [pseudoxml writer]
1679 ------------------
1681 This writer does not define specific settings.
1684 [applications]
1685 ==============
1687 [buildhtml application]
1688 -----------------------
1690 ignore
1691 ~~~~~~
1693 List_ of wildcard (shell globing) patterns, specifying files to silently
1694 ignore.  To specify multiple patterns, use colon-separated patterns (in
1695 configuration files or on the command line); on the command line, the
1696 option may also be used more than once.
1698 Default: none.  Options: ``--ignore``.
1700 prune
1701 ~~~~~
1703 List_ of directories not to process.  To specify multiple
1704 directories, use colon-separated paths (in configuration files or
1705 on the command line); on the command line, the option may also be
1706 used more than once.
1708 Default: ['.hg', '.bzr', '.git', '.svn', 'CVS'].  Options:
1709 ``--prune``.
1711 recurse
1712 ~~~~~~~
1714 Recursively scan subdirectories, or ignore subdirectories.
1716 Default: recurse (1).  Options: ``--recurse, --local``.
1718 silent
1719 ~~~~~~
1721 Work silently (no progress messages).  Independent of
1722 "report_level".
1724 Default: show progress (None).  Options: ``--silent``.
1727 [docfactory application]
1728 ------------------------
1730 (To be completed.)
1733 Other Settings
1734 ==============
1736 Command-Line Only
1737 -----------------
1739 These settings are only effective as command-line options; setting
1740 them in configuration files has no effect.
1742 config
1743 ~~~~~~
1745 Path to a configuration file to read (if it exists) [#pwd]_.
1746 Settings may override defaults and earlier settings.  The config
1747 file is processed immediately.  Multiple ``--config`` options may
1748 be specified; each will be processed in turn.
1750 Filesystem path settings contained within the config file will be
1751 interpreted relative to the config file's location (*not* relative
1752 to the current working directory).
1754 Default: None.  Options: ``--config``.
1757 Internal Settings
1758 -----------------
1760 These settings are for internal use only; setting them in
1761 configuration files has no effect, and there are no corresponding
1762 command-line options.
1764 _config_files
1765 ~~~~~~~~~~~~~
1767 List of paths of applied configuration files.
1769 Default: None.  No command-line options.
1771 _directories
1772 ~~~~~~~~~~~~
1774 (``buildhtml.py`` front end.)  List of paths to source
1775 directories, set from positional arguments.
1777 Default: current working directory (None).  No command-line
1778 options.
1780 _disable_config
1781 ~~~~~~~~~~~~~~~
1783 Prevent standard configuration files from being read.  For
1784 programmatic use only.
1786 Default: config files enabled (None).  No command-line options.
1788 _destination
1789 ~~~~~~~~~~~~
1791 Path to output destination, set from positional arguments.
1793 Default: stdout (None).  No command-line options.
1795 _source
1796 ~~~~~~~
1798 Path to input source, set from positional arguments.
1800 Default: stdin (None).  No command-line options.
1803 .. _language tag: http://www.w3.org/International/articles/language-tags/
1804 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
1805 .. _ISO 639: http://www.loc.gov/standards/iso639-2/php/English_list.php
1806 .. _ISO 3166: http://www.iso.ch/iso/en/prods-services/iso3166ma/
1807    02iso-3166-code-lists/index.html
1809 .. [#pwd] Path relative to the working directory of the process at
1810    launch.
1812 .. [#override] The overridden setting will automatically be set to
1813    ``None`` for command-line options and config file settings.  Client
1814    programs which specify defaults that override other settings must
1815    do the overriding explicitly, by assigning ``None`` to the other
1816    settings.
1818 .. [#dependencies] Images are only added to the dependency list if the
1819    reStructuredText parser extracted image dimensions from the file.
1821 .. [#footnote_space] The footnote space is trimmed if the reference
1822    style is "superscript", and it is left if the reference style is
1823    "brackets".
1825    The overriding only happens if the parser supports the
1826    trim_footnote_reference_space option.
1829 ------------------------------
1830 Old-Format Configuration Files
1831 ------------------------------
1833 Formerly, Docutils configuration files contained a single "[options]"
1834 section only.  This was found to be inflexible, and in August 2003
1835 Docutils adopted the current component-based configuration file
1836 sections as described above.  Docutils will still recognize the old
1837 "[options]" section, but complains with a deprecation warning.
1839 To convert existing config files, the easiest way is to change the
1840 section title: change "[options]" to "[general]".  Most settings
1841 haven't changed.  The only ones to watch out for are these:
1843 =====================  =====================================
1844 Old-Format Setting     New Section & Setting
1845 =====================  =====================================
1846 pep_stylesheet         [pep_html writer] stylesheet
1847 pep_stylesheet_path    [pep_html writer] stylesheet_path
1848 pep_template           [pep_html writer] template
1849 =====================  =====================================