Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Math formulas in a BIRT report(rendering math formulas in a BIRT report)
Math formulas in a BIRT report [message #746639] Sun, 23 October 2011 15:49 Go to next message
enricodallarosa65 is currently offline enricodallarosa65Friend
Messages: 3
Registered: October 2011
Junior Member
Hi,
I needto display math formulas in a BIRT report.
I'd like to use mathML in a HTML field, but it doesn't work...

Any ideas?

Thanks a lot
Re: Math formulas in a BIRT report [message #747870 is a reply to message #746639] Mon, 24 October 2011 10:30 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
You could use http://www.math.union.edu/~dpvc/jsMath/ or http://www.mathjax.org/ with client-side JavaScript.
Re: Math formulas in a BIRT report [message #749498 is a reply to message #747870] Tue, 25 October 2011 08:55 Go to previous messageGo to next message
enricodallarosa65 is currently offline enricodallarosa65Friend
Messages: 3
Registered: October 2011
Junior Member
Alexey, thanks for your reply.
I build an example with jsMath and I made it work in Firefox, but the same code isn't processed by BIRT.
I enclosed the file with test code.
I tried for half a day, with no results...
  • Attachment: erase.htm
    (Size: 0.39KB, Downloaded 313 times)
Re: Math formulas in a BIRT report [message #749996 is a reply to message #749498] Tue, 25 October 2011 15:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you deploy the js file to a web server and use a http reference as a
test?
<script type="text/javascript"
src="http://localhost:8090/mywebapp/myjsfile.js"></script>

Jason

On 10/25/2011 4:55 AM, enricodallarosa65 wrote:
> Alexey, thanks for your reply.
> I build an example with jsMath and I made it work in Firefox, but the same code isn't processed by BIRT.
> I enclosed the file with test code.
> I tried for half a day, with no results...
Re: Math formulas in a BIRT report [message #752555 is a reply to message #749996] Wed, 26 October 2011 12:36 Go to previous messageGo to next message
enricodallarosa65 is currently offline enricodallarosa65Friend
Messages: 3
Registered: October 2011
Junior Member
Hi Jason,
I tried from a local webserver, but it doesn't work.

I think that BIRT html/js engine is not able to elaborate jsMath scripts.

I take a sample html file and:
1. make it process by Firefox in order to have TeX converted to styles&fonts
2. copy the resulting html to BIRT

I succeeded only if I modified the processed file putting inline the styles created on the fly.

I'm thinking about pre processing html server side and afterwards modifying the results, moving styles definition from <style> ... </style> to inline.

Maybe it's a too long way...

enrico
Re: Math formulas in a BIRT report [message #752781 is a reply to message #752555] Wed, 26 October 2011 14:12 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Yes I am pretty sure <style> tags in text elements are not added to the
html head, so inline styles is the way to go on text elements.


Jason

On 10/26/2011 8:36 AM, enricodallarosa65 wrote:
> Hi Jason,
> I tried from a local webserver, but it doesn't work.
>
> I think that BIRT html/js engine is not able to elaborate jsMath scripts.
>
> I take a sample html file and:
> 1. make it process by Firefox in order to have TeX converted to
> styles&fonts
> 2. copy the resulting html to BIRT
>
> I succeeded only if I modified the processed file putting inline the
> styles created on the fly.
>
> I'm thinking about pre processing html server side and afterwards
> modifying the results, moving styles definition from <style> ...
> </style> to inline.
>
> Maybe it's a too long way...
> enrico
Previous Topic:jdbc driver
Next Topic:Paginate on Y-Series Group?
Goto Forum:
  


Current Time: Fri Mar 29 08:23:32 GMT 2024

Powered by FUDForum. Page generated in 0.03819 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top