diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-25 21:10:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-25 21:10:48 +0000 |
commit | ed06debf5f768921e0fe0fd466866d881c2d4ea6 (patch) | |
tree | 2aad020900036f7b02fbb916ec7e78f313eb19bb /Master/texmf-dist/tex/latex/listings/listings.sty | |
parent | 293dbc2133c205a25092c69c509c285035ec3b21 (diff) |
listings (25mar20)
git-svn-id: svn://tug.org/texlive/trunk@54545 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/listings/listings.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/listings/listings.sty | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/listings/listings.sty b/Master/texmf-dist/tex/latex/listings/listings.sty index b938be3b362..be08438220c 100644 --- a/Master/texmf-dist/tex/latex/listings/listings.sty +++ b/Master/texmf-dist/tex/latex/listings/listings.sty @@ -16,8 +16,8 @@ %% Send comments and ideas on the package, error reports and additional %% programming languages to Jobst Hoffmann at <j.hoffmann@fh-aachen.de>. %% -\def\filedate{2019/09/10} -\def\fileversion{1.8c} +\def\filedate{2020/03/24} +\def\fileversion{1.8d} \NeedsTeXFormat{LaTeX2e} \AtEndOfPackage{\ProvidesPackage{listings} [\filedate\space\fileversion\space(Carsten Heinz)]} @@ -927,7 +927,7 @@ \lst@ProcessOther {"27}{\lst@ifupquote \textquotesingle \else \char39\relax \fi} \lst@ProcessOther {"2A}{\lst@ttfamily*\textasteriskcentered} - \lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{$-$}} + \lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{\textminus}} \lst@ProcessOther {"3C}{\lst@ttfamily<\textless} \lst@ProcessOther {"3E}{\lst@ttfamily>\textgreater} \lst@ProcessOther {"5C}{\lst@ttfamily{\char92}\textbackslash} @@ -2067,11 +2067,21 @@ \else \expandafter\lst@BOLGobble \fi} + \lst@Key{consecutivenumbers}{true}[t]{\lstKV@SetIf{#1}\lst@ifconsecutivenumbers} + \def\lst@DisplayConsecutiveNumbersOrNot{% + \lst@ifconsecutivenumbers\typeout{consecutive:}\else% + \typeout{non-consecutive:} + \c@lstnumber=\numexpr-1+\lst@lineno %\relax % this enforces the + %displayed line numbers to always be the + %input line numbers + \fi% +} \def\lst@MSkipToFirst{% \global\advance\lst@lineno\@ne \ifnum \lst@lineno=\lst@firstline \lst@LeaveMode \global\lst@newlines\z@ \lsthk@InitVarsBOL + \lst@DisplayConsecutiveNumbersOrNot \expandafter\lst@BOLGobble \fi} \def\lstenv@DroppedWarning{% @@ -2210,7 +2220,7 @@ \lstset{#1}% \csname\@lst @SetFirstNumber\endcsname% }{% - \let\if@nobreak\iffalse% + \@nobreakfalse \csname\@lst @SaveFirstNumber\endcsname% } \lst@Key{fancyvrb}\relax[t]{% |