CM2XETEX(1)

πŸ“¦
version 0.7.1 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸŽ€ CM2XETEX(1) πŸŽ€

okay bestie, welcome to the cm2xetex page πŸ’– this one ships with the recommonmark Python package, and it's literally just here to turn your CommonMark files into XeTeX source. no cap.


✨ NAME ✨

cm2xetex β€” convert CommonMark file to XeTeX source πŸ¦‹


🌸 SYNOPSIS 🌸

cm2xetex [options] [<source> [<destination>]]

πŸ’« DESCRIPTION πŸ’«

So the whole vibe is: you feed it markdown, it hands you a xetex document. It reads from <source> (and if you don't give it one, it just reads from stdin β€” she's flexible like that πŸ’…), then writes to <destination> (and if that's missing too, she writes to stdout). iconic behavior fr fr.

If you want the full settings reference, go peek at https://docutils.sourceforge.io/docs/user/config.html πŸ‘‘


πŸ‘‘ OPTIONS πŸ‘‘

🌈 General Docutils Options:

  • --title=TITLE β€” set the document title as metadata ✨
  • --generator, -g β€” tack on a "Generated by Docutils" credit and link 🫢
  • --no-generator β€” no generator credit, we're humble today
  • --date, -d β€” drop the date at the end of the document (UTC) πŸ“…
  • --time, -t β€” drop the time & date (UTC) ⏰
  • --no-datestamp β€” no datestamp of any kind, periodt
  • --source-link, -s β€” add a "View document source" link πŸ”—
  • --source-url=<URL> β€” use <URL> for a source link; this implies --source-link
  • --no-source-link β€” no "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 with classes="<class>" from the document tree.
⚠️ Warning: potentially dangerous; use with caution. (Multiple-use option.)
  • --strip-class=<class> β€” remove all classes="<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>: "info" or "1", "warning"/"2" (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 as in --report. Default: 4 (severe) πŸ›‘
  • --strict β€” halt at the slightest problem. Same as "--halt=info". 😀
  • --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]>, -i <name[:handler]> β€” specify the encoding and optionally the error handler of input text. Default: <auto-detect>:strict.
  • --input-encoding-error-handler=INPUT_ENCODING_ERROR_HANDLER β€” specify the error handler for undecodable characters. Choices: "strict" (default), "ignore", and "replace".
  • --output-encoding=<name[:handler]>, -o <name[:handler]> β€” specify the text encoding and optionally the error handler for output. Default: utf-8:strict.
  • --output-encoding-error-handler=OUTPUT_ENCODING_ERROR_HANDLER β€” specify error handler for unencodable output characters; "strict" (default), "ignore", "replace", "xmlcharrefreplace", "backslashreplace".
  • --error-encoding=<name[:handler]>, -e <name[:handler]> β€” specify text encoding and optionally error handler for error output. Default text encoding: system encoding. Default error handler: backslashreplace.
  • --error-encoding-error-handler=ERROR_ENCODING_ERROR_HANDLER β€” specify the error handler for unencodable characters in error output. Default: backslashreplace.
  • --language=<name>, -l <name> β€” specify the language (as 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; replaced with a "warning" system message
  • --file-insertion-enabled β€” enable directives that insert the contents of an external file. (default)
  • --no-raw β€” disable the "raw" directive; replaced with a "warning" system message
  • --raw-enabled β€” enable the "raw" directive. (default)
  • --line-length-limit=<length> β€” maximal number of characters in an input line. Default 10 000. πŸ“

πŸ¦‹ Standalone Reader Options:

  • --no-doc-title β€” disable the promotion of a lone top-level section title to document title (and subsequent section title to document subtitle promotion; 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 LaTeX documentclass. Default: "article".
  • --documentoptions=DOCUMENTOPTIONS β€” 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 β€” use \cite command for citations. (future default)
  • --figure-citations β€” use figure floats for citations (might get mixed with real figures). (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 is referenced with "\usepackage" if extension is ".sty" or omitted and with "\input" else. Overrides previous --stylesheet and --stylesheet-path settings. πŸ’
  • --stylesheet-path=<file[,file,...]> β€” comma separated list of LaTeX packages/stylesheets. Relative paths are expanded if a matching file is found in the --stylesheet-dirs. With --linkstylesheet, the path is rewritten relative to the output *.tex file.
  • --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,...]> β€” comma-separated list of directories where stylesheets are found. Used by --stylesheet-path when expanding relative path arguments. Default: ".".
  • --latex-preamble=LATEX_PREAMBLE β€” customization by LaTeX code in the preamble. Default: select PDF standard fonts (Times, Helvetica, Courier).
  • --template=<file> β€” specify the template file. Default: "default.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=HYPERLINK_COLOR β€” color of any hyperlinks embedded in text. Default: "blue" (use "false" to disable). 🌈
  • --hyperref-options=HYPERREF_OPTIONS β€” additional options to the "hyperref" package.
  • --compound-enumerators β€” enable compound enumerators for nested enumerated lists (e.g. "1.2.a.ii"). πŸ”’
  • --no-compound-enumerators β€” disable compound enumerators for nested enumerated lists. (default)
  • --section-prefix-for-enumerators β€” enable section ("." subsection ...) prefixes for compound enumerators. This has no effect without --compound-enumerators.
  • --no-section-prefix-for-enumerators β€” disable section prefixes for compound enumerators. (default)
  • --section-enumerator-separator=<char> β€” set the separator between section number and enumerator for compound enumerated lists. Default: "-".
  • --literal-block-env=LITERAL_BLOCK_ENV β€” when possible, use the specified environment for literal-blocks. Default: "" (fall back to "alltt").
  • --use-verbatim-when-possible β€” deprecated alias for "--literal-block-env=verbatim". 🚨
heads up bestie, this one's deprecated β€” it's just an alias now.
  • --table-style=<format> β€” table style. "standard" with horizontal and vertical lines, "booktabs" (LaTeX booktabs style) only horizontal lines above and below the table and below the header, or "borderless". Default: "standard"
  • --graphicx-option=GRAPHICX_OPTION β€” LaTeX graphicx package option. Possible values are "dvipdfmx", "dvips", "dvisvgm", "luatex", "pdftex", and "xetex".Default: "".
  • --font-encoding=FONT_ENCODING β€” LaTeX font encoding. Possible values are "", "T1" (default), "OT1", "LGR,T1" or any other combination of options to the fontenc package.
  • --reference-label=REFERENCE_LABEL β€” per default the latex-writer puts the reference title into hyperreferences. Specify "ref*" or "pageref*" to get the section number or the page number.
  • --use-bibtex=USE_BIBTEX β€” specify style and database for bibtex, for example "--use-bibtex=mystyle,mydb1,mydb2". πŸ“š
  • --legacy-class-functions β€” bestie, this one rolls old-school: it uses the legacy functions with a class value list for \DUtitle and \DUadmonition. vintage vibes only πŸ’…
  • --new-class-functions β€” the glow-up option ✨ it uses \DUrole and "DUclass" wrappers for class values, and drops admonition content into an environment. this is the default, so if you do nothing, you already got it 🫢
  • --legacy-column-widths β€” uses the legacy algorithm to figure out table column widths. it's the provisional default rn, like, it's holding the spot but we all know things are shifting πŸ‘€
  • --new-column-widths β€” uses the new algorithm to determine table column widths. labeled the future default because it's giving main character energy that just hasn't premiered yet πŸ¦‹
  • --docutils-footnotes β€” footnotes with numbers/symbols, courtesy of Docutils. this is the default πŸ’– (and the alternative, --latex-footnotes, is not implemented yet β€” so don't come for her, she's literally not ready 😭)

πŸ‘‘ AUTHOR πŸ‘‘

Steve Genoud and Luca Barbato

Copyright (C) 2014 Steve Genoud and Luca Barbato


okay bestie that's the whole page, we ate and left no crumbs πŸ’… this came to you from recommonmark (Debian 0.7.1+ds-5), dated February 2023 β€” and the page is CM2XETEX(1), fr fr 🌸 go forth and convert those docs, ily, bye 🫢✨

πŸ“¦ where this page comes from