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

Minted v3 errors when using \includeonly #414

Open
tippex-ls opened this issue Oct 9, 2024 · 1 comment
Open

Minted v3 errors when using \includeonly #414

tippex-ls opened this issue Oct 9, 2024 · 1 comment

Comments

@tippex-ls
Copy link

Hi !
With the minted v3 release, I noticed that it breaks my documents when I use \includeonly.
minted version : 3.1.2
Everything else related is up to date.

Here is a MWE :

% mwe.tex
\documentclass{article}

\usepackage{minted}

% \includeonly{mwe2.tex}

\begin{document}
\include{mwe1.tex}
\include{mwe2.tex}
\end{document}
% mwe1.tex
\begin{minted}{ocaml}
  let ex_1 = 0
\end{minted}
% mwe1.tex
\begin{minted}{ocaml}
  let ex_2 = 0
\end{minted}

My compilation process is :

$ latexmk mwe
# Everything works

# uncomment the includeonly command
$ latexmk mwe
[...]
(./mwe.aux (./mwe1.aux) (./mwe2.aux))

! LaTeX Error: No counter 'minted@tmpdatabufferlength' defined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.8 \include{mwe1.tex}

?

This was not a problem in minted v2.*, this compilation process works when using minted2 instead of minted (with --shell-escape).

Is this an expected regression with the new version ? Thanks for your help.

gpoore added a commit that referenced this issue Oct 13, 2024
@gpoore
Copy link
Owner

gpoore commented Oct 13, 2024

\includeonly changes the way that counters behave, so fixing this also involved modifying latex2pydata and fvextra. You can download the dev version of minted.sty as well as the dev versions of latex2pydata.sty and fvextra to try the new version immediately. Otherwise, new releases of all packages will be on CTAN within the next few days.

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

No branches or pull requests

2 participants