From ecb979519f18e9a0c7d6b3a496e5af891d662d63 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 8 Oct 2020 21:20:21 +0000 Subject: babel-russian (8oct20) git-svn-id: svn://tug.org/texlive/trunk@56597 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/generic/babel-russian/russianb.ldf | 48 ++++++++++++++-------- 1 file changed, 30 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist/tex/generic') diff --git a/Master/texmf-dist/tex/generic/babel-russian/russianb.ldf b/Master/texmf-dist/tex/generic/babel-russian/russianb.ldf index 8c64872334a..1a36dc2d248 100644 --- a/Master/texmf-dist/tex/generic/babel-russian/russianb.ldf +++ b/Master/texmf-dist/tex/generic/babel-russian/russianb.ldf @@ -12,9 +12,9 @@ %% See http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} - +\ProvidesFile{russianb.ldf}[2020/09/09 1.3k Russian support for the Babel system] \ProvidesLanguage{russian} - [2017/08/12 1.3j Russian support for the Babel system] + [2020/09/09 1.3k Russian support for the Babel system] \LdfInit{russian}{captionsrussian} \ifdefined\if@uni@ode \PackageError{babel}{if@uni@ode already defined.\MessageBreak @@ -75,7 +75,7 @@ \lowercase\expandafter{\expandafter\input\cyrillicencoding enc.def\relax}% \AtBeginDocument{\@setcyrillicencoding} \fi -\DeclareRobustCommand{\Russian}{\selectlanguage{\russian}} +\DeclareRobustCommand{\Russian}{\selectlanguage{russian}} \DeclareRobustCommand{\cyrillictext}{% \fontencoding\cyrillicencoding\selectfont \let\encodingdefault\cyrillicencoding @@ -541,20 +541,32 @@ } \@onlypreamble\captionsrussian@ancient \@onlypreamble\daterussian@ancient -\def\sh{\mathop{\operator@font sh}\nolimits} -\def\ch{\mathop{\operator@font ch}\nolimits} -\def\tg{\mathop{\operator@font tg}\nolimits} -\def\ctg{\mathop{\operator@font ctg}\nolimits} -\def\arctg{\mathop{\operator@font arctg}\nolimits} -\def\arcctg{\mathop{\operator@font arcctg}\nolimits} -\addto\extrasrussian{% - \babel@save{\th}% - \let\ltx@th\th - \def\th{\textormath{\ltx@th}% - {\mathop{\operator@font th}\nolimits}}% - } -\def\cth{\mathop{\operator@font cth}\nolimits} -\def\cosec{\mathop{\operator@font cosec}\nolimits} +\AtBeginDocument{% + \@ifpackageloaded{amsopn} + {% + \DeclareMathOperator{\sh}{sh}%\MakeRobust\sh + \DeclareMathOperator{\ch}{ch}%\MakeRobust\ch + \DeclareMathOperator{\tg}{tg}%\MakeRobust\tg + \DeclareMathOperator{\ctg}{ctg}%\MakeRobust\ctg + \DeclareMathOperator{\arctg}{arctg}%\MakeRobust\arctg% + \DeclareMathOperator{\arcctg}{arcctg}%\MakeRobust\arcctg% + \DeclareMathOperator{\cth}{cth}%\MakeRobust\cth% + \DeclareMathOperator{\cosec}{cosec}%\MakeRobust\cosec% + \DeclareMathOperator{\math@th}{th}% + }{% + \DeclareRobustCommand\sh{\mathop{\operator@font sh}\nolimits}%\MakeRobust\sh% + \DeclareRobustCommand\ch{\mathop{\operator@font ch}\nolimits}%\MakeRobust\ch% + \DeclareRobustCommand\tg{\mathop{\operator@font tg}\nolimits}%\MakeRobust\tg% + \DeclareRobustCommand\ctg{\mathop{\operator@font ctg}\nolimits}%\MakeRobust\ctg% + \DeclareRobustCommand{\arctg}{\mathop{\operator@font arctg}\nolimits}% + \DeclareRobustCommand\arcctg{\mathop{\operator@font arcctg}\nolimits}%\MakeRobust\arcctg% + \DeclareRobustCommand\cth{\mathop{\operator@font cth}\nolimits}%\MakeRobust\cth% + \DeclareRobustCommand\cosec{\mathop{\operator@font cosec}\nolimits}%\MakeRobust\cosec% + \DeclareRobustCommand{\math@th}{\mathop{\operator@font arctg}\nolimits}% + }% + \let\text@th\th + \DeclareRobustCommand{\th}{\TextOrMath{\text@th}{\math@th}} +} \def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits} \def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits} \if@uni@ode @@ -658,7 +670,7 @@ %% \cyrya=я %% \cyrsftsn=ь %% ---------------------------------------------------------------- -%% Copyright 2011-2017 Igor A. Kotelnikov. +%% Copyright 2011-2020 Igor A. Kotelnikov. %% Copyright 1995-2008 Olga Lapko. %% Copyright 1989-2012 Johannes L. Braams. %% -- cgit v1.2.3