Skip to main content

Latex testing

Here we test different ways of adding equations to Bookstack pages.

Draw.io integration

This is an equation added using draw.io integration:

To do this, add an image using the WYSIWYG editor. Then, once in draw.io, enable mathematical typesetting under the Extras menu. Type some LaTeX code in a text box, resize accordingly and then save.

This isdoesn't presumablywork bestwell with dark mode. In fact, draw.io in general probably doesn't. On the other hand, one shouldn't use dark mode too much for pagestextual withcontent fewlike equations.this.

Using KaTeX directly

This is an equation that is written in $\LaTeX$ directly in the Markdown source code and then rendered using KaTeX:

\[ \sqrt{3x+1} + (1+x)^2 \]

To do this, add the following scripts to the custom header in Bookstack, courtesy of eceforge@github.