Put back Color code in place of txetcolor due to crashes.

This commit is contained in:
Michael Griebling
2024-10-05 11:29:31 -04:00
parent a87d4b5a3c
commit 428537b8d9
5 changed files with 69 additions and 68 deletions

View File

@@ -587,18 +587,18 @@ public struct MTMathListBuilder {
}
let table = self.buildTable(env: env, firstList:nil, isRow:false)
return table
} else if command == "color" {
} else if command == "color" || command == "textcolor" {
// A color command has 2 arguments
let mathColor = MTMathColor()
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
} else if command == "textcolor" {
// A textcolor command has 2 arguments
let mathColor = MTMathTextColor()
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
// } else if command == "textcolor" {
// // A textcolor command has 2 arguments
// let mathColor = MTMathTextColor()
// mathColor.colorString = self.readColor()!
// mathColor.innerList = self.buildInternal(true)
// return mathColor
} else if command == "colorbox" {
// A color command has 2 arguments
let mathColorbox = MTMathColorbox()