TeXicode, short for TeX to Unicode, a CLI that turns TeX math expressions into Unicode art.
Webapp
Post math in Reddit/Discord/Teams or anywhere that supports code blocks. No more LaTeX screenshots or markdown exponents that don't work. Also useful for inserting single line equations into literally any text field.
Quick tutorial for Reddit
- 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
CLI
Install
pipx install TeXicode
Basic Usage
txc '\LaTeX'to output Unicode art- wrap TeX equation inside single quotes
- escape expression like
f'(x)withf\'(x) \[ \],\( \),$ $,$$ $$,\begin{...} \end{...}is optional
- options:
-h,--helpshow help message and exit-d,--debugenable debug-m,--markdowntreat input as Markdown: find and replace math blocks-f,--filetreat input filename-c,--colorenable color (black on white)-n,--normal-fontuse normal font instead of serif
- 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.
Rendering Math in Markdown
-
txc -mf foo.mdto input a markdown file and replace math blocks with Unicode art. -
pipe into a markdown renderer like mdflow for complete terminal markdown preview:
Here is example.md rendered with txc -mfc example.md | mdflow, in the JuliaMono font.
Features
- 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 (actually you can't do that no more i removed the comments...)
Metadata
Release files for TeXicode 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| texicode-1.0.5.tar.gz | 27.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| texicode-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.0 kB
Release files / texicode-1.0.5.tar.gz
| Download URL | texicode-1.0.5.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c80b2b65c614402ee01ffe479b76d73ab39b6e42684f7308659e63a8c4b62acb
|
|
BLAKE2b-256 checksum How to use checksums |
b5458352bf030453da65751941f7bc393bdacdc7661f6113217c0888f422fb5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.
Transparency logRelease files / texicode-1.0.5-py3-none-any.whl
| Download URL | texicode-1.0.5-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb0e77ec885540da3d1ac96d5128120968c9330cfaca1733d3871740ad8130b8
|
|
BLAKE2b-256 checksum How to use checksums |
490d6e5bf3c5c171d495f063024a12e69e185043ba71f01891673d7a074b7ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.
Transparency log