Skip to main content

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

Also useful for quickly inserting single line equations into Word documents.

CLI

Install

with pipx (recommended)

pipx install TeXicode

or with pip

pip 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 with f\'(x)
    • \[ \], \( \), $ $, $$ $$, \begin{...} \end{...} is optional
  • Add -c at 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.

Rendering Math in Markdown

  • txc -f filename.md to 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.

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

Metadata

Release files for TeXicode 0.2.0

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 0.2.0
File Size Uploaded Provenance Actions
texicode-0.2.0.tar.gz 18.6 kB With provenance Details for texicode-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 38.4 kB

Release files / texicode-0.2.0.tar.gz

Download URL texicode-0.2.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c1b8cf2e5a1e1025348bfc42b52ade35a91672b7e723350b9efcfef29064e11e
BLAKE2b-256 checksum
How to use checksums
db12464417b057261c608027582e3bc5958a51067bad41fc7f940b7d22e69c63
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 Nov 21, 2025.

Transparency log

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

Download URL texicode-0.2.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfaa65f20c40f41b938943471420606230f6c72b41ccbdf6b783d14221e6e161
BLAKE2b-256 checksum
How to use checksums
0921df1e6caa3d9e2850651e0fe26083a6bcd90c49f039d9d1d5528d638513e0
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 Nov 21, 2025.

Transparency log

Security for TeXicode 0.2.0

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-0.2.0.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 21, 2025.

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