Mathblock Reference
Last modified by Frank Fock on 2024/02/07 18:16
Add a reference to a block math expression. Bridges the mathblock-ref Confluence macro using the XWiki's Mathjax macro.
Parameter | Description | Mandatory? |
---|---|---|
anchor | The anchor of the math expression to reference. | Yes |
Usage example
{{mathblock anchor="myanchor"}}
2+\frac 1 2 x
{{/mathblock}}
This block can be referenced like in the following sentence. Expression {{mathblock-ref anchor="myanchor"/}} shows some random and non-sensitical math.
2+\frac 1 2 x
{{/mathblock}}
This block can be referenced like in the following sentence. Expression {{mathblock-ref anchor="myanchor"/}} shows some random and non-sensitical math.
Result:
\begin{equation}
\label{myanchor}
2+\frac 1 2 x\end{equation}
This block can be referenced like in the following sentence. Expression \ref{myanchor} shows some random and non-sensitical math.
See also: