MYSTNB-DOCUTILS-LATEX(1)

πŸŽ€ MYSTNB-DOCUTILS-LATEX(1) πŸŽ€

okay bestie, you've landed in User Commands and this is the manual page for mystnb-docutils-latex β€” grab a lil snack, we're doing this together πŸ’–


πŸ’œ NAME πŸ’œ

mystnb-docutils-latex β€” and honestly the description is also just mystnb-docutils-latex. iconic, no notes πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

✨ Usage ✨

mystnb-docutils-latex [options] [<source> [<destination>]]

So here's the vibe: this thing generates LaTeX documents from standalone MyST Notebook sources ✨. It reads from <source> β€” and if you don't hand it one, default is stdin β€” and writes to <destination>, and if you don't hand it that, default is stdout.

Want the full settings reference? Literally go read https://docutils.sourceforge.io/docs/user/config.html, it has everything in detail, iykyk πŸ“–

External outputs get written to --nb-output-folder, noted 🫢

🌸 Options 🌸

πŸŽ€ General Docutils Options πŸŽ€

  • --output-path=<destination>, --output=<destination> β€” the output destination name, periodt. This obsoletes the <destination> positional argument, so like… pick a lane bestie. Default: None (stdout).
  • --title=<title> β€” sets the document title as metadata 🏷️
  • --generator, -g β€” includes a "Generated by Docutils" credit and link, give credit where it's due πŸ’…
  • --no-generator β€” do not include a generator credit, humble era πŸ™ˆ
  • --date, -d β€” include the date at the end of the document (UTC) πŸ“…
  • --time, -t β€” include the time & date (UTC) ⏰
  • --no-datestamp β€” no datestamp of any kind, we're timeless ✨
  • --root-prefix=<path> β€” base directory for absolute paths when reading from the local filesystem. Default "".
  • --source-link, -s β€” includes 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, hidden source era πŸ™ˆ
  • --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 entirely, no take-backs πŸ’€
  • --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.)
bestie those last two are lowkey spicy β€” "potentially dangerous" is right there in the docs, so use with caution, fr fr 🫢
  • --report=<level>, -r <level> β€” report system messages at or higher than <level>, and the levels go: "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". 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 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 πŸ†˜

πŸ¦‹ MyST-NB options πŸ¦‹

  • --nb-read-as-md=<boolean> β€” read as the MyST Markdown format (default: False)
  • --nb-metadata-key=<str> β€” notebook level metadata key for config overrides (default: (default: 'mystnb'))
  • --nb-cell-metadata-key=<str> β€” cell level metadata key for config overrides (default: (default: 'mystnb'))
  • --nb-eval-name-regex=<str> β€” regex that matches permitted values of eval expressions (default: (default: '^[a-zAZ_][a-zA-Z0-9_]*$')) β€” yes, that's a-zAZ, we copy exactly, don't come for me πŸ’€
  • --nb-execution-mode=<'off'|'force'|'auto'|'cache'|'inline'> β€” execution mode for notebooks (default: 'auto') βš™οΈ
  • --nb-execution-cache-path=<str> β€” path to folder for caching notebooks (default: <outdir>) (default: (default: '')) β€” the doubled default is genuinely what it says, iykyk πŸ™ˆ
  • --nb-execution-timeout=<int> β€” execution timeout (seconds) (default: 30) ⏳
  • --nb-execution-in-temp=<boolean> β€” use temporary folder for the execution current working directory (default: False)
  • --nb-execution-allow-errors=<boolean> β€” allow errors during execution (default: False)
  • --nb-execution-raise-on-error=<boolean> β€” raise an exception on failed execution, rather than emitting a warning (default: False) 😀
  • --nb-execution-show-tb=<boolean> β€” print traceback to stderr on execution error (default: False)
  • --nb-merge-streams=<boolean> β€” merge all stdout execution output streams; same with stderr (default: False) 🌊
  • --nb-render-plugin=<str> β€” the entry point for the execution output render class (in group myst_nb.output_renderer) (default: (default: 'default'))
  • --nb-remove-code-source=<boolean> β€” remove code cell source (default: False)
  • --nb-remove-code-outputs=<boolean> β€” remove code cell outputs (default: False)
  • --nb-scroll-outputs=<boolean> β€” make long cell outputs scrollable (default: False) πŸ“œ
  • --nb-code-prompt-show=<str> β€” prompt to expand hidden code cell {content|source|outputs} (default: (default: 'Show code cell {type}'))
  • --nb-code-prompt-hide=<str> β€” prompt to collapse hidden code cell {content|source|outputs} (default: (default: 'Hide code cell {type}'))
  • --nb-number-source-lines=<boolean> β€” number code cell source lines (default: False) πŸ”’
  • --nb-builder-name=<str> β€” builder name, to select render priority for mime types (default: (default: 'html'))
  • --nb-output-stderr=<'show'|'remove'|'remove-warn'|'warn'|'error'|'severe'> β€” behaviour for stderr output (default: 'show')
  • --nb-render-text-lexer=<str> β€” Pygments lexer applied to stdout/stderr and text/plain outputs (default: (default: 'myst-ansi'))
  • --nb-render-error-lexer=<str> β€” Pygments lexer applied to error/traceback outputs (default: (default: 'ipythontb'))
  • --nb-render-markdown-format=<'commonmark'|'gfm'|'myst'> β€” the format to use for text/markdown rendering (default: 'commonmark')
  • --nb-output-folder=<str> β€” folder for external outputs (like images), skipped if empty (default: (default: 'build')) πŸ“
  • --nb-append-css=<boolean> β€” add default MyST-NB CSS to HTML outputs (default: True) 🎨
  • --nb-metadata-to-fm=<boolean> β€” convert unhandled metadata to frontmatter (default: False)

