[pstricks] Pstricks and tex4ht

Richard Hensh hensh at math.msu.edu
Mon Sep 12 19:59:32 CEST 2005


I've used PSTricks and tex4ht together extensively. Can you tell me the
actual and expected image dimensions for the example that you posted?

ricky 

> -----Original Message-----
> From: pstricks-bounces at tug.org 
> [mailto:pstricks-bounces at tug.org] On Behalf Of Anna 
> Danielewska-Tulecka
> Sent: Monday, September 12, 2005 10:57 AM
> To: pstricks at tug.org
> Subject: [pstricks] Pstricks and tex4ht
> 
> Hi,
> I have very serious problems with converting pstricks images 
> with tex4ht. I think the main problem is with the package 
> pstricks-add, but even without this the size of images is wrong.
> I tried such a simple example:
> 
> \documentclass[12pt,twoside,polish]{book}
> 
> \usepackage{pstricks}
> \usepackage{pstricks-add}
> \usepackage{pst-eps}
> 
> \usepackage{color}
> 
> \usepackage[T1]{fontenc}
> \usepackage[english,polish]{babel}
> \usepackage[OT4]{polski}
> \usepackage[cp1250]{inputenc}
> 
> \selectlanguage{polish}
> 
> % kolory w rysunkach:
> \newrgbcolor{myGreen}{.8 .92 .8}
> \newrgbcolor{darkGreen}{.3 .8 .3}
> 
> 
> \psset{unit=2.2}
> 
> \begin{document}
> 
> \begin{pspicture}(-0.3,-0.3)(1.6,1.6)
> \psaxes[labels=none]{->}(1.5,1.5)
> % sympleks:
> \psset{linecolor=black}
> \pspolygon[fillstyle=solid,fillcolor=myGreen](1,0)(0,0)(0,1)
> \qdisk(1,0){2pt}\uput{0.1}[270](1,0){$p^1$}
> \qdisk(0,1){2pt}\uput{0.1}[180](0,1){$p^2$}
> % wersory:
> \psset{linecolor=darkGreen,linewidth=1.2pt}
> \pcline{->}(0,0)(1,0)\Bput{$e_1$} 
> \pcline{->}(0,0)(0,1)\Aput{$e_2$} % p^0:
> \psset{linecolor=black} \qdisk(0,0){2pt}\uput{0.1}[225](0,0){$p^0$}
> \end{pspicture}
> 
> 
> Jeśli oznaczymy przez $d$ długość odcinka $ab$, a jego 
> dłuższą część przez $x$, to mamy:
> \[\frac{x}{d} = \frac{d-x}{x}.\].
> 
> \end{document}
> 
> - I can't make the tex4ht generate the proper size of the image!
> Thanks for any help
> 
>       Anna
> 
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 




More information about the PSTricks mailing list