An annotation is an equation phrase ('annotation') which is laid out relative
to another equation phrase ('content'). For example:
AAAA
AAAA
CCCCCCCC
CCCCCCCC
CCCCCCCC
CCCCCCCC
The options for defining how to annotate one equation phrase with another is
EQN_Annotation
Content can also be annotated with a glyph (that itself may also be
annotated). The glyph can either encompass the content, or can be to the
top, bottom, left or right of the content
This function is used internally by almost all equation functions
(except for fraction) for their layout. As such, it is very generic and
powerful. It should also almost never neeed to be used as most layouts
can be achieved with a different functions that will have more succinct
code that is more readable.
This is provided so all layout corner cases not covered by the functions
above are possible - including with custom glyphs.
annotationsEQN_Annotation[] — use for multiple annotations
fullContentBoundsboolean — use full bounds of content,
overriding any inSize=false properties in the content (false)
useFullBoundsboolean — make the bounds of this phrase equal to
the full bounds of the content even if fullContentBounds=false and the
brackets only surround a portion of the content (false)
glyphsEQN_Glyphs — glyphs to annotate content with
inSizeboolean — true means resulting size includes
annotations (true)
spacenumber — extend resulting equation phrase size by space on
top, right, bottom and left sides (0)
topSpacenumber — extend resulting equation phrase size by space
on top
bottomSpacenumber — extend resulting equation phrase size by
space on bottom
leftSpacenumber — extend resulting equation phrase size by space
on left
rightSpacenumber — extend resulting equation phrase size by
space on right
Equation annotation
An annotation is an equation phrase ('annotation') which is laid out relative to another equation phrase ('content'). For example:
AAAA AAAA CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCCThe options for defining how to annotate one equation phrase with another is EQN_Annotation
Content can also be annotated with a glyph (that itself may also be annotated). The glyph can either encompass the content, or can be to the top, bottom, left or right of the content
Top Glyph GGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGG Encompassing Glyph / / GGG GGGGGGGGGGGGGGGGGGGGGGG GGG GGG GGG GGG GGG GGG GGG CCCCCCC GGG GGG Left GGG GGG CCCCCCC GGG GGG Right Glyph GGG GGG CCCCCCC GGG GGG Glyph GGG GGG GGG GGG GGG GGGGGGGGGGGGGGGGGGGGGGG GGG GGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGG Bottom GlyphThis function is used internally by almost all equation functions (except for fraction) for their layout. As such, it is very generic and powerful. It should also almost never neeed to be used as most layouts can be achieved with a different functions that will have more succinct code that is more readable.
This is provided so all layout corner cases not covered by the functions above are possible - including with custom glyphs.
Options can only be an object.
contentTypeEquationPhraseannotationEQN_Annotation — use for just one annotationannotationsEQN_Annotation[] — use for multiple annotationsfullContentBoundsboolean— use full bounds of content, overriding anyinSize=falseproperties in the content (false)useFullBoundsboolean— make the bounds of this phrase equal to the full bounds of the content even iffullContentBounds=falseand the brackets only surround a portion of the content (false)glyphsEQN_Glyphs — glyphs to annotate content withinSizeboolean—truemeans resulting size includes annotations (true)spacenumber— extend resulting equation phrase size by space on top, right, bottom and left sides (0)topSpacenumber— extend resulting equation phrase size by space on topbottomSpacenumber— extend resulting equation phrase size by space on bottomleftSpacenumber— extend resulting equation phrase size by space on leftrightSpacenumber— extend resulting equation phrase size by space on rightcontentScalenumber— scale content (1)See
To test examples, append them to the boilerplate
Example