[pstricks] Pstricks and tex4ht

Anna Danielewska-Tułecka danielew at wsb-nlu.edu.pl
Mon Sep 12 19:40:09 CEST 2005


The tex4ht program transforms latex source to html, it uses ghostscript 
and ImageMagick for some of the conversions.

na199 at gmx.de napisał(a):

>And how do you generally transform postscript into html? 
>You would need SVG or similar!
>Henning Heinze
>
>On 12 Sep 2005 at 16:57, Anna Danielewska-Tu ecka wrote:
>
>  
>
>>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