texmath icon indicating copy to clipboard operation
texmath copied to clipboard

Newline error

Open paulocosta94 opened this issue 7 years ago • 5 comments

This problem always happens when I use "\" (new line ) in latex.

img 1

paulocosta94 avatar Sep 05 '17 11:09 paulocosta94

We currently don't have anything corresponding to a line break in the Exp structure. \\ is handled properly in arrays and similar environments, but not when it occurs outside of them.

jgm avatar Dec 12 '18 20:12 jgm

You can use an aligned environment to get the output you want.

jgm avatar Dec 12 '18 20:12 jgm

We could change formula to stop at \\ and produce an EArray, I suppose.

jgm avatar Dec 12 '18 20:12 jgm

See also #91 which suggests that maybe folding line breaks into ESpace would make more sense.

jgm avatar Dec 12 '18 20:12 jgm

Contemplating adding an ELine element. However, I can't figure out how to get m:brk working in Word as documented. (Even the example from the OMML spec doesn't render properly.)

jgm avatar Dec 14 '18 22:12 jgm