xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

using \textunderscore just crashes the Formulacontrol on WPF

Open TheOOnewbie opened this issue 1 year ago • 6 comments

while trying to show a formula in my wpf program, the control kept crashing whenever I try to use the command that is used to write underscores =>(\textunderscore ) is there a way to add a certain library so the control could support such commands ?

if not what would you do in this case ?

TheOOnewbie avatar Jul 28 '22 06:07 TheOOnewbie

while trying to show a formula in my wpf program, the control kept crashing whenever I try to use the command that is used to write underscores =>(\textunderscore ) is there a way to add a certain library so the control could support such commands ?

if not what would you do in this case ?

_ command is also not working

TheOOnewbie avatar Jul 28 '22 06:07 TheOOnewbie

When talking about something "crashing" (an exception thrown perhaps?), it's always useful to provide a stack trace.

_ command is also not working

Is it even a command? Could you please give an example?

ForNeVeR avatar Jul 28 '22 19:07 ForNeVeR

Hi,

image

regarding the crashing error, no there was no exception thrown, the whole control turns into a single red dot, image

this happens when I try to use on of the either (_) or(\textunderscore) in the formula property of the control

TheOOnewbie avatar Jul 29 '22 06:07 TheOOnewbie

When talking about something "crashing" (an exception thrown perhaps?), it's always useful to provide a stack trace.

_ command is also not working

Is it even a command? Could you please give an example?

I hope this helps you to recreate the error.

TheOOnewbie avatar Jul 29 '22 06:07 TheOOnewbie

I was able to reproduce the issue. We have no commands \textunderscore or \_, and there's a reason for that: turns out that the Computer Modern font we use doesn't have a _ character.

So, it is very tricky to add. Please use \text{_} for now.

ForNeVeR avatar Jul 30 '22 07:07 ForNeVeR

Answering to your other question,

is there a way to add a certain library so the control could support such commands ?

We are considering making WPF-Math user-extendable, but that still requires a lot of ongoing work. See #154 for details.

ForNeVeR avatar Jul 30 '22 08:07 ForNeVeR