TeXicode, short for TeX to Unicode, a CLI that turns TeX math expressions into Unicode art.
Webapp
Posting math equations in Reddit is very annoying, you either have to post a screenshot of rendered LaTeX, or use Reddit's limited markdown features. Using TeXicode in Reddit code blocks makes posting math in Reddit much easier.
Quick tutorial NOW
- 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
Also useful for quickly inserting single line equations into Word documents.
CLI
Install
pipx install TeXicode
Basic Usage
txc '\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) - Add
-nat the end of the command to use normal fonts instead of cursive italic - 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 -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.
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
Metadata
Release files for TeXicode 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| texicode-1.0.1.tar.gz | 18.8 kB | With provenance | Details for texicode-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| texicode-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for texicode-1.0.1-py3-none-any.whl |
Total release size: 38.8 kB
Release files / texicode-1.0.1.tar.gz
| Download URL | texicode-1.0.1.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a7195540bedcd8f668f8e06d3740d1beb469a912584e202ca7b599bd022e5a
|
|
BLAKE2b-256 checksum How to use checksums |
83c923bfe1d20b5903ca84827d3f716cc9159921ae14898b376ffa377c8d3072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 13, 2026.
Transparency logRelease files / texicode-1.0.1-py3-none-any.whl
| Download URL | texicode-1.0.1-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a28376879f66871b861102bf666ac8346640630629e1776b05ae1642dd37c68
|
|
BLAKE2b-256 checksum How to use checksums |
4e226d0714b9cf970fa82d071adbc214bb5106e696ecbf95fc7816e11c90ded3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 13, 2026.
Transparency logSecurity for TeXicode 1.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for texicode-1.0.1.tar.gz
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 Jan 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.