🌈 MyST options 🌈

  • --myst-commonmark-only=<boolean> β€” use strict CommonMark parser (default: False)
  • --myst-gfm-only=<boolean> β€” use strict Github Flavoured Markdown parser (default: False)
  • --myst-enable-extensions=<comma-delimited> β€” enable syntax extensions ✨
  • --myst-disable-syntax=<comma-delimited> β€” disable Commonmark syntax elements 🚫
  • --myst-all-links-external=<boolean> β€” parse all links as simple hyperlinks (default: False)
  • --myst-links-external-new-tab=<boolean> β€” open all external links in a new tab (default: False) πŸͺŸ
  • --myst-url-schemes=<comma-delimited>|<yaml-dict> β€” URI schemes that are converted to external links (default: http,https,mailto,ftp)
  • --myst-fence-as-directive=<comma-delimited> β€” interpret a code fence as a directive, for certain language names. This can be useful for fences like dot and mermaid, and interoperability with other Markdown renderers πŸ§œβ€β™€οΈ
  • --myst-number-code-blocks=<comma-delimited> β€” add line numbers to code blocks with these languages πŸ”’
  • --myst-title-to-header=<boolean> β€” convert a title field in the front-matter to a H1 header (default: False)
  • --myst-heading-anchors=<int> β€” heading level depth to assign HTML anchors (default: 0) βš“
  • --myst-heading-slug-func=<str> β€” function for creating heading anchors, or a python import path e.g. my_package.my_module.my_function (default: (default: 'None'))
  • --myst-html-meta=<yaml-dict> β€” HTML meta tags 🏷️
  • --myst-footnote-sort=<boolean> β€” move all footnotes to the end of the document, and sort by reference order (default: True)
  • --myst-footnote-transition=<boolean> β€” place a transition before sorted footnotes (default: True)
  • --myst-words-per-minute=<int> β€” for reading speed calculations (default: 200) πŸ“–
  • --myst-substitutions=<yaml-dict> β€” substitutions mapping πŸ”
  • --myst-linkify-fuzzy-links=<boolean> β€” recognise URLs without schema prefixes (default: True)
  • --myst-dmath-allow-labels=<boolean> β€” parse $$...$$ (label) (default: True)
  • --myst-dmath-allow-space=<boolean> β€” allow initial/final spaces in $ ... $ (default: True)
  • --myst-dmath-allow-digits=<boolean> β€” allow initial/final digits 1$ ...$2 (default: True)
  • --myst-dmath-double-inline=<boolean> β€” parse inline $$ ... $$ (default: False)
  • --myst-enable-checkboxes=<boolean> β€” enable checkboxes (default: False) β˜‘οΈ
  • --myst-suppress-warnings=<comma-delimited> β€” a list of warning types to suppress warning messages 🀫
  • --myst-highlight-code-blocks=<boolean> β€” syntax highlight code blocks with pygments (default: True) 🌈
  • --myst-inventories=<yaml-dict> β€” mapping of key to (url, inv file), for intra-project referencing πŸ”—

πŸ’… 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 β€” turns on directives that insert the contents of an external file. (default) ✨
  • --no-raw β€” disables the "raw" directive; it gets swapped for a "warning" system message. lowkey a safety vibe.
  • --raw-enabled β€” turns the "raw" directive back on. (default)
  • --line-length-limit=<length> β€” maximal number of characters in an input line. default is 10 000. no cap, that's a lot.
  • --validate β€” validate the document tree after parsing. self-care for your doc tree πŸ’…
  • --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 PEP file part of 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 number of spaces for tab expansion (default 8).
  • --trim-footnote-reference-space β€” remove spaces before footnote references.
  • --leave-footnote-reference-space β€” leave spaces before footnote references.
  • --syntax-highlight=<format> β€” token name set for parsing code with Pygments: one of "long", "short", or "none" (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,...]> β€” characters to use as "smart quotes" for <language>.
  • --word-level-inline-markup β€” inline markup recognized at word boundaries only (adjacent to punctuation or whitespace). Force character-level inline markup recognition with \ (backslash + space). Default.
  • --character-level-inline-markup β€” inline markup 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 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=<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 β€” 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=<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=<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").
  • --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=<environment> β€” when possible, use the specified environment for literal-blocks. Default: "" (fall back to "alltt").
  • --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=<option> β€” LaTeX graphicx package option. Default: "".
  • --font-encoding=<encoding> β€” LaTeX font encoding. Possible values are "", "T1" (default), "OT1", "LGR,T1" or any other combination of options to the fontenc package.
  • --reference-label=<command name> β€” 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=<style,bibfile[,bibfile,...]> β€” specify style and database(s) for bibtex, for example "--use-bibtex=unsrt,mydb1,mydb2". Provisional!
  • --legacy-class-functions β€” use legacy functions with class value list for \DUtitle and \DUadmonition.
  • --new-class-functions β€” use \DUrole and "DUclass" wrappers for class values. Place admonition content in an environment. (default)
  • --legacy-column-widths β€” use legacy algorithm to determine table column widths. (provisional default)
  • --new-column-widths β€” use new algorithm to determine table column widths. (future default)
  • --docutils-footnotes β€” footnotes with numbers/symbols by Docutils. (default) (The alternative, --latex-footnotes, is not implemented yet.)

πŸ’– that's the teaaa, bestie: source/version is debian, date is January 2026, and the page is MYSTNB-DOCUTILS-LATEX(1). periodt. πŸ’–

πŸ“¦ where this page comes from