aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProf. Dr. Jobst Hoffmann <ax006ho@doityourselfIV.athome>2019-09-10 13:56:03 +0200
committerProf. Dr. Jobst Hoffmann <ax006ho@doityourselfIV.athome>2019-09-10 13:56:03 +0200
commitcdce1d30104d4f44bcf10a6ae4c65bb51f360743 (patch)
tree810e5e948cbd471ac3754f66746818bad3d00129
parentd89f3f586a5f428ec0575196235f44007725a4eb (diff)
downloadlistings-cdce1d30104d4f44bcf10a6ae4c65bb51f360743.tar.gz
listings-cdce1d30104d4f44bcf10a6ae4c65bb51f360743.tar.bz2
introduced v1.8c with \lstlistingnamestylev1.8c
-rw-r--r--listings.dtx32
-rw-r--r--listings.version4
-rw-r--r--lstdrvrs.dtx6
3 files changed, 28 insertions, 14 deletions
diff --git a/listings.dtx b/listings.dtx
index 7a9e4c9..4624323 100644
--- a/listings.dtx
+++ b/listings.dtx
@@ -98,7 +98,8 @@
% MoreSelectCharTable,extendedchars,alsoletter,alsodigit,alsoother,excludedelims,^^A
% literate,basicstyle,print,firstline,lastline,linerange,nolol,captionpos,^^A
% abovecaptionskip,^^A
-% belowcaptionskip,label,title,caption,\string\lstlistingname,boxpos,float,^^A
+% belowcaptionskip,label,title,caption,\string\lstlistingname,^^A
+% \string\lstlistingnamestyle,boxpos,float,^^A
% floatplacement,aboveskip,belowskip,everydisplay,showlines,emptylines,gobble,name,^^A
% \string\lstname,\string\lstlistlistingname,\string\lstlistoflistings,^^A
% \string\lstnewenvironment,\string\lstinline,\string\lstinputlisting,lstlisting,^^A
@@ -132,7 +133,7 @@
% Hoffmann became the maintainer of the \packagename{listings}
% package in 2013; see the Preface for details.}~ %
% \textless\lstemail\textgreater}
-% \date{2019/02/27\enspace\enspace Version 1.8b\ \box\abstractbox}
+% \date{2019/09/10\enspace\enspace Version 1.8c\ \box\abstractbox}
% \def\lstemail{\href{mailto:j.hoffmann@fh-aachen.de}{\texttt{j.hoffmann(at)fh-aachen.de}}}
% \ifhyper
% \hypersetup{pdftitle=The Listings Package,
@@ -2726,6 +2727,12 @@
%
% The caption label for listings.
%
+% \item[,{{}},data] \rcmdname\lstlistingnamestyle
+%
+% The style of the caption label for listings, something
+% like |\small|, |\bfseries| or a combination of
+% several commands.
+%
% \item[0.20,\arabic{lstlisting},data] \rcmdname\thelstlisting
%
% prints the running number of the caption.
@@ -3657,6 +3664,7 @@
% Moreover, you might want to adjust
% \icmdname\lstlistlistingname,
% \icmdname\lstlistingname,
+% \icmdname\lstlistingnamestyle,
% \ikeyname{defaultdialect},
% \icmdname\lstalias, or
% \icmdname\lstalias
@@ -5828,7 +5836,7 @@
% \part{Implementation}
%
%
-% \CheckSum{12377}
+% \CheckSum{12380}
%^^A
%^^A Don't index TeX-primitives.
%^^A
@@ -5972,8 +5980,8 @@
% All files will have same date and version.
% \begin{macrocode}
%<*kernel|misc|doc>
-\def\filedate{2019/02/27}
-\def\fileversion{1.8b}
+\def\filedate{2019/09/10}
+\def\fileversion{1.8c}
%</kernel|misc|doc>
% \end{macrocode}
% What we need and who we are.
@@ -13889,6 +13897,7 @@
%
% \begin{macro}{\thelstlisting}
% \begin{macro}{\lstlistingname}
+% \begin{macro}{\lstlistingnamestyle}
% \begin{lstkey}{numberbychapter}
% \ldots\space and how the caption numbers look like. I switched to
% |\@ifundefined| (instead of |\ifx| |\@undefined|) after an error report from
@@ -13912,6 +13921,7 @@
% \end{macrocode}
% \begin{macrocode}
\lst@UserCommand\lstlistingname{Listing}
+\lst@UserCommand\lstlistingnamestyle{}
% \end{macrocode}
% \begin{macrocode}
\lst@Key{numberbychapter}{true}[t]{\lstKV@SetIf{#1}\lst@ifnumberbychapter}
@@ -13919,6 +13929,7 @@
% \end{lstkey}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\lst@MakeCaption}
% Before defining this macro, we ensure that some other control sequences
@@ -13954,11 +13965,13 @@
% replacement text was used directly in |\lst@MakeCaption|. A |\noindent| has
% been moved elsewhere and became |\@parboxrestore| after a bug report from
% \lsthelper{Frank~Mittelbach}{2004/02/13}{Re: Info: Inkompatibilit\"at
-% zwischen caption und listings}.
+% zwischen caption und listings}. \lsthelper{Karl Berry}{bold "listings
+% 1"?} asked for the ability of customizing the label. So
+% |\lstlistingnamestyle| was introduced in front of |\lstlistingname|.
% \begin{macrocode}
\def\fnum@lstlisting{%
- \lstlistingname
- \ifx\lst@@caption\@empty\else~\thelstlisting\fi}%
+ {\lstlistingnamestyle\lstlistingname
+ \ifx\lst@@caption\@empty\else~\thelstlisting\fi}}%
% \end{macrocode}
% Captions are set only for display style listings -- thanks to
% \lsthelper{Peter~L\"offler}{2004/04/24}{pdfTeX warning (dest): name{figure.1}
@@ -16950,10 +16963,11 @@
% \item[1.7] 2018/09/02
% \item some new or updated language definitions.
% \item several error corrections.
-% \item[1.8] 2019/02/27
+% \item[1.8] from 2019/02/27 on
% \item corrected and activated the option |inputpath|.
% \item some new or updated language definitions.
% \item several error corrections.
+% \item introduced |\lstlistingnamestyle|.
% \end{itemize}
% \endgroup
%
diff --git a/listings.version b/listings.version
index b059a30..64fcc39 100644
--- a/listings.version
+++ b/listings.version
@@ -5,5 +5,5 @@
# (c) 2013-2019 Jobst Hoffmann
PACKAGE = listings
-VERSION = 1.8b
-DATE = 2019/02/27
+VERSION = 1.8c
+DATE = 2019/09/10
diff --git a/lstdrvrs.dtx b/lstdrvrs.dtx
index e9c02f3..69c0af8 100644
--- a/lstdrvrs.dtx
+++ b/lstdrvrs.dtx
@@ -33,7 +33,7 @@
% \title{Language, Style and Format drivers\\ for \textsf{Listings}\\
% {\large by Carsten Heinz and individual authors:}}
% \author{\InputIfFileExists{lstdrvrs.tmp}{}{}}
-% \date{2019/02/27\enspace\enspace Version 1.8b\ \box\abstractbox}
+% \date{2019/09/10\enspace\enspace Version 1.8c\ \box\abstractbox}
%
% \ifhyper
% \hypersetup{pdftitle={Language, Style and Format drivers for the
@@ -137,7 +137,7 @@
% \endgroup
% We mainly define default dialects.
% \begin{macrocode}
-\ProvidesFile{listings.cfg}[2019/02/27 1.8b listings configuration]
+\ProvidesFile{listings.cfg}[2019/09/10 1.8c listings configuration]
\def\lstlanguagefiles
{lstlang0.sty,lstlang1.sty,lstlang2.sty,lstlang3.sty}
\lstset{defaultdialect=[R/3 6.10]ABAP,
@@ -184,7 +184,7 @@
%<+hansl-prf>\ProvidesFile{listings-hansl.prf}
%<+lua-prf>\ProvidesFile{listings-lua.prf}
%<+python-prf>\ProvidesFile{listings-python.prf}
-%<-config> [2019/02/27 1.8b listings language file]
+%<-config> [2019/09/10 1.8c listings language file]
% \end{macrocode}
%
%

Return to:

Send suggestions and report system problems to the System administrator.