aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorax006ho <j.hoffmann@fh-aachen.de>2019-02-18 13:22:25 +0100
committerax006ho <j.hoffmann@fh-aachen.de>2019-02-18 13:22:25 +0100
commitf2bccd4984f6201004191558d487d5ae9a9e370c (patch)
tree9008fa7c57e048ef5a3a2653ae4d1bb96aa470f6
parent917d7fbd6626dd24f78f99c58098c29a72b7a6a3 (diff)
downloadlistings-f2bccd4984f6201004191558d487d5ae9a9e370c.tar.gz
listings-f2bccd4984f6201004191558d487d5ae9a9e370c.tar.bz2
added local group for local setting of inputpath
-rw-r--r--listings.dtx8
1 files changed, 5 insertions, 3 deletions
diff --git a/listings.dtx b/listings.dtx
index 8d5fe5b..478e787 100644
--- a/listings.dtx
+++ b/listings.dtx
@@ -14839,9 +14839,10 @@
% \end{macrocode}
% |\lst@set| takes the local options, especially |inputpath=<path>| for
% formatting the input file. So |\lstset| must be updated to have the right
-% value of |\lst@inputpath|.
+% value of |\lst@inputpath|. The whole procedure must be grouped to make
+% the change local.
% \begin{macrocode}
- \def\lst@set{#1}%
+ \bgroup\def\lst@set{#1}%
\expandafter\lstset\expandafter{\lst@set}%
\IfFileExists{\lst@inputpath#2}%
{\lst@InputListing{\lst@inputpath#2}}%
@@ -14854,7 +14855,8 @@
% We must provide a valid value for |\lst@doendpe| in the (error) case that there
% exists no file.
% \begin{macrocode}
- \let\lst@doendpe\@empty}%
+ \let\lst@doendpe\@empty}%
+ \egroup
\lst@doendpe \@newlistfalse \ignorespaces%
}
% \end{macrocode}

Return to:

Send suggestions and report system problems to the System administrator.