diff --git a/ts/input/tex/base/BaseItems.ts b/ts/input/tex/base/BaseItems.ts index 80f47637b..68e8a9126 100644 --- a/ts/input/tex/base/BaseItems.ts +++ b/ts/input/tex/base/BaseItems.ts @@ -1393,7 +1393,9 @@ export class EqnArrayItem extends ArrayItem { */ public EndEntry() { // @test Cubic Binomial - if (this.row.length) { + const calign = (this.arraydef.columnalign as string).split(/ /); + const align = this.row.length && calign.length ? calign[this.row.length % calign.length] : 'right'; + if (align !== 'right') { ParseUtil.fixInitialMO(this.factory.configuration, this.nodes); } super.EndEntry();