Skip to main content

TeXicode

TeXicode, short for TeX to Unicode, a CLI that turns TeX math expressions into Unicode art.

Installation

Run as Script

  1. Have python3 installed, check with python3 --version
  2. Clone and cd into this repo.
  3. Make sure this is the correct directory by running ./txc '\Delta', should output Δ.
  4. pwd to get the path
  5. In ~/.zshrc or ~/.bashrc, add line alias txc="<the_path>/txc"

Install form pipx or pip

with pipx (recommended)

pipx install TeXicode

or with pip

pip install TeXicode

Usage

Basic Usage

  • txc '\prod_{i=0}^n\ x ~=~ x^n' 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)
    • \[ \], \( \), $ $, or $$ $$ is optional, \begin{} \end{} is not supported yet
  • 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 txr -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.1.7

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.1.7
File Size Uploaded Provenance Actions
texicode-0.1.7.tar.gz 15.4 kB Without provenance Details for texicode-0.1.7.tar.gz

Built distribution (wheel)

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

Total release size: 31.4 kB

Release files / texicode-0.1.7.tar.gz

Download URL texicode-0.1.7.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
706f382ec49fa4897280a96d643db1e0d657dbc78a6dd3581c6b4b7e935f9a94
BLAKE2b-256 checksum
How to use checksums
87e55eb1c0ccfd72a760533a58363f1a486d3949c27b2b2fb5a4129f8fe4c647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / TeXicode-0.1.7-py3-none-any.whl

Download URL TeXicode-0.1.7-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ef4ff7e435c923d1ba736354cb2d0dd1c033a6a5348ccfee3ddda6919aad6c7
BLAKE2b-256 checksum
How to use checksums
5b2a56cb1aff94887fa4ab8627af8d72d697431ca957d09c5a04fe510547086f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for TeXicode 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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