diff options
author | Karl Berry <karl@freefriends.org> | 2020-10-15 21:14:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-10-15 21:14:21 +0000 |
commit | 217f45f35c64381f6a10b100024954a07282dc51 (patch) | |
tree | 476a707e6167c34202b29a018a951952d99cbcc2 /Master/texmf-dist/tex/generic | |
parent | 0cc0c2d961f797a7f87a28ceb63cefb6b2990bc2 (diff) |
babel-ukrainian (15oct20)
git-svn-id: svn://tug.org/texlive/trunk@56674 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf | 63 |
1 files changed, 28 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf index ec02f00cd5d..f06adfe2901 100644 --- a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf +++ b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf @@ -12,7 +12,7 @@ %% See http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{ukraineb.ldf}[2020/10/13 1.4d Ukrainian support for the Babel system] +\ProvidesFile{ukraineb.ldf}[2020/10/14 1.4e Ukrainian support for the Babel system] \LdfInit{ukrainian}{captionsukrainian} \ifdefined\if@ukr@uni@ode \PackageError{babel}{if@ukr@uni@ode already defined.\MessageBreak @@ -94,27 +94,6 @@ \DeclareTextCommand{\AA}{OT1}{\r A} \fi \DeclareTextFontCommand{\textcyrillic}{\cyrillictext} -\@ifpackageloaded{inputenc}{% - \if@ukr@uni@ode - \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX} - \fi -}{% - %\def\reserved@a{LWN}% - %\ifx\reserved@a\cyrillicencoding\else - \def\reserved@a{OT2}% - \ifx\reserved@a\cyrillicencoding - \else - \def\reserved@a{EU1}% - \ifx\reserved@a\cyrillicencoding\else - \def\reserved@a{EU2}% - \ifx\reserved@a\cyrillicencoding\else - \PackageWarning{babel}% - {No input encoding specified for Ukrainian language} - \fi - \fi - \fi - %\fi -} \initiate@active@char{"} \begingroup \catcode`\"12 \def\reserved@a{\endgroup @@ -340,20 +319,34 @@ \fi}% \fi } -\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\extrasukrainian{% - \babel@save{\th}% - \let\ltx@th\th - \def\th{\textormath{\ltx@th}% - {\mathop{\operator@font th}\nolimits}}% +\AtBeginDocument{% + \@ifpackagewith{babel}{russian}{\relax}{% + \@ifpackageloaded{amsopn} + {% + \DeclareMathOperator{\sh}{sh}% + \DeclareMathOperator{\ch}{ch}% + \DeclareMathOperator{\tg}{tg}% + \DeclareMathOperator{\ctg}{ctg}% + \DeclareMathOperator{\arctg}{arctg}% + \DeclareMathOperator{\arcctg}{arcctg}% + \DeclareMathOperator{\cth}{cth}%\ + \DeclareMathOperator{\cosec}{cosec}% + \DeclareMathOperator{\math@th}{th}% + }{% + \DeclareRobustCommand\sh{\mathop{\operator@font sh}\nolimits}% + \DeclareRobustCommand\ch{\mathop{\operator@font ch}\nolimits}% + \DeclareRobustCommand\tg{\mathop{\operator@font tg}\nolimits}% + \DeclareRobustCommand\ctg{\mathop{\operator@font ctg}\nolimits}% + \DeclareRobustCommand{\arctg}{\mathop{\operator@font arctg}\nolimits}% + \DeclareRobustCommand\arcctg{\mathop{\operator@font arcctg}\nolimits}% + \DeclareRobustCommand\cth{\mathop{\operator@font cth}\nolimits}%\MakeRobust\cth% + \DeclareRobustCommand\cosec{\mathop{\operator@font cosec}\nolimits}% + \DeclareRobustCommand{\math@th}{\mathop{\operator@font arctg}\nolimits}% + }% + \let\text@th\th% + \DeclareRobustCommand{\th}{\TextOrMath{\text@th}{\math@th}}% + }% } -\def\cth{\mathop{\operator@font cth}\nolimits} -\def\cosec{\mathop{\operator@font cosec}\nolimits} \DeclareRobustCommand{\No}{% \ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi} \ldf@finish{ukrainian} |