summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/ragged2e/README.md3
-rw-r--r--Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdfbin666241 -> 695933 bytes
-rw-r--r--Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx29
-rw-r--r--Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty10
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
index 0a593dada10..f9999f907dd 100644
--- a/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
+++ b/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
Binary files differ
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@