TransWikia.com

Binomial coefficient parentheses are inconsistent across engines

TeX - LaTeX Asked by Ruixi Zhang on April 1, 2021

Using the following code (run pdfLaTeX/XeLaTeX/LuaLaTeX), pdfTeX and XeTeX produce identical binomial coefficients, but LuaTeX makes larger parentheses in scriptstyle and scriptscriptstyle. Are these discrepancies by design, or are these engine-related bugs? How can I obtain unified results?

documentclass{article}
begin{document}
baselineskip=18pt

ifxdirectluaundefined
  ifxXeTeXcharclassundefined
    pdf/TeX%
  else
    XeTeX%
  fi
else
    LuaTeX%
fi

$displaystyle      {nchoose k},
 textstyle         {nchoose k},
 scriptstyle       {nchoose k},
 scriptscriptstyle {nchoose k}$
end{document}

pdfTeX

XeTeX

LuaTeX

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP