%% %% This is file `ragged2e.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% ragged2e.dtx (with options: `package') %% %% Copyright 1996..2009 Martin Schroeder. %% %% This file is part of the Ragged2e package %% ----------------------------------------- %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% 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.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. %% %% The Current Maintainer of this work is Martin Schroeder. %% %% This work consists of the files ragged2e.dtx and ragged2e.ins %% and the derived file ragged2e.sty. %% %% Martin Schroeder %% Barmer Strasse 14 %% 44137 Dortmund %% Germany %% martin@oneiros.de %% \NeedsTeXFormat{LaTeX2e}[1996/10/24] \ProvidesPackage{ragged2e} [2009/05/21 v2.1 ragged2e Package (MS)] %% Copyright 1996..2009 by Martin Schr\"oder. %% \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.1", %% date = "21 May 2009", %% filename = "ragged2e.sty", %% address = {Martin Schr\"oder %% Barmer Stra\"se 14 %% 44137 Dortmund %% Germany} %% telephone = "+49-231-1206574", %% 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 \@ifundefined{@tocrmarg}{}{\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 \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 \ifmmode \reserved@e {\reserved@f #1}\nobreak \hfil \break \else \reserved@e {\reserved@f #1}{\parskip\z@\par}% \fi \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'.