Merge "Only use Munderover for displaystyle formulae"

This commit is contained in:
jenkins-bot 2024-10-07 10:29:14 +00:00 committed by Gerrit Code Review
commit 3f0692a9b9

View file

@ -72,7 +72,11 @@ class FQ extends TexNode {
$litArg = trim( $base->getArgs()[0] );
$tu = TexUtil::getInstance();
// "sum", "bigcap", "bigcup", "prod" ... all are nullary macros.
if ( $tu->nullary_macro( $litArg ) && !$tu->is_literal( $litArg ) ) {
if ( $tu->nullary_macro( $litArg ) &&
!$tu->is_literal( $litArg ) &&
// by default (inline-displaystyle large operators should be used)
( $state['styleargs']['displaystyle'] ?? 'true' ) === 'true'
) {
$melement = new MMLmunderover();
}
}