arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.56k stars 277 forks source link

Keycup for latex: "{#?}\\atopwithdelims\\{{#?}" #2192

Closed truebluepl closed 10 months ago

truebluepl commented 10 months ago

Current behaviour: Keycap with latex syntax: "{#?}\atopwithdelims\{{#?}" is displayed and prints bracket with only one squared placeholder, but there is editable place for second line in the matfield.

Expected behaviour: There should be two squared placeholder in the mathfield and displayed in the label.

arnog commented 10 months ago

The correct syntax is #? \atopwithdelims\{. #?: the \atopwithdelims command needs two delimiters. If you only need one, you must use a . to indicate an empty delimiter, otherwise the #? is interpreted as the right delimiter. Also, you don't need braces around the #?.

truebluepl commented 10 months ago

Yes! Now it works perfect. Thank you.