diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-15 21:31:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-15 21:31:28 +0000 |
commit | c84aa59f3cdf68baf9351d9c543b6ae8a47cc3d1 (patch) | |
tree | 1573e315ae870eec9219ac9518ceb475c041e2e4 | |
parent | f974b9ef65fcb12bcb549f7b83eac9948dbb4af5 (diff) |
ragged2e (15dec21)
git-svn-id: svn://tug.org/texlive/trunk@61313 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/ragged2e/README.md | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf | bin | 666241 -> 695933 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty | 10 |
4 files changed, 25 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/ragged2e/README.md b/Master/texmf-dist/doc/latex/ragged2e/README.md index 3a7a51ddf8f..03999a85a46 100644 --- a/Master/texmf-dist/doc/latex/ragged2e/README.md +++ b/Master/texmf-dist/doc/latex/ragged2e/README.md @@ -2,7 +2,7 @@ Copyright (C) Martin Schröder, 1996–2019, Marei Peischl (peiTeX) <marei@peitex.de>, 2021 - ragged2e 2021/02/05 v3.0 + ragged2e 2021/12/15 v3.1 *************************************************************************** @@ -38,5 +38,6 @@ or want to report a suggestion for improvement, please visit ## Version History * 3.0 Move from everysel package to lthooks + * 3.1 Robustify the user macros (Thanks for Markus Kohm for the hint) diff --git a/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf b/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf Binary files differindex 0a593dada10..f9999f907dd 100644 --- a/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf +++ b/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf diff --git a/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx b/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx index 5c3408cf12f..397b810b401 100644 --- a/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx +++ b/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx @@ -31,7 +31,7 @@ % \iffalse \NeedsTeXFormat{LaTeX2e}[2017/03/29] %<package>\ProvidesPackage{ragged2e} -%<package> [2021/02/05 v3.0 ragged2e Package] +%<package> [2021/12/15 v3.1 ragged2e Package] % %<*driver> \documentclass[a4paper]{ltxdoc} @@ -209,14 +209,17 @@ % \subsection{\LaTeX} % ^^A % \LaTeX{} defines e.\,g.\ \cs{raggedright} as follows: +% \changes{v3.1}{2021/12/15}{Use the updated definition of \cs{raggedright}} % \begin{macrocode} %<*latex> -\def\raggedright{% - \let\\=\@centercr - \@rightskip\@flushglue - \rightskip\@rightskip - \leftskip\z@ - \parindent\z@} +\DeclareRobustCommand + \raggedright{% + \let\\\@centercr + \@rightskip\@flushglue + \rightskip\@rightskip + \finalhyphendemerits=\z@ + \leftskip\z@skip + \parindent\z@} % \end{macrocode} % Initially, \cs{@flushglue} is defined as % \begin{macrocode} @@ -1180,10 +1183,11 @@ % \end{Quote} % Finally we signal the code inserted into \cs{selectfont} that % we are active and call that code directly. +% \changes{v3.1}{2021/12/15}{Robustify the user macros (Thanks to Markus Kohm for the hint)} % \changes{v2.00}{2003/01/04}{Call \cs{@raggedtwoe@everyselectfont} % and switch \cs{@gnewline}} % \begin{macrocode} -\newcommand{\Centering}{% +\DeclareRobustCommand{\Centering}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -1202,10 +1206,11 @@ % \begin{macro}{\RaggedLeft} % \cs{RaggedLeft} is like \cs{Centering}; it only uses other % parameters. +% \changes{v3.1}{2021/12/15}{Robustify the user macros} % \changes{v2.00}{2003/01/04}{Call \cs{@raggedtwoe@everyselectfont} % and switch \cs{@gnewline}} % \begin{macrocode} -\newcommand{\RaggedLeft}{% +\DeclareRobustCommand{\RaggedLeft}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -1224,10 +1229,11 @@ % \begin{macro}{\RaggedRight} % \cs{RaggedRight} is like \cs{Centering}; it only uses other % parameters. +% \changes{v3.1}{2021/12/15}{Robustify the user macros (Thanks to Markus Kohm for the hint)} % \changes{v2.00}{2003/01/04}{Call \cs{@raggedtwoe@everyselectfont} % and switch \cs{@gnewline}} % \begin{macrocode} -\newcommand{\RaggedRight}{% +\DeclareRobustCommand{\RaggedRight}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -1246,9 +1252,10 @@ % \begin{macro}{\justifying} % \cs{justifying} switches back to the defaults used by \LaTeX{} for % typesetting justyfied text. +% \changes{v3.1}{2021/12/15}{Robustify the user macros (Thanks to Markus Kohm for the hint)} % \changes{v2.00}{2003/01/04}{New macro} % \begin{macrocode} -\newcommand{\justifying}{% +\DeclareRobustCommand{\justifying}{% \let\\\@raggedtwoe@savedcr \let\@gnewline\@raggedtwoe@saved@gnewline \leftskip\z@ diff --git a/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty b/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty index 075df6a69ef..f7531daa0e1 100644 --- a/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty +++ b/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty @@ -28,7 +28,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2017/03/29] \ProvidesPackage{ragged2e} - [2021/02/05 v3.0 ragged2e Package] + [2021/12/15 v3.1 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 @@ -195,7 +195,7 @@ \fi \fi } -\newcommand{\Centering}{% +\DeclareRobustCommand{\Centering}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -208,7 +208,7 @@ \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } -\newcommand{\RaggedLeft}{% +\DeclareRobustCommand{\RaggedLeft}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -221,7 +221,7 @@ \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } -\newcommand{\RaggedRight}{% +\DeclareRobustCommand{\RaggedRight}{% \ifx\\\@raggedtwoe@savedcr \let\\\@centercr \fi @@ -234,7 +234,7 @@ \@raggedtwoe@spaceskiptrue \@raggedtwoe@everyselectfont } -\newcommand{\justifying}{% +\DeclareRobustCommand{\justifying}{% \let\\\@raggedtwoe@savedcr \let\@gnewline\@raggedtwoe@saved@gnewline \leftskip\z@ |