Speech-Rule-Engine / speech-rule-engine

Generating speech descriptions for XML structures
https://zorkow.github.io/speech-rule-engine/
Apache License 2.0
75 stars 39 forks source link

re-arranged content with unbalanced fences #667

Closed pkra closed 10 months ago

pkra commented 2 years ago

Minimal example:

{}= x\left. \operatorname {X} \left( \left( x \right)\right. \right.

which ends up with the operator at the end of the line (when enriching):

screenshot of rendered expression

pkra commented 2 years ago

Original full example (which has unbalanced fences because of a manual linebreak)

\begin{aligned}
& u_2(t,x) \\ 
& {}= \frac{2}{t^{1/2}}\left. \operatorname {Re} \left( \left( \tilde{\Psi }(y) ( \log t + \log \sqrt {1-|y|^2}) +\tilde{\Phi }_2 (y) \right)\right. \right. \\ 
& \quad \left. \left. \times \exp \left(it\sqrt {1-|y|^2} +i\Psi (y) \log t \right) \right)\right|_{y=\frac{x}{t+2B}}\\ 
& \quad + O(t^{-\frac{3}{2}+c\delta }) \end{aligned}
pkra commented 2 years ago

Just for completeness: removing the extraneous \left. ... \right. (starting before the operator) seems to work around this issue.

zorkow commented 1 year ago

I can't reproduce that problem. Does that still exist?

pkra commented 1 year ago

This seems to have been fixed in v4.1.0-beta.0.