# Tag Info

1

I think I found a fix for the issue: Simply exchange (in the minted.sty-file) \ifcsname tikzexternalrealjob\endcsname \minted@drafttrue \minted@cachefalse \else \fi with: \ifcsname tikzifexternalizing\endcsname \tikzifexternalizing{\minted@drafttrue\minted@cachefalse}{} \else \ifcsname tikzexternalrealjob\endcsname ...

3

Add to your preamble \makeatletter \AtBeginDocument{\let\c@listing\c@lstlisting} \makeatother which will use the same counter for both float types. Full example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{inconsolata} \usepackage{color} \definecolor{pblue}{rgb}{0.13,0.13,1} \definecolor{pgreen}{rgb}{0,0.5,0} ...

1

The first thing you need is \usepackage[chapter]{minted}. This sets minted to use <chapter>.<listing> style numbering in the list of listings. At this point, listings from the two packages will have the same format in the list of listings, but each will be using its own number scheme. They need to share a common counter to fix this. A simple ...

Top 50 recent answers are included