[pstricks] Pstricks and tex4ht

Anna Danielewska-Tułecka danielew at wsb-nlu.edu.pl
Mon Sep 12 16:57:05 CEST 2005


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




More information about the PSTricks mailing list