[latex3-commits] [git/LaTeX3-latex3-latex2e] master: small update to nfsssfont.tex (providing a default action) (5ee3010)
Frank Mittelbach
frank.mittelbach at latex-project.org
Wed Mar 6 23:26:46 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/5ee30109e7bbbbdbcaf97eeb703f84f33558427a
>---------------------------------------------------------------
commit 5ee30109e7bbbbdbcaf97eeb703f84f33558427a
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Mar 6 23:26:46 2019 +0100
small update to nfsssfont.tex (providing a default action)
>---------------------------------------------------------------
5ee30109e7bbbbdbcaf97eeb703f84f33558427a
base/changes.txt | 6 ++++++
base/nfssfont.dtx | 22 +++++++++++++++++-----
2 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 46b0576..c967669 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,12 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2019-03-06 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * nfssfont.dtx (section{The code}): Added a default action
+ "\table\bye" which is the most common case, so one can now simply
+ hit enter and doesn't need to type something in.
+
2019-02-07 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* utf8ienc.dtx (subsection{The mapping table}):
diff --git a/base/nfssfont.dtx b/base/nfssfont.dtx
index 4171281..00b82a1 100644
--- a/base/nfssfont.dtx
+++ b/base/nfssfont.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993-2016
+% Copyright 1993-2019
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -32,7 +32,7 @@
%
% \iffalse
% Copyright (C) 1994 Donald E. Knuth
-% Copyright (C) 1994-94, 2003, 2006 Frank Mittelbach,
+% Copyright (C) 1994-2019 Frank Mittelbach,
% all rights reserved.
% \fi
%
@@ -242,12 +242,24 @@
\fontsize\size\size
\fi
% \end{macrocode}
-% Finally select the font and assign it to |\currfontname|.
+% Then select the font and assign it to |\currfontname|.
% \begin{macrocode}
\selectfont\edef\currfontname{\fontname\font}%
\fi
\startfont
- \message{Now type a test command (\string\help\space for help):}}
+% \end{macrocode}
+% Finally we ask for some ``action'' and offer |\table\bye| as
+% default---basically I got tired of having to type that in each
+% time.
+% If some other action is given you end with a |*| prompt and have
+% to finish the run with |\bye| yourself eventually.
+% \begin{macrocode}
+ \typein[\action]{Now type a test command or
+ \string\help\space for help [ \string\table\space\string\bye\space]:}%
+ \ifx\action\empty
+ \expandafter\table\expandafter\bye
+ \fi
+}
% \end{macrocode}
%
% \begin{macrocode}
@@ -474,7 +486,7 @@ official r\^ole in fluffy souffl\'es? }
\begin{document}
\let\typeout\oldtypeout
-\ifx\noinit!\else\init\fi
+\ifx\noinit!\else\expandafter\init\fi
%</code>
% \end{macrocode}
%
More information about the latex3-commits
mailing list