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

color gradient missing in svg file #263

Closed
quoala0 opened this issue Feb 22, 2024 · 4 comments
Closed

color gradient missing in svg file #263

quoala0 opened this issue Feb 22, 2024 · 4 comments

Comments

@quoala0
Copy link

quoala0 commented Feb 22, 2024

Running "latex gradtest.tex" twice and then
"dvisvgm --keep --font-format=WOFF2 --grad-overlap --output=gradtest.svg gradtest.dvi"
the color gradients in the tex file are missing when displaying the svg file in firefox.
When processing the tex file with "pdflatex gradtest.tex" and viewing the
pdf file everything looks fine.
I would like to have the gradient colors in the svg file too.
gradtest.pdf
gradtest
gradtest.txt

@muzimuzhi
Copy link

Add class option dvisvgm then it works.

\documentclass[a2paper, landscape, dvisvgm]{scrartcl}

Alternative ways:

@mgieseki
Copy link
Owner

dvisvgm doesn't support PostScript shading patterns as used in your example file. Only a subset of shading fills (PS operator shfill) are processed. As @muzimuzhi recommended, you could use the dvisvgm backend driver instead of the dvips one.

@quoala0
Copy link
Author

quoala0 commented Feb 27, 2024 via email

@muzimuzhi
Copy link

Will it be possible to use hyperref via pdf that way as well?

I found that hytertex via pdf to svg does not work at all:

Sounds like a new question. Open a new issue with a new example?

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

3 participants