Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! Thank you for this project, I really like it!
I needed a way to render LaTeX equations for another project (VectSharp.Markdown), and this seemed like a good place to start.
To be able to make it work with my project, I have created a new front end for CSharpMath, which uses VectSharp to render the equations. As a side effect, this makes it possible to output the rendered LaTeX to SVG and PDF documents, as well as to raster images.
For example, to render an equation to an SVG file (requires the VectSharp.SVG NuGet package):
Or to a PDF file (requires the VectSharp.PDF NuGet package):
To a raster image (using ImageSharp, requires the VectSharp.Raster.ImageSharp NuGet package):
Currently, this implementation is very similar to the CSharpMath.SkiaSharp implementation, except that it uses VectSharp rather than SkiaSharp for rendering. Ideally, at some point in the future I would like to fork from CSharpMath.Rendering in order to directly draw the glyphs, which would have the added benefit of making text selectable in PDF files. It will take some time though, because at the very least I need to implement a parser for the
MATH
OpenType table.I hope this can be useful! Let me know if there are any issues or you have any questions!