diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltclass.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ltclass.dtx | 58 |
1 files changed, 35 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltclass.dtx b/Master/texmf-dist/source/latex/base/ltclass.dtx index 38b38bd3658..1a01a1698ab 100644 --- a/Master/texmf-dist/source/latex/base/ltclass.dtx +++ b/Master/texmf-dist/source/latex/base/ltclass.dtx @@ -1,30 +1,30 @@ % \iffalse meta-comment % -% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 +% Copyright 1993-2013 % The LaTeX3 Project and any individual authors listed elsewhere -% in this file. -% +% in this file. +% % This file is part of the LaTeX base system. % ------------------------------------------- -% +% % It may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3c % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt -% and version 1.3c or later is part of all distributions of LaTeX +% and version 1.3c or later is part of all distributions of LaTeX % version 2005/12/01 or later. -% +% % This file has the LPPL maintenance status "maintained". -% +% % The list of all files belonging to the LaTeX base distribution is % given in the file `manifest.txt'. See also `legal.txt' for additional % information. -% -% The list of derived (unpacked) files belonging to the distribution -% and covered by LPPL is defined by the unpacking scripts (with +% +% The list of derived (unpacked) files belonging to the distribution +% and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. -% +% % \fi % % \iffalse @@ -33,7 +33,7 @@ %<*driver> % \fi \ProvidesFile{ltclass.dtx} - [2007/08/05 v1.1h LaTeX Kernel (Class & Package Interface)] + [2013/07/07 v1.1i LaTeX Kernel (Class & Package Interface)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltclass.dtx} @@ -54,7 +54,7 @@ % All rights reserved. % \fi % -% \CheckSum{1194} +% \CheckSum{1199} % % \changes{v1.0f}{1994/05/22}{Use new warning and error commands} % \changes{v1.0l}{1994/11/17}{\cs{@tempa} to \cs{reserved@a}} @@ -227,7 +227,7 @@ % % \DescribeMacro\PassOptionsToPackage % Packages can pass options to other packages using:\\ -% |\PassOptionsToPackage{|\meta{options}|}{|\meta{package}|}|.\\ +% |\PassOptionsToPackage{|\meta{options}|}{|\meta{package}|}|.\\ % \DescribeMacro\PassOptionsToClass % This adds the \meta{options} to the options list of any future % |\RequirePackage| or |\usepackage| command. For example: @@ -261,7 +261,7 @@ % \LoadClass{article} %\end{verbatim} % -% As used here, the effects are more or less the same, but the +% As used here, the effects are more or less the same, but the % version using |\LoadClassWithOptions| is slightly quicker % (and less to type). % If, however, the class declares options of its own then @@ -291,8 +291,11 @@ % |\@ifpackageloaded{|\meta{package}|}{|\meta{true}|}{|\meta{false}|}|. % % \DescribeMacro\@ifpackagelater -% To find out if a package has already been loaded with a version more -% recent than \meta{version}, use +% \changes{v1.1i}{2013/07/07}{Correctly describe how the date in +% \cs{@ifpackagelater} is used} +% To find out if a package has already been loaded with a version +% equal to or more +% recent than \meta{version}, use\\ % \DescribeMacro\@ifclasslater % |\@ifpackagelater{|\meta{package}|}{|\meta{version}|}{|^^A % \meta{true}|}{|\meta{false}|}|. @@ -655,13 +658,22 @@ % |\reserved@b|.) % \changes{v0.2y}{1994/02/07} % {Add extra ,s so `two' is not matched with `twocolumn'} +% \changes{v1.1i}{2011/08/19} +% {Re-jig definition after more stringent \cs{in@} test.} % \begin{macrocode} \def\@if@pti@ns#1#2{% - \let\reserved@a\@firstoftwo - \@for\reserved@b:=#2\do{% - \expandafter\in@\expandafter{\expandafter,\reserved@b,}{,#1,}% - \ifin@\else\let\reserved@a\@secondoftwo\fi}% - \reserved@a} + \let\reserved@a\@firstoftwo + \@for\reserved@b:=#2\do{% + \ifx\reserved@b\@empty + \else + \expandafter\in@\expandafter{\expandafter,\reserved@b,}{,#1,}% + \ifin@ + \else + \let\reserved@a\@secondoftwo + \fi + \fi + }% + \reserved@a} \@onlypreamble\@if@pti@ns % \end{macrocode} % \end{macro} @@ -721,7 +733,7 @@ % {Delay definition of \cs{ProvidesFile} till ltfinal} % \changes{v1.1a}{1998/03/21} % {Allow \&. Internal/2702} -% \changes{v1.1d}{2001/05/25}{Explicitly set catcode of +% \changes{v1.1d}{2001/05/25}{Explicitly set catcode of % \cs{endlinechar} to 10 (pr/3334)} % \changes{v1.1e}{2001/06/04}{But only if it is a char (pr/3334)} % \changes{v1.1f}{2001/08/26}{Readded setting of space char (pr/3353)} |