hep-ex0403037/Lep.sty
1: %
2: %  This package provides the \Lep command to define which running
3: %  phase of LEP was used for the analysis.  This is then used to
4: %  control the names on the author lists.
5: %
6: %  Note that all of the stuff at the top is to more or less provide a 
7: %  package, and to require the ifthen package.  But since this package
8: %  might not be used in the preamble, I wanted to make sure that it could
9: %  be called in the authorlist....
10: %
11: \ifx\isLeploaded\relax\endinput\else\let\isLeploaded=\relax\fi%
12: \ifx\ifthenelse\undefined{%
13: \typeout{       }%
14: \typeout{!!!!!!!}%
15: \typeout{The ifthen package is required!}%
16: \typeout{!!!!!!!}%
17: \typeout{       }%
18: \end{document}}\fi%
19: %
20: %
21: \newif\iflepI  % for Lep I
22: \newif\iflepII % for Lep II
23: %
24: \newcommand{\Lep}[1]{%
25:  \def\LepCalled{\relax}%
26:  \ifthenelse{\equal{#1}{1}}{%
27:     \lepItrue%
28:     \lepIIfalse}%
29:   {\ifthenelse{\equal{#1}{2}}{%
30:       \lepIfalse%
31:       \lepIItrue}%
32:      {\typeout{   }%
33:       \typeout{Unknown running period #1. Using Lep 1.}%
34:       \typeout{   }%
35:       \Lep{1}}}}%
36: %
37: \newcommand{\onlylep}[1]{%
38:     \ifthenelse{\boolean{lepI}}{#1}{}}%
39: \newcommand{\notlep}[1]{%
40:     \ifthenelse{\boolean{lepII}}{#1}{}}%
41: %
42: