texlive[72361] Master/texmf-dist: listings (23sep24)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 23 23:20:00 CEST 2024


Revision: 72361
          https://tug.org/svn/texlive?view=revision&revision=72361
Author:   karl
Date:     2024-09-23 23:20:00 +0200 (Mon, 23 Sep 2024)
Log Message:
-----------
listings (23sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/listings/listings-devel.pdf
    trunk/Master/texmf-dist/doc/latex/listings/listings.pdf
    trunk/Master/texmf-dist/doc/latex/listings/lstdrvrs.pdf
    trunk/Master/texmf-dist/source/latex/listings/listings.dtx
    trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx
    trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.ins
    trunk/Master/texmf-dist/tex/latex/listings/listings-acm.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-bash.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-fortran.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-hansl.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-lua.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-python.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings-rexx.prf
    trunk/Master/texmf-dist/tex/latex/listings/listings.cfg
    trunk/Master/texmf-dist/tex/latex/listings/listings.sty
    trunk/Master/texmf-dist/tex/latex/listings/lstdoc.sty
    trunk/Master/texmf-dist/tex/latex/listings/lstlang1.sty
    trunk/Master/texmf-dist/tex/latex/listings/lstlang2.sty
    trunk/Master/texmf-dist/tex/latex/listings/lstlang3.sty
    trunk/Master/texmf-dist/tex/latex/listings/lstmisc.sty

Modified: trunk/Master/texmf-dist/doc/latex/listings/listings-devel.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/listings/listings.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/listings/lstdrvrs.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/listings/listings.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/listings/listings.dtx	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/source/latex/listings/listings.dtx	2024-09-23 21:20:00 UTC (rev 72361)
@@ -46,6 +46,7 @@
 \usepackage{mdframed}           % frames for external files
 \usepackage{moreverb}           % writing external files
 \usepackage{xcolor}             % because of coloring the background
+\usepackage{tablefootnote}      % because of \tablefootnote
 
 \makeindex
 
@@ -135,7 +136,7 @@
 %       Hoffmann became the maintainer of the \packagename{listings}
 %       package in 2013; see the Preface for details.}~ %
 %    \textless\lstemail\textgreater}
