summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kyril.sty
blob: f5c36ede358a0be7b965a43a677b45413492e58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\ProvidesPackage{kyril}[1999/06/17]

\DeclareOption{basefont}
{\typeout{setting up cyrillic base font}
 \renewcommand{\rmdefault}{cyr}
 \renewcommand{\sfdefault}{cyrs}}
\ProcessOptions

% Welche Familie soll fuer Times benutzt werden
\newcommand{\timesdefault}{cmr}

\newcommand{\cyrilacc}
{\renewcommand{\"}[1]{\accent32##1}%
 \renewcommand{\'}[1]{\accent38##1}%
 \renewcommand{\u}[1]{\accent36##1}}

% Kurzfristige Umschaltung
\DeclareTextFontCommand{\texttimes}
  {\fontencoding{T1}\fontfamily{\timesdefault}%
   \selectfont}
\DeclareTextFontCommand{\textcyrillic}
  {\fontencoding{OT1}\fontfamily{cyr}%
   \selectfont\cyrilacc}
% Dauerhafte Umschaltung
\newcommand{\timestext}
  {\usefont{T1}{\timesdefault}{m}{n}}
\newcommand{\cyrillictext}
  {\usefont{OT1}{cyr}{m}{n}\cyrilacc}

% Haertezeichen
\newcommand{\CYRSFTSN}{\symbol{94}}
\newcommand{\cyrsftsn}{\symbol{126}}
\newcommand{\CYRHRDSN}{\symbol{95}}
\newcommand{\cyrhrdsn}{\symbol{127}}

% sonstige Buchstaben
\providecommand{\CYRDJE}{\symbol{6}}
\providecommand{\cyrdje}{\symbol{14}}
\providecommand{\CYRIZH}{\symbol{20}}
\providecommand{\cyrizh}{\symbol{28}}
\providecommand{\CYRYAT}{\symbol{35}}
\providecommand{\cyryat}{\symbol{43}}
\providecommand{\CYRFITA}{\symbol{21}}
\providecommand{\cyrfita}{\symbol{29}}