%% %% This is file `ragged2e.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% ragged2e.dtx (with options: `package') %% Copyright (C) 1996–2019 Martin Schröder, 2021–2022 Marei Peischl (peiTeX) %% %% This work 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 %% version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. %% %% The Current Maintainer of this work is %% Marei Peischl . %% %% This work consists of the files ragged2e.dtx and ragged2e.ins %% and the derived file ragged2e.sty. %% %% \iffalse meta-comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2021/06/01] \ProvidesPackage{ragged2e} [2022/11/13 v3.2 ragged2e Package] %% \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 \~} %% \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 \lineskiplimit\normallineskiplimit \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 \lineskiplimit\normallineskiplimit \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 \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2021/01/05}{}{\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 } \IfFormatAtLeastTF{2021/01/05} {\AddToHook{selectfont}{\@raggedtwoe@everyselectfont}} {\EverySelectfont{\@raggedtwoe@everyselectfont}} \let\@raggedtwoe@savedcr\\ \let\@raggedtwoe@saved@gnewline\@gnewline \def\@raggedtwoe@centercrNoindent{% \AddToHookNext{para/begin}{\OmitIndent}% \@centercr% } \newcommand*{\@raggedtwoe@gnewline}[1]{% \ifvmode \@nolnerr \else \unskip \ifmmode \reserved@e {\reserved@f #1}\nobreak \hskip\z@ \break \else \reserved@e {\reserved@f #1}% \@raggedtwoe@centercrNoindent \fi \fi } \DeclareRobustCommand{\Centering}{% \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi \let\@gnewline\@raggedtwoe@gnewline \leftskip\CenteringLeftskip \@rightskip\CenteringRightskip \rightskip\@rightskip \parfillskip\CenteringParfillskip \parindent\CenteringParindent \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\RaggedLeft}{% \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi \let\@gnewline\@raggedtwoe@gnewline \leftskip\RaggedLeftLeftskip \@rightskip\RaggedLeftRightskip \rightskip\@rightskip \parfillskip\RaggedLeftParfillskip \parindent\RaggedLeftParindent \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\RaggedRight}{% \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi \let\@gnewline\@raggedtwoe@gnewline \leftskip\RaggedRightLeftskip \@rightskip\RaggedRightRightskip \rightskip\@rightskip \parfillskip\RaggedRightParfillskip \parindent\RaggedRightParindent \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\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'.