简体   繁体   English

latex输入到html和pdf输出

[英]latex input to html and pdf output

Is there a ruby gem that can parse latex formatted string to html string and pdf binary string including bibtex bibliography? 是否有一个ruby gem可以解析乳胶格式化的字符串到html字符串和pdf二进制字符串,包括bibtex参考书目?

I'm using textile (redcloth) right now in my rails app to get formated html, but I'd like to use latex to do it. 我现在正在我的rails应用程序中使用纺织品(红布)来获得格式化的html,但我想用乳胶来做它。 I also would like to use *.bib file for references. 我也想使用* .bib文件作为参考。 And having latex it should also be easy to build a pdf file, in order to provide a pdf version of the same article (nice to have)... 有了乳胶,它也应该很容易建立一个pdf文件,以提供相同文章的pdf版本(很高兴)...

I also could do it with the system call and eg texlive, but then I've to save the user input to file and manage these files and put it back to database and that all would take some time. 我也可以使用系统调用和texlive来完成它,但是我要将用户输入保存到文件并管理这些文件并将其放回数据库,这一切都需要一些时间。 I don't like this approach... 我不喜欢这种方法......

Is there a nice way to do it? 有一个很好的方法吗?

你可以试试runtex ,虽然我不知道它是否会完全符合你的要求,但我还没有测试过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM