TEX2MAIL(1)

πŸ“¦
version 2.19.0 Β· 2 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– TEX2MAIL(1) πŸ’–

okay bestie, gather round, because this one is a General Commands Manual page for a little icon called tex2mail and she is genuinely serving πŸ’…


✨ NAME ✨

tex2mail β€” TeX to ascii math prettyprinter πŸŽ€


🌸 SYNOPSIS 🌸

tex2mail [-linelength= length] [-maxdef= number] [-debug= number]
[-by_par= number] [-TeX] [-ragged] [-noindent]

that's it, that's the whole vibe check πŸ¦‹


πŸ‘‘ DESCRIPTION πŸ‘‘

so like, tex2mail is a filter that converts TeX or LaTeX math formulae into ASCII art. no cap. it takes your fancy math and makes it look like math but in plain text, which is honestly iconic behavior πŸ’œ

who uses it? the PARI-GP calculator, bestie β€” specifically for the output method external prettyprint. πŸ”₯

under gp, you can set prettyprint mode by default with:

default(output, 3)

or if you're feeling lazy, just \o3 🌸

by default, that switches the gp main output to TeX format, filtered by this exact line right here:

tex2mail -TeX -noindent -ragged -by_par

and! the flags passed to tex2mail can be modified via the prettyprinter default in gp. yes queen, customization 🫢


✨ OPTIONS ✨

these are the command line options that are available, and yes, we're going through all of them because we don't skip πŸ’…

  • -linelength=length β€” wrap text at this column. that's the column, that's the wrap. periodt πŸ“
  • -maxdef=number β€” definition loops: it will croak if there are more than maxdef substitutions in a given paragraph. dramatic but valid 😭
  • -debug=debuglevel β€” output debugging messages. turn it up when you wanna see the tea β˜•
  • -by_par β€” expect each paragraph to be terminated by exactly 2 "\n", and do not print an extra "\n" between paragraphs. exactly two. not one, not three. exactly two πŸ’€
  • -TeX β€” assume input formulae are in plain TeX format 🌈
  • -ragged β€” leave right ragged. let her be free, let her breathe πŸ¦‹
  • -noindent β€” assume \noindent everywhere. no indenting, we're not doing that today ✨

πŸ› BUGS πŸ›

so there's this little quirk:

% at the end of a line followed by \n\n is recognized as end of paragraph

that's the whole bug note. just so you know, bestie πŸ™ˆ


πŸŽ€ AUTHOR πŸŽ€

Ilya Zakharevitch β€” the legend, the moment, the main character πŸ‘‘


🌟 SEE ALSO 🌟

(and yes there is a trailing comma in the source, we love her for that πŸ“)


πŸ’– COPYING πŸ’–

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. πŸ’œ

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (translation: no promises, bestie, read the license 😭)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 🌸


and that's the whole page, fr fr 🫢

this iconic little manual came from the General Commands Manual, dated 25 September 2013 β€” so yeah, she's been serving ASCII math since way back, and she still eats πŸ’…βœ¨

bye bestie, go prettyprint something πŸ’–