1

Consider the following example:

\documentclass{article}
% \usepackage{unicode-math}
% \setmathfont{KpMath-Regular.otf}
\usepackage{kpfonts-otf}

\begin{document} [ \left. \int \limits_{a}^{b} \frac{x}{y} \middle/ \int \limits_c^d \frac{x}{y} \right. ] \end{document}

enter image description here

The slash in the middle should be a bigger one. For example, if one uses kpfonts instead of kpfonts-otf, the result would be:

enter image description here

Is there some way to fix this behavior?

Jinwen
  • 8,518
  • Is this https://tex.stackexchange.com/questions/183477/kpfonts-vs-fence-scaling helps you? This also will helps https://tex.stackexchange.com/questions/436284/how-to-adjust-parenthesis-thickness-without-changing-the-font/436290#436290 – MadyYuvi Jul 05 '22 at 09:54
  • Apparently the developers forgot to add the larger variants… – egreg Jul 05 '22 at 09:56
  • I would ordinarily suggest \usepackage[slash-delimiter=...]{unicode-math}, but neither \slash, \fracslash nor \divslash works with this font. – Davislor Jul 05 '22 at 16:17

1 Answers1

2

Update

With version 0.43 of kpfonts-otf, released 2022-07-05`, the issue has been fixed.

Original answer

It seems that the developers forgot to add the larger variants.

Workaround follows:

\documentclass{article}
\usepackage{kpfonts-otf}

\DeclareSymbolFont{legacylargesymbols}{OMX}{jkp}{m}{n} \DeclareMathDelimiter{/}{\mathord}{operators}{"2F}{legacylargesymbols}{"0E}

\begin{document}

$/\big/\Big/\bigg/$

[ \left. \int \limits_{a}^{b} \frac{x}{y} \middle/ \int \limits_c^d \frac{x}{y} \right. ]

\end{document}

enter image description here

Of course you should use \Bigg/ instead of \left. \middle/ \right.

\[
  \int \limits_{a}^{b} \frac{x}{y} \Bigg/ \int \limits_c^d \frac{x}{y}
\]

Even better, no \limits and a thin space:

\[
  \int_{a}^{b} \frac{x}{y} \,\Bigg/ \int_c^d \frac{x}{y}
\]

enter image description here

egreg
  • 1,121,712
  • Thank you for this! I shall adopt this workaround until the final fix arrive. – Jinwen Jul 05 '22 at 11:42
  • 2
    The glyphs for larger variants are there, but I forgot to link them to the base characters. Same for \backslash. FIxed in version 0.43 which is on the way to CTAN. Thanks for pointing this out. – Daniel Flipo Jul 05 '22 at 17:45