[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: added underscore guards (a0f4f752)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Jul 24 15:50:43 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/a0f4f752c599c270609da9768189519136ee1035
>---------------------------------------------------------------
commit a0f4f752c599c270609da9768189519136ee1035
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Jul 24 15:08:12 2019 +0200
added underscore guards
>---------------------------------------------------------------
a0f4f752c599c270609da9768189519136ee1035
required/tools/bm.dtx | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/required/tools/bm.dtx b/required/tools/bm.dtx
index b8be6530..fc857f87 100644
--- a/required/tools/bm.dtx
+++ b/required/tools/bm.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993-2017
+% Copyright 1993-2019
%
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
@@ -22,7 +22,7 @@
% \fi
%
% \iffalse
-%% Copyright 1996 1997 1998 1999 2002 2003 2004 2016 2017
+%% Copyright 1996 1997 1998 1999 2002 2003 2004 2016 2017 2019
%% David Carlisle Frank Mittelbach
%%
%% Development of this package was commissioned by Y&Y Inc.
@@ -36,7 +36,7 @@
%<driver>\ProvidesFile{bm.drv}
% \fi
% \ProvidesFile{bm.dtx}
- [2017/01/16 v1.2c Bold Symbol Support (DPC/FMi)]
+ [2019/07/24 v1.2d Bold Symbol Support (DPC/FMi)]
%
% \iffalse
%<*driver>
@@ -699,6 +699,8 @@
% \changes{v1.0d}{1997/11/15}
% {extra code to support prime lookahead and breqn}
% \changes{v1.0h}{2002/11/22}{Pass math version as third (new) argument}
+% \changes{v1.2d}{2019/07/24}
+% {guard against active underscore}
%
% |\bm| is pretty much |\bmdefine\bm at command| followed by executing
% |\bm at command|. It would in principle be possible to execute the
@@ -713,6 +715,7 @@
% \begin{macrocode}
\begingroup
\catcode`\'=\active
+\catcode`\_=\active
\@firstofone{\endgroup
\def\bm at general#1#2#3#4#5{%
\begingroup
@@ -764,8 +767,13 @@
% |'| is locally active for this definition.
% \changes{v1.0d}{1997/11/15}
% {prime code added}
+% \changes{v1.0d}{1997/11/15}
+% {prime code added}
+% \changes{v1.2d}{2019/07/24}
+% {guard against active underscore}
% \begin{macrocode}
\let\bm at prime\copy
+ \let_\relax
\def'{\bm at prime\prime\relax}%
% \end{macrocode}
% For optional argument commands. This expandable version of
More information about the latex3-commits
mailing list