Reason why the LaTeX is breaking: We parse each LaTeX block separately, and sometimes out of order (for performance reasons), this means you can’t use “newcommand” in one LaTeX block and expect it to work in future LaTeX blocks. The editor loads all LaTeX simultaneously, so you won’t run into this problem in the editor, but we will run into this problem when we try to render the LaTeX for other users.
If you want to make sure your LaTeX works, you want to avoid using “newcommand”, or redefine the command at the top of the relevant LaTeX blocks.
...that makes newcommand almost useless (though it’s always worked previously for me). And in some cases, it was things like \Theta that was not being rendered!
Hum. Any way of getting round this? Is there a way of editing the whole post as text (since then I can run a substitution on the text, replacing all the commands with their full version)?
In this current post, where things stopped working, it seemed that the number of latex fomulas was relevant? If I added any more latex box, no matter no simple, it would fail?
Reason why the LaTeX is breaking: We parse each LaTeX block separately, and sometimes out of order (for performance reasons), this means you can’t use “newcommand” in one LaTeX block and expect it to work in future LaTeX blocks. The editor loads all LaTeX simultaneously, so you won’t run into this problem in the editor, but we will run into this problem when we try to render the LaTeX for other users.
If you want to make sure your LaTeX works, you want to avoid using “newcommand”, or redefine the command at the top of the relevant LaTeX blocks.
...that makes newcommand almost useless (though it’s always worked previously for me). And in some cases, it was things like \Theta that was not being rendered!
Hum. Any way of getting round this? Is there a way of editing the whole post as text (since then I can run a substitution on the text, replacing all the commands with their full version)?
But thanks for figuring it out!
Huh, then maybe it’s something else. Do you have a post in which newcommand worked fine?
See eg https://www.lesswrong.com/posts/dFyqTAyG2oCSr6S4K/intuitive-examples-of-reward-function-learning
In this current post, where things stopped working, it seemed that the number of latex fomulas was relevant? If I added any more latex box, no matter no simple, it would fail?