LATEX2TEXT(1)
πΈ LATEX2TEXT(1) πΈ
okay bestie so this is latex2text, a User Commands girlie, and she is literally part of pylatexenc: your simple LaTeX parser provider for converting to/from unicode π
β¨ NAME β¨
latex2text β part of pylatexenc: simple LaTeX parser provider conversion to/from unicode π¦
π DESCRIPTION π
so the usage is giving:
latex2text [--code LATEX_CODE] [--tolerant-parsing]
[--no-tolerant-parsing] [--math-mode
{text,with-delimiters,verbatim,remove}] [--fill-text [FILL_TEXT]]
[--keep-comments] [--no-keep-comments] [--strict-latex-spaces
{off,on,based-on-source,macros,except-in-equations}]
[--keep-braced-groups] [--no-keep-braced-groups]
[--keep-braced-groups-minlen KEEP_BRACED_GROUPS_MINLEN] [-q] [-v]
[--version] [--help] [FILE [FILE ...]]
periodt π
π Input options π
--code LATEX_CODE,-c LATEX_CODEβ convert theLATEX_CODEyou hand over into unicode text instead of reading fromFILEor standard input. π«Ά heads up tho: you can't specifyFILEs if you use this option, and any standard input is just ignored, no cap.FILEβ input files to read LaTeX code from. if noFILE(s) is/are specified, LaTeX code gets read from standard input unless--codeis specified π
π§ LatexWalker options π§
--tolerant-parsing--no-tolerant-parsingβ tolerate syntax errors when parsing, and attempt to continue (default yes) πβ¨
π LatexNodes2Text options π
--math-mode {text,with-delimiters,verbatim,remove}β how to handle chunks of math mode LaTeX code. let me break it down:'text'= convert to text like the rest'with-delimiters'= same as'text'but retain the original math mode delimiters'verbatim'= keep verbatim LaTeX code'remove'= remove from input entirely ποΈ
--fill-text [FILL_TEXT]β attempt to wrap text to the given width, or 80 columns if the option is specified with no argument π--keep-comments--no-keep-commentsβ keep LaTeX comments in text output (default no)--strict-latex-spaces {off,on,based-on-source,macros,except-in-equations}β how to handle whitespace. see documentation for the classLatexNodes2Text(). π--keep-braced-groups--no-keep-braced-groupsβ keep LaTeX{braced groups}in text output (default no)--keep-braced-groups-minlen KEEP_BRACED_GROUPS_MINLENβ only apply--keep-braced-groupsto groups that contain at least this many characters π
π General options π
-q,--quietβ suppress warning messages π€«-v,--verboseβ verbose output π’--versionβ show version information and exit--helpβ show this help information and exit π
π AUTHORS π
pylatexenc was primarily written by Philippe Faist. π
π₯ SEE ALSO π₯
this script is part of pylatexenc. full documentation for the pylatexenc suite can be consulted at https://pylatexenc.readthedocs.io . π
k bye bestie, go convert some LaTeX π β¨
this was latex2text 2.10, dated June 2021 β mwah, slay, see u in the docs π¦
π¦ where this page comes from
- debian bookworm: python3-pylatexenc 2.10-2 Β· MIT
- debian trixie: python3-pylatexenc 2.10-2 Β· MIT
- ubuntu jammy: python3-pylatexenc 2.10-2 Β· MIT
- ubuntu noble: python3-pylatexenc 2.10-2 Β· MIT
- ubuntu resolute: python3-pylatexenc 2.10-2build1 Β· MIT
- ubuntu stonking: python3-pylatexenc 2.10-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms