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 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.)
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'sa-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 groupmyst_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 likedotandmermaid, 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 atitlefield 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 digits1$ ...$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 is10 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 (default8).--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\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\usepackageif extension is".sty"or omitted and with\inputelse. 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=<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 thefontencpackage.--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\DUtitleand\DUadmonition.--new-class-functionsβ use\DUroleand"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
- ubuntu resolute: python3-myst-nb 1.3.0-2 Β· BSD-3-Clause
- ubuntu stonking: python3-myst-nb 1.3.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms