texlive[57489] Master/texmf-dist: everysel (21jan21)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 21 23:16:46 CET 2021


Revision: 57489
          http://tug.org/svn/texlive?view=revision&revision=57489
Author:   karl
Date:     2021-01-21 23:16:46 +0100 (Thu, 21 Jan 2021)
Log Message:
-----------
everysel (21jan21)

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

Modified: trunk/Master/texmf-dist/doc/latex/everysel/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/everysel/README.md	2021-01-21 22:16:30 UTC (rev 57488)
+++ trunk/Master/texmf-dist/doc/latex/everysel/README.md	2021-01-21 22:16:46 UTC (rev 57489)
@@ -2,7 +2,7 @@
 
 Copyright (C) 1995–2011 Martin Schröder, 2021 Marei Peischl (peiTeX)  <marei at peitex.de>
 
-everysel 2021/01/18 v2.0 EverySelectfont Package
+everysel 2021/01/20 v2.1 EverySelectfont Package
 
 The current maintainer of this package is Marei Peischl <marei at peitex.de>
 

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

Modified: trunk/Master/texmf-dist/source/latex/everysel/everysel.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/everysel/everysel.dtx	2021-01-21 22:16:30 UTC (rev 57488)
+++ trunk/Master/texmf-dist/source/latex/everysel/everysel.dtx	2021-01-21 22:16:46 UTC (rev 57489)
@@ -33,7 +33,7 @@
 % \iffalse
 %<package|fallback>\NeedsTeXFormat{LaTeX2e}[1995/12/01]
 %<package>\ProvidesPackage{everysel}
-%<package>         [2021/01/18 v2.0 EverySelectfont Package (MS)]
+%<package>         [2021/01/20 v2.1 EverySelectfont Package (MS)]
 %
 %<*driver>
 \documentclass[a4paper]{ltxdoc}
@@ -72,7 +72,7 @@
 \end{document}
 %</driver>
 % \fi
-% \CheckSum{172}
+% \CheckSum{189}
 %% \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
@@ -236,12 +236,12 @@
 %
 % ^^A -----------------------------
 %
-%  \section{The implementation}
+%  \section{The Implementation}
 %  ^^A
 %  \changes{v2.0}{2021/01/17}{Emulate everysel if the kernel is new enough.}
-%    \begin{macrocode}
+% \iffalse
 %<*package>
-%  \raggedright
+% \fi
 %    \begin{macrocode}
 \providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}
 \IfFormatAtLeastTF{2021/01/05}{}{\input{everysel-2011-10-28.sty}}
@@ -248,13 +248,37 @@
 \IfFormatAtLeastTF{2021/01/05}{}{\endinput}
 \newcommand*{\EverySelectfont}[1]{\AddToHook{selectfont}{#1}}
 \newcommand*{\AtNextSelectfont}[1]{\AddToHookNext{selectfont}{#1}}
+%    \end{macrocode}
+%     \changes{v2.1}{2021-01-20}{Add \textbackslash{}@EverySelectfont at Legacy + conditional warning}
+%     Some packages are using the intial hook of everysel internally (see also  \url{https://github.com/latex3/latex2e/issues/474}).
+%     So Version 2.1 provides these macros to ensure compatibility.
+%     In case someone is changing the inital hook everysel will now show a warning to inform package authors to switch to lthooks instead.
+%     A future release is planned to always trigger this warning.
+%     \begin{macrocode}
+\newcommand*\@EverySelectfont at Legacy{\let\@EverySelectfont at Init\undefined}
+\newcommand*{\@EverySelectfont at Init}{\@EverySelectfont at Legacy}
+\AddToHook{begindocument}{%
+	\expandafter\ifx\@EverySelectfont at Init\@EverySelectfont at Legacy\else
+	\PackageWarningNoLine{everysel}{%
+		Everysel is no longer required.,\MessageBreak
+		The LaTeX kernel is now providing the same functionality itself.,\MessageBreak
+		See the package documentation or lthooks-doc for further information.
+	}%
+	\fi
+	\@EverySelectfont at Init
+}
+%    \end{macrocode}
+% \iffalse
 %</package>
-%    \end{macrocode}
+% \fi 
 % ^^A -----------------------------
 %  \subsection{The original implementation by Martin Schröder}
 %  To provide compatibility for older \LaTeX{} formats we wrap the
 %  original implementation of \package{everysel} version 1.2 into
 %  the fallback package \package{everyshi-2011-01-10}.
+% \iffalse
+%<*fallback>
+% \fi
 %  \subsubsection{Allocations}
 %  ^^A
 %  First we allocate the hooks
@@ -261,7 +285,6 @@
 %  \begin{macro}{\@EverySelectfont at EveryHook}
 %  The code to be executed just after the normal \cs{selectfont}.
 %    \begin{macrocode}
-%<*fallback>
 \newcommand{\@EverySelectfont at EveryHook}{}
 %    \end{macrocode}
 %  \end{macro}
@@ -429,10 +452,9 @@
 %
 %
 % ^^A -----------------------------
-%
-%    \begin{macrocode}
+% \iffalse
 %</fallback>
-%    \end{macrocode}
+% \fi
 %
 %
 % ^^A -----------------------------

Modified: trunk/Master/texmf-dist/source/latex/everysel/everysel.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/everysel/everysel.ins	2021-01-21 22:16:30 UTC (rev 57488)
+++ trunk/Master/texmf-dist/source/latex/everysel/everysel.ins	2021-01-21 22:16:46 UTC (rev 57489)
@@ -2,7 +2,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{everysel.ins}
-      [2020/01/17 v2,0 Installation script for EverySelectfont Package]
+      [2020/01/20 v2.1 Installation script for EverySelectfont Package]
 
 \preamble
 Copyright (C) 1996–2009 Martin Schröder, 2020 Marei Peischl (peiTeX)  <marei at peitex.de>

Modified: trunk/Master/texmf-dist/tex/latex/everysel/everysel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/everysel/everysel.sty	2021-01-21 22:16:30 UTC (rev 57488)
+++ trunk/Master/texmf-dist/tex/latex/everysel/everysel.sty	2021-01-21 22:16:46 UTC (rev 57489)
@@ -27,7 +27,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{everysel}
-         [2021/01/18 v2.0 EverySelectfont Package (MS)]
+         [2021/01/20 v2.1 EverySelectfont Package (MS)]
 %% \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
@@ -48,6 +48,18 @@
 \IfFormatAtLeastTF{2021/01/05}{}{\endinput}
 \newcommand*{\EverySelectfont}[1]{\AddToHook{selectfont}{#1}}
 \newcommand*{\AtNextSelectfont}[1]{\AddToHookNext{selectfont}{#1}}
+\newcommand*\@EverySelectfont at Legacy{\let\@EverySelectfont at Init\undefined}
+\newcommand*{\@EverySelectfont at Init}{\@EverySelectfont at Legacy}
+\AddToHook{begindocument}{%
+\expandafter\ifx\@EverySelectfont at Init\@EverySelectfont at Legacy\else
+\PackageWarningNoLine{everysel}{%
+Everysel is no longer required.,\MessageBreak
+The LaTeX kernel is now providing the same functionality itself.,\MessageBreak
+See the package documentation or lthooks-doc for further information.
+}%
+\fi
+\@EverySelectfont at Init
+}
 \endinput
 %%
 %% End of file `everysel.sty'.



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