I have a RoR app which can output a report in HTML back to the web
browser, or
(preferably) in PDF using the RTex plugin. I have a number of text
fields which
are stored as HTML, and am looking for a good way to convert them to
something
LaTeX-compatible, or plain text if that’s the last resort. I’ve seen a
number
of html2tex-type converters out there, but they are by no means
comprehensive in
terms of parsing tags. For example, they might catch the tag, but
not . Any suggestions?
My recommendation would be to make your main output format LaTeX and use
converters to make the PDF and HTML from the LaTeX. PDFs are dang near
impossible to read – it’s a write-only format for the most part.
My recommendation would be to make your main output format LaTeX and use
converters to make the PDF and HTML from the LaTeX. PDFs are dang near
impossible to read – it’s a write-only format for the most part.
Ah yes, but I’m using the (awesome) FCKEditor for WYSIWYG editing of
text
fields. This pretty much ensures that I’ll have a bunch of HTML in my
various
records. Maybe I just need to go through all of the HTML tags I see and
gsub
them to their LaTeX equivalents…
I’m probably trying to solve the same (or very similar) problem.
Started with FCKEditor and developed some code to convert tags into
readable Latex ones…but I’ve not completed the work because very
problematic.
Now, I’m retrying…installed last ruby and rails versions, downloaded
CKeditor(thinking’s better than FCK) and searching for latex plugin.
How have you solved your project? Have you create the equivalents,
finally?
I’ve done many of the equivalents by myself, but some particular cases
are impossible to solve for me at the moment.
Could I ask you which features you solved?
Regards,
Luca
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.