Support a List of Listings that looks like the other lists
Issue #1
open
% ********************************************************************
% fine typesetting of code listings
\RequirePackage{listings}
% ********************************************************************
% caption numbering now w/o chapter number
%\makeatletter
% \ifthenelse{\boolean{@nochapters}}%
% {\relax}{%
% \@removefromreset{lstlisting}{chapter}% requires remreset package
% }
% \renewcommand{\thelstlisting}{\arabic{lstlisting}} % <-- might cause
an error with some TeX distributions
%\makeatother
% ********************************************************************
% ...and get the layout of the list of listings right (dirty workaround)
%\makeatletter
% \def\@dottedtocline#1#2#3#4#5{%
% \ifnum #1>\c@tocdepth \else
% \vskip \z@ \@plus.2\p@
% {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
% \parindent #2\relax\@afterindenttrue
% \interlinepenalty\@M
% \leavevmode
% \@tempdima #3\relax
% \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
% \hbox{{#4}\nobreak
% \hspace{1.5em}
% \nobreak
% \hb@xt@\@pnumwidth{\normalfont \normalcolor #5}}%
% \par}%
% \fi}
% \def\@pnumwidth{0em}
%\makeatother
% ********************************************************************
% to get the LoL entries right, change line 1461 in listings.sty (v1.3a) to
%
{\protect\hspace{-\parindent}Listing~\thelstlisting\hspace{1.5em}\lst@@caption}%
% really nasty, if you know of a better way, please let me know
% ********************************************************************
%\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} %
for special keywords
% ********************************************************************
\lstset{language=[LaTeX]Tex,%C++,
keywordstyle=\color{RoyalBlue},%\bfseries,
basicstyle=\small\ttfamily,
%identifierstyle=\color{NavyBlue},
commentstyle=\color{Green}\ttfamily,
stringstyle=\rmfamily,
numbers=none,%left,%
numberstyle=\scriptsize,%\tiny
stepnumber=5,
numbersep=8pt,
showstringspaces=false,
breaklines=true,
frameround=ftff,
frame=single
%frame=L
}
Original issue reported on code.google.com by amiede
on 2008-02-17 17:01:35
Comments (3)
-
reporter -
reporter - changed status to open
Marking this for re-implementation/version 5.0.
-
reporter -
assigned issue to
- edited description
-
assigned issue to
- Log in to comment
``` (No text was entered with this change) ```
Original issue reported on code.google.com by `amiede` on 2009-09-29 18:47:58