Talk:LaTeX/Source Code Listings

Activating automatic line breaking of long lines
To my mind there is a quite useful command worth to mention: --Escalator (discuss • contribs) 17:00, 5 March 2012 (UTC)
 * Done by someone. --Ambrevar (discuss • contribs) 20:47, 5 January 2013 (UTC)

string spaces
From the text it seems showstringspaces and showspaces do actually the same. Do they? --85.58.62.182 23:17, 27 September 2007 (UTC)
 * I clarified the statement. --Ambrevar (discuss • contribs) 20:47, 5 January 2013 (UTC)

Missing Comma in Code
breakatwhitespace=false,       % sets if automatic breaks should only happen at whitespace title=\lstname,                % show the filename of files included with \lstinputlisting; also try caption instead of title escapeinside={\%*}{*)}         % if you want to add a comment within your code    morekeywords={*,...}            % if you want to add more keywords to the set  }

I claim that the end of the line starting with escapeinside requires a comma, like the previous lines. 75.41.255.94 (talk) 01:00, 27 June 2010 (UTC)
 * Done by someone. --Ambrevar (discuss • contribs) 20:47, 5 January 2013 (UTC)

not handling UTF input
It should be mentioned in the article that the listings package does not handle multi-byte character encodings, like UTF-8.


 * I added some details on this issue. --Ambrevar (discuss • contribs) 20:47, 5 January 2013 (UTC)

Line numbers
I would appreciate it if somebody added informations on how to enable line numbers.


 * My example was wrong, I fixed it. I added the possible parameters to the option. Just use  to display numbers. You might want to use  too. --Ambrevar (discuss • contribs) 18:45, 10 January 2013 (UTC)

multiple use of \lstinputlisting[language=Prolog]{file}
Propably Im missing something, but somehow this wont work for me.

\(\Huge\color{green}{Pie!})\

Listings not outdated
I can see that the last update to listings was done in 2023.

Also, if a package does not get updated, this could mean that it just functions properly. I would use arguments like "it has many bugs, which have not been resolved for ages" (of course, if it is true and if they are really important), or "it lacks these and those modern features".

According to most recent StackExchange statistics, listings has 3485 questions, while minted has 999 questions.

It could mean that listings is in fact more popular than minted, but it could be also because of different reasons.

Yaroslav Nikitenko (discuss • contribs) 10:47, 14 November 2023 (UTC)