diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-16 03:01:13 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-16 03:01:13 +0000 |
commit | 16b22a983bc0f05cbbb201a6e0f5cbbfc3c8fffb (patch) | |
tree | 09f27480427360daa44bee043154b5d9580efa33 /macros/latex/contrib/ragged2e | |
parent | 0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (diff) |
CTAN sync 202112160301
Diffstat (limited to 'macros/latex/contrib/ragged2e')
-rw-r--r-- | macros/latex/contrib/ragged2e/README.md | 3 | ||||
-rw-r--r-- | macros/latex/contrib/ragged2e/ragged2e.dtx | 29 | ||||
-rw-r--r-- | macros/latex/contrib/ragged2e/ragged2e.pdf | bin | 666241 -> 695933 bytes |
3 files changed, 20 insertions, 12 deletions
diff --git a/macros/latex/contrib/ragged2e/README.md b/macros/latex/contrib/ragged2e/README.md index 3a7a51ddf8..03999a85a4 100644 --- a/macros/latex/contrib/ragged2e/README.md +++ b/macros/latex/contrib/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/macros/latex/contrib/ragged2e/ragged2e.dtx b/macros/latex/contrib/ragged2e/ragged2e.dtx index 5c3408cf12..397b810b40 100644 --- a/macros/latex/contrib/ragged2e/ragged2e.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/ragged2e/ragged2e.pdf b/macros/latex/contrib/ragged2e/ragged2e.pdf Binary files differindex 0a593dada1..f9999f907d 100644 --- a/macros/latex/contrib/ragged2e/ragged2e.pdf +++ b/macros/latex/contrib/ragged2e/ragged2e.pdf |