Upgrade naar versie 1.9

This commit is contained in:
michael 1999-06-08 08:53:07 +00:00
parent b59f59ab08
commit 5e1b4ebfa9
5 changed files with 8728 additions and 3838 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,59 +1,77 @@
%%
%% Installation file: Listings package for LaTeX2e
%% (w)(c) 1996-1997 by Carsten Heinz
%% (w)(c) 1996-1998 Carsten Heinz
%%
\def\batchfile{listings.ins}
%
% just do these things
%
\input{docstrip}
\keepsilent
\askforoverwritefalse
%
% define the preamble
%
\preamble
(w)(c) 1996-1997 by Carsten Heinz
(w)(c) 1996-1998 Carsten Heinz
This file is distributed freely. You are not allowed to take money
for the distribution or use of this file, except for a nominal charge
for copying etc.
Please read the software license in listings.dtx or listings.dvi.
This file is distributed without any warranty; without even the implied
warranty of merchantability or fitness for a particular purpose.
This file is distributed freely. You are not allowed to take money for
the distribution of this file, except for a nominal charge for copying
etc..
You are not allowed to change this file.
This file is free for any non-commercial use. Commercial use needs (i)
explicit permission of the author of this package and (ii) the payment
of a license fee. This fee is to be determined in each instance by the
commercial user and the package author and is to be payed as donation
to the LaTeX3 project.
This file is distributed without any warranty, express or implied, as
to merchantability or fitness for any particular purpose.
Permission is granted to change this file. You are not allowed to
distribute any changed version this file, neither under the same name
nor under a different one.
\endpreamble
\askforoverwritefalse
\generate{%
\file{listings.sty}{\from{listings.dtx}{package}}
\file{lstblank.sty}{\from{listings.dtx}{blank}}
\file{lstada.sty}{\from{listings.dtx}{ada}}
\file{lstalgol.sty}{\from{listings.dtx}{algol}}
\file{lstc.sty}{\from{listings.dtx}{c}}
\file{lstcpp.sty}{\from{listings.dtx}{cpp}}
\file{lstcobol.sty}{\from{listings.dtx}{cobol}}
\file{lstcomal.sty}{\from{listings.dtx}{comal}}
\file{lsteiffel.sty}{\from{listings.dtx}{eiffel}}
\file{lstelan.sty}{\from{listings.dtx}{elan}}
\file{lstfortran.sty}{\from{listings.dtx}{fortran}}
\file{lstjava.sty}{\from{listings.dtx}{java}}
\file{lstlisp.sty}{\from{listings.dtx}{lisp}}
\file{lstlogo.sty}{\from{listings.dtx}{logo}}
\file{lstmatlab.sty}{\from{listings.dtx}{matlab}}
\file{lstmodula.sty}{\from{listings.dtx}{modula}}}
\generate{%
\file{lstoberon.sty}{\from{listings.dtx}{oberon}}
\file{lstpascal.sty}{\from{listings.dtx}{pascal}}
\file{lstpxsc.sty}{\from{listings.dtx}{pxsc}}
\file{lsttp.sty}{\from{listings.dtx}{tp}}
\file{lstperl.sty}{\from{listings.dtx}{perl}}
\file{lstpli.sty}{\from{listings.dtx}{pli}}
\file{lstsimula.sty}{\from{listings.dtx}{simula}}
\file{lstsql.sty}{\from{listings.dtx}{sql}}
\file{lsttex.sty}{\from{listings.dtx}{tex}}}
%
% unpack the listings package
%
\generate{
\file{listings.sty} {\from{listings.dtx}{kernel}}
\file{lst017.sty} {\from{listings.dtx}{0.17}}
\file{lstfvrb.sty} {\from{listings.dtx}{fancyvrb}}
}
%
% create installation and configuration file if lstdrvrs.dtx exists
%
\IfFileExists{lstdrvrs.dtx}{\generate{
\file{lstdrvrs.ins}{\from{lstdrvrs.dtx}{install}}
\file{listings.cfg}{\from{lstdrvrs.dtx}{config}}
}}
%
% unpack drivers if possible
%
\InputIfFileExists{lstdrvrs.ins}{}{}
%
% print user's advice
%
\Msg{*}
\Msg{* Move all `.sty' files into a directory searched by TeX.}
\Msg{* Move all `.sty' and `.cfg' files into a folder searched by TeX.}
\Msg{*}
\Msg{* Run the `.dtx' file through LaTeX2e to get the documentation.}
\Msg{*}
\endinput

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,94 @@
%%
%% This is file `lstdrvrs.ins',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lstdrvrs.dtx (with options: `install')
%%
%% (w)(c) 1996-1998 Carsten Heinz
%%
%% Please read the software license in listings.dtx or listings.dvi.
%%
%% This file is distributed freely. You are not allowed to take money for
%% the distribution of this file, except for a nominal charge for copying
%% etc..
%%
%% This file is free for any non-commercial use. Commercial use needs (i)
%% explicit permission of the author of this package and (ii) the payment
%% of a license fee. This fee is to be determined in each instance by the
%% commercial user and the package author and is to be payed as donation
%% to the LaTeX3 project.
%%
%% This file is distributed without any warranty, express or implied, as
%% to merchantability or fitness for any particular purpose.
%%
%% Permission is granted to change this file. You are not allowed to
%% distribute any changed version this file, neither under the same name
%% nor under a different one.
%%
\ifx\keepsilent\undefined %
\input{docstrip}
\keepsilent
\askforoverwritefalse
\fi
\def\batchfile{lstdrvrs.ins}
\preamble
(w)(c) 1996,1997,1998 Carsten Heinz and/or any other author mentioned
elsewhere in this file.
This file is distributed freely. You are not allowed to take money for
the use or distribution of this file, except for a nominal charge for
copying etc..
This file is distributed without any warranty, express or implied, as
to merchantability or fitness for any particular purpose.
Permission is granted to change this file. You are not allowed to
distribute any changed version this file, neither under the same name
nor under a different one.
\endpreamble
\generate{
\file{lstalgol.sty} {\from{listings.dtx}{keywordcomments}
\from{lstdrvrs.dtx}{algol}}
\file{lstc.sty} {\from{listings.dtx}{c}
\from{lstdrvrs.dtx}{c,objective-c,c++}}
\file{lstperl.sty} {\from{listings.dtx}{perl}
\from{lstdrvrs.dtx}{perl}}
\file{lstsimula.sty} {\from{listings.dtx}{keywordcomments}
\from{lstdrvrs.dtx}{simula}}
\file{lsttex.sty} {\from{listings.dtx}{tex}
\from{lstdrvrs.dtx}{tex}}
\file{lstada.sty} {\from{lstdrvrs.dtx}{ada}}
\file{lstcobol.sty} {\from{lstdrvrs.dtx}{cobol}}
\file{lstedu.sty} {\from{lstdrvrs.dtx}{comal,elan,logo}}
\file{lstcsh.sty} {\from{lstdrvrs.dtx}{csh}}
\file{lstdelphi.sty} {\from{lstdrvrs.dtx}{delphi}}
\file{lsteiffel.sty} {\from{lstdrvrs.dtx}{eiffel}}
\file{lsteuphoria.sty}{\from{lstdrvrs.dtx}{euphoria}}
\file{lstfortran.sty} {\from{lstdrvrs.dtx}{fortran}}
\file{lsthtml.sty} {\from{lstdrvrs.dtx}{html}}
\file{lstidl.sty} {\from{lstdrvrs.dtx}{idl}}
\file{lstjava.sty} {\from{lstdrvrs.dtx}{java}}
}
\generate{
\file{lstlisp.sty} {\from{lstdrvrs.dtx}{lisp}}
\file{lstmatlab.sty} {\from{lstdrvrs.dtx}{matlab}}
\file{lstmercury.sty} {\from{lstdrvrs.dtx}{mercury}}
\file{lstmodula.sty} {\from{lstdrvrs.dtx}{modula}}
\file{lstoberon.sty} {\from{lstdrvrs.dtx}{oberon}}
\file{lstpascal.sty} {\from{lstdrvrs.dtx}{pascal}}
\file{lstpli.sty} {\from{lstdrvrs.dtx}{pli}}
\file{lstprolog.sty} {\from{lstdrvrs.dtx}{prolog}}
\file{lstsql.sty} {\from{lstdrvrs.dtx}{sql}}
\file{lstvhdl.sty} {\from{lstdrvrs.dtx}{vhdl}}
}
\end
\endinput
%%
%% End of file `lstdrvrs.ins'.

View File

@ -0,0 +1,69 @@
%%
%% 1998/11/23: First patch for listings.sty
%%
%% (c) 1998 Carsten Heinz
%%
\def\lstlanguage@[#1]#2{%
\lst@LocateLanguage[#1]{#2}%
\@ifundefined{\lst@requested}%
{{\catcode`\^^M=9\catcode`\"=12\makeatletter %
\input{\lst@driver.sty}}}{}%
\@ifundefined{\lst@requested}%
{\PackageError{Listings}%
{\ifx\@empty\lst@dialect@\else \lst@dialect@\space of \fi %
\lst@language@\space undefined}{The driver file is not
loadable or doesn't support the language.^^J%
Type <RETURN> to proceed without changing the language.}}%
{\lsthk@SetLanguage %
\csname\lst@requested\endcsname %
%% modification of
% \def\lst@language{#1}\lst@Normalize\lst@language %
% \def\lst@dialect{#2}\lst@Normalize\lst@dialect}}
\def\lst@language{#2}\lst@Normalize\lst@language %
\def\lst@dialect{#1}\lst@Normalize\lst@dialect}}
%% end modification
%
%% load .fd files
\lst@AddToHook{BeforeSelectCharTable}
{\setbox\@tempboxa\hbox{\lst@labelstyle \lst@loadfd}}
%% end load .fd files
%
%% move \let\lst@lastother\relax to end of macros
\def\lst@Output{%
\ifnum\lst@length=\z@\else %
\lst@NewLine \lst@UseLostSpace %
\hbox to \lst@length\lst@width{%
\lst@lefthss %
\lsthk@Output \lst@thestyle{%
\expandafter\lst@FillOutputBox\the\lst@token\relax}%
\lst@righthss}%
\global\advance\lst@pos -\lst@length %
\lst@token{}\lst@length\z@ %
\fi %
\let\lst@lastother\relax}
\def\lst@OutputFlexible{%
\ifnum\lst@length=\z@\else %
\lst@NewLine \lst@UseLostSpace %
\setbox\@tempboxa\hbox{%
\lsthk@Output \lst@thestyle{\the\lst@token}}%
\lst@CalcLostSpaceAndOutput %
\fi %
\let\lst@lastother\relax}
%% end move \let\lst@lastother\relax to end of macros
%
%% correct bug of \lst@Aspect{texcs}{\def\lst@texcs{#1}}
\let\lstS@Aspect\lst@Aspect
\def\lst@Aspect#1{\def\@tempa{#1}\def\@tempb{texcs}%
\ifx\@tempa\@tempb %
\expandafter\lst@AspectTeX %
\fi %
\lstS@Aspect{#1}}
\def\lst@AspectTeX#1#2#3{%
\@ifundefined{KV@lst@#2}%
{\let\lst@ifnew\iftrue}{\let\lst@ifnew\iffalse}%
\lst@ifnew %
\else %
\expandafter\@gobblefour %
\fi %
\lstdefine@key{lst}{#2}{\edef\lst@texcs{##1}}}
%% end correct bug of \lst@Aspect{texcs}{\def\lst@texcs{#1}}