CM2XETEX(1)
π 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 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>:"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. Default10 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\citecommand 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--stylesheetand--stylesheet-pathsettings. π--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*.texfile.--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-pathwhen 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 thefontencpackage.--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\DUtitleand\DUadmonition. vintage vibes only π--new-class-functionsβ the glow-up option β¨ it uses\DUroleand"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 π
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
- debian bookworm: recommonmark-scripts 0.7.1+ds-5 Β· MIT
- ubuntu noble: recommonmark-scripts 0.7.1+ds-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms