summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-23 22:23:08 +0000
committerKarl Berry <karl@freefriends.org>2020-03-23 22:23:08 +0000
commitaa5fef691c2f254a88de3a4159940c369455448f (patch)
tree02a882d31f6b25aac39302dd3144c80eb3fa768c /Master/texmf-dist/source/generic
parente97958c8865ac786e7309d0d8752d6903743efe1 (diff)
babel-greek (23mar20)
git-svn-id: svn://tug.org/texlive/trunk@54507 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r--Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
index 38d9a23d508..09490979613 100644
--- a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
+++ b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
@@ -26,7 +26,7 @@
% and covered by LPPL is defined by the unpacking script (babel-greek.ins)
% which is part of the package.
% \fi
-% \CheckSum{1543}
+% \CheckSum{1550}
%
% \iffalse
% Tell the \LaTeX\ system who we are and write an entry on the
@@ -37,7 +37,7 @@
%<code>\ProvidesLanguage{greek}
%\fi
%\ProvidesFile{babel-greek.dtx}
- [2020/02/27 v1.9i Greek support for the babel system]
+ [2020/03/17 v1.9j Greek support for the babel system]
%\iffalse
%% File `babel-greek.dtx'
%% Greek language Definition File
@@ -127,6 +127,7 @@
% to textalpha.}
% \changes{babel-greek-1.9i}{2020/02/28}{Update test for Unicode fonts.
% Fix accent in seename and alsoname.}
+% \changes{babel-greek-1.9j}{2020/03/17}{Fix ampersand in math.}
%
% \title{Babel support for the Greek language}
% \author{Apostolos Syropoulos, Günter Milde}
@@ -527,6 +528,8 @@
% We redefine a few commands in the LGR encoding to work around problems
% because LGR is no \emph{standard text encoding} but has Greek letters in
% the places of Latin ones.
+% The ampersand must work in text and math mode. We provide the text
+% command |\textampersand| and re-define |\&| to use it in text mode.
% \changes{greekfdd-2.2c}{1999/04/05}{Fixed typos, \cs{textrademark}
% misses a `t', \cs{copyright} should be \cs{textcopyright}}
% \changes{greekfdd-2.2d}{1999/04/25}{removed redefinition of \cs{\&}}
@@ -536,14 +539,16 @@
% \changes{greek-1.5}{2013/05/27}{enable use of "textcomp" characters
% for "textcopyright" and "textregistered" macros}
% \changes{greek-1.5}{2013/06/15}{\textbackslash & made TextCommand}
+% \changes{babel-greek-1.9j}{2020/03/17}{Fix ampersand in math.}
%
% \begin{macrocode}
\ProvideTextCommand{\textcopyright}{LGR}{\ensureascii{\textcopyright}}
\ProvideTextCommand{\textregistered}{LGR}{\ensureascii{\textregistered}}
\ProvideTextCommand{\texttrademark}{LGR}{\ensureascii{\texttrademark}}
\let\ltx@amp\&
- \DeclareTextCommandDefault{\&}{\ltx@amp}
- \DeclareTextCommand{\&}{LGR}{\ensureascii{\ltx@amp}}
+ \ProvideTextCommandDefault{\textampersand}{\ltx@amp}
+ \ProvideTextCommand{\textampersand}{LGR}{\ensureascii{\ltx@amp}}
+ \DeclareRobustCommand{\&}{\ifmmode\ltx@amp\else\textampersand\fi}
\ProvideTextCommand{\SS}{LGR}{\ensureascii{\SS}}
% \end{macrocode}
%