diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.67k stars 1.17k forks source link

Support for asciimath #754

Open skjo0c opened 4 years ago

skjo0c commented 4 years ago

Is your feature request related to a problem? Please describe. I want to add mathematical and chemical equations on my pdf file. I couldn't find any examples that contains subscript or superscript as well.

Describe the solution you'd like For the rendering, I have used mathjax-preview. I was wondering if react-pdf can have something like this.

invious commented 4 years ago

I would like to render something like this:

image

MrDonArmando commented 4 years ago

I was able to add subscript and superscript numbers to pdf file with Inconsolata font.

Font.register({ family: "Inconsolata", src: "http://fonts.gstatic.com/s/inconsolata/v15/7bMKuoy6Nh0ft0SHnIGMuaCWcynf_cDxXwCLxiixG1c.ttf", });

However it does not add ring operator to pdf file

andrewlphilpott commented 3 years ago

@skjo0c did you ever find a solution for this?

skjo0c commented 3 years ago

Nope, went with backend solution Puppeteer js

andrewlphilpott commented 3 years ago

@skjo0c thanks I may need to check that out.