latex_kit library

Classes

AccentNode
Accent Node (e.g., \hat, \tilde)
AlignedNode
Aligned Environment Node
AnimatedLatex
LaTeX rendering component with animation transitions.
ArrayNode
Array Node
BigOperatorNode
Big Operator Node (Sum, Integral, Product, etc.)
BinomialNode
Binomial Node \binom{n}{k}
BoxedNode
Boxed Node (\boxed, \fbox)
CasesNode
Cases Environment Node (cases / dcases / rcases)
CLineNode
Partial Horizontal Line Node (\cline{start-end})
ColorBoxNode
Background Color Box Node (\colorbox{color}{text} or \fcolorbox{borderColor}{bgColor}{text})
ColorNode
Color Node
CommandNode
Command Node (e.g., \frac, \sqrt)
CursorCalculator
Cursor position calculator.
CursorPosition
Cursor pixel position.
DelimitedNode
Delimited Node (e.g., \left( ... \right))
DisplayMathNode
Display Math Node ($$...$$) Used for block/standalone mathematical formulas.
DocumentNode
Document Node
EditorState
LaTeX Editor State Machine.
EncloseNode
EnvironmentNode
Environment Node (e.g., \begin{equation}...\end{equation})
EqnarrayNode
Eqnarray Environment Node
EqRefNode
Equation Reference Node (\eqref{key}) Renders the referenced label number with parentheses.
ErrorNode
Error Recovery Node
ExtensibleArrowNode
Extensible Arrow Node
FontSizeNode
Font Size Node
FractionNode
Fraction Node
GroupNode
Group Node (content enclosed in curly braces { ... })
HighlightConfig
Sub-expression highlight configuration.
HighlightRange
Single highlight range.
HLineNode
Horizontal Line Node (\hline)
HPhantomNode
Horizontal Phantom Node (\hphantom) Preserves width but minimizes height/baseline.
HSpaceNode
HSpace Node
HyperlinkNode
Hyperlink Node (\href{url}{text} or \url{url})
InlineMathNode
Inline Math Node ($...$)
IntRange
Helper class to represent an integer range (inclusive), matching Kotlin's IntRange.
LabelNode
Label Definition Node (\label{key}) Does not render; records label definition.
Latex
Latex rendering component.
LatexAnimationConfig
Animation configuration.
LatexAutoWrap
Auto-wrapping LaTeX rendering component.
LatexConfig
LaTeX rendering configuration (external user settings)
LatexEditor
LaTeX Editor Component.
LatexFontFamilies
LaTeX Font Families Configuration (KaTeX-based)
LatexPair
LatexRenderer
LaTeX core renderer: encapsulates the shared logic of "measure + draw".
LatexRenderResult
LaTeX render result: contains the measured layout, padding, highlights, and all information needed for drawing.
LatexTheme
LatexThemeColors
LaTeX single swatch colors.
LayoutHints
Layout hints: One-way layout communication channel passing from parent to child
LayoutNode
Fine layout primitives used by \raisebox and \rule. Dimensions are retained in TeX form and resolved by the renderer.
LineBreakingConfig
Line breaking configuration
ManualSizedDelimiterNode
Manual Sized Delimiter Node (e.g., \big(, \Big[)
MathLapNode
Zero-width Lap Node (\mathclap, \mathllap, \mathrlap) Renders content but treats its width as zero (or zero on one side).
MathStyleNode
Math Style Node (controls formula size context)
MatrixNode
Matrix Node
ModOperatorNode
Modulo Operator Node (\pmod, \bmod)
MulticolumnNode
Multicolumn Cell Node (\multicolumn{num}{align}{content})
MultlineNode
Multline Environment Node
NegationNode
Negation Modifier Node (\not) Overlays a slash on a relational symbol to indicate negation. Example: \not= -> ≠, \not\in -> ∉
NewCommandNode
NewCommand Definition Node (\newcommand)
NewEnvironmentNode
Custom Environment Definition Node (\newenvironment) Does not render; records environment definition.
NewLineNode
NewLine Node
OperatorNameNode
Operator Name Node (\operatorname{Tr})
OperatorNode
Operator Node
PhantomNode
Phantom Node (\phantom)
PrescriptNode
Prescript Node (\prescript{sup}{sub}{base}) Places sub/superscripts to the left of the base symbol.
RawLatexMeasurement
RefNode
Reference Node (\ref{key}) Renders the referenced label number.
RenderContext
Internal rendering context (state during render tree traversal)
RootNode
Root Node
RowGap
Helper class for Matrix and Array spacing
SectionHeadingNode
Section Heading Node (\section, \subsection, etc.)
SideSetNode
Side Set Node (\sideset{_a^b}{_c^d}{\sum}) Places sub/superscripts at the four corners of a large operator.
SlotNavigator
Slot Navigator.
SmashNode
Smash Node (\smash) Treats content height or depth as zero for spacing fine-tuning.
SpaceNode
Space Node
SplitNode
Split Environment Node
StackNode
Stack Node
StyleNode
Style Node
SubequationsNode
Subequations Environment Node
SubscriptNode
Subscript Node (_)
SubstackNode
Multiline Subscript Condition Node (\substack) Used for multiline conditions below/above large operators.
SuperscriptNode
Superscript Node (^)
SymbolNode
Symbol Node
TabularNode
Tabular Environment Node (\begin{tabular}{ccc}...)
TagNode
Formula Numbering Tag Node (\tag, \tag*)
TensorIndex
Helper class for Tensor indices (Boolean indicates whether index is a superscript)
TensorNode
Tensor/Index Node (\tensor{T}{^a_b^c}) Used in physics to arrange multiple sub/superscript indices.
TextDirectionNode
Text Direction Node (RTL/LTR switching)
TextModeNode
Text Mode Node (Plain text inside math mode)
TextNode
Text Node
VPhantomNode
Vertical Phantom Node (\vphantom) Preserves height/baseline but sets width to zero.

Enums

AccentType
AlignType
对齐类型枚举
ArrowDirection
可扩展箭头方向枚举
BinomialStyle
二项式系数风格枚举
BoxStyle
边框样式
CasesStyle
Cases 环境风格枚举
FontVariant
Font variant type
FractionStyle
Fraction styles enum
HeadingLevel
章节标题层级
LapType
零宽叠加类型
LatexTransition
Animation transition type.
LayoutType
LimitsMode
极限位置模式
MathStyle
Math style mode (TeXbook §702)
MathStyleType
数学模式类型枚举
MatrixType
矩阵类型枚举
ModStyle
取模风格
Notation
MathML notation 围框/删除线类型
SizeType
SmashType
Smash 压缩类型
SpaceType
空格类型枚举
StyleType
字体样式枚举
TextDirectionType
文本方向

Properties

defaultFontFamiliesState → ValueNotifier<LatexFontFamilies>
Global default LatexFontFamilies state.
final
isFontBytesLoaded → bool
EXPOSE THE STATE: Public getter so your NodeBuilder can check it instantly
no setter

Functions

defaultLatexFontFamilies() → LatexFontFamilies
Helper method to retrieve or initialize the font families. It returns the current state immediately and triggers the byte loading if not yet done.
latexConfigToContext(LatexConfig config, {required bool isDark, required LatexFontFamilies fontFamilies, MathFontProvider? provider}) → RenderContext
Creates initial context from external configuration
loadDefaultFontBytes() → Future<void>
Asynchronously loads the bytes for the default KaTeX TTF fonts.