My old package had some conflicts with other packages. So, while fixing it, we moved it to a new Flagrow-made package: Latex

Features

  • No configuration, it works out of the box
  • Write your math expressions as your normally would in your tex files
  • As in all our packages, the source is extensively commented

Screenshots

Imgur

Links

You can follow the development of flagrow/flarum-ext-latex on Github as well as our other projects.


Latest Stable Version License Gitter

A Flarum extension to render LaTeX expressions in your posts.

Features

With flagrow-ext-latex you can render LaTeX mathematical expressions inside your forum just by typing them, in the same way you would do your TeX document.

It supports:
- Inline expressions like $\sin\theta$, as well as
- Display expressions, such as $$\frac{\cos(kx)}{\cos(x)}$$.

It also doesn't mess up with Markdown and BBCode extensions, so you can use all of them at the same time.

This is how the previous paragraph would look like:

Imgur


Install

composer require flagrow/flarum-ext-latex

Configuration

No configuration, it works out of the box.

End-user usage

Write LaTeX expressions in your post like you would in your TeX editor.

Tip

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$

Links

Wow, nice job!

Why is it called LaTeX when it's only about the math syntax, though?

    Franz Because in the future I want to add the option to choose which kind of LaTeX expressions to render, like music sheets, physics diagrams, chemestry formulas and so on!

      2 months later

      Hi!
      Thanks a lot for this wonderful extension!
      The problem Im facing is that the CDN you selected was not available to access in my district, and I wonder how can I change the CDN after installing the extension.
      Thanks!

      a month later
      a month later

      what is the deference between this one and the old one

        luceos composer require flagrow/flarum-ext-latex

        and the install line stile the same

        composer require flagrow/flarum-ext-latex

          Smaily The old one is

            composer require matpompili/flarum-latex
          5 months later
          2 months later

          Hi!
          I've just tried your extension and it gives me quite strange results. For some reason, all my equations get surrounded by backticks automatically:

          I wrote:  Let $f$ be $A \exp(-kx^2)$
          I got:    Let `$f$` be `$A \exp(-kx^2)$`

          Why are things going wrong? How can I get rid of this ugly grey background in my formulas?
          Package versions (core Flarum and extensions):

          flarum/core                     v0.1.0-beta.6
          flagrow/upload                  0.3.2
          flagrow/flarum-ext-latex        0.1.1
          csi/flarum-ext-russian          0.1.0-beta.5-1
            6 days later

            Luongmyno

            I'm not the creator of this flarum extension, but let me tell how I feel about the situation.

            First of all, It would take a lot of effort to make a web-based WYSIWYG formula editor. Given that the target audience is quite small, it doesn't worth trying. Of course, Microsoft could afford this expenses to conquer the market, but no open-source project can.

            Fortunately, LaTeX formula markup is powerful and already familiar to lots of people, especially who came from academia where it's kind of de facto standard; there're good libraries for rendering this markup as a part of webpage. So, there is almost no reason to prefer MathType-like approach, except noob-friendliness. But noobs are not going to typeset complex formulas anyway.

            2 months later

            I love this extension so much.

            9 months later
            4 months later
            3 months later

            Seems it doesn't support multi-line markups, when I wrote this:

            $$
            \theta
            $$

            I get this:

            \theta

            I can get right result only if I wrote $$\theta$$.

            I don't think this extension will be further maintained.

            To other extension developers, this one is open for forking.