- cell(0).draw(pi, xx + 2, y - dim0.des - 5);
- Dimension const dim1 = cell(1).dimension(*pi.base.bv);
- cell(1).draw(pi, xx + dim0.wid + 5, y + dim1.asc / 2);
- // Diag line:
- pi.pain.line(xx + dim0.wid + 1, y + dim.des - 2,
- xx + dim0.wid + 6, y - dim.asc + 2,
- pi.base.font.color());
+ cell(0).draw(pi, xx + 1, y - dy);
+ // reference LaTeX code from nicefrac.sty:
+ // \mkern-2mu/\mkern-1mu
+ if (latexkeys const * slash = slash_symbol()) {
+ int mkern = mathed_mu(pi.base.font, 2.0);
+ mathedSymbolDraw(pi, xx + 1 + dim0.wid - mkern, y, slash);
+ Dimension dimslash;
+ mathedSymbolDim(pi.base, dimslash, slash);
+ xx += dimslash.wid - mathed_mu(pi.base.font, 3.0);
+ }
+ cell(1).draw(pi, xx + 1 + dim0.wid, y);