TeXicode, short for TeX to Unicode, a CLI that turns TeX math expressions into Unicode art.
- Visit the TeXicode website, copy output to clipboard
- Make a new line in Reddit text field (check line spacing, if there is no line spacing above and below the cursor, it means Reddit does not see it as a separate line)

- Add code block

- Paste
If the output from TeXicode is a single line, can be placed inline using Codeinstead ofCode Block
with pipx (recommended)
pipx install TeXicodeor with pip
pip install TeXicodetxc '\LaTeX'to output Unicode art- replace your own TeX equation inside quotes
- use single quotes
- if expression contains single quotes like
f'(x), replace withf\'(x) \[ \],\( \),$ $,$$ $$,\begin{...} \end{...}is optional
- Add
-cat the end of the command to output in color (black on white) - Unsupported commands will be rendered as
?, or raise an error. If you see these or other rendering flaws, please post an issue, most can be easily fixed.
txc -f filename.mdto replace latex expressions in markdown files with Unicode art in text blocks.- Pipe into a markdown renderer like glow for ultimate markdown previewing:
Here is example.md rendered with txc -f example.md -c | glow, using the JuliaMono font.
- Supports most LaTeX math commands
- Uses Unicode
- Not limited to ASCII characters
- Unicode italic glyphs are used to differentiate functions from letters, similar to LaTeX
- Works with any good terminal font
- Does not use any legacy glyphs
- Go to
src/arts.py, comment/uncomment some parts if your font support legacy glyphs to get even better symbols
