You are not logged in.

#1 2020-03-14 17:53:28

guizzmoloul
Member
Registered: 2020-03-14
Posts: 3

[SOLVED] Should I post a bug report for this error using dvisvgm

Dear all,
I am trying to use tex4ht to produce html from a tex file containing a tikz picture.

The mwe I am running is the following :

\documentclass{article}
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to node[above] {$u_{xx} $} (45:1);
\end{tikzpicture}
\end{document}

If i then run :

make4ht test.tex 

Everything runs fine until dvisvgm is invoked and I get the error:

System call: dvisvgm -n -p 2 --exact -c 1.4,1.4 -s test.idv > test0x.svg  
pre-processing DVI file (format version 2)
processing page 2
  PostScript error: undefined in get
  Operand stack:
      --nostringval--  --nostringval--  --nostringval--  --nostringval--  --nostringval--  1  1  --nostringval--  .setopacityalpha

From the reply in this post :
https://tex.stackexchange.com/questions … -svg-issue
I understand that it is due to the fact that the version of dvisvgm (2.6.3) provided by texlive-bin is imcompatible with the version of ghoscript (9.50)

I have tried upgrading dvisvgm by building it from source to version 2.8.2 but encountered new problems (someone had the same problem here : https://github.com/mgieseki/dvisvgm/iss … -497139021
due to my limited knowledge of tex and libkpathsea in particular, I could not solved the problem.

Downgrading gs to 9.27 did not help either.

So are  my questions :

Is the fact that "the version of dvisvgm provided by texlive-bin (2.6.3) is not compatible with ghostscript" a bug ?

Or maybe I should flag the package as out of date (I was told on reddit not to) ?

Should i file a bug report ?

Last edited by guizzmoloul (2020-03-15 10:06:08)

Offline

#2 2020-03-14 20:55:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: [SOLVED] Should I post a bug report for this error using dvisvgm

I've tested this now, with your example, and it works without issue on my system. Are you sure you are using distro provided utilities here?

type -a dvisvgm
type -a make4ht
printenv
pacman -Qkk texlive-bin texlive-core

Last edited by V1del (2020-03-14 20:56:00)

Offline

#3 2020-03-15 09:05:34

guizzmoloul
Member
Registered: 2020-03-14
Posts: 3

Re: [SOLVED] Should I post a bug report for this error using dvisvgm

Ok that's interesting. I am indeed not completely sure that I use distro provided tools (I am using tllocalmgr to update some tex package, and I have always been confused as to who does what with tex).
Here are the answers to your propositions

> type -a dvisvgm
dvisvgm is /usr/bin/dvisvgm
> type -a make4ht
make4ht is /usr/bin/make4ht
> printenv
SHELL=/bin/bash
WINDOWID=33554466
XTERM_VERSION=XTerm(353)
I3SOCK=/run/user/1000/i3/ipc-socket.519
XTERM_SHELL=/bin/bash
EDITOR=vim
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/gc
LOGNAME=gc
XDG_SESSION_TYPE=tty
XAUTHORITY=/home/gc/.Xauthority
WINDOWPATH=1
HOME=/home/gc
LANG=fr_FR.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
PROMPT_COMMAND=pwd > /tmp/whereami
INVOCATION_ID=1059b54b5b494f6db69a28f0068a1fd9
XTERM_LOCALE=fr_FR.UTF-8
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=gc
DISPLAY=:0
SHLVL=5
LC_MESSAGES=en_US.UTF-8
XDG_VTNR=1
XDG_SESSION_ID=1
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_RUNTIME_DIR=/run/user/1000
JOURNAL_STREAM=9:17990
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HG=/usr/bin/hg
MAIL=/var/spool/mail/gc
OLDPWD=/home/gc
_=/usr/bin/printenv

And finally:

> pacman -Qkk texlive-bin texlive-core
texlive-bin: 500 total files, 0 altered files
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Modification time mismatch)
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Size mismatch)
texlive-core: 27204 total files, 0 altered files

Could you tell me what version of dvisvgm you have on your computer?

dvisvgm -V1

On my system it is :

dvisvgm 2.6.3
-------------
brotli:      1.0.7
clipper:     6.2.1
fontforge:   20160721
freetype:    2.10.1
Ghostscript: 9.50
kpathsea:    6.3.1
potrace:     1.15
xxhash:      0.6.5
zlib:        1.2.11

Last edited by guizzmoloul (2020-03-15 09:10:07)

Offline

#4 2020-03-15 10:07:48

guizzmoloul
Member
Registered: 2020-03-14
Posts: 3

Re: [SOLVED] Should I post a bug report for this error using dvisvgm

Since ugrading ghostscript to version 9.51,

dvisvgm no longer produces errors.

I still do not obtain the correct  html page when running make4ht, but I guess that is another issue.

Last edited by guizzmoloul (2020-03-15 10:08:00)

Offline

Board footer

Powered by FluxBB