summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/churchslavonic/cu-kinovar.sty
blob: 445067e4fe92b525a79cb8af1f441abcfd4d8d16 (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
\ProvidesPackage{cu-kinovar}[2016/03/31 v1.0 CU Kinovar]

\RequirePackage{cu-util}
\RequirePackage{etoolbox}
\RequirePackage{xcolor}

%% 'color' option (default)
\def\cu@kinovar{\relax}
\def\cu@kinovar@color{\relax}

\DeclareOption{color}{
  \renewcommand{\cu@kinovar}[1]{\textcolor{kinovar}{#1}}
  \renewcommand{\cu@kinovar@color}{\color{kinovar}}
}
\DeclareOption{gray}{
  \renewcommand{\cu@kinovar}[1]{\textcolor{kinovar-gray}{#1}}
  \renewcommand{\cu@kinovar@color}{\color{kinovar-gray}}
}
\DeclareOption{grey}{
  \renewcommand{\cu@kinovar}[1]{\textcolor{kinovar-gray}{#1}}
  \renewcommand{\cu@kinovar@color}{\color{kinovar-gray}}
}
\DeclareOption{bw}{
  \renewcommand{\cu@kinovar}[1]{#1}
  \renewcommand{\cu@kinovar@color}{\relax}
}

\ExecuteOptions{color}
\ProcessOptions\relax

% define standard colors
\definecolor{kinovar}{rgb}{0.80,0.03,0.01}
\definecolor{kinovar-gray}{rgb}{0.45,0.45,0.45}

% cuKinovar command colors just one letter with all accents if any
\newrobustcmd{\cuKinovar}{\cu@tokenizeletter{\cu@kinovar}}

% cuKinovarColorr switches foregrouond color to Kinovar
\newrobustcmd{\cuKinovarColor}{\cu@kinovar@color}

\endinput