Error Processing LaTeX stems
See original GitHub issueWhen using the following STEM block using latexmath, the previewer displays “[Math Processing Error]” in red italics:
:stem:
[latexmath]
++++
\begin{align*}
f(x) &= x^2 + x^2\\
&= 2x^2
\end{align*}
++++
I expect this to display what’s displayed when compiling the AsciiDoc using the asciidoctor CLI. This does work sometimes, but not always. It also doesn’t happen for every latexmath STEM block. It seems to be breaking on the \begin{align*}...\end{align*} commands. I haven’t figured out what triggers it start working, but when it does work, it starts breaking after editing the document.
AsciiDoc Plugin Version: 0.29.10
IDE Name and Version: IntelliJ IDEA 2019.2.1 (Community Edition) Build #IC-192.6262.58, built on August 20, 2019 Runtime version: 11.0.3+12-b304.39 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 980M Cores: 4 Registry: Non-Bundled Plugins: CMD Support, Lombook Plugin, org.asciidoctor.intellij.asciidoc, com.cursiveclojure.cursive, izhangzhihao.rainbow.brackets, in.1ton.idea.spring.assistant.plugin, org.jetbrains.spek.spek-idea-plugin, org.zalando.intellij.swagger
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)

Top Related StackOverflow Question
I consider the original issue to be fixed. To optimize the speed of the preview I’ve opened #333
Thanks for the update! I’ll try it out next chance I get and let you know.
I like the idea of separating out “chapters” into individual files! That might be my preferred option.
The option to disable math might be useful, but not for my scenario. I want to see the rendered math without having to compile the document each time.
Would it be possible to only refresh the part of the preview being viewed, rather than the entire thing?