diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf index 417e258f2a8..e9f00844289 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf @@ -44,8 +44,11 @@ }{\xpg@warning{Unknown Ukrainian numerals value `#1'}} +% Define some math functions +\define@boolkey{ukrainian}[ukrainian@]{mathfunctions}[true]{} + % Register default options -\xpg@initialize@gloss@options{ukrainian}{numerals=arabic} +\xpg@initialize@gloss@options{ukrainian}{numerals=arabic,mathfunctions=true} \define@boolkey{ukrainian}[ukrainian@]{babelshorthands}[true]{} @@ -253,25 +256,28 @@ } %%% stuff from Babel -% make it optional? -\def\sh{\mathop{\operator@font sh}\nolimits} -\def\ch{\mathop{\operator@font ch}\nolimits} -\def\tg{\mathop{\operator@font tg}\nolimits} -\def\arctg{\mathop{\operator@font arctg}\nolimits} -\def\arcctg{\mathop{\operator@font arcctg}\nolimits} -\def\ctg{\mathop{\operator@font ctg}\nolimits} -\def\cth{\mathop{\operator@font cth}\nolimits} -\def\cosec{\mathop{\operator@font cosec}\nolimits} -\def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits} -\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits} -\def\nsd{\mathop{\mathrm{н.с.д.}}\nolimits} -\def\nsk{\mathop{\mathrm{н.с.к.}}\nolimits} -\def\NSD{\mathop{\mathrm{НСД}}\nolimits} -\def\NSK{\mathop{\mathrm{НСК}}\nolimits} -\def\nod{\mathop{\mathrm{н.о.д.}}\nolimits} -\def\nok{\mathop{\mathrm{н.о.к.}}\nolimits} -\def\NOD{\mathop{\mathrm{НОД}}\nolimits} -\def\NOK{\mathop{\mathrm{НОК}}\nolimits} -\def\Proj{\mathop{\mathrm{пр}}\nolimits} +\AtBeginDocument{% +\ifukrainian@mathfunctions% + \def\sh{\mathop{\operator@font sh}\nolimits} + \def\ch{\mathop{\operator@font ch}\nolimits} + \def\tg{\mathop{\operator@font tg}\nolimits} + \def\arctg{\mathop{\operator@font arctg}\nolimits} + \def\arcctg{\mathop{\operator@font arcctg}\nolimits} + \def\ctg{\mathop{\operator@font ctg}\nolimits} + \def\cth{\mathop{\operator@font cth}\nolimits} + \def\cosec{\mathop{\operator@font cosec}\nolimits} + \def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits} + \def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits} + \def\nsd{\mathop{\mathrm{н.с.д.}}\nolimits} + \def\nsk{\mathop{\mathrm{н.с.к.}}\nolimits} + \def\NSD{\mathop{\mathrm{НСД}}\nolimits} + \def\NSK{\mathop{\mathrm{НСК}}\nolimits} + \def\nod{\mathop{\mathrm{н.о.д.}}\nolimits} + \def\nok{\mathop{\mathrm{н.о.к.}}\nolimits} + \def\NOD{\mathop{\mathrm{НОД}}\nolimits} + \def\NOK{\mathop{\mathrm{НОК}}\nolimits} + \def\Proj{\mathop{\mathrm{пр}}\nolimits} +\fi +} \endinput |