Less setup. More math.
Rust rendering with embedded math fonts. No Node.js runtime needed for the default renderer.
MATH, MEET YOUR TERMINAL
Read equations where you work. Turn LaTeX in live CLI output into beautifully typeset math, without leaving your terminal.
Illustrative Codex session: launch TermiTex, ask about Euler’s identity, and see LaTeX turn into typeset math.
Rust rendering with embedded math fonts. No Node.js runtime needed for the default renderer.
Rendering runs off the input loop. Cached equations move with your conversation, without being typeset again.
Start with Codex in Ghostty. Launch with one command, without a custom Codex build.
QUICK START
Install with Homebrew, then start Codex through TermiTex.
# Install TermiTex
brew install tingkai-c/tap/termitex
# Launch your first session
termitex codexBuild the latest source with Git and a recent Rust toolchain.
See the terminal setup guide for compatibility and verification status.
git clone https://github.com/tingkai-c/TermiTex.git
cd TermiTex
cargo build --release --locked
./target/release/termitex codexRefresh Homebrew and upgrade your existing TermiTex installation.
Built from source? Follow the source build instructions with the latest checkout.
brew update
brew upgrade termitexStart with Codex + Ghostty on macOS. Using another terminal? Check compatibility ↗
Euler’s identity is
It connects five fundamental numbers: e, the base of natural logarithms; i, with i^2=-1; \pi; 1; and 0.
It follows from Euler’s formula:
Substitute \theta=\pi. Since \cos\pi=-1 and \sin\pi=0,
Adding 1 gives the identity.
Geometrically, e^{i\theta} describes a point on the unit circle in the complex plane, at angle \theta counterclockwise from 1. An angle of \pi radians is a half-turn, so it takes you from 1 to −1. That’s the geometric meaning of e^{i\pi}=-1.
The Gaussian integral is
Although has no elementary antiderivative, we can evaluate this definite integral by squaring it and using polar coordinates.
Let
Then
Since , .
More generally, for ,