texlive[61313] Master/texmf-dist: ragged2e (15dec21)

commits+karl at tug.org commits+karl at tug.org
Wed Dec 15 22:31:29 CET 2021


Revision: 61313
          http://tug.org/svn/texlive?view=revision&revision=61313
Author:   karl
Date:     2021-12-15 22:31:28 +0100 (Wed, 15 Dec 2021)
Log Message:
-----------
ragged2e (15dec21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ragged2e/README.md
    trunk/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
    trunk/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx
    trunk/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty

Modified: trunk/Master/texmf-dist/doc/latex/ragged2e/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ragged2e/README.md	2021-12-15 21:31:10 UTC (rev 61312)
+++ trunk/Master/texmf-dist/doc/latex/ragged2e/README.md	2021-12-15 21:31:28 UTC (rev 61313)
@@ -2,7 +2,7 @@
 
 Copyright (C) Martin Schröder, 1996–2019, Marei Peischl (peiTeX)  <marei at peitex.de>, 2021
 
- ragged2e 2021/02/05 v3.0
+ ragged2e 2021/12/15 v3.1
 
 ***************************************************************************
 
@@ -38,5 +38,6 @@
 
 ## Version History
    * 3.0 Move from everysel package to lthooks
+   * 3.1 Robustify the user macros (Thanks for Markus Kohm for the hint)
 
 

Modified: trunk/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx	2021-12-15 21:31:10 UTC (rev 61312)
+++ trunk/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx	2021-12-15 21:31:28 UTC (rev 61313)
@@ -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 at 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 at everyselectfont}
 %                              and switch \cs{@gnewline}}
 %    \begin{macrocode}
-\newcommand{\Centering}{%
+\DeclareRobustCommand{\Centering}{%
    \ifx\\\@raggedtwoe at 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 at everyselectfont}
 %                              and switch \cs{@gnewline}}
 %    \begin{macrocode}
-\newcommand{\RaggedLeft}{%
+\DeclareRobustCommand{\RaggedLeft}{%
    \ifx\\\@raggedtwoe at 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 at everyselectfont}
 %                              and switch \cs{@gnewline}}
 %    \begin{macrocode}
-\newcommand{\RaggedRight}{%
+\DeclareRobustCommand{\RaggedRight}{%
    \ifx\\\@raggedtwoe at 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 at savedcr
    \let\@gnewline\@raggedtwoe at saved@gnewline
    \leftskip\z@

Modified: trunk/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty	2021-12-15 21:31:10 UTC (rev 61312)
+++ trunk/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty	2021-12-15 21:31:28 UTC (rev 61313)
@@ -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 at savedcr
       \let\\\@centercr
    \fi
@@ -208,7 +208,7 @@
    \@raggedtwoe at spaceskiptrue
    \@raggedtwoe at everyselectfont
    }
-\newcommand{\RaggedLeft}{%
+\DeclareRobustCommand{\RaggedLeft}{%
    \ifx\\\@raggedtwoe at savedcr
       \let\\\@centercr
    \fi
@@ -221,7 +221,7 @@
    \@raggedtwoe at spaceskiptrue
    \@raggedtwoe at everyselectfont
    }
-\newcommand{\RaggedRight}{%
+\DeclareRobustCommand{\RaggedRight}{%
    \ifx\\\@raggedtwoe at savedcr
       \let\\\@centercr
    \fi
@@ -234,7 +234,7 @@
    \@raggedtwoe at spaceskiptrue
    \@raggedtwoe at everyselectfont
    }
-\newcommand{\justifying}{%
+\DeclareRobustCommand{\justifying}{%
    \let\\\@raggedtwoe at savedcr
    \let\@gnewline\@raggedtwoe at saved@gnewline
    \leftskip\z@



More information about the tex-live-commits mailing list.