Skip to main content

Crate ratex_gpui

Crate ratex_gpui 

Source
Expand description

ratex-gpui — a structural, MathQuill-style math editor for GPUI, built on the RaTeX typesetting engine.

RaTeX is the engine (parse → layout → render); this crate is the editor + display layer.

  • render — display a formula as a gpui::RenderImage (or PNG / SVG). Always available.
  • editor — the structural editor. The parse/serialize core (editor::model, editor::latex) is always built; the interactive editor (MathEditor + the cursor / geometry / input / view modules) is behind the editor feature (enabled by default). For a render-only build, depend with default-features = false.

Re-exports§

pub use editor::latex::parse_latex;
pub use editor::view::MathAlign;
pub use editor::view::MathEditor;
pub use editor::view::MathNav;
pub use editor::view::MathTheme;

Modules§

editor
The structural math editor.
render
Render a formula to a gpui image — the display primitive (the ratex-gtk4 analog).