[latex3-commits] [git/LaTeX3-latex3-latex2e] issue-124: \symbol: move check outside definition and add change notes (e643921c)

Will Robertson wspr81 at gmail.com
Fri Feb 7 00:17:45 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : issue-124
Link       : https://github.com/latex3/latex2e/commit/e643921cf637128c228b12f581e116204ace9735

>---------------------------------------------------------------

commit e643921cf637128c228b12f581e116204ace9735
Author: Will Robertson <wspr81 at gmail.com>
Date:   Fri Feb 7 09:47:45 2020 +1030

    \symbol: move check outside definition and add change notes


>---------------------------------------------------------------

e643921cf637128c228b12f581e116204ace9735
 base/changes.txt  | 11 +++++++++++
 base/ltfssini.dtx | 32 +++++++++++++++++---------------
 2 files changed, 28 insertions(+), 15 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index cb0dab51..703110b7 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -5,6 +5,17 @@ are not part of the distribution.
 =======================================================================
 
 #########################
+# 2020-02-07 PL X Release
+#########################
+
+2020-02-07  Will Robertson  <will.robertson at latex-project.org>
+
+	* ltfssini.dtx:
+	XeTeX-specific definition for \symbol to avoid bug in maths mode (gh/124)
+
+
+
+#########################
 # 2020-02-02 PL 1 Release
 #########################
 
diff --git a/base/ltfssini.dtx b/base/ltfssini.dtx
index 2d938e46..4341f4bc 100644
--- a/base/ltfssini.dtx
+++ b/base/ltfssini.dtx
@@ -36,7 +36,7 @@
 %
 %
 \ProvidesFile{ltfssini.dtx}
-             [2020/02/05 v3.1g LaTeX Kernel (NFSS Initialisation)]
+             [2020/02/07 v3.1h LaTeX Kernel (NFSS Initialisation)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -1138,32 +1138,34 @@
 \def\math at version{normal}
 %    \end{macrocode}
 %
-% \subsection{Miscellaneous}
+% \subsection{Legacy}
 %
-% \begin{macro}{\newfont}
-% \changes{v1.2g}{1991/03/30}{Definition added.}
-% \changes{v2.2e}{1995/05/23}{Font assignment made local again.}
-% \begin{macro}{\symbol}
-% \changes{v1.2g}{1991/03/30}{Definition added.}
 %    We start by defining a few macros that are part of
 %    standard \LaTeX's user interface. The use of these functions is
 %    not encouraged, but they will allow to process older documents
 %    without changes to the source.
+%
+% \begin{macro}{\newfont}
+% \changes{v1.2g}{1991/03/30}{Definition added.}
+% \changes{v2.2e}{1995/05/23}{Font assignment made local again.}
 %    \begin{macrocode}
 \def\newfont#1#2{\@ifdefinable#1{\font#1=#2\relax}}
 %    \end{macrocode}
+% \end{macro}
 %
+% \begin{macro}{\symbol}
+% \changes{v1.2g}{1991/03/30}{Definition added.}
+% \changes{v3.1h}{2020/02/07}{XeTeX-specific version to avoid bug in maths mode.}
 %    \begin{macrocode}
-\DeclareRobustCommand\symbol[1]{%
-  \ifdefined\XeTeXversion
-    \Ucharcat#1 12\relax
-  \else
-    \char#1\relax
-  \fi
-}
+\ifdefined\XeTeXversion
+  \DeclareRobustCommand\symbol[1]{\Ucharcat#1 12\relax}% alternate def'n needed to address Github issue #0124
+\else
+  \DeclareRobustCommand\symbol[1]{\char#1\relax}
+\fi
 %    \end{macrocode}
 % \end{macro}
-% \end{macro}
+%
+% \subsection{Miscellaneous}
 %
 % \begin{macro}{\@setfontsize}
 % \begin{macro}{\@setsize}





More information about the latex3-commits mailing list.