Zettlr: Add Math support with Mathjax or KaTex

Created on 14 Aug 2018  路  5Comments  路  Source: Zettlr/Zettlr

Hello.

I would love if this app had support for mathematical equations using LaTeX's syntax, where two dollar signs are user for inline equations: $ your formula $. And four are used for paragraph equations.

$$
your formula
$$

An example of this can found in typora.

typora

enhancement

Most helpful comment

I was bored, so I added the KaTeX inline rendering. ~Please note that currently even block formulas must be on a single line.~

EDIT: Just fixed that, too.

All 5 comments

Hey Kremor,

Zettlr already has support for this through pandoc, see attached screenshots.

Do you mean inline-rendering? If so, it's rather low on the priority list. Zettlr is first and foremost made for arts and humanities. While I won't exclude any wishes and therefore keep this issue open, humanities will always come first.

Cheers!

In-App Preview:

markdown_preview

Rendered PDF:

markdown_render

I would actually appreciate this a lot too. Understand it's not a priority, however, it would expand the user base quite a bit among researchers. I'm not much of a js coder or I'd look into doing a PR. For now, I think I'll just have to sacrifice my excitement for your search functionality and go back to marktext. I suppose it would be an example of it working with inline rendering if you or another contributor do grow interested.

@itsagoodbrain It didn't make it into v0.20, because I had to solve a lot of rather dull issues under the hood (such as refactoring preferences, and other stuff that's invisible to the user). The problem is that the app grew organically in the past, therefore I have to do such a refactoring from time to time to enhance the scalability of some features, as the app itself grows.

But I've already created a ToDo, and all currently opened issues will be addressed in version 0.21, as the app is now stable enough to receive another bunch of features!

So ideally follow my twitter account (https://twitter.com/zettlr) to know exactly when I've included this. Shouldn't take more than a month to implement.

I was bored, so I added the KaTeX inline rendering. ~Please note that currently even block formulas must be on a single line.~

EDIT: Just fixed that, too.

I've looked all over the world for a markdown editor that renders math in-place.
You can't imagine the joy when I finally found this!

Was this page helpful?
0 / 5 - 0 ratings