-% \date{2024/05/25\enspace\enspace Version 1.10b\ \box\abstractbox}
+% \date{2024/09/23\enspace\enspace Version 1.10c\ \box\abstractbox}
 % \def\lstemail{\href{mailto:j.hoffmann at fh-aachen.de}{\texttt{j.hoffmann(at)fh-aachen.de}}}
 % \ifhyper
 %   \hypersetup{pdftitle=The Listings Package,
@@ -2723,7 +2724,7 @@
 %     \texttt{last} continues the numbering of the most recent listing and
 %     \meta{number} sets it to the (logical) number.
 %
-%   \item[1.0] \rkeyname{name}|=|\meta{name}
+%   \item[1.0,{{}}] \rkeyname{name}|=|\meta{name}
 %
 %     names a listing. Displayed environment-listings with the same name
 %     share a line counter if |firstnumber=auto| is in effect.
@@ -4825,22 +4826,29 @@
 %       Usually you will use |#1| as \meta{value}.
 %
 % \item[1.0] \cs{lstKV at SwitchCases}\marg{value}\\
-%   |{|\meta{string 1}|&|\meta{execute 1}|\\|\\
-%   | |\meta{string 2}|&|\meta{execute 2}|\\|\\
+%   |{|\meta{string 1}|:|\meta{execute 1}|\\|\\
+%   | |\meta{string 2}|:|\meta{execute 2}|\\|\\
 %   \hbox to 3em{\hfill\vdots}\\
-%   | |\meta{string $n$}|&|\meta{execute $n$}|}|\marg{else}
+%   | |\meta{string $n$}|;|\meta{execute $n$}|}|\marg{else}
 %
 %       Either execute \meta{else} or the \meta{value} matching part.
 %
-%       This implementation of C. Heinz has a problem\label{gAmpersand}, if
-%       the listing is part of a tabular environment as found out by
-%       \lsthelper{Nasser~M.~Abbasi}{2016/05/25}{possible bug in listings
-%       package}. \lsthelper{David~Carlisle}{2016/05/25}{%
+%       This implementation is based on a hint of \lsthelper{David~Carlisle}{2016/05/25}{%
 %       http://tex.stackexchange.com/questions/311383/^^A
 %         adding-frame-none-to-lstlisting-options-in-lstdefinestyle^^A
-%         -gives-error-with-tabu}
-%       gave a hint how to avoid this problem and so the separator |&| is
-%       replaced by |:|.
+%         -gives-error-with-tabu} to avoid the problem of the original
+%       implementation of C. Heinz\label{gAmpersand}:
+%       \begin{quote}
+%           \cs{lstKV at SwitchCases}\marg{value}\\
+%           |{|\meta{string 1}|&|\meta{execute 1}|\\|\\
+%           | |\meta{string 2}|&|\meta{execute 2}|\\|\\
+%           \hbox to 3em{\hfill\vdots}\\
+%           | |\meta{string $n$}|&|\meta{execute $n$}|}|\marg{else}
+%       \end{quote}
+%       The problem arose when the listing was part of a tabular
+%       environment, as found out by
+%       \lsthelper{Nasser~M.~Abbasi}{2016/05/25}{possible bug in listings
+%       package}.
 %
 % \item[0.20] |\lstKV at TwoArg|\marg{value}\marg{subdefinition}
 % \item[0.20] |\lstKV at ThreeArg|\marg{value}\marg{subdefinition}
@@ -4967,8 +4975,13 @@
 %       \lsttabspace |\lst at KCSmode| &
 %       \ldots~a keyword comment which can be terminated by a semicolon only.
 % \\
-% \aspectname{html}\lsttabspace |\lst at insidemode| &
+%   \aspectname{html}\lsttabspace |\lst at htmlmode| &
 %       Active if we are between \texttt{<} and \texttt{>}.
+%
+%       Previous documentations used the mode name |\lst at insidemode| at this
+%       place, but the name |\lst at insidemode| isn't referenced in any documentation
+%       and so it is now (from v1.10c on) assumed as an overseen
+%       documentation error.
 % \\
 % \aspectname{make}\lsttabspace |\lst at makemode| &
 %       Used to indicate a keyword.
@@ -5986,7 +5999,7 @@
 % \part{Implementation}
 %
 %
-% \CheckSum{12435}
+% \CheckSum{12443}
 %^^A
 %^^A Don't index TeX-primitives.
 %^^A
@@ -6130,8 +6143,8 @@
 % All files will have same date and version.
 %    \begin{macrocode}
 %<*kernel|misc|doc>
-\def\filedate{2024/05/25}
-\def\fileversion{1.10b}
+\def\filedate{2024/09/23}
+\def\fileversion{1.10c}
 %</kernel|misc|doc>
 %    \end{macrocode}
 % What we need and who we are.
@@ -8918,9 +8931,16 @@
 %    \begin{macrocode}
 \def\lst at UM#1{\csname\@lst @um#1@\endcsname}
 %    \end{macrocode}
-% And all remaining standard characters.
+% And all remaining standard characters. \lsthelper{Peter
+% Cock}{2024/09/18}{Upright double-quotes in LaTeX listings}
+% pointed to the discussion in
+% \url{https://tex.stackexchange.com/questions/166790/how-can-i-get-straight-double-quotes-in-listings}
+% about the lack of support for upright double quotes which are now
+% implemented by the lines below.
 %    \begin{macrocode}
 \lst at CCPutMacro
+    \lst at ProcessOther {"22}{\lst at ifupquote \textquotedbl
+                                     \else \char34\relax \fi}
     \lst at ProcessOther {"23}\#
     \lst at ProcessLetter{"24}\textdollar
     \lst at ProcessOther {"25}\%
@@ -12654,7 +12674,9 @@
 % \subsection{Line numbers}
 %
 % \begin{aspect}{labels}
-% \lsthelper{Rolf~Niepraschk}{1997/04/24}{line numbers} asked for line numbers.
+% \lsthelper{Rolf~Niepraschk}{1997/04/24}{line numbers} asked for line
+% number, the relevant keys and `\textit{data}' commands are described in
+% section \ref{rLineNumbers}, here is their implementation.
 %    \begin{macrocode}
 %<*misc>
 \lst at BeginAspect{labels}
@@ -12673,26 +12695,31 @@
      right:\def\lst at PlaceNumber{\rlap{\normalfont
                 \kern\linewidth \kern\lst at numbersep
                 \lst at numberstyle{\thelstnumber}}}%
-    }{\PackageError{Listings}{Numbers #1 unknown}\@ehc}}
+    }{\PackageError{Listings}{value `#1' for keyword `numbers' not supported}\@ehc}}
 %    \end{macrocode}
 % \end{lstkey}
 %
+% \begin{lstkey}{stepnumber}
+% \begin{lstkey}{numberfirstline}
 % \begin{lstkey}{numberstyle}
 % \begin{lstkey}{numbersep}
-% \begin{lstkey}{stepnumber}
 % \begin{lstkey}{numberblanklines}
-% \begin{lstkey}{numberfirstline}
 % Definition of the keys.
 %    \begin{macrocode}
+\lst at Key{stepnumber}{1}{\def\lst at stepnumber{#1\relax}}
+\lst at Key{numberfirstline}{f}[t]{\lstKV at SetIf{#1}\lst at ifnumberfirstline}
 \lst at Key{numberstyle}{}{\def\lst at numberstyle{#1}}
 \lst at Key{numbersep}{10pt}{\def\lst at numbersep{#1}}
-\lst at Key{stepnumber}{1}{\def\lst at stepnumber{#1\relax}}
+\lst at Key{numberblanklines}{true}[t]
+    {\lstKV at SetIf{#1}\lst at ifnumberblanklines}
+%    \end{macrocode}
+% If we use the `empty' style, the listing must start at line 1, so:
+%    \begin{macrocode}
 \lst at AddToHook{EmptyStyle}{\let\lst at stepnumber\@ne}
 %    \end{macrocode}
+% Later on we use this to prevent numbering of the first line for a second
+% time.
 %    \begin{macrocode}
-\lst at Key{numberblanklines}{true}[t]
-    {\lstKV at SetIf{#1}\lst at ifnumberblanklines}
-\lst at Key{numberfirstline}{f}[t]{\lstKV at SetIf{#1}\lst at ifnumberfirstline}
 \gdef\lst at numberfirstlinefalse{\let\lst at ifnumberfirstline\iffalse}
 %    \end{macrocode}
 % \end{lstkey}
@@ -12721,6 +12748,9 @@
 %    \end{macrocode}
 % \end{lstkey}
 %
+% The key |name| is defined in section \ref{sec:list-listings}, the data
+% command |\thelstnumber| below on page \pageref{iTheLstNumber}.
+%
 % \begin{macro}{\lst at SetFirstNumber}
 % \begin{macro}{\lst at SaveFirstNumber}
 % \lsthelper{Boris~Veytsman}{1998/03/25}{continue line numbering: a.c b.c a.c}
@@ -12749,7 +12779,9 @@
 % \end{macro}
 % \end{macro}
 %
+% \begin{macro}{\thelstnumber}
 % \begin{macro}{\c at lstnumber}
+% \label{iTheLstNumber}%
 % This counter keeps the current label number. We use it as current label to
 % make line numbers referenced by |\ref|. This was proposed by
 % \lsthelper{Boris~Veytsman}{1998/03/25}{make line numbers referenced via
@@ -12805,6 +12837,7 @@
                        .\thelstnumber}}
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}{\lst at skipnumbers}
 % There are more things to do. We calculate how many lines must skip their
@@ -13879,12 +13912,21 @@
 %    \end{macrocode}
 % Further parsing is done by |lst at GLI@|, the argument is |#1--\@nil| that
 % is the first element of the list augmented by a sentinel. This
-% argument is parsed with the template |#1-#2-#3\@nil|. A linerange given
-% as e.\,g. `|12-21|' leads to the argument |12-21--\@nil|, so it is parsed
-% as \#1\(\leftarrow\) |12|, \#2\(\leftarrow\)|21|, and \#3\(\leftarrow\)|-|.
+% argument is parsed with the template |#1-#2-#3\@nil|.
+%
 %    \begin{macrocode}
 \def\lst at GLI@#1-#2-#3\@nil{%
 %    \end{macrocode}
+% A linerange given as e.\,g. `|12-21|' leads to the argument
+% |12-21--\@nil|, so it is parsed as \#1\(\leftarrow\) |12|,
+% \#2\(\leftarrow\)|21|, and \#3\(\leftarrow\)|-|.
+%
+% Otherwise it is possible to define a range by arbitrary linerange markers
+% like `|start-end|' which leads to the argument
+% |12-21--\@nil|, so it is parsed as \#1\(\leftarrow\) |12|,
+% \#2\(\leftarrow\)|21|, and \#3\(\leftarrow\)|-|.
+
+
 % First we test, if the linerange starts with a number (consisting of -, 1,
 % 2, 3, \ldots) or an arbitrary linerange marker. If a linerange starts
 % erroneously with a `|-|' character, the argument \#1 isn't set and so the
@@ -13897,7 +13939,7 @@
     \ifx\@empty#1\@empty
         \let\lst at firstline\@ne
     \else
-        \def\lst at firstline{#1\relax}%
+        \def\lst at firstline{#1\relax}
     \fi
 %    \end{macrocode}
 % Now we know the starting number of the linerange. \#3 isn't set with a
@@ -13904,16 +13946,16 @@
 % linerange consisting of a single number, in all other cases \#2 defines
 % the last line (explicitly or implicitly).
 %    \begin{macrocode}
-    \ifx\@empty#3\@empty%
-        \def\lst at lastline{9999999\relax}%
+    \ifx\@empty#3\@empty
+        \def\lst at lastline{9999999\relax}
         \ifx\@empty#2\@empty
-            \let\lst at lastline\lst at firstline%
+            \let\lst at lastline\lst at firstline
         \fi
     \else%
         \ifx\@empty#2\@empty
             \def\lst at lastline{9999999\relax}
         \else % doesn't happen(?)
-            \def\lst at lastline{#2\relax}%
+            \def\lst at lastline{#2\relax}
         \fi
     \fi
   }%
@@ -13922,7 +13964,7 @@
 %    9999999. This prevents (almost) anything from being printed for now.
 %    \begin{macrocode}
   {%
-    \def\lst at firstline{9999999\relax}%
+    \def\lst at firstline{9999999\relax}
     \let\lst at lastline\lst at firstline
 %    \end{macrocode}
 %    We add the prefixes and suffixes to the markers.
@@ -14017,10 +14059,10 @@
         \ifnum\@tempcnta=\z@ \else
             \lst at nololtrue
             \advance\@tempcnta\lst at advancenumber
-            \edef\lst at firstnumber{\the\@tempcnta\relax}%
-        \fi%
-    \fi%
-  }%
+            \edef\lst at firstnumber{\the\@tempcnta\relax}
+        \fi
+    \fi
+  }
 }
 \def\lst at InitLstNumber{%
   \global\c at lstnumber\lst at firstnumber
@@ -14366,7 +14408,8 @@
 % \begin{macro}{\lst at HRefStepCounter}
 % This macro sets the listing number to a negative value since the user
 % shouldn't refer to such a listing. If the \packagename{hyperref} package
-% is present, we use `lstlisting' (argument from above) to hyperref to.
+% is present, we use `lstlisting.' (argument from above) concatenated with
+% the current (negative) number to hyperref to.
 % The groups have been added to prevent other packages (namely
 % \packagename{tabularx}) from reading the locally changed counter
 % and writing it back globally. Thanks to \lsthelper{Michael~Niedermair}
@@ -14374,14 +14417,17 @@
 % this localization led to another bug, see |\theHlstnumber|.
 %    \begin{macrocode}
 \def\lst at HRefStepCounter#1{%
-    \begingroup
-    \c at lstlisting\lst at neglisting
-    \advance\c at lstlisting\m at ne \xdef\lst at neglisting{\the\c at lstlisting}%
-    \ifx\hyper at refstepcounter\@undefined\else
-        \hyper at refstepcounter{#1}%
-    \fi
-    \endgroup}
-\gdef\lst at neglisting{\z@}% init
+  \begingroup
+  \c at lstlisting\lst at neglisting
+  \advance\c at lstlisting\m at ne \xdef\lst at neglisting{\the\c at lstlisting}%
+  \ifx\hyper at refstepcounter\@undefined\else
+      \hyper at refstepcounter{#1}%
+  \fi
+  \endgroup
+}
+\gdef\lst at neglisting{\z@}% init, \z@ can be used both for 0pt and 0,
+                         % remember: _neg_ative number, but no
+                         % counter!
 %    \end{macrocode}
 % \end{macro}
 %
@@ -14776,7 +14822,8 @@
 % \end{macro}
 %
 %
-% \subsection{List of listings}
+% \subsection{List of listings}%
+% \label{sec:list-listings}
 %
 % \begin{lstkey}{name}
 % \begin{macro}{\lstname}
@@ -15781,7 +15828,7 @@
 \ifalgorithmicpkg \RequirePackage{algorithmic}\fi
 \iflgrind \RequirePackage{lgrind}\fi
 \RequirePackage{nameref}
-\RequirePackage{url}
+\RequirePackage{xurl}           % allow URL breaks
 \renewcommand\ref{\protect\T at ref}
 \renewcommand\pageref{\protect\T at pageref}
 %    \end{macrocode}
@@ -17336,6 +17383,10 @@
 % \item[1.10] from 2024/02/15 on
 %   \item usage of |tocbasic| if loaded to improve compatibility with
 %   KOMA-Script and also enhance functionality.
+%   \item differentiate between Python 2 and Python 3
+%   \item add initial support for Scala 3.0
+%   \item made |\lstinline{...}| work in tabular cells
+%   \item implemented upright double-quotes
 % \end{itemize}
 % \endgroup
 %

Modified: trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx	2024-09-23 21:20:00 UTC (rev 72361)
@@ -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{2024/05/25\enspace\enspace Version 1.10b\ \box\abstractbox}
+% \date{2024/09/23\enspace\enspace Version 1.10c\ \box\abstractbox}
 %
 % \ifhyper
 %   \hypersetup{pdftitle={Language, Style and Format drivers for the
@@ -138,7 +138,7 @@
 % \endgroup
 % We mainly define default dialects.
 %    \begin{macrocode}
-\ProvidesFile{listings.cfg}[2024/05/25 1.10b listings configuration]
+\ProvidesFile{listings.cfg}[2024/09/23 1.10c listings configuration]
 \def\lstlanguagefiles
     {lstlang0.sty,lstlang1.sty,lstlang2.sty,lstlang3.sty}
 \lstset{defaultdialect=[R/3 6.10]ABAP,
@@ -187,7 +187,7 @@
 %<+lua-prf>\ProvidesFile{listings-lua.prf}
 %<+python-prf>\ProvidesFile{listings-python.prf}
 %<+rexx-prf>\ProvidesFile{listings-rexx.prf}
-%<-config>    [2024/05/25 1.10b listings language file]
+%<-config>    [2024/09/23 1.10c listings language file]
 %    \end{macrocode}
 %
 %

Modified: trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.ins	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/source/latex/listings/lstdrvrs.ins	2024-09-23 21:20:00 UTC (rev 72361)
@@ -57,7 +57,7 @@
 }
 
 \endbatchfile
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \endinput
 %%
 %% End of file `lstdrvrs.ins'.

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-acm.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-acm.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-acm.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-acm.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage[rgb, x11names]{xcolor}
 
 \definecolor{Comments}{rgb}{0.00,0.50,0.00}

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-bash.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-bash.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-bash.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-bash.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage[rgb, x11names]{xcolor}
 
 \lstset{%

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-fortran.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-fortran.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-fortran.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-fortran.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage[rgb, x11names]{xcolor}
 
 \lstset{%

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-hansl.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-hansl.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-hansl.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-hansl.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage[rgb, x11names]{xcolor}
 
 \lstdefinestyle{hanslbw}{%

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-lua.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-lua.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-lua.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-lua.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage[rgb, x11names]{xcolor}
 \lstdefinestyle{Lua}{%
   language=[5.2]Lua,

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-python.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-python.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-python.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-python.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage{xcolor}
 \usepackage{textcomp}
 

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings-rexx.prf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings-rexx.prf	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings-rexx.prf	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{listings-rexx.prf}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \usepackage{xcolor}                  % needed for colors like yellow!10
 \usepackage{textcomp}                % needed for upquote
 

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings.cfg	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings.cfg	2024-09-23 21:20:00 UTC (rev 72361)
@@ -21,7 +21,7 @@
 %% Send comments and ideas on the package, error reports and additional
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
-\ProvidesFile{listings.cfg}[2024/05/25 1.10b listings configuration]
+\ProvidesFile{listings.cfg}[2024/09/23 1.10c listings configuration]
 \def\lstlanguagefiles
     {lstlang0.sty,lstlang1.sty,lstlang2.sty,lstlang3.sty}
 \lstset{defaultdialect=[R/3 6.10]ABAP,

Modified: trunk/Master/texmf-dist/tex/latex/listings/listings.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/listings.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/listings.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -16,8 +16,8 @@
 %% Send comments and ideas on the package, error reports and additional
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
-\def\filedate{2024/05/25}
-\def\fileversion{1.10b}
+\def\filedate{2024/09/23}
+\def\fileversion{1.10c}
 \NeedsTeXFormat{LaTeX2e}
 \AtEndOfPackage{\ProvidesPackage{listings}
              [\filedate\space\fileversion\space(Carsten Heinz)]}
@@ -920,6 +920,8 @@
     \def#2{#6}}
 \def\lst at UM#1{\csname\@lst @um#1@\endcsname}
 \lst at CCPutMacro
+    \lst at ProcessOther {"22}{\lst at ifupquote \textquotedbl
+                                     \else \char34\relax \fi}
     \lst at ProcessOther {"23}\#
     \lst at ProcessLetter{"24}\textdollar
     \lst at ProcessOther {"25}\%
@@ -1435,28 +1437,29 @@
   \def\lst at linerange{#2}\lst at GLI@#1--\@nil%
 }
 \def\lst at GLI@#1-#2-#3\@nil{%
+
   \lst at IfNumber{#1}%
   {%
     \ifx\@empty#1\@empty
         \let\lst at firstline\@ne
     \else
-        \def\lst at firstline{#1\relax}%
+        \def\lst at firstline{#1\relax}
     \fi
-    \ifx\@empty#3\@empty%
-        \def\lst at lastline{9999999\relax}%
+    \ifx\@empty#3\@empty
+        \def\lst at lastline{9999999\relax}
         \ifx\@empty#2\@empty
-            \let\lst at lastline\lst at firstline%
+            \let\lst at lastline\lst at firstline
         \fi
     \else%
         \ifx\@empty#2\@empty
             \def\lst at lastline{9999999\relax}
         \else % doesn't happen(?)
-            \def\lst at lastline{#2\relax}%
+            \def\lst at lastline{#2\relax}
         \fi
     \fi
   }%
   {%
-    \def\lst at firstline{9999999\relax}%
+    \def\lst at firstline{9999999\relax}
     \let\lst at lastline\lst at firstline
     \let\lst at rangebegin\lst at rangebeginprefix
     \lst at AddTo\lst at rangebegin{#1}%
@@ -1506,10 +1509,10 @@
         \ifnum\@tempcnta=\z@ \else
             \lst at nololtrue
             \advance\@tempcnta\lst at advancenumber
-            \edef\lst at firstnumber{\the\@tempcnta\relax}%
-        \fi%
-    \fi%
-  }%
+            \edef\lst at firstnumber{\the\@tempcnta\relax}
+        \fi
+    \fi
+  }
 }
 \def\lst at InitLstNumber{%
   \global\c at lstnumber\lst at firstnumber
@@ -1681,14 +1684,17 @@
   \def\lst at maketitle{\caption at startrue\@makecaption\@empty}}%
 }
 \def\lst at HRefStepCounter#1{%
-    \begingroup
-    \c at lstlisting\lst at neglisting
-    \advance\c at lstlisting\m at ne \xdef\lst at neglisting{\the\c at lstlisting}%
-    \ifx\hyper at refstepcounter\@undefined\else
-        \hyper at refstepcounter{#1}%
-    \fi
-    \endgroup}
-\gdef\lst at neglisting{\z@}% init
+  \begingroup
+  \c at lstlisting\lst at neglisting
+  \advance\c at lstlisting\m at ne \xdef\lst at neglisting{\the\c at lstlisting}%
+  \ifx\hyper at refstepcounter\@undefined\else
+      \hyper at refstepcounter{#1}%
+  \fi
+  \endgroup
+}
+\gdef\lst at neglisting{\z@}% init, \z@ can be used both for 0pt and 0,
+                         % remember: _neg_ative number, but no
+                         % counter!
 \lst at Key{boxpos}{c}{\def\lst at boxpos{#1}}
 \def\lst at boxtrue{\let\lst at ifbox\iftrue}
 \let\lst at ifbox\iffalse

Modified: trunk/Master/texmf-dist/tex/latex/listings/lstdoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/lstdoc.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/lstdoc.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -6,8 +6,8 @@
 %%
 %% listings.dtx  (with options: `doc')
 %% 
-\def\filedate{2024/05/25}
-\def\fileversion{1.10b}
+\def\filedate{2024/09/23}
+\def\fileversion{1.10c}
 \ProvidesPackage{lstdoc}
              [\filedate\space\fileversion\space(Carsten Heinz)]
 \let\lstdoc at currversion\fileversion
@@ -32,7 +32,7 @@
 \ifalgorithmicpkg \RequirePackage{algorithmic}\fi
 \iflgrind \RequirePackage{lgrind}\fi
 \RequirePackage{nameref}
-\RequirePackage{url}
+\RequirePackage{xurl}           % allow URL breaks
 \renewcommand\ref{\protect\T at ref}
 \renewcommand\pageref{\protect\T at pageref}
 \def\lst at BeginRemark#1{%

Modified: trunk/Master/texmf-dist/tex/latex/listings/lstlang1.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/lstlang1.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/lstlang1.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{lstlang1.sty}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 %%
 %% ACSL definition (c) 2000 by Andreas Matthias
 %%

Modified: trunk/Master/texmf-dist/tex/latex/listings/lstlang2.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/lstlang2.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/lstlang2.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{lstlang2.sty}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 %%
 %% Abap definition by Knut Lickert
 %%

Modified: trunk/Master/texmf-dist/tex/latex/listings/lstlang3.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/lstlang3.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/lstlang3.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -22,7 +22,7 @@
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
 \ProvidesFile{lstlang3.sty}
-    [2024/05/25 1.10b listings language file]
+    [2024/09/23 1.10c listings language file]
 \lst at definelanguage[68]{Algol}%
   {morekeywords={abs,and,arg,begin,bin,bits,bool,by,bytes,case,channel,%
       char,co,comment,compl,conj,divab,do,down,elem,elif,else,empty,%

Modified: trunk/Master/texmf-dist/tex/latex/listings/lstmisc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listings/lstmisc.sty	2024-09-23 21:19:50 UTC (rev 72360)
+++ trunk/Master/texmf-dist/tex/latex/listings/lstmisc.sty	2024-09-23 21:20:00 UTC (rev 72361)
@@ -16,8 +16,8 @@
 %% Send comments and ideas on the package, error reports and additional
 %% programming languages to Jobst Hoffmann at <j.hoffmann at fh-aachen.de>.
 %%
-\def\filedate{2024/05/25}
-\def\fileversion{1.10b}
+\def\filedate{2024/09/23}
+\def\fileversion{1.10c}
 \ProvidesFile{lstmisc.sty}
              [\filedate\space\fileversion\space(Carsten Heinz)]
 \lst at CheckVersion\fileversion%
@@ -1186,14 +1186,14 @@
      right:\def\lst at PlaceNumber{\rlap{\normalfont
                 \kern\linewidth \kern\lst at numbersep
                 \lst at numberstyle{\thelstnumber}}}%
-    }{\PackageError{Listings}{Numbers #1 unknown}\@ehc}}
+    }{\PackageError{Listings}{value `#1' for keyword `numbers' not supported}\@ehc}}
+\lst at Key{stepnumber}{1}{\def\lst at stepnumber{#1\relax}}
+\lst at Key{numberfirstline}{f}[t]{\lstKV at SetIf{#1}\lst at ifnumberfirstline}
 \lst at Key{numberstyle}{}{\def\lst at numberstyle{#1}}
 \lst at Key{numbersep}{10pt}{\def\lst at numbersep{#1}}
-\lst at Key{stepnumber}{1}{\def\lst at stepnumber{#1\relax}}
-\lst at AddToHook{EmptyStyle}{\let\lst at stepnumber\@ne}
 \lst at Key{numberblanklines}{true}[t]
     {\lstKV at SetIf{#1}\lst at ifnumberblanklines}
-\lst at Key{numberfirstline}{f}[t]{\lstKV at SetIf{#1}\lst at ifnumberfirstline}
+\lst at AddToHook{EmptyStyle}{\let\lst at stepnumber\@ne}
 \gdef\lst at numberfirstlinefalse{\let\lst at ifnumberfirstline\iffalse}
 \lst at Key{firstnumber}{auto}{%
     \lstKV at SwitchCases{#1}%



More information about the tex-live-commits mailing list.