LATEXENCODE(1)

🌸 LATEXENCODE(1) β€” User Commands 🌸

okay so bestie, welcome to latexencode πŸ’–


✨ NAME ✨

latexencode β€” part of pylatexenc: simple LaTeX parser provider conversion to/from unicode πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

here's the vibe, the usage line, the whole thing, no cap:

usage: latexencode [--non-ascii-only] [--no-non-ascii-only]

       [--replacement-latex-protection
       {braces,braces-all,braces-almost-all,braces-after-macro,none}]
       [--unknown-char-policy {keep,replace,ignore,fail}] [-q]
       [--version] [--help] [FILE [FILE ...]]

πŸŽ€ positional arguments: πŸŽ€

  • FILE β€” your input files! if you don't hand over any, she reads from standard input instead 🫢

⭐ optional arguments: ⭐

  • --non-ascii-only
  • --no-non-ascii-only

the option --non-ascii-only is saying: only nonascii characters get encoded into LaTeX sequences. and like, not characters like '$' β€” even though they might have a special LaTeX meaning. so rude of them to have meanings honestly 😭

  • --replacement-latex-protection {braces,braces-all,braces-almost-all,braces-after-macro,none} β€” how to protect replacement latex code from producing invalid latex code when it gets concatenated in a longer string. one of 'braces', 'braces-all', 'braces-almostall', 'braces-after-macro', 'none'. example, bestie: using choice 'braces' we avoid the invalid replacement 'a???b' -> 'a\tob' with instead 'a{\to}b'. she ate that πŸ’…
  • --unknown-char-policy {keep,replace,ignore,fail} β€” how to deal with nonascii characters that have no known latex code equivalent πŸ‘€
  • -q, --quiet β€” suppress warning messages 🀫
  • --version β€” show version information and exit ✨
  • --help β€” show this help information and exit 🌈

πŸ‘‘ AUTHORS πŸ‘‘

pylatexenc was primarily written by Philippe Faist. iconic behavior, we love to see it 🫢


πŸ”₯ SEE ALSO πŸ”₯

this script is part of pylatexenc. full documentation for the pylatexenc suite can be consulted at https://pylatexenc.readthedocs.io πŸ’–


and that's the whole page, bestie!! this was latexencode 2.10, dated June 2021 β€” go encode some LaTeX, you got this, mwah πŸŽ€πŸ’œ