Latex rendering

post by Stuart_Armstrong · 2019-01-09T22:32:52.881Z · score: 10 (2 votes) · LW · GW · 4 comments

This is a question post.


    1 Craig Hunter

Hey there! Is there an easy way to figure out what latex formulas are not being shown in a post (ie the ones that contain errors)?



answer by Craig Hunter · 2019-01-10T03:11:38.945Z · score: 1 (1 votes) · LW · GW

Run the source through a latex validation service? Something easier than that, like a browser plug in, might not exist yet.

comment by Stuart_Armstrong · 2019-01-10T15:29:05.739Z · score: 2 (1 votes) · LW · GW

I was mainly wondering since the webpage must run the latex code and throw an error if it decides an expression is malformed (and then not show the output), whether it would be easy to see the fact there was an error?


Comments sorted by top scores.

comment by habryka (habryka4) · 2019-01-10T03:13:36.494Z · score: 2 (1 votes) · LW · GW

Hmm, I think it depends a bit. Do you have a link to a post in which there is LaTeX that displays properly in the editor, and doesn't display properly in the post?

comment by Stuart_Armstrong · 2019-01-10T12:53:00.422Z · score: 2 (1 votes) · LW · GW

I just use plain markdown, so it's not always clear whether the expression works or not.

comment by habryka (habryka4) · 2019-01-10T17:51:51.563Z · score: 2 (1 votes) · LW · GW

Oh, I see, you use the markdown editor.

In that case, I don't think there is currently an easy way to preview it. I will add an issue to our GitHub and see whether I can get around to that soon. Seems good to throw an error when you try to save a post with invalid LaTeX.

comment by Stuart_Armstrong · 2019-01-10T18:36:20.863Z · score: 2 (1 votes) · LW · GW

Or a warning, rather than an error.