REPL::LaTeX
Julia-style LaTeX-abbreviation Unicode Tab completion for Raku REPLs.
Features
- Exact LaTeX-to-Unicode completion (
\in → ∈, \guillemotleft → «, \guillemotright → »). - Dynamic single- and multi-character superscripts & subscripts (
\^123 → ``, \_2 → ₂, \_10 → ₁₀). - Unique prefix expansion and multi-candidate prefix listing without colliding with Raku's
\c[...] Unicode name completion. - Reverse lookup (
reverse-lookup / Completer.describe / :latex <char>), similar to Julia's ?α help. - Plugin support for
lizmat/REPL (:additional-completions), plus adapters for Linenoise and Readline.
Usage
With lizmat/REPL
use REPL;
use REPL::LaTeX;
REPL.new(:additional-completions(&latex-completion)).repl;
Standalone CLI
raku -Ilib -MREPL::LaTeX -e 'run-latex-repl'
Run Tests
raku -Ilib t/01-basic.rakutest