[latex3-commits] [git/LaTeX3-latex3-latex2e] nfssalias: provide alias size function (mainly for autinst type of .fd files (0cfb60e1)
Frank Mittelbach
frank.mittelbach at latex-project.org
Fri Oct 11 12:41:09 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : nfssalias
Link : https://github.com/latex3/latex2e/commit/0cfb60e1e349e72932daff7f077be9b71fbd95e3
>---------------------------------------------------------------
commit 0cfb60e1e349e72932daff7f077be9b71fbd95e3
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Oct 11 12:41:09 2019 +0200
provide alias size function (mainly for autinst type of .fd files
>---------------------------------------------------------------
0cfb60e1e349e72932daff7f077be9b71fbd95e3
base/changes.txt | 5 +++++
base/doc/ltnews31.tex | 3 +++
base/latexrelease.ins | 2 +-
base/ltfsstrc.dtx | 40 +++++++++++++++++++++++++++++++++++++---
4 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index edeba129..61e93e4e 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2019-10-11 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * ltfsstrc.dtx (subsection{Sizefunctions}):
+ Added 'alias' size function (mainly for autoinst fonts)
+
2019-10-07 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* lttab.dtx (subsection{array and tabular environments}):
diff --git a/base/doc/ltnews31.tex b/base/doc/ltnews31.tex
index 2a8eeb18..636afe2f 100644
--- a/base/doc/ltnews31.tex
+++ b/base/doc/ltnews31.tex
@@ -150,6 +150,9 @@ This document is under construction \ldots
\section{Other changes to the \LaTeX{} kernel}
+\emph{added \texttt{alias} size function}
+
+
\section{Changes to packages in the \pkg{tools} category}
diff --git a/base/latexrelease.ins b/base/latexrelease.ins
index 9358692a..9278e254 100644
--- a/base/latexrelease.ins
+++ b/base/latexrelease.ins
@@ -116,7 +116,7 @@ extension .ins) which are part of the distribution.
\from{fontdef.dtx} {latexrelease}% (covering fontmath and fonttext)
\from{ltfntcmd.dtx} {latexrelease}% empty
\from{ltfssbas.dtx} {latexrelease}%
- \from{ltfsstrc.dtx} {latexrelease}% empty
+ \from{ltfsstrc.dtx} {latexrelease}%
\from{ltfsscmp.dtx} {latexrelease}%
\from{ltpageno.dtx} {latexrelease}% empty
\from{ltxref.dtx} {latexrelease}% empty
diff --git a/base/ltfsstrc.dtx b/base/ltfsstrc.dtx
index 05dafa20..376faa70 100644
--- a/base/ltfsstrc.dtx
+++ b/base/ltfsstrc.dtx
@@ -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
@@ -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 at sfcnt\@font at warning}
\DeclareSizeFunction{ssub}{\sub at sfcnt\@font at info}
@@ -1787,6 +1787,40 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\@font at 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 at aliasinfo}{alias size function}%
+\DeclareSizeFunction{alias}{\sub at sfcnt\@font at aliasinfo}
+\def\@font at aliasinfo#1{%
+ \@font at info{Font\space shape\space `\curr at fontshape'\space
+ aliased\space to\MessageBreak `\mandatory at arg'}%
+}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease> {\@font at aliasinfo}{alias size function}%
+%<latexrelease>\let\s at fct@alias\@undefined
+%<latexrelease>\let\@font at aliasinfo\@undefined
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+% \end{macrocode}
+% \end{macro}
%
% \begin{macro}{\s at fct@subf}
% The |subf| size function allows substitution of another font. The
More information about the latex3-commits
mailing list