diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-22 23:30:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-22 23:30:40 +0000 |
commit | 5dc59437b77b53e04eb78d59547631134db52f5c (patch) | |
tree | 424dd9a3507f7b8b09c08b4268dc1418960a9d11 /Master/texmf-dist/tex/latex | |
parent | 321f437042db0ed7c1e7558dbf25943c6ba6ea8f (diff) |
ragged2e (23feb23)
git-svn-id: svn://tug.org/texlive/trunk@66067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty b/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty index afb0522e644..da01c42254b 100644 --- a/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty +++ b/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty @@ -5,7 +5,7 @@ %% The original source files were: %% %% ragged2e.dtx (with options: `package') -%% Copyright (C) 1996–2019 Martin Schröder, 2021–2022 Marei Peischl (peiTeX) <marei@peitex.de> +%% Copyright (C) 1996–2019 Martin Schröder, 2021–2023 Marei Peischl (peiTeX) <marei@peitex.de> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c @@ -28,7 +28,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2021/06/01] \ProvidesPackage{ragged2e} - [2022/11/13 v3.2 ragged2e Package] + [2023/02/22 v3.3 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 @@ -178,9 +178,11 @@ \spaceskip\z@ \fi } +\newif\if@raggedtwoe@localhook \IfFormatAtLeastTF{2021/01/05} -{\AddToHook{selectfont}{\@raggedtwoe@everyselectfont}} +{\@raggedtwoe@localhooktrue} {\EverySelectfont{\@raggedtwoe@everyselectfont}} +\newcommand*{\@raggedtwoe@addlocalhook}{} \let\@raggedtwoe@savedcr\\ \let\@raggedtwoe@saved@gnewline\@gnewline \def\@raggedtwoe@centercrNoindent{% @@ -201,6 +203,9 @@ \fi } \DeclareRobustCommand{\Centering}{% +\if@raggedtwoe@localhook +\AddToHook{selectfont}[ragged2e]{\@raggedtwoe@everyselectfont} +\fi \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi @@ -214,6 +219,9 @@ \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\RaggedLeft}{% +\if@raggedtwoe@localhook +\AddToHook{selectfont}[ragged2e]{\@raggedtwoe@everyselectfont} +\fi \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi @@ -227,6 +235,9 @@ \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\RaggedRight}{% +\if@raggedtwoe@localhook +\AddToHook{selectfont}[ragged2e]{\@raggedtwoe@everyselectfont} +\fi \ifx\\\@raggedtwoe@savedcr \let\\\@raggedtwoe@centercrNoindent \fi @@ -240,6 +251,9 @@ \@raggedtwoe@everyselectfont } \DeclareRobustCommand{\justifying}{% +\if@raggedtwoe@localhook +\AddToHook{selectfont}[ragged2e]{\@raggedtwoe@everyselectfont} +\fi \let\\\@raggedtwoe@savedcr \let\@gnewline\@raggedtwoe@saved@gnewline \leftskip\z@ |