%%
%% This is file `ragged2e.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ragged2e.dtx  (with options: `package')
%% 
%% Copyright (C) [1996..2003] by Martin Schroeder. All rights reserved.
%% 
%% This file is part of the Ragged2e package
%% -----------------------------------------
%% 
%% This program may be redistributed and/or modified under the terms
%% of the LaTeX Project Public License, either version 1.0 of this
%% license, or (at your option) any later version.
%% The latest version of this license is in
%%    CTAN:macros/latex/base/lppl.txt.
%% 
%% The Ragged2e package contains these files:
%%   ragged2e.dtx
%%   ragged2e.ins
%% 
%%                         Martin Schroeder
%%                         Cruesemannallee 3
%%                         28213 Bremen
%%                         Germany
%%                         martin@oneiros.de
%% 
\NeedsTeXFormat{LaTeX2e}[1996/10/24]
\ProvidesPackage{ragged2e}
         [2003/03/25 v2.04 ragged2e Package (MS)]
%% \CharacterTable
%% {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%  Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%  Digits        \0\1\2\3\4\5\6\7\8\9
%%  Exclamation   \!     Double quote  \"     Hash (number) \#
%%  Dollar        \$     Percent       \%     Ampersand     \&
%%  Acute accent  \'     Left paren    \(     Right paren   \)
%%  Asterisk      \*     Plus          \+     Comma         \,
%%  Minus         \-     Point         \.     Solidus       \/
%%  Colon         \:     Semicolon     \;     Less than     \<
%%  Equals        \=     Greater than  \>     Question mark \?
%%  Commercial at \@     Left bracket  \[     Backslash     \\
%%  Right bracket \]     Circumflex    \^     Underscore    \_
%%  Grave accent  \`     Left brace    \{     Vertical bar  \|
%%  Right brace   \}     Tilde         \~}
%%
%% \iffalse meta-comment
%% ===================================================================
%%  @LaTeX-style-file{
%%     author          = {Martin Schr\"oder},
%%     version         = "2.04",
%%     date            = "25 March 2003",
%%     filename        = "ragged2e.sty",
%%     address         = {Martin Schr\"oder
%%                        Cr\"usemannallee 3
%%                        28213 Bremen
%%                        Germany}
%%     telephone       = "+49-421-2239425",
%%     email           = "martin@oneiros.de",
%%     docstring       = "LaTeX package which defines new commands
%%                        \Centering, \RaggedLeft, \RaggedRight and
%%                        \justifying and new environments Center,
%%                        FlushLeft, FlushRight and justify, which
%%                        set ragged text and are easily configurable
%%                        to allow hyphenation.
%%                        Uses the everysel package.
%%                       "
%%  }
%% ===================================================================
%% \fi
\newif\if@raggedtwoe@originalcommands
\newif\if@raggedtwoe@originalparameters
\newif\if@raggedtwoe@footmisc
\DeclareOption{OriginalCommands}{\@raggedtwoe@originalcommandstrue}
\DeclareOption{originalcommands}{\@raggedtwoe@originalcommandstrue}
\DeclareOption{NewCommands}{\@raggedtwoe@originalcommandsfalse}
\DeclareOption{newcommands}{\@raggedtwoe@originalcommandsfalse}
\DeclareOption{OriginalParameters}{\@raggedtwoe@originalparameterstrue}
\DeclareOption{originalparameters}{\@raggedtwoe@originalparameterstrue}
\DeclareOption{NewParameters}{\@raggedtwoe@originalparametersfalse}
\DeclareOption{newparameters}{\@raggedtwoe@originalparametersfalse}
\newcommand*{\@raggedtwoe@raggedrightboxes@opt}{
  \CheckCommand*{\@arrayparboxrestore}{%
    \let\if@nobreak\iffalse
    \let\if@noskipsec\iffalse
    \let\par\@@par
    \let\-\@dischyph
    \let\'\@acci\let\`\@accii\let\=\@acciii
    \parindent\z@ \parskip\z@skip
    \everypar{}%
    \linewidth\hsize
    \@totalleftmargin\z@
    \leftskip\z@skip \rightskip\z@skip \@rightskip\z@skip
    \parfillskip\@flushglue \lineskip\normallineskip
    \baselineskip\normalbaselineskip
    \sloppy}%
  \renewcommand{\@arrayparboxrestore}{%
    \let\if@nobreak\iffalse
    \let\if@noskipsec\iffalse
    \let\par\@@par
    \let\-\@dischyph
    \let\'\@acci\let\`\@accii\let\=\@acciii
    \parskip\z@skip
    \everypar{}%
    \linewidth\hsize
    \@totalleftmargin\z@
    \RaggedRight
    \lineskip\normallineskip
    \baselineskip\normalbaselineskip
    \sloppy}%
  \let\@raggedtwoe@raggedrightboxes@opt\relax
  }
\DeclareOption{raggedrightboxes}{\@raggedtwoe@raggedrightboxes@opt}
\DeclareOption{footnotes}{%
  \@raggedtwoe@footmisctrue
  \PassOptionsToPackage{ragged}{footmisc}%
  }
\newcommand{\@raggedtwoe@abdhook}{%
  \PackageInfo{ragged2e}{ABD: executing \string\RaggedRight}%
  \RaggedRight
  \edef\@tocrmarg{\@tocrmarg plus 2em}%
  \let\@raggedtwoe@abdhook\relax
  }
\newcommand{\@raggedtwoe@document@opt}{%
  \AtBeginDocument{\@raggedtwoe@abdhook}%
  \@raggedtwoe@raggedrightboxes@opt
  \@raggedtwoe@footmisctrue
  \let\@raggedtwoe@document@opt\relax
  }
\DeclareOption{document}{\@raggedtwoe@document@opt}
\DeclareOption*{%
  \if@raggedtwoe@footmisc
    \PassOptionsToPackage{\CurrentOption}{footmisc}%
  \else
    \OptionNotUsed
  \fi
  }
%% ^^A -----------------------------
\ExecuteOptions{originalcommands,newparameters}
\ProcessOptions\relax
\RequirePackage{everysel}
\if@raggedtwoe@footmisc
  \AtEndOfPackage{\RequirePackage{footmisc}[2002/08/28]}
\fi
\newlength{\CenteringLeftskip}
\newlength{\RaggedLeftLeftskip}
\newlength{\RaggedRightLeftskip}
\newlength{\CenteringRightskip}
\newlength{\RaggedLeftRightskip}
\newlength{\RaggedRightRightskip}
\newlength{\CenteringParfillskip}
\newlength{\RaggedLeftParfillskip}
\newlength{\RaggedRightParfillskip}
\newlength{\JustifyingParfillskip}
\newlength{\CenteringParindent}
\newlength{\RaggedLeftParindent}
\newlength{\RaggedRightParindent}
\newlength{\JustifyingParindent}
\if@raggedtwoe@originalparameters
   \CenteringLeftskip\@flushglue
   \RaggedLeftLeftskip\@flushglue
   \RaggedRightLeftskip\z@skip
   \CenteringRightskip\@flushglue
   \RaggedLeftRightskip\z@skip
   \RaggedRightRightskip\@flushglue
   \CenteringParfillskip\z@skip
   \RaggedLeftParfillskip\z@skip
   \RaggedRightParfillskip\@flushglue
   \CenteringParindent\z@
   \RaggedLeftParindent\z@
   \RaggedRightParindent\z@
\else
   \CenteringLeftskip\z@\@plus\tw@ em
   \RaggedLeftLeftskip\z@\@plus\tw@ em
   \RaggedRightLeftskip\z@skip
   \CenteringRightskip\z@\@plus\tw@ em
   \RaggedLeftRightskip\z@skip
   \RaggedRightRightskip\z@\@plus\tw@ em
   \CenteringParfillskip\z@skip
   \RaggedLeftParfillskip\z@skip
   \RaggedRightParfillskip\@flushglue
   \CenteringParindent\z@
   \RaggedLeftParindent\z@
   \RaggedRightParindent\z@
\fi
\JustifyingParfillskip\@flushglue
\JustifyingParindent\parindent
\newif\if@raggedtwoe@spaceskip
\newcommand{\@raggedtwoe@everyselectfont}{%
  \if@raggedtwoe@spaceskip
    \ifdim\fontdimen\thr@@\font=\z@\relax
      \spaceskip\z@
    \else
      \spaceskip\fontdimen\tw@\font
    \fi
  \else
    \spaceskip\z@
  \fi
  }
\EverySelectfont{\@raggedtwoe@everyselectfont}
\let\@raggedtwoe@savedcr\\
\let\@raggedtwoe@saved@gnewline\@gnewline
\newcommand*{\@raggedtwoe@gnewline}[1]{%
  \ifvmode
    \@nolnerr
  \else
    \unskip
    \reserved@e {\reserved@f #1}{\parskip\z@\par}%
  \fi
  }
\newcommand{\Centering}{%
   \ifx\\\@raggedtwoe@savedcr
      \let\\\@centercr
   \fi
   \let\@gnewline\@raggedtwoe@gnewline
   \leftskip\CenteringLeftskip
   \@rightskip\CenteringRightskip
   \rightskip\@rightskip
   \parfillskip\CenteringParfillskip
   \parindent\CenteringParindent
   \@raggedtwoe@spaceskiptrue
   \@raggedtwoe@everyselectfont
   }
\newcommand{\RaggedLeft}{%
   \ifx\\\@raggedtwoe@savedcr
      \let\\\@centercr
   \fi
   \let\@gnewline\@raggedtwoe@gnewline
   \leftskip\RaggedLeftLeftskip
   \@rightskip\RaggedLeftRightskip
   \rightskip\@rightskip
   \parfillskip\RaggedLeftParfillskip
   \parindent\RaggedLeftParindent
   \@raggedtwoe@spaceskiptrue
   \@raggedtwoe@everyselectfont
   }
\newcommand{\RaggedRight}{%
   \ifx\\\@raggedtwoe@savedcr
      \let\\\@centercr
   \fi
   \let\@gnewline\@raggedtwoe@gnewline
   \leftskip\RaggedRightLeftskip
   \@rightskip\RaggedRightRightskip
   \rightskip\@rightskip
   \parfillskip\RaggedRightParfillskip
   \parindent\RaggedRightParindent
   \@raggedtwoe@spaceskiptrue
   \@raggedtwoe@everyselectfont
   }
\newcommand{\justifying}{%
   \let\\\@raggedtwoe@savedcr
   \let\@gnewline\@raggedtwoe@saved@gnewline
   \leftskip\z@
   \@rightskip\z@
   \rightskip\@rightskip
   \parfillskip\JustifyingParfillskip
   \parindent\JustifyingParindent
   \@raggedtwoe@spaceskipfalse
   \@raggedtwoe@everyselectfont
   }
\newenvironment{Center}{%
   \trivlist
   \Centering\item\relax
   }{%
   \endtrivlist
   }
\newenvironment{FlushLeft}{%
   \trivlist
   \RaggedRight\item\relax
   }{%
   \endtrivlist
   }
\newenvironment{FlushRight}{%
   \trivlist
   \RaggedLeft\item\relax
   }{%
   \endtrivlist
   }
\newenvironment{justify}{%
   \trivlist
   \justifying\item\relax
   }{%
   \endtrivlist
   }
\if@raggedtwoe@originalcommands
\else
   \let\LaTeXcentering\centering
   \let\LaTeXraggedleft\raggedleft
   \let\LaTeXraggedright\raggedright
   \let\centering\Centering
   \let\raggedleft\RaggedLeft
   \let\raggedright\RaggedRight
   \let\LaTeXcenter\center
   \let\endLaTeXcenter\endcenter
   \let\LaTeXflushleft\flushleft
   \let\endLaTeXflushleft\endflushleft
   \let\LaTeXflushright\flushright
   \let\endLaTeXflushright\endflushright
   \let\center\Center
   \let\endcenter\endCenter
   \let\flushleft\Flushleft
   \let\endflushleft\endFlushleft
   \let\flushright\FlushRight
   \let\endflushright\endFlushRight
\fi
\endinput
%%
%% End of file `ragged2e.sty'.
