programming-journal / programming

21 stars 15 forks source link

Errors when compiling if using minted on Ubuntu 22.10 #55

Open melkyades opened 2 years ago

melkyades commented 2 years ago

Hi! I don't know if it's just me, but it looks like in Ubuntu 22.10 the minted package is not working with programming.cls (tested v1.3a and 1.4a). To reproduce: add the line \usepackage{minted} to the example-programming.tex and it will not compile anymore in Ubuntu 22.10 (this was not the case in Ubuntu 22.04).

$> pdflatex -shell-escape example-programming.tex 
[...]
(/usr/share/texlive/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/share/texlive/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/share/texlive/texmf-dist/tex/latex/csquotes/csquotes.cfg))
! TeX capacity exceeded, sorry [parameter stack size=20000].
\hyxmp@Hyp@pdfauthor #1->
                         \let \xmpcomma =\hyxmp@comma \def \xmpquote ##1{##1...
l.38 \begin{document}

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on example-programming.log.
melkyades commented 2 years ago

meanwhile a workaround that converts minted environments to verbatim:

%\usepackage{minted}
\usepackage{verbatim} 
\newenvironment{minted}[1]{\verbatim}{\endverbatim\hspace{1cm}}
krono commented 1 year ago

This looks like an interaction between minted and hyperxmp, which is very unfortunate. Thanks for reporting.

krono commented 9 months ago

@melkyades, does this still happen for you? both hyperxmpn and minted have been updated at TeXLive, maybe Ubuntu has kept up