summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-21 22:16:46 +0000
committerKarl Berry <karl@freefriends.org>2021-01-21 22:16:46 +0000
commit37a405376e25df41e33859412e8777a6dc888748 (patch)
tree935e0efd11ba0cd1ab32183c56eb5ba227ee9466 /Master/texmf-dist
parent6df2d4d26fd14fff82c6bbc3b171cb08c037f4cd (diff)
everysel (21jan21)
git-svn-id: svn://tug.org/texlive/trunk@57489 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/everysel/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/everysel/everysel.pdfbin442773 -> 441478 bytes
-rw-r--r--Master/texmf-dist/source/latex/everysel/everysel.dtx42
-rw-r--r--Master/texmf-dist/source/latex/everysel/everysel.ins2
-rw-r--r--Master/texmf-dist/tex/latex/everysel/everysel.sty14
5 files changed, 47 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/everysel/README.md b/Master/texmf-dist/doc/latex/everysel/README.md
index 900fac86efa..23b1ccf6d61 100644
--- a/Master/texmf-dist/doc/latex/everysel/README.md
+++ b/Master/texmf-dist/doc/latex/everysel/README.md
@@ -2,7 +2,7 @@
Copyright (C) 1995–2011 Martin Schröder, 2021 Marei Peischl (peiTeX) <marei@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@peitex.de>
diff --git a/Master/texmf-dist/doc/latex/everysel/everysel.pdf b/Master/texmf-dist/doc/latex/everysel/everysel.pdf
index 90dbd90b633..59933af7447 100644
--- a/Master/texmf-dist/doc/latex/everysel/everysel.pdf
+++ b/Master/texmf-dist/doc/latex/everysel/everysel.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/everysel/everysel.dtx b/Master/texmf-dist/source/latex/everysel/everysel.dtx
index 9a4c702f83b..9047ae43cfa 100644
--- a/Master/texmf-dist/source/latex/everysel/everysel.dtx
+++ b/Master/texmf-dist/source/latex/everysel/everysel.dtx
@@ -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,32 +236,55 @@
%
% ^^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@t@r\fmtversion}
\IfFormatAtLeastTF{2021/01/05}{}{\input{everysel-2011-10-28.sty}}
\IfFormatAtLeastTF{2021/01/05}{}{\endinput}
\newcommand*{\EverySelectfont}[1]{\AddToHook{selectfont}{#1}}
\newcommand*{\AtNextSelectfont}[1]{\AddToHookNext{selectfont}{#1}}
-%</package>
% \end{macrocode}
+% \changes{v2.1}{2021-01-20}{Add \textbackslash{}@EverySelectfont@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@Legacy{\let\@EverySelectfont@Init\undefined}
+\newcommand*{\@EverySelectfont@Init}{\@EverySelectfont@Legacy}
+\AddToHook{begindocument}{%
+ \expandafter\ifx\@EverySelectfont@Init\@EverySelectfont@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@Init
+}
+% \end{macrocode}
+% \iffalse
+%</package>
+% \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
% \begin{macro}{\@EverySelectfont@EveryHook}
% The code to be executed just after the normal \cs{selectfont}.
% \begin{macrocode}
-%<*fallback>
\newcommand{\@EverySelectfont@EveryHook}{}
% \end{macrocode}
% \end{macro}
@@ -429,10 +452,9 @@
%
%
% ^^A -----------------------------
-%
-% \begin{macrocode}
+% \iffalse
%</fallback>
-% \end{macrocode}
+% \fi
%
%
% ^^A -----------------------------
diff --git a/Master/texmf-dist/source/latex/everysel/everysel.ins b/Master/texmf-dist/source/latex/everysel/everysel.ins
index 9d53007e290..472e18a802c 100644
--- a/Master/texmf-dist/source/latex/everysel/everysel.ins
+++ b/Master/texmf-dist/source/latex/everysel/everysel.ins
@@ -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@peitex.de>
diff --git a/Master/texmf-dist/tex/latex/everysel/everysel.sty b/Master/texmf-dist/tex/latex/everysel/everysel.sty
index f4c26206ac3..21a64bbce07 100644
--- a/Master/texmf-dist/tex/latex/everysel/everysel.sty
+++ b/Master/texmf-dist/tex/latex/everysel/everysel.sty
@@ -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@Legacy{\let\@EverySelectfont@Init\undefined}
+\newcommand*{\@EverySelectfont@Init}{\@EverySelectfont@Legacy}
+\AddToHook{begindocument}{%
+\expandafter\ifx\@EverySelectfont@Init\@EverySelectfont@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@Init
+}
\endinput
%%
%% End of file `everysel.sty'.