-
Notifications
You must be signed in to change notification settings - Fork 128
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
file extension `lol' cannot be used twice #390
Comments
Package Note: To avoid the problem, either As a workaround, you can use: \documentclass{scrbook}
\usepackage{listings}
\usepackage[newfloat]{minted}
% Add the following lines, wherever you want.
\makeatletter
\AddToHook{begindocument/before}{\@ifpackageloaded{minted}{\removefromtoclist[float]{lol}}{}}
\makeatother
\begin{document}
\end{document} or simply: \documentclass{scrbook}
\usepackage{listings}
\usepackage[newfloat]{minted}
\removefromtoclist[float]{lol}% must be after loading `minted`.
\begin{document}
\end{document} |
@komascript A response from the guy himself, very nice to see! Thank you very much for your explanation! |
The collaboration with Jobs works very well. He is primarily interested in facilitating solutions — just like me. That's why I've already wrote him and suggested a (somewhat more universal) change to In the end, it is only important that an extension is registered exactly once. Otherwise, for example, chapter spacings would be entered several times in the directory. This is why |
After updating my local MiKTeX installation, I encounter the following error:
! Package tocbasic Error: file extension
lol' cannot be used twice .` (full log at the bottom of this issue).I researched a bit and dug through my local files and my MiKTeX backup before updating and found that the
listing
package added the following line in 1.10a:\def\ext@lstlisting{lol}
So, I was able to boil this issue down to two packages:
listings
andminted
in conjunction with KOMA scripts.The following MRE encounters the error described above:
It should be noted that the issue can be fixed by removing the
newfloat
option fromminted
, which leads me to the suspicion that I should also report this error somewhere else...However, for now, the issue is probably correct here - please let me know if you think otherwise.
Full log
The text was updated successfully, but these errors were encountered: