LaTeX by ReFlar
A Flarum extension to render LaTeX expressions in your posts.
Original by Flagrow.
- Added option in admin to enable/disable wrapping expressions with code to prevent accidental Markdown formatting
- Updated Katex (rendering engine) from 0.5.0 to 0.1.0-rc.1
Use Bazaar or install manually with composer:
composer require reflar/latex
composer remove flagrow/flarum-ext-latex
composer update reflar/latex
php flarum cache:clear
With reflar/latex you can render LaTeX mathematical expressions inside your forum just by typing them, in the same way you would do your TeX document.
- Inline expressions like
$\sin\theta$, as well as
- Display expressions, such as
There's also an option in the admin settings so it doesn't mess up with Markdown and BBCode extensions, so you can use all of them at the same time.
Write LaTeX expressions in your post like you would in your TeX editor.
If you want to actually show the LaTeX code, you must use Markdown in the following way:
This is an expression I don't want to render
$$\cos(\pi) + 1 = 0$$
While this is going to be rendered: $yes$