summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-07 20:58:18 +0000
committerKarl Berry <karl@freefriends.org>2018-04-07 20:58:18 +0000
commit9e5940c56dfe63fab26f34250ac55e37ece2c560 (patch)
tree7d958a87f96e76f7e99de545fa4c13828224127b /Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
parent861b4de389db24dd94535880edb8de1ea4386cf6 (diff)
polyglossia (7apr18)
git-svn-id: svn://tug.org/texlive/trunk@47358 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf26
1 files changed, 22 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
index 45563f50fc8..d2c86a33406 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
@@ -169,9 +169,18 @@
% The following is based on some ideas from ruscor.sty
\def\russian@capsformat{%
- \def\@seccntformat##1{\csname pre##1\endcsname%
- \csname the##1\endcsname%
- \csname post##1\endcsname}%
+ \ifdef{\KOMAScript}{%
+ \renewcommand{\chapterformat}{\prechapter\thechapter\postchapter}%
+ \renewcommand{\sectionformat}{\presection\thesection\postsection}%
+ \renewcommand{\subsectionformat}{\presubsection\thesubsection\postsubsection}%
+ \renewcommand{\subsubsectionformat}{\presubsubsection\thesubsubsection\postsubsubsection}%
+ \renewcommand{\paragraphformat}{\preparagraph\theparagraph\postparagraph}%
+ \renewcommand{\subparagraphformat}{\presubparagraph\thesubparagraph\postsubparagraph}%
+ }{%
+ \def\@seccntformat##1{\csname pre##1\endcsname%
+ \csname the##1\endcsname%
+ \csname post##1\endcsname}%
+ }%
\def\@aftersepkern{\hspace{0.5em}}%
\def\postchapter{.\@aftersepkern}%
\def\postsection{.\@aftersepkern}%
@@ -214,7 +223,16 @@
}
\def\noextras@russian{%
- \def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel
+ \ifdef{\KOMAScript}{%
+ \renewcommand{\chapterformat}{\thechapter\autodot\enskip}%
+ \renewcommand{\sectionformat}{\thesection\autodot\enskip}%
+ \renewcommand{\subsectionformat}{\thesubsection\autodot\enskip}%
+ \renewcommand{\subsubsectionformat}{\thesubsubsection\autodot\enskip}%
+ \renewcommand{\paragraphformat}{\theparagraph\autodot\enskip}%
+ \renewcommand{\subparagraphformat}{\thesubparagraph\autodot\enskip}%
+ }{%
+ \def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel
+ }%
\ifcyrillic@numerals\norussian@numbers\fi
\norussian@shorthands%
}