You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Ganesh Babu Nallamothu, Integra-India" <ga...@integra-india.com> on 2004/09/28 17:20:35 UTC

TeX output in FOP

Dear All,

In my project I have to display TeX, MathML and GIF output to PDF.

For MathML, I have taken new snap shot from apache site. and it is working
fine.
For GIF, Any how this is external image we can able to display.
For TeX, How we can display?

My idea is compile TeX and get DVI file using dvips convert into ps and then
include in the file. But the new build fop is stating error:

"Could not find a set of breaking points". What is this error and how to
rectify this.


This is the lines from the -d option of FOP.


Building formatting object tree
Current heap size: 590Kb
Starting layout
null implementation of getWordSpaceIPD() called!
No set of breaking points found with maxAdjustment = 1.0
No set of breaking points found with maxAdjustment = 5.0
Could not find a set of breaking points



Regards,
Ganesh


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: TeX output in FOP

Posted by Jeremias Maerki <de...@greenmail.ch>.
To my knowledge there's no such thing currently available for FOP. You
could try to create a FOP extension, similar to the MathML extension,
that allows you to control an external TeX processor. The tricky thing
is probably finding a TeX implementation that can output SVG. I don't
know if such a things exists. EPS output won't help you with PDF and I
don't think there's a TeX implementation in Java that could be used to
render using FOP's PDF library. I believe you're out of luck here.

Are you sure you want to work with the CVS snapshot? That code is not
ready for productive use.

On 29.09.2004 11:38:32 Ganesh Babu Nallamothu, Integra-India wrote:
> I think you have misunderstood my requirement.
> 
> In my XML file the code will be like this.
> 
> <math type="tex">$\alpha \over \beta$</math>
> <math type="mathml"><mo></mo>...   </math>
> <math type="gif"><img src="0152.gif"/>
> 
> I want to render all 3 formats along with the text in the PDF file. For that
> I required to render TeX output, MathML output and embed gif image in the
> PDF. MathML output and gif embedding can be done using FOP. My question is
> how we will include TeX output in the PDF.
> 
> If you look the method of MathML rendering, From MathML code SVG will be
> generated and SVG will be embedded in the PDF. Similarly any method is there
> is embed TeX inside PDF?
> 
> I have downloaded the following zip file from the CVS snapshot
> xml-fop_20040921223357.tar.gz


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: TeX output in FOP

Posted by Simon Pepping <sp...@leverkruid.nl>.
Ganesh,

TeX -> dvi -> PostScript -> gif. This is a standard procedure for many
web pages. The procedure is also used in the docbook XSL stylesheets,
see the alternatives to render MathML in Docbook.

Regards, Simon

On Wed, Sep 29, 2004 at 03:08:32PM +0530, Ganesh Babu Nallamothu, Integra-India wrote:
> Dear Chris,
> 
> I think you have misunderstood my requirement.
> 
> In my XML file the code will be like this.
> 
> <math type="tex">$\alpha \over \beta$</math>
> <math type="mathml"><mo></mo>...   </math>
> <math type="gif"><img src="0152.gif"/>
> 
> I want to render all 3 formats along with the text in the PDF file. For that
> I required to render TeX output, MathML output and embed gif image in the
> PDF. MathML output and gif embedding can be done using FOP. My question is
> how we will include TeX output in the PDF.
> 
> If you look the method of MathML rendering, From MathML code SVG will be
> generated and SVG will be embedded in the PDF. Similarly any method is there
> is embed TeX inside PDF?
> 
> I have downloaded the following zip file from the CVS snapshot
> xml-fop_20040921223357.tar.gz
> 
> Regards,
> Ganesh

-- 
Simon Pepping
home page: http://www.leverkruid.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: TeX output in FOP

Posted by "Ganesh Babu Nallamothu, Integra-India" <ga...@integra-india.com>.
Dear Chris,

I think you have misunderstood my requirement.

In my XML file the code will be like this.

<math type="tex">$\alpha \over \beta$</math>
<math type="mathml"><mo></mo>...   </math>
<math type="gif"><img src="0152.gif"/>

I want to render all 3 formats along with the text in the PDF file. For that
I required to render TeX output, MathML output and embed gif image in the
PDF. MathML output and gif embedding can be done using FOP. My question is
how we will include TeX output in the PDF.

If you look the method of MathML rendering, From MathML code SVG will be
generated and SVG will be embedded in the PDF. Similarly any method is there
is embed TeX inside PDF?

I have downloaded the following zip file from the CVS snapshot
xml-fop_20040921223357.tar.gz

Regards,
Ganesh


-----Original Message-----
From: Chris Bowditch [mailto:bowditch_chris@hotmail.com]
Sent: Wednesday, September 29, 2004 2:39 PM
To: fop-user@xml.apache.org
Subject: Re: TeX output in FOP


Ganesh Babu Nallamothu, Integra-India wrote:

> Dear All,
>
> In my project I have to display TeX, MathML and GIF output to PDF.
>
> For MathML, I have taken new snap shot from apache site. and it is working
> fine.
> For GIF, Any how this is external image we can able to display.

Do you mean how can you include the binary data inside the xml file and get
FOP to render it as an image? Im not sure how to do it, you may be able to
do
something cleaver with URI resolvers and the data: protocol. Others on this
list may be able to help more with this.

> For TeX, How we can display?
>
> My idea is compile TeX and get DVI file using dvips convert into ps and
then
> include in the file. But the new build fop is stating error:
>
> "Could not find a set of breaking points". What is this error and how to
> rectify this.
>
>
> This is the lines from the -d option of FOP.
>
>
> Building formatting object tree
> Current heap size: 590Kb
> Starting layout
> null implementation of getWordSpaceIPD() called!
> No set of breaking points found with maxAdjustment = 1.0
> No set of breaking points found with maxAdjustment = 5.0
> Could not find a set of breaking points

This is output from the development code which isnt ready for production
use.
You probably mean to get the latest maintenance code. You need to specify
the
branch tag "fop-0_20_2-maintain" when using CVS to download the source

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: TeX output in FOP

Posted by Chris Bowditch <bo...@hotmail.com>.
Ganesh Babu Nallamothu, Integra-India wrote:

> Dear All,
> 
> In my project I have to display TeX, MathML and GIF output to PDF.
> 
> For MathML, I have taken new snap shot from apache site. and it is working
> fine.
> For GIF, Any how this is external image we can able to display.

Do you mean how can you include the binary data inside the xml file and get 
FOP to render it as an image? Im not sure how to do it, you may be able to do 
something cleaver with URI resolvers and the data: protocol. Others on this 
list may be able to help more with this.

> For TeX, How we can display?
> 
> My idea is compile TeX and get DVI file using dvips convert into ps and then
> include in the file. But the new build fop is stating error:
> 
> "Could not find a set of breaking points". What is this error and how to
> rectify this.
> 
> 
> This is the lines from the -d option of FOP.
> 
> 
> Building formatting object tree
> Current heap size: 590Kb
> Starting layout
> null implementation of getWordSpaceIPD() called!
> No set of breaking points found with maxAdjustment = 1.0
> No set of breaking points found with maxAdjustment = 5.0
> Could not find a set of breaking points

This is output from the development code which isnt ready for production use. 
You probably mean to get the latest maintenance code. You need to specify the 
branch tag "fop-0_20_2-maintain" when using CVS to download the source

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: TeX output in FOP

Posted by "Ganesh Babu Nallamothu, Integra-India" <ga...@integra-india.com>.

-----Original Message-----
From: Simon Pepping [mailto:spepping@leverkruid.nl]
Sent: Wednesday, September 29, 2004 12:15 AM
To: fop-user@xml.apache.org
Subject: Re: TeX output in FOP


Please, start a new thread if you change the subject. My mail reader
indicates that you wrote this message as a reply to a message about a
different subject.

On Tue, Sep 28, 2004 at 08:50:35PM +0530, Ganesh Babu Nallamothu,
Integra-India wrote:
> Dear All,
>
> In my project I have to display TeX, MathML and GIF output to PDF.
>
> For MathML, I have taken new snap shot from apache site. and it is working
> fine.
> For GIF, Any how this is external image we can able to display.
> For TeX, How we can display?
>
> My idea is compile TeX and get DVI file using dvips convert into ps and
then
> include in the file. But the new build fop is stating error:

I am not sure what you are doing. pdftex can create pdf output from a
tex file, but perhaps that is not what you need.

Yes, All the above formats are embeded in XML file. So I want a single
solution to render all 3 formats along with XML at a single point of time.
So I am opting for FOP.

> "Could not find a set of breaking points". What is this error and how to
> rectify this.
>
>
> This is the lines from the -d option of FOP.
>
>
> Building formatting object tree
> Current heap size: 590Kb
> Starting layout
> null implementation of getWordSpaceIPD() called!
> No set of breaking points found with maxAdjustment = 1.0
> No set of breaking points found with maxAdjustment = 5.0
> Could not find a set of breaking points

This is debugging output from the line breaking mechanism. Apparently
your text (a piece of PostScript?) is considered normal text to be
broken into lines.

Any solution for this?

Regards,
Simon Pepping

--
Simon Pepping
home page: http://www.leverkruid.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: TeX output in FOP

Posted by Simon Pepping <sp...@leverkruid.nl>.
Please, start a new thread if you change the subject. My mail reader
indicates that you wrote this message as a reply to a message about a
different subject.

On Tue, Sep 28, 2004 at 08:50:35PM +0530, Ganesh Babu Nallamothu, Integra-India wrote:
> Dear All,
> 
> In my project I have to display TeX, MathML and GIF output to PDF.
> 
> For MathML, I have taken new snap shot from apache site. and it is working
> fine.
> For GIF, Any how this is external image we can able to display.
> For TeX, How we can display?
> 
> My idea is compile TeX and get DVI file using dvips convert into ps and then
> include in the file. But the new build fop is stating error:

I am not sure what you are doing. pdftex can create pdf output from a
tex file, but perhaps that is not what you need.
 
> "Could not find a set of breaking points". What is this error and how to
> rectify this.
> 
> 
> This is the lines from the -d option of FOP.
> 
> 
> Building formatting object tree
> Current heap size: 590Kb
> Starting layout
> null implementation of getWordSpaceIPD() called!
> No set of breaking points found with maxAdjustment = 1.0
> No set of breaking points found with maxAdjustment = 5.0
> Could not find a set of breaking points

This is debugging output from the line breaking mechanism. Apparently
your text (a piece of PostScript?) is considered normal text to be
broken into lines.

Regards,
Simon Pepping

-- 
Simon Pepping
home page: http://www.leverkruid.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org