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

PostScript error when using beamer + biblatex with style=authoryear #279

Closed
morxa opened this issue Nov 26, 2024 · 2 comments
Closed

PostScript error when using beamer + biblatex with style=authoryear #279

morxa opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels

Comments

@morxa
Copy link

morxa commented Nov 26, 2024

Using dvisvgm with beamer and biblatex causes a PostScript error if biblatex is run with style=authoryear.

Here is a minimal example test.tex:

\documentclass[dvisvgm]{beamer}

\usepackage{filecontents}
\usepackage[style=authoryear]{biblatex}
\begin{filecontents}{references.bib}
@software{giesekingMgiesekiDvisvgm2024,
  title = {Mgieseki/Dvisvgm},
  author = {Gieseking, Martin},
  date = {2024-11-15T20:04:53Z},
  origdate = {2013-04-09T13:52:12Z},
  url = {https://github.com/mgieseki/dvisvgm},
  abstract = {A fast DVI, EPS, and PDF to SVG converter},
  keywords = {dvi,latex,metafont,pdf,postscript,svg,tex,vector-graphics,xetex}
}
\end{filecontents}

\addbibresource{references.bib}

\begin{document}
\cite{giesekingMgiesekiDvisvgm2024}
\printbibliography
\end{document}

After compiling the tex file (e.g., with latexmk -dvilua test.tex), running dvisvgm fails as follows:

$ dvisvgm test.dvi                                                                                                                
The old, written in PostScript, PDF interpreter has been removed entirely.
You should cease using -dNEWDPF as it has no effect npre-processing DVI file (format version 2)
processing page 1
  PostScript error: stackunderflow in indexOperand stack:
      183  232  8  --nostringval--  --nostringval--  --nostringval--  --nostringval--  true  3  --nostringval--  Width  11

Interestingly, leaving out style=authoryear solves the problem. Switching from beamer to article also resolves the problem.

This error occurs with TexLive 2023 on Fedora 41.

I've uploaded the dvi file here: https://rwth-aachen.sciebo.de/s/JfjEFTYnaA1QSA6

@mgieseki
Copy link
Owner

Thanks for reporting this bug. It's caused by an index error in the evaluation of PS operator colorimage. If you omit style=authoryear, the little colored document icon is not included and therefore colorimage doesn't get called.

@mgieseki mgieseki self-assigned this Nov 27, 2024
@mgieseki mgieseki added the bug label Nov 27, 2024
@mgieseki
Copy link
Owner

This error occurs with TexLive 2023 on Fedora 41.

BTW, you can get more recent versions of dvisvgm for Fedora from this Copr repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants