minted, listing and the list of listings

Issue #165 open
Patrick Scheibe created an issue

I'm using version 4.6 and I need to use minted for highlighting since it is the only highlighter that supports my coding language. I include my code-snippets with something like this

\begin{listing}
    \wolframfile{code/code.m}
    \caption{Test caption}
    \label{lst:testsource}
\end{listing}

Everything pretty standard, but my List of Listings is one big block of text that renders really weird

lol

It appears that this issue is connected to #1 but the linked issue was created over 10 years and I hoped that it was fixed. It seems that the code that introduces this behavior is here in classicthesis.sty. If I comment this out, then I get at least a list, however the labels for the listings are then "Figure".

Is this something I have introduced by adapting the config.tex or is this a known issue? Is there a quick and dirty way around this issue or do I have to leave the LoL from my document?

Comments (4)

  1. André Miede repo owner

    Sorry for the late reply, this was a very busy year.

    Typesetting a "List of Listings" correctly is still just experimental in classicthesis. However, it works rather stable with the listings package and the hooks it provides.

    \begin{lstlisting}[float=b,language=Pascal,frame=tb,caption={A floating example (\texttt{listings} manual)},label=lst:useless]
    for i:=maxint downto 0 do
    begin
    { do nothing }
    end;
    \end{lstlisting}
    

    As I have not used minted myself yet, I can only guess that it has a completely different internal setup than listings. Thus, we would have to make a new, additional implementation for a "List of Listings" created with minted.

    I will put that on the stack and any help/contributions are highly appreciated.

  2. Log in to comment