[l2h] Another pstricks question

Mark Horner marknewlyn at yahoo.co.uk
Tue Nov 30 22:25:34 CET 2004


Hi LaTeX2HTML gurus

I browsed your archive and noticed a few unanswered pstricks problems - 
perhaps everything was solved offline. I also
have a pstricks problem which has very similar characteristics to those 
I saw in the archive. I am working on a free
textbook (http://www.nongnu.org/fhsst) which we want to put online - we 
used latex and pstricks for the books but don't
want to redo the images. When I latex2html the book the images (mostly) 
don't work. I get the "Bad file descriptor" message.

I have tried to strip things down to a characteristic simple case (my 
actual test file test.tex is attached):

\begin{document}
\begin{figure}[H]
    \begin{pspicture}(0,0)(8,2)
      \cnode[fillstyle=crosshatch](.5,1){.4}{mycircle}
      \psline{->}(1,1)(3,1)
      \rput(2,0.6){$p_1$, $E_1$}
      \cnode[fillstyle=hlines](7.5,1){.4}{mycircle2}
      \psline{->}(7,1)(5,1)
      \rput(6, 0.6){$p_2$, $E_2$}
    \end{pspicture}
\end{figure}
\end{document}

After reading the manual I see no reason why it does not work - but it 
certainly doesn't! I attempted to look into the problem but
got out of my depth very quickly! I would really appreciate some help - 
I have attached the output of the command:

latex2html -debug -verbosity 2 test.tex

in the file testoutput.out.

I have noticed a few things - when making dvi files rput commands don't 
work but then dvips'ing them gets a ps file correctly rendered. I don't know
why this is. Also in other problems where there is text below circles 
for example sometimes I get the text with bits of the circles in the top 
of the picture - as though
the cropping couldn't define the picture.

I am open to any suggestions and would greatly appreciate any advice? If 
I should be talking to the pstricks people please let me know.

Thanks,

Mark



-- 
--
Mark Horner                                                                                                         
Jabber/AIM/Yahoo:   marknewlyn                                                               

Co-author:
http://www.nongnu.org/fhsst
http://savannah.gnu.org/projects/fhsst

"Life is but a seg-fault away ...

Life received signal SIGSEGV, Segmentation fault.
0x42074d40 in calloc () from /lib/i686/liblife.so.6"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 1462 bytes
Desc: not available
Url : http://tug.org/pipermail/latex2html/attachments/20041130/ed18dec0/test.bin
-------------- next part --------------
 [english]
 *** initialise *** This is jLaTeX2HTML Version 2002-2-1 (1.70) JA patch-2.0
by Kenshi Muto, Debian Project.

Original LaTeX2HTML Version 2002-2-1 (1.70)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2  



Extension: loading /usr/share/latex2html/versions/latin1.pl
HTML version: loading /usr/share/latex2html/versions/html3_2.pl

 *** processing declarations ***
Starting at 1101849195 seconds

 *** check modes *** 
 ***  file: test.tex *** 
OPENING /home/horner/my_docs/fhsst/physics/test.tex 

Note: Working directory is /home/horner/my_docs/fhsst/physics/test
Note: Images will be generated in /tmp/l2h6872

 *** calling  `texexpand' ***Debug (syswait): Running "/usr/bin/perl /usr/bin/texexpand -debug -auto_exclude -save_styles /home/horner/my_docs/fhsst/physics/test/TMP/styles -texinputs /home/horner/my_docs/fhsst/physics -out /home/horner/my_docs/fhsst/physics/test/TMP/test /home/horner/my_docs/fhsst/physics/test.tex"
 at /usr/bin/latex2html line 820
texexpand V2002-2-1 (Revision 1.11)

texexpand: LaTeX2HTML inputs are in:
texexpand:    .
texexpand:    /home/horner/my_docs/fhsst/physics
texexpand: %--- Found class: \documentclass[10pt, a4paper, titlepage]{report}
Debug (syswait): Finished child process: #6880
 at /usr/bin/latex2html line 820

 ***  `texexpand' done ***


 ***  database open ***


Loading /usr/share/latex2html/styles/texdefs.perl...
Package: loading /usr/share/latex2html/styles/report.perl
Package: loading /usr/share/latex2html/styles/color.perl
 *** initialising colors ***

(reading colors from /usr/X11R6/lib/X11/rgb.txt)

 *** Warning: No implementation found for style `ulem'

Package: loading /usr/share/latex2html/styles/amsmath.perl
Package: loading /usr/share/latex2html/styles/more_amsmath.perl
Package: loading /usr/share/latex2html/styles/hthtml.perlExtended interface for LaTeX2HTML, v1.1, 7.11.96

 *** Warning: No implementation found for style `pstcol'

 *** Warning: No implementation found for style `pst-grad'

 *** Warning: No implementation found for style `pst-plot'

 *** Warning: No implementation found for style `pst-coil'

 *** Warning: No implementation found for style `pst-text'

 *** Warning: No implementation found for style `pst-char'

 *** Warning: No implementation found for style `pst-node'

 *** Warning: No implementation found for style `pst-3d'

 *** Warning: No implementation found for style `pst-eps'

 *** Warning: No implementation found for style `pst-fill'

Warning: No implementation found for option: `tiling' for `pst-fill' package

 *** Warning: No implementation found for style `pst-tree'

 *** Warning: No implementation found for style `multido'

 *** Warning: No implementation found for style `pst-3dplot'

 *** Warning: No implementation found for style `pst-circ'

 *** Warning: No implementation found for style `pst-lens'

 *** Warning: No implementation found for style `multirow'

Package: loading /usr/share/latex2html/styles/graphixx.perl
Package: loading /usr/share/latex2html/styles/graphics-support.perl
Package: loading /usr/share/latex2html/styles/getimagesize.perl
 *** Warning: No implementation found for style `graphicx'

Reading ...TMP/test
%%%%%%%%%
Info: bracketings found: 36
++
initial size: 1295, resulting size: 1290 
wrapping raw arg commands 
@@@@@
 *** End-of-partition ***

appending file: TMP/part_001 
total length: 1926 characters

total length: 1926 characters

Translating ...
0/1:top of test: for test.html

 *** translating preamble ***
...
Warning: No implementation found for package: ulem...
Warning: No implementation found for package: pstcol.
Warning: No implementation found for package: pst_grad.
Warning: No implementation found for package: pst_plot.
Warning: No implementation found for package: pst_coil.
Warning: No implementation found for package: pst_text.
Warning: No implementation found for package: pst_char.
Warning: No implementation found for package: pst_node.
Warning: No implementation found for package: pst_3d.
Warning: No implementation found for package: pst_eps.
Warning: No implementation found for package: pst_fill.
Warning: No implementation found for package: pst_tree.
Warning: No implementation found for package: multido.
Warning: No implementation found for package: pst_3dplot.
Warning: No implementation found for package: pst_circ.
Warning: No implementation found for package: pst_lens.
Warning: No implementation found for package: multirow.
Warning: No implementation found for package: graphicx..
 *** preamble done ***
;.,{figure 24};

1/1:sectionstar:.."About this document ..." for node1.html
;;.

Writing image file ...

 *** making images ***
/usr/bin/initex "&latex" ./images.tex
Debug (syswait): Running "/usr/bin/initex "&latex" ./images.tex"
 at /usr/bin/latex2html line 3867
This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX)
(./images.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.

(/usr/share/texmf/tex/latex/base/report.cls
Document Class: report 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/html/ldump.sty)
(/usr/share/texmf/tex/latex/base/ifthen.sty)
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf/tex/latex/misc/ulem.sty)
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf/tex/latex/amscls/amsthm.sty)
(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texmf/tex/latex/amsfonts/amssymb.sty)
(/usr/share/texmf/tex/latex/html/hthtml.sty
(/usr/share/texmf/tex/latex/html/html.sty))
(/usr/share/texmf/tex/latex/graphics/pstcol.sty
(/usr/share/texmf/tex/latex/pstricks/pstricks.sty
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v97 patch 14  <1999/12/23> (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.con))))
(/usr/share/texmf/tex/latex/pstricks/pst-grad.sty
(/usr/share/texmf/tex/generic/pstricks/pst-grad.tex  v97 patch 1, 1997/04/28))
(/usr/share/texmf/tex/latex/pstricks/pst-plot.sty
(/usr/share/texmf/tex/generic/pstricks/pst-plot.tex  v97 patch 2, 1999/12/12
(/usr/share/texmf/tex/generic/multido/multido.tex  v1.4, 93/01/14 <tvz>)))
(/usr/share/texmf/tex/latex/pstricks/pst-coil.sty
(/usr/share/texmf/tex/generic/pstricks/pst-coil.tex  v97 patch 2, 1998/03/19))
(/usr/share/texmf/tex/latex/pstricks/pst-text.sty
(/usr/share/texmf/tex/generic/pstricks/pst-text.tex  v97, 1997/03/25))
(/usr/share/texmf/tex/latex/pstricks/pst-char.sty
(/usr/share/texmf/tex/generic/pstricks/pst-char.tex  v97 patch 3, 1999/03/11))
(/usr/share/texmf/tex/latex/pstricks/pst-node.sty
(/usr/share/texmf/tex/generic/pstricks/pst-node.tex  v97 patch 11, 2000/11/09))
 (/usr/share/texmf/tex/latex/pstricks/pst-3d.sty
(/usr/share/texmf/tex/generic/pstricks/pst-3d.tex  v97, 1997/03/25))
(/usr/share/texmf/tex/latex/pstricks/pst-eps.sty
(/usr/share/texmf/tex/generic/pstricks/pst-eps.tex  v97 patch 1, 1997/05/05))
(/usr/share/texmf/tex/latex/pstricks/pst-fill.sty
(/usr/share/texmf/tex/generic/pstricks/pst-fill.tex  v97 patch 2, 1997/12/12))
(/usr/share/texmf/tex/latex/pstricks/pst-tree.sty
(/usr/share/texmf/tex/generic/pstricks/pst-tree.tex  v97 patch 5, 1999/10/28))
(/usr/share/texmf/tex/generic/multido/multido.sty
(/usr/share/texmf/tex/generic/multido/multido.tex  v1.4, 93/01/14 <tvz>))
(/usr/share/texmf/tex/latex/pstricks/pst-3dplot.sty
(/usr/share/texmf/tex/latex/pstricks/pst-3dplot.tex
`PST-3dplot' v1.30, 2004/01/18 (Herbert Voss)
(/usr/share/texmf/tex/latex/pstricks/pst-vue3d.tex
`PST-NEW3D v0.2, 2002/11/11 (Manuel LUQUE)
(/usr/share/texmf/tex/generic/pstricks/pst-key.tex))
(/usr/share/texmf/tex/generic/multido/multido.tex  v1.4, 93/01/14 <tvz>)
(/usr/share/texmf/tex/generic/pstricks/pst-key.tex)))
(/usr/share/texmf/tex/latex/pstricks/pst-circ.sty
(/usr/share/texmf/tex/latex/pstricks/pst-circ.tex
`pst-circ' v1.2,(Original idea: A.Premoli I.Maio,Design: M.Luque,Code: C.Jorsse
n, H.Voss) (/usr/share/texmf/tex/generic/pstricks/pst-node.tex
 v97 patch 11, 2000/11/09) (/usr/share/texmf/tex/generic/pstricks/pst-key.tex)
(/usr/share/texmf/tex/generic/multido/multido.tex  v1.4, 93/01/14 <tvz>)))
(/usr/share/texmf/tex/latex/pstricks/pst-lens.sty
(/usr/share/texmf/tex/generic/pstricks/pst-lens.tex
`PST-Lens' v1.0, 2001/02/19 (Denis Girou and Manuel Luque)
(/usr/share/texmf/tex/generic/pstricks/pst-key.tex)))
(/usr/share/texmf/tex/latex/multirow/multirow.sty)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)))
(/usr/share/texmf/tex/latex/base/inputenc.sty)
(/usr/share/texmf/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf/tex/latex/amsfonts/umsb.fd) )
Beginning to dump on file images.fmt
 (format=images 2004.11.30)
8873 strings of total length 117940
170587 memory locations dumped; current usage is 297&169321
7546 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
\font\sixly=lasy6
\font\OMX/cmex/m/n/7=cmex7
\font\OMX/cmex/m/n/5=cmex7 at 5.0pt
\font\U/msa/m/n/10=msam10
\font\U/msa/m/n/7=msam7
\font\U/msa/m/n/5=msam5
\font\U/msb/m/n/10=msbm10
\font\U/msb/m/n/7=msbm7
\font\U/msb/m/n/5=msbm5
5438 words of font info for 23 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 23210 has 711 ops out of 35111
  235 for language 3
  207 for language 2
  88 for language 1
  181 for language 0
No pages of output.
Transcript written on images.log.
Debug (syswait): Finished child process: #6883
 at /usr/bin/latex2html line 3867
dumping images.fmt
/usr/bin/tex "&./images" ./images.tex
Debug (syswait): Running "/usr/bin/tex "&./images" ./images.tex"
 at /usr/bin/latex2html line 3875
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./images.tex
(./images.aux)

latex2htmlLength hsize=349.0pt

latex2htmlLength vsize=682.0pt

latex2htmlLength hoffset=0.0pt

latex2htmlLength voffset=0.0pt

latex2htmlLength topmargin=0.0pt

latex2htmlLength topskip=0.00003pt

latex2htmlLength headheight=0.0pt

latex2htmlLength headsep=0.0pt

latex2htmlLength parskip=0.0pt plus 1.0pt

latex2htmlLength oddsidemargin=53.0pt

latex2htmlLength evensidemargin=53.0pt

l2hSize :figure24:56.90549pt::0.0pt::349.0pt.
[1] (./images.aux) )
Output written on images.dvi (1 page, 2240 bytes).
Transcript written on images.log.
Debug (syswait): Finished child process: #6884
 at /usr/bin/latex2html line 3875

 *** processing 1 images ***

 *** LATEX LOG OK. ***

Generating postscript images using dvips ...
/usr/bin/dvips -S1 -i  -Ppdf  -E -E -o/tmp/l2h6872/image ./images.dvi
Debug (syswait): Running "/usr/bin/dvips -S1 -i  -Ppdf  -E -E -o/tmp/l2h6872/image ./images.dvi
"
 at /usr/bin/latex2html line 3914
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.11.30:1313' -> /tmp/l2h6872/image
(-> /tmp/l2h6872/image001) <tex.pro><alt-rule.pro><texc.pro><pstricks.pro>
<pst-dots.pro><pst-grad.pro><pst-coil.pro><pst-text.pro><pst-node.pro>
<3D4.pro><pst-3dplot.pro><pst-circ.pro><aae443f0.enc><f7b6d320.enc>
<texps.pro><special.pro><color.pro><cmr10.pfb><cmr7.pfb><cmmi10.pfb>[1] 
Debug (syswait): Finished child process: #6886
 at /usr/bin/latex2html line 3914

 *** updating image cache

 *** removing unnecessary images ***

extracting figure24 as 1#1
Converting image #1
Debug (syswait): Running "/usr/bin/perl /usr/bin/pstoimg -type png -debug -tmp /tmp/l2h6872 -discard -interlace -aaliastext -geometry 348x57 -margins 125,72 -crop a -scale 1.6 -transparent -out img1.png /tmp/l2h6872/image001.ps"
 at /usr/bin/latex2html line 4141
pstoimg V2002-2-1 (Revision 1.16, Perl 5.008005)
pstoimg: Temporary directory is /tmp/l2h6872
pstoimg: Processing /tmp/l2h6872/image001.ps
pstoimg: EPSF dimensions are 29x11
pstoimg: Running /usr/bin/gs  -sDEVICE=ppmraw -g47x18  -r115 -dTextAlphaBits=4  -sOutputFile=/tmp/l2h6872/p6887.pnm 
GS>-110 -658 translate
GS>(/tmp/l2h6872/image001.ps) run
GS>showpage
GS>quit

GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 2472036 1100231 1642520 351150 0 done.
Using NimbusRomanNo9L-Regu font for NimbusRomNo9L-Regu.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2846996 1444869 1682712 365686 0 done.
Using NimbusSansL-Regu font for NimbusSanL-Regu.
GS>GS>>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Image "/tmp/l2h6872/p6887.pnm" is PPM, 47x18
Running "/usr/bin/pnmcrop -verbose  < /tmp/l2h6872/p6887.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans '#ffffff'  > img1.png"
pnmcrop: Background color is white
pnmcrop: The image is entirely background; there is nothing to crop.
pnmcolormap: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
pnmcolormap failed, rc=256
pnmtopng: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h6872/p6887.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans '#ffffff'  > img1.png" failed: Bad file descriptor
Debug (syswait): Finished child process: #6887
 at /usr/bin/latex2html line 4141

Error while converting image: No such file or directory

extracted figure24 as 1

embedding img1.png for figure24, with ALT="\begin{figure}\begin{pspicture}(0,0)(8,2)
\cnode[fillstyle=crosshatch](.5,1){.4...
... \psline{->}(7,1)(5,1)
\rput(6, 0.6){$p_2$, $E_2$}
\end{pspicture}\end{figure}"

 *** no more images ***

 *** post-process ***
Doing section links ....
 *** replace markers *** 
 *** post-post-process *** ..
 *** replace markers *** 
 *** post-post-process *** 
 *** post-processed ***
SAVE_FILE:index: index.pl  EMPTY 
SAVE_ARRAY:section_info in FILE: sections.pl
SAVE_ARRAY:toc_section_info in FILE: contents.pl
SAVE_ARRAY:external_labels in FILE: labels.pl
SAVE_ARRAY:external_latex_labels in FILE: labels.pl
SAVE_ARRAY:cached_env_img in FILE: images.pl
 *** Adding document-specific styles *** 

*********** WARNINGS ***********  
No implementation found for style `ulem'
No implementation found for style `pstcol'
No implementation found for style `pst-grad'
No implementation found for style `pst-plot'
No implementation found for style `pst-coil'
No implementation found for style `pst-text'
No implementation found for style `pst-char'
No implementation found for style `pst-node'
No implementation found for style `pst-3d'
No implementation found for style `pst-eps'
No implementation found for style `pst-fill'
No implementation found for style `pst-tree'
No implementation found for style `multido'
No implementation found for style `pst-3dplot'
No implementation found for style `pst-circ'
No implementation found for style `pst-lens'
No implementation found for style `multirow'
No implementation found for style `graphicx'

Unknown commands: hbadness
Done.
Timing: 3 seconds


More information about the latex2html mailing list