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 the LATEX_CODE you hand over into unicode text instead of reading from FILE or standard input. 🫢 heads up tho: you can't specify FILEs if you use this option, and any standard input is just ignored, no cap.
  • FILE β€” input files to read LaTeX code from. if no FILE(s) is/are specified, LaTeX code gets read from standard input unless --code is 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 class LatexNodes2Text(). πŸ‘‘
  • --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-groups to 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 πŸ¦‹