%! Author = lorenzo %! Date = 13/02/22 % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref \usepackage{accsupp} \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}} \usepackage[ %chapter, % uncomment if listings to be counted by chapter ]{minted} \setminted{linenos,breaklines,bgcolor=bg,breakanywheresymbolpre={}} \setmintedinline{bgcolor={}} \renewcommand{\theFancyVerbLine}{% \textcolor[rgb]{0.5,0.5,1.0}{% \scriptsize \emptyaccsupp{% \arabic{FancyVerbLine}% }% }% } %\let\IWANTTHISlisting=\listing % uncomment if you use minted inside listing env. See below. %\AtBeginDocument{ % uncomment if you use minted inside listing env. See above. % \let\listing=\IWANTTHISlisting % \Crefname{listing}{\listingscaption}{Listati} %} %\renewcommand{\listingscaption}{Listato} % uncomment if you use minted inside listing env. See above.