Create macros for wiki-markup
In order to support wiki format macros in LaTeX Math, user macros must be used. Please see the table below for examples. For more information on how to create user macros, see here.
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 | ## 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() | {mathinline}E=mc^2{mathinline} |
mathblock | Unrendered | <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> | {mathblock|anchor=emc2|alignment=left} E=mc^2 {mathblock} |
Related articles
Filter by label
There are no items with the selected labels at this time.