summaryrefslogtreecommitdiff
path: root/macros/latex/base/ltfsstrc.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-03 03:02:01 +0000
committerNorbert Preining <norbert@preining.info>2020-02-03 03:02:01 +0000
commit34897eebd22c3de968b64f09bb4a371d96cb0b89 (patch)
tree19a50e54fca63f1f6482d6cb4c2fdee676fd97b1 /macros/latex/base/ltfsstrc.dtx
parente05dc0bb38b16bfb9ba35591285e40af0adaadc4 (diff)
CTAN sync 202002030302
Diffstat (limited to 'macros/latex/base/ltfsstrc.dtx')
-rw-r--r--macros/latex/base/ltfsstrc.dtx48
1 files changed, 41 insertions, 7 deletions
diff --git a/macros/latex/base/ltfsstrc.dtx b/macros/latex/base/ltfsstrc.dtx
index 05dafa20c6..e997e5be55 100644
--- a/macros/latex/base/ltfsstrc.dtx
+++ b/macros/latex/base/ltfsstrc.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 1993-2019
+% Copyright (C) 1993-2020
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -34,10 +34,10 @@
%
%<package>\NeedsTeXFormat{LaTeX2e}[1995/05/16]
%<package>\ProvidesPackage{tracefnt}
-%<package> [2015/02/21 v3.0k Standard LaTeX package (font tracing)]
+%<package> [2019/10/11 v3.0l Standard LaTeX package (font tracing)]
% \fi
% \ProvidesFile{ltfsstrc.dtx}
-% [2015/02/21 v3.0k LaTeX Kernel (NFSS tracing)]
+% [2019/10/11 v3.0l LaTeX Kernel (NFSS tracing)]
%
% \iffalse
%<+checkmem>\CHECKMEM
@@ -731,7 +731,7 @@
%
% \subsubsection{Outline of algorithm for math font sizes}
%
-% \TeX{} uses the the math fonts that are current when the end of a
+% \TeX{} uses the math fonts that are current when the end of a
% formula is reached. If we don't want to keep font setups local to
% every formula (which would result in an enormous overhead, we have
% to be careful not to end up with the wrong setup in case formulas
@@ -1130,7 +1130,7 @@
% \execute@size@function{}
%\end{verbatim}
% This means: the default (empty) size function will be executed,
-% with its optional argument argument set to empty and its mandatory
+% with its optional argument set to empty and its mandatory
% argument set to |cmss12| by |\set@simple@size@args|.
% As we discussed earlier, the effect of the default size function
% is to load the given external font (cmss12) at the specified size
@@ -1371,7 +1371,7 @@
% \begin{macrocode}
\def\reserved@f{\extract@rangefontinfo<#3\@nnil}%
% \end{macrocode}
-% Now we check the the size against |\f@size|. If it is not equal
+% Now we check the size against |\f@size|. If it is not equal
% |\f@size| it is no good and we have to recurse.
% \begin{macrocode}
\ifdim \f@size \p@=#1\p@
@@ -1731,7 +1731,7 @@
% the optional argument (if present) is ignored. The font encoding
% scheme cannot be changed. Therefore, the first thing we do is to
% prepend the encoding scheme.
-% \changes{v2.0b}{1992/07/26}{}
+% {documentation fixes}
% \begin{macrocode}
\DeclareSizeFunction{sub}{\sub@sfcnt\@font@warning}
\DeclareSizeFunction{ssub}{\sub@sfcnt\@font@info}
@@ -1787,6 +1787,40 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\@font@aliasinfo}
+% \changes{v3.0l}{2019/10/11}{Added 'alias' size function}
+% Sometimes a substitution is only done to map a long font name to
+% a standard shape or series, e.g.,
+%\begin{verbatim}
+%\DeclareFontShape{T1}{Roboto-LF}{b}{it}{<-> alias * Roboto-LF/bold/it}{}
+%\end{verbatim}
+% Using the \texttt{ssub} function in that case will give a strange
+% (and incorrect) warning. As an alternative we therefore offer the
+% size function \texttt{alias}. It will still add some info into
+% the \texttt{.log} file, but no longer complains that the font
+% shape is not available. It is implemented by grabbing the default
+% warning text and replacing it with a new one.
+% \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2020/02/01}%
+%<latexrelease> {\@font@aliasinfo}{alias size function}%
+\DeclareSizeFunction{alias}{\sub@sfcnt\@font@aliasinfo}
+\def\@font@aliasinfo#1{%
+ \@font@info{Font\space shape\space `\curr@fontshape'\space
+ aliased\space to\MessageBreak `\mandatory@arg'}%
+}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease> {\@font@aliasinfo}{alias size function}%
+%<latexrelease>\let\s@fct@alias\@undefined
+%<latexrelease>\let\@font@aliasinfo\@undefined
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+% \end{macrocode}
+% \end{macro}
%
% \begin{macro}{\s@fct@subf}
% The |subf| size function allows substitution of another font. The