math
.math content:{EvaluableString} \
block:{Boolean? = null} \
ref:{String? = null} \
foreground:{Color? = null} \
background:{Color? = null} \
border:{Color? = null} \
borderwidth:{Sizes? = null} \
borderstyle:{NodeStyle.BorderStyle? = null} \
alignment:{NodeStyle.Alignment? = null} \
textalignment:{NodeStyle.TextAlignment? = null} \
margin:{Sizes? = null} \
padding:{Sizes? = null} \
radius:{Sizes? = null} \
fontsize:{TextTransformData.Size? = null} \
fontweight:{TextTransformData.Weight? = null} \
fontstyle:{TextTransformData.Style? = null} \
fontvariant:{TextTransformData.Variant? = null} \
textdecoration:{TextTransformData.Decoration? = null} \
textcase:{TextTransformData.Case? = null}
-> NodeCreates a math (TeX) node, either inline or as a block.
Example:
.math {2 + 2}
.math {E = mc^2} block:{yes} ref:{einstein}As a primitive backing both Math blocks and MathSpan inlines, this function can be used in .extend to affect all math nodes in the document:
.extend {math} where:{block: .block::not}
.super foreground:{gray}Return
the new Math block node or MathSpan inline node, depending on block
Parameters
- Likely a body argument
TeX expression content
- Optional
- Likely named
whether the node is rendered as a block instead of inline. If unset, it's inferred from whether the source function call is block or inline
- Optional
optional ID for cross-referencing via reference, only applied to block math
- Optional
text color. Default if unset
- Optional
background color. Transparent if unset
- Optional
border color. Default if unset and borderwidth is set
- Optional
border width. Default if unset and border is set
- Optional
whitespace outside the content. None if unset
- Optional
whitespace around the content. None if unset
- Optional
corner (and border) radius. None if unset
- Optional
text decoration of the text. None if unset