Debian Codegraph @

test/data/help/rst2latex.rst

raw ◀ ▶
1 Debian patch touch this file
1 Usage
2 =====
3 rst2latex [options] [<source> [<destination>]]
4
5 Generate LaTeX documents from standalone reStructuredText sources
6 <https://docutils.sourceforge.io/docs/user/latex.html>. Reads from <source>
7 (default is stdin) and writes to <destination> (default is stdout). See
8 https://docutils.sourceforge.io/docs/user/config.html for a detailed settings
9 reference.
10
11 Options
12 =======
13 General Docutils Options
14 ------------------------
15 --output-path=<destination>, --output=<destination>
16 Output destination name. Obsoletes the <destination>
17 positional argument. Default: None (stdout).
18 --title=<title> Specify the document title as metadata.
19 --generator, -g Include a "Generated by Docutils" credit and link.
20 --no-generator Do not include a generator credit.
21 --date, -d Include the date at the end of the document (UTC).
22 --time, -t Include the time & date (UTC).
23 --no-datestamp Do not include a datestamp of any kind.
24 --root-prefix=<path> Base directory for absolute paths when reading from
25 the local filesystem. Default "".
26 --source-link, -s Include a "View document source" link.
27 --source-url=<URL> Use <URL> for a source link; implies --source-link.
28 --no-source-link Do not include a "View document source" link.
29 --toc-entry-backlinks Link from section headers to TOC entries. (default)
30 --toc-top-backlinks Link from section headers to the top of the TOC.
31 --no-toc-backlinks Disable backlinks to the table of contents.
32 --footnote-backlinks Link from footnotes/citations to references. (default)
33 --no-footnote-backlinks
34 Disable backlinks from footnotes and citations.
35 --section-numbering Enable section numbering by Docutils. (default)
36 --no-section-numbering Disable section numbering by Docutils.
37 --strip-comments Remove comment elements from the document tree.
38 --leave-comments Leave comment elements in the document tree. (default)
39 --strip-elements-with-class=<class>
40 Remove all elements with classes="<class>" from the
41 document tree. Warning: potentially dangerous; use
42 with caution. (Multiple-use option.)
43 --strip-class=<class> Remove all classes="<class>" attributes from elements
44 in the document tree. Warning: potentially dangerous;
45 use with caution. (Multiple-use option.)
46 --report=<level>, -r <level>
47 Report system messages at or higher than <level>:
48 "info" or "1", "warning"/"2" (default), "error"/"3",
49 "severe"/"4", "none"/"5"
50 --verbose, -v Report all system messages. (Same as "--report=1".)
51 --quiet, -q Report no system messages. (Same as "--report=5".)
52 --halt=<level> Halt execution at system messages at or above <level>.
53 Levels as in --report. Default: 4 (severe).
54 --strict Halt at the slightest problem. Same as "--halt=info".
55 --exit-status=<level> Enable a non-zero exit status for non-halting system
56 messages at or above <level>. Default: 5 (disabled).
57 --debug Enable debug-level system messages and diagnostics.
58 --no-debug Disable debug output. (default)
59 --warnings=<file> Send the output of system messages to <file>.
60 --traceback Enable Python tracebacks when Docutils is halted.
61 --no-traceback Disable Python tracebacks. (default)
62 --input-encoding=<name[:handler]>
63 Specify the encoding and optionally the error handler
64 of input text. Default: utf-8.
65 --output-encoding=<name[:handler]>
66 Specify the text encoding and optionally the error
67 handler for output. Default: utf-8.
68 --error-encoding=<name[:handler]>, -e <name[:handler]>
69 Specify text encoding and optionally the error handler
•70 for error output. Default: system encoding.
71 --language=<tag>, -l <tag>
72 Specify the language (as BCP 47 language tag).
73 Default: en.
74 --record-dependencies=<file>
75 Write output file dependencies to <file>.
76 --config=<file> Read configuration settings from <file>, if it exists.
77 --version, -V Show this program's version number and exit.
78 --help, -h Show this help message and exit.
79
80 Generic Parser Options
81 ----------------------
82 --no-file-insertion Disable directives that insert the contents of an
83 external file; replaced with a "warning" system
84 message.
85 --file-insertion-enabled
86 Enable directives that insert the contents of an
87 external file. (default)
88 --no-raw Disable the "raw" directive; replaced with a "warning"
89 system message.
90 --raw-enabled Enable the "raw" directive. (default)
91 --line-length-limit=<length>
92 Maximal number of characters in an input line. Default
93 10 000.
94 --legacy-ids Keep identifiers backwards compatible. Default.
95 --matching-ids Explicit targets use identifiers matching the
96 reference name.
97 --validate Validate the document tree after parsing.
98 --no-validation Do not validate the document tree. (default)
99
100 reStructuredText Parser Options
101 -------------------------------
102 --pep-references Recognize and link to standalone PEP references (like
103 "PEP 258").
104 --pep-base-url=<URL> Base URL for PEP references (default
105 "https://peps.python.org/").
106 --pep-file-url-template=<URL>
107 Template for PEP file part of URL. (default
108 "pep-%04d")
109 --rfc-references Recognize and link to standalone RFC references (like
110 "RFC 822").
111 --rfc-base-url=<URL> Base URL for RFC references (default
112 "https://tools.ietf.org/html/").
113 --tab-width=<width> Set number of spaces for tab expansion (default 8).
114 --trim-footnote-reference-space
115 Remove spaces before footnote references.
116 --leave-footnote-reference-space
117 Leave spaces before footnote references.
118 --syntax-highlight=<format>
119 Token name set for parsing code with Pygments: one of
120 "long", "short", or "none" (no parsing). Default is
121 "long".
122 --smart-quotes=<yes/no/alt>
123 Change straight quotation marks to typographic form:
124 one of "yes", "no", "alt[ernative]" (default "no").
125 --smartquotes-locales=<language:quotes[,language:quotes,...]>
126 Characters to use as "smart quotes" for <language>.
127 --word-level-inline-markup
128 Inline markup recognized at word boundaries only
129 (adjacent to punctuation or whitespace). Force
130 character-level inline markup recognition with "\ "
131 (backslash + space). Default.
132 --character-level-inline-markup
133 Inline markup recognized anywhere, regardless of
134 surrounding characters. Backslash-escapes must be used
135 to avoid unwanted markup recognition. Useful for East
136 Asian languages. Experimental.
137
138 Standalone Reader Options
139 -------------------------
140 --no-doc-title Disable the promotion of a lone top-level section
141 title to document title (and subsequent section title
142 to document subtitle promotion; enabled by default).
143 --no-doc-info Disable the bibliographic field list transform
144 (enabled by default).
145 --section-subtitles Activate the promotion of lone subsection titles to
146 section subtitles (disabled by default).
147 --no-section-subtitles Deactivate the promotion of lone subsection titles.
148
149 LaTeX-Specific Options
150 ----------------------
151 --documentclass=<documentclass>
152 Specify LaTeX documentclass. Default: "article".
153 --documentoptions=<options>
154 Specify document options. Multiple options can be
155 given, separated by commas. Default: "a4paper".
156 --footnote-references=<format>
157 Format for footnote references: one of "superscript"
158 or "brackets". Default: "superscript".
159 --use-latex-citations Use \cite command for citations. (future default)
160 --figure-citations Use figure floats for citations (might get mixed with
161 real figures). (provisional default)
162 --attribution=<format> Format for block quote attributions: one of "dash"
163 (em-dash prefix), "parentheses"/"parens", or "none".
164 Default: "dash".
165 --stylesheet=<file[,file,...]>
166 Specify LaTeX packages/stylesheets. A style is
167 referenced with "\usepackage" if extension is ".sty"
168 or omitted and with "\input" else. Overrides previous
169 --stylesheet and --stylesheet-path settings.
170 --stylesheet-path=<file[,file,...]>
171 Comma separated list of LaTeX packages/stylesheets.
172 Relative paths are expanded if a matching file is
173 found in the --stylesheet-dirs. With --link-
174 stylesheet, the path is rewritten relative to the
175 output *.tex file.
176 --link-stylesheet Link to the stylesheet(s) in the output file.
177 (default)
178 --embed-stylesheet Embed the stylesheet(s) in the output file.
179 Stylesheets must be accessible during processing.
180 --stylesheet-dirs=<dir[,dir,...]>
181 Comma-separated list of directories where stylesheets
182 are found. Used by --stylesheet-path when expanding
183 relative path arguments. Default: ".".
184 --latex-preamble=<preamble>
185 Customization by LaTeX code in the preamble. Default:
186 select PDF standard fonts (Times, Helvetica, Courier).
187 --template=<file> Specify the template file. Default: "default.tex".
188 --use-latex-toc Table of contents by LaTeX. (default)
189 --use-docutils-toc Table of contents by Docutils (without page numbers).
190 --use-part-section Add parts on top of the section hierarchy.
191 --use-docutils-docinfo Attach author and date to the document info table.
192 (default)
193 --use-latex-docinfo Attach author and date to the document title.
194 --topic-abstract Typeset abstract as topic. (default)
195 --use-latex-abstract Use LaTeX abstract environment for the document's
196 abstract.
197 --hyperlink-color=<color>
198 Color of any hyperlinks embedded in text. Default:
199 "blue" (use "false" to disable).
200 --hyperref-options=<options>
201 Additional options to the "hyperref" package.
202 --compound-enumerators Enable compound enumerators for nested enumerated
203 lists (e.g. "1.2.a.ii").
204 --no-compound-enumerators
205 Disable compound enumerators for nested enumerated
206 lists. (default)
207 --section-prefix-for-enumerators
208 Enable section ("." subsection ...) prefixes for
209 compound enumerators. This has no effect without
210 --compound-enumerators.
211 --no-section-prefix-for-enumerators
212 Disable section prefixes for compound enumerators.
213 (default)
214 --section-enumerator-separator=<char>
215 Set the separator between section number and
216 enumerator for compound enumerated lists. Default:
217 "-".
218 --literal-block-env=<environment>
219 When possible, use the specified environment for
220 literal-blocks. Default: "" (fall back to "alltt").
221 --table-style=<format> Table style. "standard" with horizontal and vertical
222 lines, "booktabs" (LaTeX booktabs style) only
223 horizontal lines above and below the table and below
224 the header, or "borderless". Default: "standard"
225 --graphicx-option=<option>
226 LaTeX graphicx package option. Default: "".
227 --font-encoding=<encoding>
228 LaTeX font encoding. Possible values are "", "T1"
229 (default), "OT1", "LGR,T1" or any other combination of
230 options to the `fontenc` package.
231 --reference-label=<command name>
232 Per default the latex-writer puts the reference title
233 into hyperreferences. Specify "ref" or "pageref" to
234 get the section number or the page number.
235 --use-bibtex=<style,bibfile[,bibfile,...]>
236 Specify style and database(s) for bibtex, for example
237 "--use-bibtex=unsrt,mydb1,mydb2". Provisional!
238 --legacy-class-functions
239 Use legacy functions with class value list for
240 \DUtitle and \DUadmonition.
241 --new-class-functions Use \DUrole and "DUclass" wrappers for class values.
242 Place admonition content in an environment. (default)
243 --legacy-column-widths Use legacy algorithm to determine table column widths.
244 (provisional default)
245 --new-column-widths Use new algorithm to determine table column widths.
246 (future default)
247 --docutils-footnotes Footnotes with numbers/symbols by Docutils. (default)
248 --latex-footnotes Footnotes with numbers by LaTeX.