[tex4ht] pgfplots creation of two SVGs, inclusion of wrong one in html

Johannes Wilm mail at johanneswilm.org
Wed Jul 27 03:04:14 CEST 2011


Hi again,
sorry for cross-posting. I am not quite sure whether this falls into the
expertise of one or the other group.

The attached is a test case of a document which includes a graph I've
created with pgfplots and then converted to html using tex4ht. I fixed the
SVG-output with the script I recently mailed around.

The problem is this: There is only one graph. Yet for some reason 2 SVG
files are created. The second SVG-file seems to just be empty, whereas the
first one includes the graph. For some reason the HTML-code that is being
output only includes the second, empty, SVG-file.

This is what I ran:

*dvilualatex test.tex
dvilualatex test.tex*
*dvilualatex test.tex*
*tex4ht -f/test.tex*
*t4ht -f/test.tex*
*fix_svg_legend.py test-1.svg*
*fix_svg_legend.py test-2.svg*

Obviously I could make a script that simply exchanges all occurrences of
"test-2" with "test-1" and so on. But strangely, when the legend is in a
separate svg, the legend works fine, so the numbering wouldn't work out that
way.

I believe this is my very last issue with the whole setup. So if it cannot
be resolved, I'll spend another day on a quick fix rather than trying to
switch tools as some have recommended I do.

Sincerely,

-- 
Johannes Wilm
http://www.johanneswilm.org
tel: +1 (520) 399 8880
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20110726/b500a615/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20110726/b500a615/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: application/x-tex
Size: 3407 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20110726/b500a615/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-1.svg
Type: image/svg+xml
Size: 18578 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20110726/b500a615/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-2.svg
Type: image/svg+xml
Size: 1011 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20110726/b500a615/attachment-0003.bin>


More information about the tex4ht mailing list