TeXicode
TeXicode, short for TeX to Unicode, a CLI that turns TeX math expressions into Unicode art.
Installation
Run as Script
- Have python3 installed, check with
python3 --version - Clone and
cdinto this repo. - Make sure this is the correct directory by running
./txc '\Delta', should outputΔ. pwdto get the path- In
~/.zshrcor~/.bashrc, add linealias 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 withf\'(x) \[ \],\( \),$ $,$$ $$,\begin{...} \end{...}is optional
- Add
-cat 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.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 0.1.9
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-0.1.9.tar.gz | 17.9 kB | Without provenance | Details for texicode-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TeXicode-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for TeXicode-0.1.9-py3-none-any.whl |
Total release size: 36.8 kB
Release files / texicode-0.1.9.tar.gz
| Download URL | texicode-0.1.9.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b177267aab06d6ec23a4d97c9bfad8c49418545d84583023bf0df69e5b24870
|
|
BLAKE2b-256 checksum How to use checksums |
c2ea5471238d245eb1e8bff15f21a28b99e8ec7eaf2d23c1bf9646afcc3b9cd6
|
| 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.9-py3-none-any.whl
| Download URL | TeXicode-0.1.9-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0095d68572c972a4848c3ee30fa0a6e8f1fa9effcdf4fad6cd550a71147ed7b0
|
|
BLAKE2b-256 checksum How to use checksums |
854b7ea66ef8115367626f3b8c8b5c34584220005955a99f0860c60739d5874b
|
| 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.9
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.