Forum: Ruby on Rails convert HTML to LaTeX or text

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6bb10a7bfe1ceac92a0ec2ecb4be7ef7?d=identicon&s=25 cal (Guest)
on 2006-05-05 14:51
(Received via mailing list)
Hi all,

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 <br> tag, but
not <br
/>.  Any suggestions?

-cal
3bb23e7770680ea44a2d79e6d10daaed?d=identicon&s=25 M. Edward (Ed) Borasky (Guest)
on 2006-05-07 09:07
(Received via mailing list)
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.

cal wrote:
> -cal
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>

--
M. Edward (Ed) Borasky

http://linuxcapacityplanning.com
A2a651597cb2d30b81d1ea56ae472062?d=identicon&s=25 cal (Guest)
on 2006-05-10 01:58
(Received via mailing list)
M. Edward (Ed) Borasky <znmeb@...> writes:

>
> 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....

-cal
E6a5d3248934de7b9191020172fc3b3d?d=identicon&s=25 Luca Massimini (massimauni)
on 2015-05-12 12:18
Hi Cal,

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 topic is locked and can not be replied to.