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

Newline @"\\" and @\longrightarrow breaks

Open crvenizg opened this issue 5 years ago • 5 comments
trafficstars

Stringbuilder postupak; double mean, sumaFi;
//few lines of code
postupak.Append(mean);
postupak.Append(@"\\ "); //it breaks here, without it works correctly
postupak.Append(@"Q_{1} = \frac{\sum_{i}^N f_{i}}{4} = \frac{");
postupak.Append(sumaFi);
postupak.Append(@"}{4} = ");
postupak.Append(sumaFi / 4);
postupak.Append(@" \longrightarrow Q_{1} = "); //it breaks here, without it works correctly

Am i using commands wrong or is it a bug ?

crvenizg avatar Jul 24 '20 06:07 crvenizg

Hi! Your usage of \\ looks fine, but we have no longrightarrow command, unfortunately.

A version with working \\ wasn't published yet, unfortunately. I think I'll publish a release with it, soon.

ForNeVeR avatar Jul 31 '20 15:07 ForNeVeR

oh you didnt publish a version with working newline \ yet .,.. weird, read the posts before and seemed it was implemented ... ok i ll wait then ... but where is the documentation of working latex commands in this library ?

crvenizg avatar Jul 31 '20 15:07 crvenizg

I have already published 0.9.0 with working \\, a few hours ago.

For supported TeX symbols, you could skim through

  • https://github.com/ForNeVeR/wpf-math/blob/25daf84814f47d6060b568637341153d5d273036/src/WpfMath/Data/PredefinedTexFormulas.xml
  • https://github.com/ForNeVeR/wpf-math/blob/25daf84814f47d6060b568637341153d5d273036/src/WpfMath/Data/TexSymbols.xml

Though I suddenly (!) realized that it's a very good idea to publish a list of supported symbols somewhere. Will create a separate issue, thanks!

ForNeVeR avatar Jul 31 '20 17:07 ForNeVeR

Yes that would be helpful :) ... awesome newline \ working now ... one more thing, how do u add space in latex ?

crvenizg avatar Jul 31 '20 19:07 crvenizg

Try \,

ForNeVeR avatar Aug 01 '20 05:08 ForNeVeR