texlive[66153] branches/branch2022.final/Master/texmf-dist: ragged2e
commits+karl at tug.org
commits+karl at tug.org
Sat Feb 25 23:05:41 CET 2023
Revision: 66153
http://tug.org/svn/texlive?view=revision&revision=66153
Author: karl
Date: 2023-02-25 23:05:41 +0100 (Sat, 25 Feb 2023)
Log Message:
-----------
ragged2e (25feb23) (branch)
Modified Paths:
--------------
branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/README.md
branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
branches/branch2022.final/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx
branches/branch2022.final/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/README.md
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/README.md 2023-02-25 22:05:23 UTC (rev 66152)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/README.md 2023-02-25 22:05:41 UTC (rev 66153)
@@ -2,7 +2,7 @@
Copyright (C) Martin Schröder, 1996–2019, Marei Peischl (peiTeX) <marei at peitex.de>, 2021–2023
- ragged2e 2023/02/22 v3.3
+ ragged2e 2023/02/25 v3.4
***************************************************************************
@@ -41,5 +41,6 @@
* 3.1 Robustify the user macros (Thanks for Markus Kohm for the hint)
* 3.2 Fix bug adding a parskip when using `\newline` within the raggged2e alignments (Thanks to Maurice Hansen for reporting)
* 3.3 Only modify the alignment when one of the ragged2e commands is active
+ * 3.4 Bugfix: Remove spurious spaces (Thanks to Enrico Gregorio for reporting)
Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/ragged2e/ragged2e.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2022.final/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx
===================================================================
--- branches/branch2022.final/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx 2023-02-25 22:05:23 UTC (rev 66152)
+++ branches/branch2022.final/Master/texmf-dist/source/latex/ragged2e/ragged2e.dtx 2023-02-25 22:05:41 UTC (rev 66153)
@@ -2,7 +2,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright (C) Martin Schröder, 1996–2019
-% Marei Peischl (peiTeX) <marei at peitex.de>, 2021–2023
+% Marei Peischl (peiTeX) <marei at peitex.de>, 2021–2023
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -31,7 +31,7 @@
% \iffalse
\NeedsTeXFormat{LaTeX2e}[2021/06/01]
%<package>\ProvidesPackage{ragged2e}
-%<package> [2023/02/22 v3.3 ragged2e Package]
+%<package> [2023/02/25 v3.4 ragged2e Package]
%
%<*driver>
\documentclass[a4paper]{ltxdoc}
@@ -43,7 +43,7 @@
\usepackage{tabularx}
\makeatletter
\IfFileExists{gitHeadInfo.gin}{
- \newcommand*{\GI at githeadinfo@file}{gitHeadInfo.gin}
+ \newcommand*{\GI at githeadinfo@file}{gitHeadInfo.gin}
}{}
\makeatother
\usepackage{gitinfo2}
@@ -218,13 +218,13 @@
% \begin{macrocode}
%<*latex>
\DeclareRobustCommand
- \raggedright{%
- \let\\\@centercr
- \@rightskip\@flushglue
- \rightskip\@rightskip
- \finalhyphendemerits=\z@
- \leftskip\z at skip
- \parindent\z@}
+ \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}
@@ -558,7 +558,7 @@
% \item[\normalfont\package{everysel}\,\cite{everysel}](only if format older than 2021/01/05)
% It has been used to distinguish between monospaced and proportional
% fonts as long as the LaTeX kernel did not provide the functionality with lthooks \cite{lthooks-doc}.
-% Formats newer than 2021/01/05 do no longer depend on everysel.
+% Formats newer than 2021/01/05 do no longer depend on everysel.
% \item[\normalfont\package{footmisc}\,\cite{footmisc}]
% It is used by the \option{footnotes} and the
% \option{document} options; at least version~5.00 (2002/08/28)
@@ -1124,8 +1124,8 @@
% \begin{macrocode}
\newif\if at raggedtwoe@localhook
\IfFormatAtLeastTF{2021/01/05}
- {\@raggedtwoe at localhooktrue}
- {\EverySelectfont{\@raggedtwoe at everyselectfont}}
+ {\@raggedtwoe at localhooktrue}
+ {\EverySelectfont{\@raggedtwoe at everyselectfont}}
% \end{macrocode}
% We define a command to only add the local hook with the ragged2e commands.
% This will keep the impact local.
@@ -1165,8 +1165,8 @@
% the content structure for tagging.
% \begin{macrocode}
\def\@raggedtwoe at centercrNoindent{%
- \AddToHookNext{para/begin}{\OmitIndent}%
- \@centercr%
+ \AddToHookNext{para/begin}{\OmitIndent}%
+ \@centercr%
}
% \end{macrocode}
% \end{macro}
@@ -1192,7 +1192,7 @@
\reserved at e {\reserved at f #1}\nobreak \hskip\z@ \break
\else
\reserved at e {\reserved at f #1}%
- \@raggedtwoe at centercrNoindent
+ \@raggedtwoe at centercrNoindent
\fi
\fi
}
@@ -1214,14 +1214,16 @@
% \end{Quote}
% Finally we signal the code inserted into \cs{selectfont} that
% we are active and call that code directly.
+% \changes{v3.4}{2023/02/25}{Bugfix: remove spurious space}
+% \changes{v3.3}{2023/02/22}{Apply hook only when a ragged2e command is active}
% \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}
\DeclareRobustCommand{\Centering}{%
- \if at raggedtwoe@localhook
- \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
- \fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -1240,14 +1242,16 @@
% \begin{macro}{\RaggedLeft}
% \cs{RaggedLeft} is like \cs{Centering}; it only uses other
% parameters.
+% \changes{v3.4}{2023/02/25}{Bugfix: remove spurious space}
+% \changes{v3.3}{2023/02/22}{Apply hook only when a ragged2e command is active.}
% \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}
\DeclareRobustCommand{\RaggedLeft}{%
- \if at raggedtwoe@localhook
- \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
- \fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -1266,14 +1270,16 @@
% \begin{macro}{\RaggedRight}
% \cs{RaggedRight} is like \cs{Centering}; it only uses other
% parameters.
+% \changes{v3.4}{2023/02/25}{Bugfix: remove spurious space}
+% \changes{v3.3}{2023/02/22}{Apply hook only when a ragged2e command is active.}
% \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}
\DeclareRobustCommand{\RaggedRight}{%
- \if at raggedtwoe@localhook
- \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
- \fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -1292,13 +1298,15 @@
% \begin{macro}{\justifying}
% \cs{justifying} switches back to the defaults used by \LaTeX{} for
% typesetting justyfied text.
+% \changes{v3.4}{2023/02/25}{Bugfix: remove spurious space}
+% \changes{v3.3}{2023/02/22}{Apply hook only when a ragged2e command is active.}
% \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}
\DeclareRobustCommand{\justifying}{%
- \if at raggedtwoe@localhook
- \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
- \fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\let\\\@raggedtwoe at savedcr
\let\@gnewline\@raggedtwoe at saved@gnewline
\leftskip\z@
Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty 2023-02-25 22:05:23 UTC (rev 66152)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/ragged2e/ragged2e.sty 2023-02-25 22:05:41 UTC (rev 66153)
@@ -28,7 +28,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[2021/06/01]
\ProvidesPackage{ragged2e}
- [2023/02/22 v3.3 ragged2e Package]
+ [2023/02/25 v3.4 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
@@ -180,14 +180,14 @@
}
\newif\if at raggedtwoe@localhook
\IfFormatAtLeastTF{2021/01/05}
-{\@raggedtwoe at localhooktrue}
-{\EverySelectfont{\@raggedtwoe at everyselectfont}}
+ {\@raggedtwoe at localhooktrue}
+ {\EverySelectfont{\@raggedtwoe at everyselectfont}}
\newcommand*{\@raggedtwoe at addlocalhook}{}
\let\@raggedtwoe at savedcr\\
\let\@raggedtwoe at saved@gnewline\@gnewline
\def\@raggedtwoe at centercrNoindent{%
-\AddToHookNext{para/begin}{\OmitIndent}%
-\@centercr%
+ \AddToHookNext{para/begin}{\OmitIndent}%
+ \@centercr%
}
\newcommand*{\@raggedtwoe at gnewline}[1]{%
\ifvmode
@@ -198,14 +198,14 @@
\reserved at e {\reserved at f #1}\nobreak \hskip\z@ \break
\else
\reserved at e {\reserved at f #1}%
-\@raggedtwoe at centercrNoindent
+ \@raggedtwoe at centercrNoindent
\fi
\fi
}
\DeclareRobustCommand{\Centering}{%
-\if at raggedtwoe@localhook
-\AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
-\fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -219,9 +219,9 @@
\@raggedtwoe at everyselectfont
}
\DeclareRobustCommand{\RaggedLeft}{%
-\if at raggedtwoe@localhook
-\AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
-\fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -235,9 +235,9 @@
\@raggedtwoe at everyselectfont
}
\DeclareRobustCommand{\RaggedRight}{%
-\if at raggedtwoe@localhook
-\AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
-\fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\ifx\\\@raggedtwoe at savedcr
\let\\\@raggedtwoe at centercrNoindent
\fi
@@ -251,9 +251,9 @@
\@raggedtwoe at everyselectfont
}
\DeclareRobustCommand{\justifying}{%
-\if at raggedtwoe@localhook
-\AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}
-\fi
+ \if at raggedtwoe@localhook
+ \AddToHook{selectfont}[ragged2e]{\@raggedtwoe at everyselectfont}%
+ \fi
\let\\\@raggedtwoe at savedcr
\let\@gnewline\@raggedtwoe at saved@gnewline
\leftskip\z@
More information about the tex-live-commits
mailing list.