rst2xetex(1)
β¨ rst2xetex β¨
okay bestie, so this page is the manpage for rst2xetex, and it lives in the text processing section, i.e. section 1. buckle uppp, it's a long one β worth it tho π
πΈ NAME πΈ
rst2xetex β convert reST documents to XeLaTeX π¦
π SYNOPSIS π
rst2xetex [options] [<source> [<destination>]]
π DESCRIPTION π
So what this does: it generates LaTeX (XeLaTeX/LuaLaTeX) documents from standalone reStructuredText sources. The deets are here in the docs: https://docutils.sourceforge.io/docs/user/latex.html.
It reads from <source> β and if you don't hand it a source, it just reads from stdin β and it writes to <destination> β and if you don't hand it a destination, it writes to stdout.
There's a whole detailed settings reference at https://docutils.sourceforge.io/docs/user/config.html if you wanna go feral with config. π«Ά
β¨ OPTIONS β¨
General Docutils Options
--output-path=<destination>,--output=<destination>β the name of the output destination. lowkey this obsoletes the<destination>positional argument. Default:None(stdout). π--title=<title>β set the document title as metadata.--generator,-gβ include a "Generated by Docutils" credit and link. gotta give credit where credit is due π--no-generatorβ do NOT include a generator credit.--date,-dβ include the date at the end of the document (UTC).--time,-tβ include the time & date (UTC). full timestamp energy β°--no-datestampβ include no datestamp of any kind. none. zero. nada.--root-prefix=<path>β base directory for absolute paths when reading from the local filesystem. Default"".--source-link,-sβ include a "View document source" link.--source-url=<URL>β use<URL>for a source link; this implies--source-link.--no-source-linkβ do NOT include a "View document source" link.--toc-entry-backlinksβ link from section headers to TOC entries. (default)--toc-top-backlinksβ link from section headers to the top of the TOC.--no-toc-backlinksβ disable backlinks to the table of contents.--footnote-backlinksβ link from footnotes/citations to references. (default)--no-footnote-backlinksβ disable backlinks from footnotes and citations.--section-numberingβ enable section numbering by Docutils. (default)--no-section-numberingβ disable section numbering by Docutils.--strip-commentsβ remove comment elements from the document tree.--leave-commentsβ leave comment elements in the document tree. (default)--strip-elements-with-class=<class>β remove all elements withclasses="<class>"from the document tree. > β οΈ Warning: potentially dangerous; use with caution. (Multiple-use option.)--strip-class=<class>β remove allclasses="<class>"attributes from elements in the document tree. > β οΈ Warning: potentially dangerous; use with caution. (Multiple-use option.)--report=<level>,-r <level>β report system messages at or higher than<level>, where<level>is one of"info"or"1","warning"/"2"(the default),"error"/"3","severe"/"4","none"/"5".--verbose,-vβ report ALL system messages. (Same as"--report=1".)--quiet,-qβ report no system messages. (Same as"--report=5".) π€«--halt=<level>β halt execution at system messages at or above<level>. Levels work like in--report. Default:4(severe).--strictβ halt at the slightest problem. Same as"--halt=info". she does not play π--exit-status=<level>β enable a non-zero exit status for non-halting system messages at or above<level>. Default:5(disabled).--debugβ enable debug-level system messages and diagnostics.--no-debugβ disable debug output. (default)--warnings=<file>β send the output of system messages to<file>.--tracebackβ enable Python tracebacks when Docutils is halted.--no-tracebackβ disable Python tracebacks. (default)--input-encoding=<name[:handler]>β specify the encoding, and optionally the error handler, of input text. Default:utf-8.--output-encoding=<name[:handler]>β specify the text encoding, and optionally the error handler, for output. Default:utf-8.--error-encoding=<name[:handler]>,-e <name[:handler]>β specify text encoding, and optionally the error handler, for error output. Default: system encoding.--language=<tag>,-l <tag>β specify the language as a BCP 47 language tag. Default:en.--record-dependencies=<file>β write output file dependencies to<file>.--config=<file>β read configuration settings from<file>, if it exists.--version,-Vβ show this program's version number and exit.--help,-hβ show this help message and exit. π«Ά
Generic Parser Options
--no-file-insertionβ disable directives that insert the contents of an external file; they get replaced with a"warning"system message instead.--file-insertion-enabledβ enable directives that insert the contents of an external file. (default)--no-rawβ disable the"raw"directive; it gets replaced with a"warning"system message.--raw-enabledβ enable the"raw"directive. (default)--line-length-limit=<length>β the maximal number of characters in an input line. Default10 000.--legacy-idsβ keep identifiers backwards compatible. Default.--matching-idsβ explicit targets use identifiers matching the reference name.--validateβ validate the document tree after parsing.--no-validationβ do NOT validate the document tree. (default)
reStructuredText Parser Options
--pep-referencesβ recognize and link to standalone PEP references (like"PEP 258").--pep-base-url=<URL>β base URL for PEP references (default"https://peps.python.org/").--pep-file-url-template=<URL>β template for the PEP file part of the URL. (default"pep-%04d")--rfc-referencesβ recognize and link to standalone RFC references (like"RFC 822").--rfc-base-url=<URL>β base URL for RFC references (default"https://tools.ietf.org/html/").--tab-width=<width>β set the number of spaces for tab expansion (default8).--trim-footnote-reference-spaceβ remove spaces before footnote references.--leave-footnote-reference-spaceβ leave spaces before footnote references.--syntax-highlight=<format>β the token name set for parsing code with Pygments, one of"long","short", or"none"(which means no parsing). Default is"long".--smart-quotes=<yes/no/alt>β change straight quotation marks to typographic form, one of"yes","no","alt[ernative]"(default"no").--smartquotes-locales=<language:quotes[,language:quotes,...]>β the characters to use as "smart quotes" for<language>.--word-level-inline-markupβ inline markup is recognized at word boundaries only, i.e. adjacent to punctuation or whitespace. Force character-level inline markup recognition with"\"(backslash + space). Default.--character-level-inline-markupβ inline markup is recognized anywhere, regardless of surrounding characters. Backslash-escapes must be used to avoid unwanted markup recognition. Useful for East Asian languages. Experimental.
Standalone Reader Options
--no-doc-titleβ disable the promotion of a lone top-level section title to document title (and the subsequent promotion of a section title to document subtitle; this promotion is enabled by default).--no-doc-infoβ disable the bibliographic field list transform (enabled by default).--section-subtitlesβ activate the promotion of lone subsection titles to section subtitles (disabled by default).--no-section-subtitlesβ deactivate the promotion of lone subsection titles.
LaTeX-Specific Options
--documentclass=<documentclass>β specify the LaTeX documentclass. Default:"article".--documentoptions=<options>β specify document options. Multiple options can be given, separated by commas. Default:"a4paper".--footnote-references=<format>β format for footnote references, one of"superscript"or"brackets". Default:"superscript".--use-latex-citationsβ usecitecommand for citations. (future default)--figure-citationsβ use figure floats for citations (might get mixed with real figures, just so you know). (provisional default)--attribution=<format>β format for block quote attributions, one of"dash"(em-dash prefix),"parentheses"/"parens", or"none". Default:"dash".--stylesheet=<file[,file,...]>β specify LaTeX packages/stylesheets. A style gets referenced with"usepackage"if the extension is.styor omitted, and with"input"otherwise. This overrides previous--stylesheetand--stylesheet-pathsettings.--stylesheet-path=<file[,file,...]>β a comma separated list of LaTeX packages/stylesheets. Relative paths are expanded if a matching file is found in the--stylesheet-dirs. With--link-stylesheet, the path is rewritten relative to the output.texfile.
heads up bestie β the original page literally has a broken markup artifact right here, it got hiccuped mid-write βπ: System Message: WARNING/2 (debian/tmp/man/rst2xetex.txt:, line 186) Inline emphasis start-string without end-string.
--link-stylesheetβ link to the stylesheet(s) in the output file. (default)--embed-stylesheetβ embed the stylesheet(s) in the output file. Stylesheets must be accessible during processing.--stylesheet-dirs=<dir[,dir,...]>β a comma-separated list of directories where stylesheets are found. Used by--stylesheet-pathwhen expanding relative path arguments. Default:".".--latex-preamble=<preamble>β customization by LaTeX code in the preamble. Default: select"Linux Libertine"fonts.--template=<file>β template file. Default:"xelatex.tex".--use-latex-tocβ table of contents by LaTeX. (default)--use-docutils-tocβ table of contents by Docutils (without page numbers).--use-part-sectionβ add parts on top of the section hierarchy.--use-docutils-docinfoβ attach author and date to the document info table. (default)--use-latex-docinfoβ attach author and date to the document title.--topic-abstractβ typeset abstract as topic. (default)--use-latex-abstractβ use LaTeX abstract environment for the document's abstract.--hyperlink-color=<color>β color of any hyperlinks embedded in text. Default:"blue"(use"false"to disable).--hyperref-options=<options>β additional options to the"hyperref"package.--compound-enumeratorsβ enable compound enumerators for nested enumerated lists (e.g."1.2.a.ii").
more coming in part 2, stay tuned bestie π
--no-compound-enumeratorsβ turns OFF compound enumerators for nested enumerated lists. this is the default, bestie, so this is just what you already get. π--section-prefix-for-enumeratorsβ turns ON section prefixes ("."then subsection and so on) for compound enumerators. so like2.3.1energy instead of just vibes. π¦ but β and this is important β it does literally nothing unless you also have--compound-enumeratorsturned on. no cap. zero effect otherwise. π--no-section-prefix-for-enumeratorsβ turns OFF those section prefixes for compound enumerators. also the default. we're all just out here defaulting. β¨--section-enumerator-separator=<char>β sets the separator that sits between the section number and the enumerator in compound enumerated lists. default:"-". so you get that cute little hyphen moment by default. π--literal-block-env=<environment>β when it can, it uses the environment you name for literal-blocks. default:""β which means it falls back to"alltt". she has a backup plan, always. π--table-style=<format>β your table aesthetic, pick your fighter: π"standard"β horizontal AND vertical lines, the classic"booktabs"β LaTeX booktabs style, so only horizontal lines above and below the table, plus one below the header. very clean, very editorial."borderless"β no lines, just vibes- default:
"standard"
--graphicx-option=<option>β sets the LaTeX graphicx package option. default:"". that's it, that's the whole thing π«Ά--reference-label=<commandname>β by default, the latex-writer puts the reference title into hyperreferences. if you want the section number or the page number instead, specify"ref"or"pageref"here. pick your lore. π--use-bibtex=<style,bibfile[,bibfile,...]>β names the style and the database(s) for bibtex, like"--use-bibtex=unsrt,mydb1,mydb2". β οΈ Provisional! β do not build your whole personality on this one yet, it's still cooking. π--legacy-class-functionsβ uses the legacy functions with the class value list forDUtitleandDUadmonition. the old way, the throwback. π--new-class-functionsβ usesDUroleand"DUclass"wrappers for class values, and puts admonition content in an environment. this is the default. main character behaviour, genuinely. π--legacy-column-widthsβ uses the legacy algorithm to figure out table column widths. this is the provisional default right now, so heads up, it's the one you're getting unless you say otherwise. π--new-column-widthsβ uses the new algorithm for table column widths. it's marked as the future default, so enjoy it now before it becomes the norm. π--docutils-footnotesβ footnotes with numbers/symbols courtesy of Docutils. default. π--latex-footnotesβ footnotes with numbers, brought to you by LaTeX. π
and that's the whole page, bestie!! π«Ά you made it all the way to the bottom, which honestly is iconic of you. this was rst2xetex(1) β yes, the man page itself is literally named that, she's self-titled, she's the moment. β¨ π
πΈ
go forth and xetex responsibly. periodt. π
π¦ where this page comes from
- ubuntu stonking: docutils-common 0.23+dfsg-2 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms