[pstricks] Problem with pstricks/tex4ht when using \rput

Oliver Körber o.koerber at gmx.de
Wed Sep 28 16:45:42 CEST 2011


Wow... a thousand thanks, you are my hero :)

I tried the trick with the \fbox first, but unfortunately this didn't help. After getting this epstool command to work (didn't exist yet on my machine) I tried that out. First I invoked it manually, after that I modified the tex4ht.env file to run this additional step on every image created. It works perfectly now.

What I did was the following:

- opened the file tex4ht.env (path on my machine: /usr/local/texlive/2010/texmf-dist/tex4ht/base/unix/tex4ht.env)
- searched for the section <convert> ... </convert>
- changed the following lines:

Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps
Gconvert -trim +repage -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3

into:

Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps
Gepstool --bbox --copy zz%%4.ps zz%%4.eps
Gconvert -trim +repage -density 110x110 -transparent '#FFFFFF' zz%%4.eps %%3

No problems anymore since then.

Thanks again!

Oliver

Am 28.09.2011 um 15:53 schrieb Herbert Voss:
> 
> the bounding box of the created eps image is wrong. You can
> try it with (after running htlatex):
> 
> dvips -E -Ppdf -mode ibmvga -D 110 -f <file>.idv -pp 2  > zz<file>.ps
> 
> creates the (e)ps with wrong bb
> 
> epstool --bbox --copy zz<file>.ps zz<file>.eps
> 
> is a eps with a correct one and an additional convert will
> give an also orrect png image.
> 
> I have no idea how htlatex can be configured to add that additional step. An alternativ naybe to use \fbox{...} around the pspicture
> environment.
> 
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/




More information about the PSTricks mailing list