Debian Codegraph @

texmf-dist/tex/latex/jknapltx/greekctr.sty

raw
1 % greekctr.sty
2 % 15. Juni 1990, revised 3-jan-1996, 1999-02-14
3 % (c) Copyright 1990-1999 J"org Knappen
4 % Licence: GNU licence Version 2
5 % For additional information look after \endinput
6 \NeedsTeXFormat{LaTeX2e}
7 \ProvidesPackage{greekctr}[1999/02/14 Greek Counterstyle v3.0 (jk)]
8 \def\greek#1{\@greek{\@nameuse{c@#1}}}
9 \def\@greek#1{\ifcase#1\or\ensuremath{\alpha}\or\ensuremath{\beta}\or%
10 \ensuremath{\gamma}\or\ensuremath{\delta}\else\@igreek{#1}\fi}
11 \def\@igreek#1{\ifcase#1\or\or\or\or\or\ensuremath{\varepsilon}%
12 \or\ensuremath{\zeta}\or\ensuremath{\eta}\or\ensuremath{\vartheta}%
13 \or\ensuremath{\iota}\or\ensuremath{\kappa}\or\ensuremath{\lambda}\or%
14 \ensuremath{\mu}\or\ensuremath{\nu}\or%
15 \ensuremath{\xi}\or\ensuremath{o}\or\ensuremath{\pi}\or%
16 \ensuremath{\varrho}%
17 \or\ensuremath{\sigma}\or\ensuremath{\tau}\or\ensuremath{\upsilon}\or%
18 \ensuremath{\varphi}\or\ensuremath{\chi}\or%
19 \ensuremath{\psi}\or\ensuremath{\omega}\else%
20 \ensuremath{\omega}\@ctrerr\fi}
21 \def\Greek#1{\@Greek{\@nameuse{c@#1}}}
22 \def\@Greek#1{\ifcase#1\or A\or B\or\ensuremath{\Gamma}\or%
23 \ensuremath{\Delta}\else\@iGreek{#1}\fi}
24 \def\@iGreek#1{\ifcase#1\or\or\or\or\or E\or Z\or H\or\ensuremath{\Theta}\or%
25 I\or K\or\ensuremath{\Lambda}\or M\or N\or\ensuremath{\Xi}\or O\or%
26 \ensuremath{\Pi}\or P\or\ensuremath{\Sigma}\or T\or%
27 \ensuremath{\Upsilon}\or%
28 \ensuremath{\Phi}\or X\or\ensuremath{\Psi}\or%
29 \ensuremath{\Omega}\else\ensuremath{\Omega}\@ctrerr\fi}
30 \endinput
31
32 Usage:
33
34 \renewcommand{\the<counter>}{\greek{<counter>}}
35 \renewcommand{\the<counter>}{\Greek{<counter>}}
36
37 e.g. \renewcommand{\theenumi}{\greek{enumi}}
38
39 Provides \greek and \Greek for counters just like \alph. No switch to
40 math mode is needed. \varepsilon, \vartheta and \varphi are preferred,
41 but \pi and \sigma.
42
43 Version 3 doesn't need the package amstxt any longer, since it relies on
44 \ensuremath. Also fixed a bug in the handling of Omega.
45
46 J"org Knappen, Barbarossaring 43, D-55118 Mainz, Allemagne.