build_latex_children: Build grid children from a MicroTeX layout data.frame

View source: R/grid-builder.R

build_latex_childrenR Documentation

Build grid children from a MicroTeX layout data.frame

Description

Converts each row of the layout data.frame into the appropriate grid grob (pathGrob, segmentsGrob, rectGrob, textGrob, glyphGrob).

Usage

build_latex_children(
  layout_df,
  total_h,
  depth = 0,
  text_gp = NULL,
  render_mode = "typeface"
)

Arguments

layout_df

Data.frame returned by parse_latex_cpp().

total_h

Total height of the formula (height + depth) in bigpts.

depth

Depth below the baseline in bigpts (default 0).

text_gp

Optional gpar for text grobs (from \text{} blocks). Controls fontfamily and fontface.

render_mode

Character string: "path" or "typeface". In typeface mode, glyph records are rendered via glyphGrob.

Value

A grid::gList of child grobs.


gridmicrotex documentation built on May 16, 2026, 5:06 p.m.