Incorrect viewBox in case of documents with tables

Bug #948713 reported by Pavel Holoborodko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvisvgm
Fix Released
Medium
Martin Gieseking

Bug Description

Thank you for the great piece of software!

I've been using it to render math formulae on websites.

I've encountered following problem.

If document includes table, then viewBox's top coordinate is large than it should be.
This results in not showing top horizontal border of the table in viewers or when inserting SVG in browsers.

I've used latest dvisvgm 1.0.10 as well as 1.0.8. With TexLive and MikTex - same problem.

Attached example files for reproducing.

test.tex - source
test.svg - output from dvisvgm
test.png - raster image rendered by Inkscape from test.svg. With missing top border.

Besides Inkscape, I tried to render svg in Chrome, Firefox - same result.

If I decrease top in viewBox - it renders properly.

I would appreciate your help on this.

Thank you.

Revision history for this message
Pavel Holoborodko (wn-pa20l-0t) wrote :
Revision history for this message
Pavel Holoborodko (wn-pa20l-0t) wrote :

Cmmand line for dvisvgm:

dvisvgm -n --bbox=min test.dvi

Revision history for this message
Martin Gieseking (martin-gieseking) wrote :

Pavel, thank you for reporting this bug. I've committed a patch to the hg repository at SourceForge that should fix the issue. I'll also add it to the next release of dvisvgm.

Changed in dvisvgm:
importance: Undecided → Medium
assignee: nobody → Martin Gieseking (martin-gieseking)
status: New → Fix Committed
Revision history for this message
Pavel Holoborodko (wn-pa20l-0t) wrote :

Thank you Martin for the quick fix!

@I'll also add it to the next release of dvisvgm.

Any ideas on next release date?

I try to avoid installing software from sources directly - using package manager instead.

Revision history for this message
Martin Gieseking (martin-gieseking) wrote :

I'm going to publish a point release (1.0.11) in the next couple of days. It will fix all issues that have been reported in the last months.

Changed in dvisvgm:
status: Fix Committed → Fix Released
milestone: none → 1.0.11
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.