![]() ![]() (inserting the values of other variables into your string), use %$ instead of the string is interpreted as an equation, if you do not (Note that $ is added automatically around your Strings) for example L"1 \alpha^2" or L"an equation: $1 \alpha^2$". Literals with the constructor L"." (and L""".""" for multi-line At this point, you can construct LaTeXString UsageĪfter installing LaTeXStrings with Pkg.add("LaTeXStrings") in Julia, run LaTeXStrings only provides the LaTeX text to these backend, and has no influence on what LaTeX features (if any) are supported. ![]() For example, they might use MathJax, MathTeXEngine.jl, or other renderers. Other packages like plotting software, Jupyter notebooks, Pluto, etcetera, are responsible for the LaTeX rendering (if any). ![]() LaTeXStrings does not do any rendering - its sole purpose is to make it easier to enter LaTeX-rendered strings without typing a lot of backslash escapes, as well as providing a type to tell display backends to use LaTeX rendering if possible. (and which add the dollar signs for you if you omit them). LaTeX equations without escaping backslashes and dollar signs L"." and L""".""" string macros which allow you to enter Therefore, the LaTeXStrings package defines:Ī LaTeXString class (a subtype of String), which works likeĪ string (for indexing, conversion, etcetera), but automatically displays With ordinary strings in Julia, to enter a string literal withĮmbedded LaTeX equations you need to manually escape all backslashesĪnd dollar signs: for example, $\alpha^2$ is writtenĭisplaying formatted LaTeX equations (viaĮxploit this. This is a small package to make it easier to type LaTeX equations in ![]()
0 Comments
Leave a Reply. |