Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

All examples use the macro body for adding the LaTeX markup body. Using macro parameters for LaTeX is not recommended because the wiki escaping rules for parameters are not well-suited to LaTeX syntax.

User Macro templates

Macro name

Macro body processing

Template

Usage

mathinline

Unrendered


Code Block
linenumberstrue
## Use this macro to avoid new lines:
#macro(doNothing)#end
##
<ac:macro ac:name="mathinline">
  <ac:plain-text-body><![CDATA[$body]]></ac:plain-text-body>
  <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
  <ac:parameter ac:name="autoconvert">TRUE</ac:parameter>
</ac:macro>#doNothing()



Code Block
languagetext
{mathinline}E=mc^2{mathinline}


mathblock

Unrendered


Code Block
linenumberstrue
<ac:macro ac:name="mathblock">
  <ac:plain-text-body><![CDATA[$body]]></ac:plain-text-body>
  <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
  <ac:parameter ac:name="anchor">$paramanchor</ac:parameter>
  <ac:parameter ac:name="alignment">$paramalignment</ac:parameter>
</ac:macro>



Code Block
languagetext
{mathblock|anchor=emc2|alignment=left}
E=mc^2
{mathblock}