% \iffalse meta-comment
%
% Copyright 1994 the LaTeX3 project and the individual authors.
% All rights reserved. For further copyright information see the file
% legal.txt, and any other copyright indicated in this file.
% 
% This file is part of the LaTeX2e system.
% ----------------------------------------
% 
%  This system is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% 
% 
% IMPORTANT NOTICE:
% 
% For error reports in case of UNCHANGED versions see bugs.txt.
% 
% Please do not request updates from us directly.  Distribution is
% done through Mail-Servers and TeX organizations.
% 
% You are not allowed to change this file.
% 
% You are allowed to distribute this file under the condition that
% it is distributed together with all files mentioned in manifest.txt.
% 
% If you receive only some of these files from someone, complain!
% 
% You are NOT ALLOWED to distribute this file alone.  You are NOT
% ALLOWED to take money for the distribution or use of either this
% file or a changed version, except for a nominal charge for copying
% etc.
% \fi
%%%%
%%%% Patch file for the LaTeX2e kernel dated 1994/06/01
%%%% Patch 2 (1994/06/11)

\def\fmtversion@topatch{1994/06/01} % This patch will not work with
                                    % any other release.

\def\patch@level{2} % Patch level 2 (for June 1994 release)



%%% \fbox bug (from ltboxes.dtx)
%%%  Make \long and add \leavevmode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\long\def\fbox#1{%
  \setbox\@tempboxa\hbox{%
    \color@begingroup
      \kern\fboxsep#1\kern\fboxsep
    \color@endgroup}%
  \@frameb@x\relax}

\long\def\@iframebox[#1][#2]#3{%
  \@begin@tempboxa\hbox{#3}%
    \setlength\@tempdima{#1}%
    \setbox\@tempboxa\hbox to\@tempdima
         {\kern\fboxsep\csname bm@#2\endcsname\kern\fboxsep}%
    \@frameb@x{\kern-\fboxrule}%
  \@end@tempboxa}

\def\@frameb@x#1{%
  \@tempdima\fboxrule
  \advance\@tempdima\fboxsep
  \advance\@tempdima\dp\@tempboxa
  \leavevmode
  \hbox{%
    \lower\@tempdima\hbox{%
      \vbox{%
        \hrule\@height\fboxrule
        \hbox{%
          \vrule\@width\fboxrule
          #1%
          \vbox{%
            \vskip\fboxsep
            \box\@tempboxa
            \vskip\fboxsep}%
          #1%
          \vrule\@width\fboxrule}%
        \hrule\@height\fboxrule}}}}

%%% New feature (from ltboxes.dtx).
%%% Make \sbox and \mbox long.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\long\def\mbox#1{\leavevmode\hbox{#1}}

\long\def\sbox#1#2{\setbox#1\hbox{%
  \color@setgroup#2\color@endgroup}}


%%% \{ \} bug (from ltoutenc.dtx)
%%% Redefine, so that \left\{ works again.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareRobustCommand{\{}{\ifmmode\lbrace\else\text@lbrace\fi}

\DeclareTextCommand{\text@lbrace}{OT1}{$\m@th\lbrace$}
\DeclareTextSymbol{\text@lbrace}{T1}{`\{}

\DeclareRobustCommand{\}}{\ifmmode\rbrace\else\text@rbrace\fi}

\DeclareTextCommand{\text@rbrace}{OT1}{$\m@th\rbrace$}
\DeclareTextSymbol{\text@rbrace}{T1}{`\}}


%%% New feature (from ltdirchk.dtx and lterror.dtx)
%%% Automatic determination of TeX versions between 3 and 3.14
%%% Suggested by Bernd Raichle.
%%% The definition of \GenericError is not changed, but must be
%%% repeated here after the test.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\@TeXversion\@undefined
{\catcode`\^^J=\active
   \def\@tempa#1#2\@@{\if#1\string^3\fi}
   \edef\@tempa{\expandafter\@tempa\string^^J\@@}
   \ifx\@tempa\@empty\else\gdef\@TeXversion{3}\fi
}
\fi

\bgroup
\lccode`\@=`\ %
\lccode`\~=`\ %
\lccode`\}=`\ %
\lccode`\{=`\ %
\lccode`\T=`\T%
\lccode`\H=`\H%
\catcode`\ =11\relax%
\lowercase{%
\egroup%

\dimen@\ifx\@TeXversion\@undefined4\else\@TeXversion\fi\p@%
\ifdim\dimen@>3.14\p@\else
\DeclareRobustCommand{\GenericError}[4]{%
\begingroup%
\immediate\write\@unused{}%
\def\MessageBreak{^^J}%
\let\protect\string%
\edef%
%    %<-------------------do not delete this space!------------------->%
\@err@                                                                 %
{{#4}}%
\errhelp
%    %<-------------------do not delete this space!------------------->%
\@err@                                                                 %
\let
%    %<-------------------do not delete this space!------------------->%
\@err@                                                                 %
\errmessage
\def\MessageBreak{^^J#1}%
\def~{\typeout{! %
#2.^^J^^J%
#3^^J%
Type  H <return>  for immediate help.}%
%    %<-------------------do not delete this space!------------------->%
\@err@                                                                 %
{}}%
~%
\endgroup}
\fi}

%%% Allow 8bit chars again (for TeX3 only)
%%%   Please note that this means that such documents are not 
%%%   portable (unless ^^ notation is used). One can get incorrect
%%%   results without error messages.
%%%   This is a feature of TeX the program, not of LaTeX!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifnum\inputlineno=\m@ne\else
\@tempcnta=128
\loop\ifnum\@tempcnta<256
   \catcode\@tempcnta=12
   \advance\@tempcnta 1
\repeat
\@tempcnta=\z@
\fi


%%% PR 557: \nocite{*} should not produce a warning
%%%   as a result \cite{*} will not warn either but that never 
%%%   worked with BibTeX in the first place.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\expandafter\let\csname b@*\endcsname\@empty



%%% \_ did not work in math (when T1 encoding was used)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\@underscore}
   {\leavevmode \kern.06em \vbox{\hrule \@width.3em}}
\DeclareTextCommand{\_}{OT1}{\@underscore}
\DeclareTextCommand{\_}{T1}
   {\ifmmode\@underscore\else\char95\relax\fi}

% simple solution:
% \DeclareTextCommand{\_}{T1}{\nfss@text{\char95}}

\endinput



