Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: wrong version number for miktex-dvisvgm-bin-x64-2.9 #1112

Closed
1 task done
VincentTam opened this issue Jun 6, 2022 · 5 comments
Closed
1 task done

[BUG]: wrong version number for miktex-dvisvgm-bin-x64-2.9 #1112

VincentTam opened this issue Jun 6, 2022 · 5 comments
Milestone

Comments

@VincentTam
Copy link

GUI says that I'm using package miktex-dvisvgm version: 2.13.3, but cmd outputs 2.11.1.

I've asked the dvisvgm's maintainer/owner at mgieseki/dvisvgm#184, who referred me here.

dvisvgm version number

C:\Users\xxxx>dvisvgm -V1
dvisvgm 2.11.1
--------------
brotli:      1.0.9
clipper:     6.2.1
fontforge:   20160721
freetype:    2.10.3
Ghostscript: 9.25
kpathsea:    MiKTeX 22.3
potrace:     2.11.1
xxhash:      0.8.1
zlib:        1.2.11

C:\Users\xxxx>which dvisvgm
/c/Users/xxxx/AppData/Local/Programs/MiKTeX/miktex/bin/x64/dvisvgm

C:\Users\xxxx>

Attachments:
miktex-report.txt
initexmf.log
miktex-console.log
dvisvgm.log
latexmk.log
pdflatex.log

@muzimuzhi
Copy link

It seems miktex-dvisvgm is considered as a separate software based on dvisvgm and having its own version number. 2b65100

@mgieseki
Copy link

mgieseki commented Jun 7, 2022

Changeset 2b65100 updates MiKTeX's dvisvgm package to dvisvgm 2.13.3. However, dvisvgm's source file version.h, which defines variable PROGRAM_VERSION, doesn't seem to be considered here so that dvisvgm --version prints an old version number of a previous release.

@VincentTam
Copy link
Author

Changeset 2b65100 updates MiKTeX's dvisvgm package to dvisvgm 2.13.3. However, dvisvgm's source file version.h, which defines variable PROGRAM_VERSION, doesn't seem to be considered here so that dvisvgm --version prints an old version number of a previous release.

@mgieseki so i'm actually using the latest version of dvisvgm? i'm having mgieseki/dvisvgm#158 with this MWE. (The line \addplot is generated by my VS code LaTeX plugin, and I appended \closedcycle at the end for pattern filling.)

\documentclass[border=2pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
    \begin{axis}
        \addplot [
            domain=-10:10,
            samples=70,
            color=blue,
            pattern=north east lines,
            ]
            {x^2 + 2*x + 1} \closedcycle;
        \addlegendentry{$x^2 + 2x + 1$}
        
    \end{axis}
\end{tikzpicture}
\end{document}

image

When I used

dvisvgm -P -o foobar.svg 220617-fill

to change it to SVG from PDF, the curve is gone. I attached the generated foobar.svg below FYI.

foobar

@mgieseki
Copy link

mgieseki commented Jun 17, 2022

I can't really tell what version and code base was used to build your dvisvgm binary. Issue mgieseki/dvisvgm#158, however, occurred when converting DVI files to SVG. You seem to process a PDF file which is only partly supported by dvisvgm. If you create and convert a DVI file from your example, the resulting SVG should be fine. This issue is not related to MiKTeX, though. ;-)

@VincentTam
Copy link
Author

Thanks for reply. I got the fill pattern using your method, but lost the fonts. I've created another issue for that in your repo.

@edocevoli edocevoli added this to the 22.7 milestone Jul 1, 2022
edocevoli added a commit that referenced this issue Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants