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

Method createBox

src/core/core.cpp:296–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296sptr<Box> Glue::createBox(const TeXEnvironment& env) const {
297 float factor = getFactor(env);
298 auto x = new GlueBox(_space * factor, _stretch * factor, _shrink * factor);
299 return sptr<Box>(x);
300}
301
302int Glue::getGlueIndex(int ltype, int rtype, const TeXEnvironment& env) {
303 // types > INNER are considered of type ORD for glue calculations

Callers 2

buildMethod · 0.45
getMethod · 0.45

Calls 1

getFactorFunction · 0.85

Tested by

no test coverage detected