Style refactor limits parsing

Change-Id: Ia1040a0e1c5283d334bea47ec35529902c4eb435
This commit is contained in:
Moritz Schubotz (physikerwelt) 2024-04-12 13:03:44 +02:00 committed by Physikerwelt
parent 4d6a472040
commit 88b3575e74

View file

@ -945,13 +945,14 @@ class BaseParsing {
}
public static function limits( $node, $passedArgs, $operatorContent, $name, $smth = null ) {
$argsOp = [ "form" => "prefix" ];
if ( $operatorContent != null && array_key_exists( "styleargs", $operatorContent ) ) {
if ( $operatorContent["styleargs"]["displaystyle"] === "false" ) {
$argsOp = [ "movablelimits" => "true" ];
$argsOp = [ 'form' => 'prefix' ];
if ( isset( $operatorContent['styleargs'] ) ) {
$displaystyle = $operatorContent['styleargs']['displaystyle'] ?? 'true';
if ( $displaystyle === 'false' ) {
$argsOp['movablelimits'] = 'true';
}
if ( $node->containsFunc( "\\nolimits" ) ) {
$argsOp = [ "movablelimits" => "false" ];
if ( $node->containsFunc( '\\nolimits' ) ) {
$argsOp['movablelimits'] = 'false';
}
}
$mrow = new MMLmrow( TexClass::ORD, [] );