summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty12
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty b/Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty
index 66f42ab2c96..c02b062aaff 100644
--- a/Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty
+++ b/Master/texmf-dist/tex/latex/lstaddons/lstlinebgrd.sty
@@ -1,6 +1,6 @@
-%% Copyright (C) 2011-2012 by Martin Scharrer <martin@scharrer-online.de>
+%% Copyright (c) 2011-2024 by Martin Scharrer <martin.scharrer@web.de>
%% ----------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -18,8 +18,8 @@
%% and the derived filebase lstlinebgrd.sty.
%%
\ProvidesPackage{lstlinebgrd}[%
- 2012/05/03
- v0.1
+ 2014/08/18
+ v0.2
Provides 'listings' options to color the background of lines]
\RequirePackage{listings}
\RequirePackage{xcolor}
@@ -27,10 +27,10 @@
\lst@Key{numbers}{none}{%
\def\lst@PlaceNumber{\lst@linebgrd}%
\lstKV@SwitchCases{#1}%
- {none&\\%
- left&\def\lst@PlaceNumber{\llap{\normalfont
+ {none:\\%
+ left:\def\lst@PlaceNumber{\llap{\normalfont
\lst@numberstyle{\thelstnumber}\kern\lst@numbersep}\lst@linebgrd}\\%
- right&\def\lst@PlaceNumber{\rlap{\normalfont
+ right:\def\lst@PlaceNumber{\rlap{\normalfont
\kern\linewidth \kern\lst@numbersep
\lst@numberstyle{\thelstnumber}}\lst@linebgrd}%
}{\PackageError{Listings}{Numbers #1 unknown}\@ehc}}