Render advanced LaTeX
Use an Advanced LaTeX macro when your content requires a full LaTeX document or packages unavailable in the everyday MathJax editor.
Before you start
Section titled “Before you start”- You need permission to edit and publish the Confluence page.
- Prepare a complete LaTeX document, including
\documentclass,\begin{document}, and\end{document}. - Use an ordinary LaTeX Math macro instead when you only need an equation supported by MathJax.
Create an advanced formula
Section titled “Create an advanced formula”- Edit a Confluence page.
- Insert Advanced LaTeX — inline or Advanced LaTeX — display.
- Enter a complete LaTeX document in LaTeX source.
- Select Preview.
- Correct any reported LaTeX error, then select Save.
- Publish or update the page.
You have succeeded when the published page shows the generated image without a macro editor frame. If compilation fails, the preview shows an error before you save.
Use this minimal document structure to avoid page headers, footers, and page numbers in the rendered image:
\documentclass{article}\pagestyle{empty}\begin{document}Your content here\end{document}Plot example
Section titled “Plot example”\documentclass{article}\pagestyle{empty}\usepackage{pgfplots}\begin{document}\begin{tikzpicture}\begin{axis}\addplot3[surf]{exp(-x^2-y^2)*x};\end{axis}\end{tikzpicture}\end{document}Chemistry example
Section titled “Chemistry example”\documentclass{article}\pagestyle{empty}\usepackage{chemfig}\begin{document}\chemfig{A*5(-B=C-D-E=)}\end{document}
Published output keeps inline MathJax, TeX Live chemistry, and TeX Live diagrams readable alongside ordinary Confluence content.
Advanced rendering uses an Atlassian-hosted Forge Container. A first uncached preview can take longer than a repeated preview. Published output is cached as a derived PNG, so ordinary views do not compile unchanged content every time.
TeX Live output is a raster image with its authored colors and canvas. Unlike ordinary MathJax SVG output, it is not recolored when Confluence changes between Light and Dark appearance.