This message was deleted.
# help
s
This message was deleted.
f
We don't have a formula cell, only the tex string literal. (edit: please see Mike's correction below) You can find its documentation under the following links: • https://observablehq.com/@observablehq/stdlib#texSectionhttps://github.com/observablehq/stdlib#tex We also have community contributed resources, like • this notebook that lets you experiment with the notation on the fly, • or this overview of the LaTeX notation. I'll check with the team to see if we can make the documentation for it more discoverable though.
m
There is a tex cell, Fabian. It’s backed by KaTeX. https://katex.org/
f
@Mike Bostock I completely forgot about that one, thanks for the reminder! 🤦‍♂️
🙏 1
a
Thanks for the links! What I needed to achieve was having a multiline equation that is aligned on the ‘=’. Looks liket his is supported here:
But in observablehq I get this error:
f
That appears to be a limitation of KaTeX which is mentioned somewhat hidden in the docs:
KaTeX does not support the
align
environment because LaTeX doesn't support
align
in math mode. The
aligned
environment offers the same functionality but in math mode, so use that instead.
As described there, the workaround would be to use
Copy code
\begin{aligned}
   a&=b+c \\
   d+e&=f
\end{aligned}
instead.
a
PERFECT! Thanks!