$customHeader
Skip to end of banner
Go to start of banner

Create macros for wiki-markup

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 nameMacro body processingTemplateUsage
mathinlineUnrendered
## 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}





  • No labels