简体   繁体   中英

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?

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. I also would like to use *.bib file for references. 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)...

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. I don't like this approach...

Is there a nice way to do it?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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