| 294 | } |
| 295 | |
| 296 | sptr<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 | |
| 302 | int Glue::getGlueIndex(int ltype, int rtype, const TeXEnvironment& env) { |
| 303 | // types > INNER are considered of type ORD for glue calculations |