Skip to main content

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
  1. Visit the TeXicode website, copy output to clipboard
  2. 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) Reddit1.png
  3. Add code block Reddit2.png
  4. Paste Reddit3.png If the output from TeXicode is a single line, can be placed inline using Code instead of Code 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) with f\'(x)
    • \[ \], \( \), $ $, $$ $$, \begin{...} \end{...} is optional
  • options:
    • -h, --help show help message and exit
    • -d, --debug enable debug
    • -m, --markdown treat input as Markdown: find and replace math blocks
    • -f, --file treat input filename
    • -c, --color enable color (black on white)
    • -n, --normal-font use 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.md to 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.

Screenshot

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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TeXicode 1.0.6
File Size Uploaded Provenance Actions
texicode-1.0.6.tar.gz 38.2 kB With provenance Details for texicode-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TeXicode 1.0.6
File Interpreter ABI Platform Actions
texicode-1.0.6-py3-none-any.whl Python 3 none any Details for texicode-1.0.6-py3-none-any.whl

Total release size: 65.9 kB

Release files / texicode-1.0.6.tar.gz

Download URL texicode-1.0.6.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a5227771e4fe6520736fe555159f56b344a284492b1bdbfabcd8bf64a3e7bb87
BLAKE2b-256 checksum
How to use checksums
2e29d20c12289e5850a6f7606cb38a4356badf62ca1398c470bbbf29d4a8c761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / texicode-1.0.6-py3-none-any.whl

Download URL texicode-1.0.6-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c980331d5f4b58abe76a5f4cc09f9ccac101ffdb9f6df5dbd46a4d89dc57a9ae
BLAKE2b-256 checksum
How to use checksums
8649dd265ca594695503da7a82bb49c93d63df9657b5ba131ace05430d8e1d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for TeXicode 1.0.6

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.

Select from 2 files

Attestation for texicode-1.0.6.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 Nov 12, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page