PHP - LaTeX rendering

爷,独闯天下 提交于 2019-12-13 13:15:31

问题


I am in the design stages of a new project which will take a data set and load it into a document, then render the document around a template. The rendered file could be a data set of CSV, a PDF marketing letter, an email, ... a lot of things. The data will not be math equations, I'm simply looking at an elegant way of connecting many data sources into many documents and outputting in many templates

I'm entirely in the dark here with using latex in php. Is there anything like this out there? Most of what I could are plugins find is focused on rendering latex equations into one PNGs rather than allowing me to decide between PDF, CSV, raw-text, etc...

Alternatively, could I do this with something else?


回答1:


I have implemented such an approach years (2002?) ago with smarty templates and producing PDF, CSV, HTML, XML (would be no problem via Smarty Template)......from the same data....May be you can take a look a fpdf.org ...

EDIT: May be you can take a look at http://railscasts.com/episodes/220-pdfkit (May be there existing an PHP pear package etc. for this ?)




回答2:


I'm not sure whether this is what you are looking for, but there exist JavaScript libraries that are able to render LaTeX formulas on the client-side and display them in the browser using the fonts that are also used by LaTeX. For this, have a look at MathJax or its predecessor jsMath.



来源:https://stackoverflow.com/questions/3408278/php-latex-rendering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!