Is there a tool that converts plain text to LaTeX in C#?

Hi Is there a NuGet package maybe or a tool in Visual Studio that I can use that converts plain text to LaTeX code automatically? It is important to have it return the LaTeX result as a string. It would actually be perfect if CSharpMath or SkiaSharp is capable of doing this. And If so, how? If not, what other options do I have? Example: string equation = "x=a/b". Here, x=a/b is in plain text, it would be nice to feed this string to a parser function of some sort that can return a LaTeX string representing the input given. In my actual case, I am taking a string from a user TextBox so I don't know what equation the user will be providing. Solved
9 Replies
CaramelCorn
CaramelCornā€¢10mo ago
oh that's cool, I'd love a tool like that, haven't dug into that with C# though, good luck!
Alex
Alexā€¢10mo ago
Thanks princess.
the magic guy
the magic guyā€¢10mo ago
Stack Overflow
Is there a tool that converts plain text to LaTeX in C#?
Is there a NuGet package maybe or a tool in Visual Studio that I can use that converts plain text to LaTeX code automatically? It is important to have it return the LaTeX result as a string. It would
the magic guy
the magic guyā€¢10mo ago
Aspose Blog
LaTeX Document Conversion in C# ā€“ The Ultimate Guide
Learn about LaTeX document conversion in C#. Convert your TeX or LaTeX files to various other formats in C#. Explore C# LaTeX document conversion API.
the magic guy
the magic guyā€¢10mo ago
I randomly found
Alex
Alexā€¢10mo ago
that is my question XD I just posted that on Stack Overflow Aspose site, I gave it a try, it doesn't seem to convert it to text. It outputs the result into dif files like image, pdf, doc, and so on
CaramelCorn
CaramelCornā€¢10mo ago
it must turn the input into LaTeX format proper at some point, probably just figured nobody would want the raw LaTeX for it so they just output it in other formats šŸ¤·ā€ā™€ļø
the magic guy
the magic guyā€¢10mo ago
ask chat GPT lmao
Alex
Alexā€¢10mo ago
there is a tool that converts to TeX as text code, I already used it. Sadly it is useless for my case I got it solved šŸ™‚