Latex rendering

post by Stuart_Armstrong · 2019-01-09T22:32:52.881Z · LW · GW · 4 comments

This is a question post.

Contents

  Answers
    1 Craig Hunter
None
4 comments

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)?

Cheers!

Answers

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

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 · LW(p) · GW(p)

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?

4 comments

Comments sorted by top scores.

comment by habryka (habryka4) · 2019-01-10T03:13:36.494Z · LW(p) · GW(p)

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?

Replies from: Stuart_Armstrong
comment by Stuart_Armstrong · 2019-01-10T12:53:00.422Z · LW(p) · GW(p)

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

Replies from: habryka4
comment by habryka (habryka4) · 2019-01-10T17:51:51.563Z · LW(p) · GW(p)

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.

Replies from: Stuart_Armstrong
comment by Stuart_Armstrong · 2019-01-10T18:36:20.863Z · LW(p) · GW(p)

Or a warning, rather than an error.