Skip to content

LuaTeXit Wiki

Leothelion edited this page Jul 8, 2024 · 1 revision

About

LuaTeXit is a simple, free communication tool on Discord to streamline scientific communication. It is designed to be most close to running LaTeX code on your own machine, but with the convenience of a Discord bot. That is, it is not an emulation of a LaTeX environment, such as that of MathJax, KaTeX and other attempts, but a direct interface to the LaTeX compiler.

TeXit vs. LuaTeXit

LuaTeXit is a fork of Paradox/TeXit (TeXit therein), with special attention towards TeX compilation commands. A key distinguishing feature is the compiler option. TeXit to date uses pdflatex as its default and sole compiler.

Compilers

While this satisfies most use cases, it has brought on limitations pertaining to encoding, font selection, and ease of language support (especially non-ASCII, e.g., CJK). To address these limitations, LuaTeXit offers the following compilers:

Compiler Command Under the hood
pdfLaTeX pdftex or pdf latexmk -pdf -file-line-error -halt-on-error %TEXFILE%
LuaLaTeX luatex or lua latexmk -lualatex -file-line-error -halt-on-error %TEXFILE%
XeLaTeX xetex latexmk -xelatex -file-line-error -halt-on-error %TEXFILE%
primitive LuaTeX plaintex or plain luatex -file-line-error -halt-on-error %TEXFILE%

What you lose

LuaTeXit is focused on a specific aspect of TeXit and, as a result, some features are disabled or removed. Namely:

  • Maths module

    • calc: which used mathjs to evaluate mathematical queries
    • nlab: which did stuff with nLab
    • wolfram: which used Wolfram Alpha to evaluate queries
  • Fun module

    • convertbinary: which converted provided binary string into text
    • lenny: ( ͡° ͜ʖ ͡°)
    • cat, dog, duck, holo, image: which fetched images from the internet

Other new things

While other features are not necessarily the key focii of the development of LuaTeXit, there are a few new features introduced by LuaTeXit atop TeXit. Currently, those are:

stat

Related to about, but emphasis on the $hardware and the versions for $softare on which LuaTeXit is currently running. It currently displays the following:

  • OS: Operating system of the $hardware
  • Arch : Architecture of the $hardware
  • CPU: CPU of the $hardware
  • Memory: Memory consumption
  • Py Version: Python $software version
  • Lua Version: Lua $software version
  • LuaTeX Version: LuaTeX $software version
  • XeTeX Version: XeTeX $software version
  • Compiler: GCC $software version used to compile Py Version.
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ OS: Linux 6.9.5 1 default x86_64 with glibc2.39
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ Arch: x86_64
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ CPU: Intel Core i5-8350U
​ ​ ​ ​ ​ ​ ​ ​ Memory: 2779/15867 MiB (17.5%)
​ ​ ​ ​ Py Version: 3.11.9+ (Jun 26 2024 15:30:00)
​ ​ ​ Lua Version: 5.4.6
LuaTeX Version: 1.18.0 (TeX Live 2024/TeX Live for SUSE Linux)
​ XeTeX Version: 3.141592653-2.6-0.999996
​ ​ ​ ​ ​ ​ Compiler: GCC 13.3.0

Clone this wiki locally