MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / init

Method init

src/latex.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13TeXRenderBuilder* LaTeX::_builder = nullptr;
14
15void LaTeX::init(const string& res_root_path) {
16 RES_BASE = res_root_path;
17 if (_formula != nullptr) return;
18
19 NewCommandMacro::_init_();
20 DefaultTeXFont::_init_();
21 SymbolAtom::_init_();
22 Glue::_init_();
23 TeXFormula::_init_();
24 TextRenderingBox::_init_();
25
26 _formula = new TeXFormula();
27 _builder = new TeXRenderBuilder();
28}
29
30void LaTeX::release() {
31 Glue::_free_();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected