% -------------------------------- identification ---------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cebafsem}[1995/01/24 CERN seminar extensions]
% --------------------------------  initial code ----------------------------
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{seminar}}
% ----------------------------  execution of options ------------------------
\ProcessOptions
% --------------------------------package loading ---------------------------
\LoadClass{seminar}                                  % the real code
% --------------------------------  main code -------------------------------
%
% might as well as have nice PS effects like rounded box corners
% we need logos in eps form. load PStricks and LaTeX color package.
\RequirePackage{pstcol}
%\def\printlandscape{\special{papersize=297mm,210mm}}
\def\printlandscape{\special{papersize=210mm,297mm}}
\input{semcolor.sty}
% pick up van Zandt's other tools
\input{fancybox.sty}
%
% European paper is A4 
\def\paperwidth{280mm}
\def\paperheight{206mm}
\input sem-page.sty
%
% careful here; limited by size colour printer can work to.
\slidewidth 150mm
\slideheight 210mm
\def\slideleftmargin{0.5in}
\def\sliderightmargin{0.5in}
%
%---------------------------------------------------------------
% I like an address in my titles
%
\def\@maketitle{%
  \null
  \begin{center}
    \def\baselinestretch{1}\large\small
    {\Large\bfseries \@title \par}%
    {\bfseries \lineskip .5em
\begin{tabular}[t]{c}
\large\@author\\
\@address
\end{tabular}\par}%
    \vskip .5em
    {\large CSTS 2 Juin 1998}%
  \end{center}%
  \par\vskip .5em}
\def\address#1{\gdef\@address{#1}}
%----------------------------------------------------
% sectioning, contents etc
%----------------------------------------------------
%
% use \section as normal
%
\newcount\@inchap
\@inchap0
\def\l@chapslide#1{\slide@undottedcline{#1}{}}

\def\slidechapter#1{%
\begin{slide}
 \immediate\addtocontents{los}{%
 \protect\l@chapslide{\ignorespaces\protect\bfseries\protect\large #1}}%
  \gdef\thechapterheading{#1}%
\end{slide}
\@inchap0
}
\input{slidesec.sty}
%----------------------------------------------------
% headings; make a drop shadow box
%----------------------------------------------------
\def\@@empty{}
\renewcommand{\makeslideheading}[1]{%
	\gdef\theslideheading{#1}%
	\def\@@foo{#1}%
	\ifx\@@foo\@@empty\else
		\begin{Sbox}
		\bgroup
                 \large\bfseries\begin{Bcenter}#1\end{Bcenter}%
                \egroup
                \end{Sbox}
             \centerline{\shadowbox{\TheSbox}}
             \vspace{1ex minus 1ex}
        \fi
\SlideFront}

%------------------------------------------------
% slide styles
%-------------------------------------------------
% CERN
%----------------------------------
% plain CERN; just marks and date
\newpagestyle{isostyle}%
{{\color{Black}\small{\bfseries  } \hfil  \hfil  {\bfseries }}}
{{\color{NavyBlue}\small{\bfseries  } \hfil \thepage\hfil {\bfseries }}}%%
% with section headings and logo
%
% load the CERN logo as a header file, so that we don't reload
% the whole file for every page.
\special{header=cernlogo.pro}
%
%
\newpagestyle{fastmc}%
{{\color{Blue}
% call the logo procedure; the unit seems to be about 48pt
 \raisebox{-0.9cm}[0mm][0mm]{%
 \makebox[0cm][l]{%
 \epsfig{file=/home/cavata/Tex/Postscript/dapnia.eps,height=10mm,width=10mm}}%
 \makebox[7.cm][r]{%
 \raisebox{0.2cm}[0mm][0mm]{%
 \tiny{\bf{\it{CEA/DSM/DAPNIA/SPhN}}}}
 \\
 \raisebox{0.2cm}[0mm][0mm]{%
 \tiny{\bf{\it{Groupe Parit\'e}}}}
 }
 }
 %{\bfseries \theslideheading} \hfil {\bfseries\thepage} 
 }}%
{{\small\color{Blue} CSTS 2 Juin 1998 \hfil\thechapterheading /\inchap}}
%
\newpagestyle{cernsections}%
{{\color{Black}\small
% call the logo procedure; the unit seems to be about 48pt
\raisebox{-2ex}[0mm][0mm]{\makebox[0mm]{\special{" .8 .8 -.5 -.3 logocrn}}}
 \hfil {\bfseries \theslideheading} \hfil {\bfseries\thepage} }}%
{{\small\color{Black}CSTS 2 Juin 1998  \hfil\thechapterheading /\inchap}}
%
\newslideframe{isoslide}{{\SlideFront
\boxput(-0.55,-1.11){\psframebox[%
linecolor=Black,fillcolor=NavyBlue,fillstyle=solid]{%
\hbox{{\normalsize\sffamily\color{Yellow} Revue de Projet}}}}{#1}%
\color{Black}
}}
%
\newslideframe{isonew}{{\SlideFront
\boxput(-0.05,-1.11){\psframebox[%
linecolor=Black,fillcolor=NavyBlue,fillstyle=solid]{%
\hbox{{\normalsize\sffamily\color{Yellow} Violation de Parit\'e \`a Jlab}}}
% \hskip 4.cm \raisebox{-0.3cm}[0mm][0mm]{%
% \makebox[0.cm][r]{%
% \epsfig{file=iso-logo.eps,height=10mm,width=10mm}}}%
}{#1}%
\color{Black}
}}
%

%---------------------------------------------
% make it easy to do coloured backgrounds and text
%
\def\everyslide{%
\SlideFront
\global\advance\@inchap by 1
\gdef\inchap{\the\@inchap}%
}
\def\theslideheading{}
\def\thechapterheading{}
%
\newslideframe{blueframe}[\psset{linecolor=NavyBlue,%
  linewidth=\slideframewidth,%
  framesep=\slideframesep,%
  cornersize=absolute,%
  linearc=.5cm%
}]{\psframebox{#1}}
\def\SlideColours#1#2{%
 \gdef\SlideFront{\color{#1}}%
 \slideframe{\Framedefault}%
 \slideframe*[\psset{fillcolor=#2,fillstyle=solid}]{blueframe}%
}
\def\SlideGradient#1#2#3{%
 \gdef\SlideFront{\color{#1}}%
 \slideframe{\Framedefault}%
 \slideframe*[\psset{gradangle=45,gradbegin=#2,%
                     gradend=#3,fillstyle=gradient}]{blueframe}%
}
%
% defaults
\pagestyle{isostyle}
\slideframe{isonew}
\def\Framedefault{isonew}
%
%\SlideColours{Yellow}{RoyalBlue}
%\def\blackandwhite{\SlideColours{Black}{White}}
%\blackandwhite
%--------------------------------------------------------
% shorthand for slides
\newenvironment{Slide}[1]{\begin{slide}
\slideheading{#1}\centering}{\end{slide}}
%
\newenvironment{SLIDE}
{\begin{slide}
 \raisebox{-9.cm}[0mm][0mm]{%
 \makebox[7.cm][r]{%
 \epsfig{file=iso-logo.eps,height=10mm,width=10mm}}}%
}{\end{slide}}
%
% Portrait version
\newenvironment{PSlide}[1]{\begin{slide*}
\slideheading{#1}\centering}{\end{slide*}}
%
%--------------------------------------------------------
\newcommand{\conclusion}[3]{%
\begin{center}
\psshadowbox[fillstyle=solid,fillcolor=#1]
 {
  \begin{tabular}{c}
   \textcolor{#2}{\large #3}
  \end{tabular}}
  \end{center}}
%
%
\newcommand{\titre}[3]{%
\begin{center}
\psshadowbox[fillstyle=solid,fillcolor=#1]
 {
  \begin{tabular}{c}
   \textcolor{#2}{\large #3}
  \end{tabular}}
  \end{center}}
%
\newcommand{\titrelong}[4]{%
\begin{center}
\psshadowbox[fillstyle=solid,fillcolor=#1]
 {
  \begin{tabular}{c}
   \textcolor{#2}{\large #3}\\
   \textcolor{#2}{\large #4}
  \end{tabular}}
  \end{center}}
% needed because of xcomment.sty
\addtoslidelist{Slide}
\addtoslidelist{PSlide}
%
% rotated headers for consistency of output
\rotateheaderstrue
%\blackandwhite
% lets have the defined colours
\definecolor{Red}{named}{Red}
\definecolor{Yellow}{named}{Yellow}
\definecolor{NavyBlue}{named}{NavyBlue}
\definecolor{RoyalBlue}{named}{RoyalBlue}
\definecolor{Green}{named}{Green}
\definecolor{ForestGreen}{named}{ForestGreen}
\definecolor{PineGreen}{named}{PineGreen}
\definecolor{Black}{named}{Black}
\definecolor{White}{named}{White}
\definecolor{GreenYellow}{named}{GreenYellow} % PANTONE 388
\definecolor{Goldenrod}{named}{Goldenrod} % PANTONE 109
\definecolor{Dandelion}{named}{Dandelion} % PANTONE 123
\definecolor{Apricot}{named}{Apricot} % PANTONE 1565
\definecolor{Peach}{named}{Peach} % PANTONE 164
\definecolor{Melon}{named}{Melon} % PANTONE 177
\definecolor{YellowOrange}{named}{YellowOrange} % PANTONE 130
\definecolor{Orange}{named}{Orange} % PANTONE ORANGE-021
\definecolor{BurntOrange}{named}{BurntOrange} % PANTONE 388
\definecolor{Bittersweet}{named}{Bittersweet} % PANTONE 167
\definecolor{RedOrange}{named}{RedOrange} % PANTONE 179
\definecolor{Mahogany}{named}{Mahogany} % PANTONE 484
\definecolor{Maroon}{named}{Maroon} % PANTONE 201
\definecolor{BrickRed}{named}{BrickRed} % PANTONE 1805
\definecolor{OrangeRed}{named}{OrangeRed} % No PANTONE match
\definecolor{RubineRed}{named}{RubineRed} % PANTONE RUBINE-RED
\definecolor{WildStrawberry}{named}{WildStrawberry} % PANTONE 206
\definecolor{Salmon}{named}{Salmon} % PANTONE 183
\definecolor{CarnationPink}{named}{CarnationPink} % PANTONE 218
\definecolor{Magenta}{named}{Magenta} % PANTONE PROCESS-MAGENTA
\definecolor{VioletRed}{named}{VioletRed} % PANTONE 219
\definecolor{Rhodamine}{named}{Rhodamine} % PANTONE RHODAMINE-RED
\definecolor{Mulberry}{named}{Mulberry} % PANTONE 241
\definecolor{RedViolet}{named}{RedViolet} % PANTONE 234
\definecolor{Fuchsia}{named}{Fuchsia} % PANTONE 248
\definecolor{Lavender}{named}{Lavender} % PANTONE 223
\definecolor{Thistle}{named}{Thistle} % PANTONE 245
\definecolor{Orchid}{named}{Orchid} % PANTONE 252
\definecolor{DarkOrchid}{named}{DarkOrchid} %  No PANTONE match
\definecolor{Purple}{named}{Purple} % PANTONE PURPLE
\definecolor{Plum}{named}{Plum} % PANTONE 518
\definecolor{Violet}{named}{Violet} % PANTONE VIOLET
\definecolor{RoyalPurple}{named}{RoyalPurple} % PANTONE 267
\definecolor{BlueViolet}{named}{BlueViolet} % PANTONE 2755
\definecolor{Periwinkle}{named}{Periwinkle} % PANTONE 2715
\definecolor{CadetBlue}{named}{CadetBlue} % PANTONE (534+535)
\definecolor{CornflowerBlue}{named}{CornflowerBlue} % PANTONE 292
\definecolor{MidnightBlue}{named}{MidnightBlue} % PANTONE 302
\definecolor{Blue}{named}{Blue} % PANTONE BLUE-072
\definecolor{Cerulean}{named}{Cerulean} % PANTONE 3005
\definecolor{Cyan}{named}{Cyan} % PANTONE PROCESS-CYAN
\definecolor{ProcessBlue}{named}{ProcessBlue} % PANTONE PROCESS-BLUE
\definecolor{SkyBlue}{named}{SkyBlue} % PANTONE 2985
\definecolor{Turquoise}{named}{Turquoise} % PANTONE (312+313)
\definecolor{TealBlue}{named}{TealBlue} % PANTONE 3145
\definecolor{Aquamarine}{named}{Aquamarine} % PANTONE 3135
\definecolor{BlueGreen}{named}{BlueGreen} % PANTONE 320
\definecolor{Emerald}{named}{Emerald} % No PANTONE match
\definecolor{JungleGreen}{named}{JungleGreen} % PANTONE 328
\definecolor{SeaGreen}{named}{SeaGreen} % PANTONE 3268
\definecolor{LimeGreen}{named}{LimeGreen} % No PANTONE match
\definecolor{YellowGreen}{named}{YellowGreen} % PANTONE 375
\definecolor{SpringGreen}{named}{SpringGreen} % PANTONE 381
\definecolor{OliveGreen}{named}{OliveGreen} % PANTONE 582
\definecolor{RawSienna}{named}{RawSienna} % PANTONE 154
\definecolor{Sepia}{named}{Sepia} % PANTONE 161
\definecolor{Brown}{named}{Brown} % PANTONE 1615
\definecolor{Tan}{named}{Tan} % No PANTONE match
\definecolor{Gray}{named}{Gray} % PANTONE COOL-GRAY-8
\typeout{loading user configuration of CERN seminar class}
\InputIfFileExists{cebafsem.cfg}{}
\endinput
