You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrapper of the library
bartp5/libtexprintf for
printing rendered LaTeX code in the terminal.
Given that libtexprintf is licensed under the GPL-3.0 and this library links
dynamically with it, the full work must be GPL-3.0. The LICENCE was changed to
make clear that using this library implies using GPLed code.
Installation
To install LibTeXPrintf.jl, in the Julia REPL
julia>using Pkg
julia> Pkg.add("LibTeXPrintf")
Documentation
LibTeXPrintf.jl export nine functions
texfonts()::Vector{String}texgetfont()::Stringtexsetfont!(font::String)::String# modifies global state, doesn't modify its argumenttexsymbols()::ImmutableDict{String, String}texstring(tex::String; [lw])::Stringtexprint(tex::String; [lw])::Stringtexprintln(tex::String; [lw])::Stringtexsetascii()
texsetunicode()
textogglesupersub()
The documentation of every one of these can be consulted in help mode in the
REPL (press ? to change to help mode, backspace to exit).
Note
: Newline character is not supported by libtexprintf. If you use it, it will not work or
errors will appear.
Examples
julia>using LibTeXPrintf
julia>using LaTeXStrings
julia>texstring("\\frac{1}{2}")
"1\n─\n2"
julia>texprintln("\\sum_{i=0}^{10}{i}^2")
10
⎯⎯
╲ 2
╱ i
⎺⎺
i=0
julia>texgetfont()
"text"
julia>texsetfont!("mathbb")
"mathbb"
julia>texprintln("This is a LaTeX string.")
𝕋𝕙𝕚𝕤 𝕚𝕤 𝕒 𝕃𝕒𝕋𝕖𝕏 𝕤𝕥𝕣𝕚𝕟𝕘.
julia>texsetfont!("text")
"text"
julia>texprint("This is a LaTeX string.")
"This is a LaTeX string."