Closed drdv closed 1 year ago
dvisvgm reads the box extents from the PostScript data written to the DVI file by the preview package. When XeTeX is used, preview assumes PDF output by default and therefore doesn't write any PS data to the XDV file, i.e. dvisvgm can't evaluate it. I guess you can work around this by adding package option dvips
, e.g.
\usepackage[active,tightpage,dvips]{preview}
Problem solved, thanks.
If I use
\usepackage[active,tightpage]{preview}
in anexample.tex
file, thendisplays something like
On the other hand, if I use
\usepackage[active,tightpage,xetex]{preview}
in anexample.tex
file, thendisplays something like
i.e., the
width
,height
anddepth
properties are missing.This seems to be caused by the condition
in
PSPreviewFilter::getBoundingBox
. Is it possible that DVI version 2 and DVI version 7 store the 7 parameters (adj_left
,adj_bottom
,adj_right
,adj_top
,height
,depth
,width
) differently (anddvisvgm
doesn't parse them correctly)? Of course it could be that there is a bug in thexetex
option in thepreview
package ...I use
dvisvgm 3.0.2
.