%% $Header: /cvsroot/lcdp/lpic/general-linux-2/slides/gl2.slide-header.tex,v 1.2 2003/05/30 06:03:32 waratah Exp $

\documentclass[a4]{seminar}

\renewcommand{\slidefuzz}{1in} % Attempt to reduce overfull warnings.

\renewcommand{\printlandscape}{\special{landscape}}

\usepackage{times}
\usepackage[dvips]{pstcol} % To use the standard `color' package with Seminar
\usepackage{semcolor}           %list of slides
\usepackage{semlayer}           %overlays
\usepackage{slidesec}
\input{seminar.bug}
\input{seminar.bg2} % See the Seminar bugs list
\usepackage{url}                % Gus's urls gl2.113.7.tex


\definecolor{LemonChiffon}{rgb}{1.,0.98,0.8}

\usepackage{slidesec}
\usepackage{epsfig}
\usepackage{alltt}
\usepackage{moreverb}   
\usepackage[dvips]{pstcol} %To use the standard 'color' package with Seminar
%\usepackage[dvips]{graphics}
\usepackage{rotating}          
\usepackage{shapepar}          
\usepackage{ifthen}            
\usepackage{psfrag, graphicx}
%\usepackage{graphpap}          
\usepackage{boxedminipage}     
%\usepackage{pict2e}           
%\usepackage{fancybox}         
%\usepackage{semcolor}         
\usepackage{pstricks,pst-node,pst-tree}         
 
\slideframe{none}              % plain, oval, Oval, shadow
%\slideframe[\psset{fillcolor=blue}]{scshadow} % \psset uses PSTricks.

%\slidesmag{}   % Default is 4 = all fonts & spacing is scaled by 1.2^4

\renewcommand{\makeslideheading}[1]{%
\begin{center}
\psshadowbox[framearc=0.0,fillstyle=solid,fillcolor=red]{%
\Large\textbf{\textsf{\textcolor{white}{#1}}}}
\end{center}}

\newcommand{\Slideheading}[1]{%
\begin{center}
\psshadowbox[framearc=0.0,fillstyle=solid,fillcolor=red]{%
\Large\textbf{\textsf{\textcolor{white}{#1}}}}
\end{center}}

\renewcommand{\makeslidesubheading}[1]{%
\framebox{\bf \large \black \textsf{{#1}}}
\par\vspace{2mm}}

\newcommand{\Slidesubheading}[1]{%
\framebox{\bf \large \black \textsf{{#1}}}
\par\vspace{2mm}}

%\newcommand{\slidesubsubheading}[1]{%
%\framebox{\large\textbf{\theslidesubsection{} -- #1}}\par\vspace{2mm}}

\newcommand{\slidesubsubsubheading}[1]{%
\box{\large\textbf{ #1}}\par\vspace{2mm}}

\newcommand{\heading}[1]{%
\framebox{\bf \large \black \textrm{ {#1}}}
\par\vspace{2mm}
}

% Personalise the format of the list of slides

\makeatletter
\def\listofslides{%
  \centerline{\LARGE\textbf{List of Slides}}%
  \def\l@slide##1##2##3{%
    \slide@dottedcline{##1 -- ##2}{\slidenumberline{##3}}}%
  \def\l@subslide##1##2##3{%
    \slide@dottedcline{\ \ ##1 -- ##2}{\slidenumberline{##3}}}%
  \@startlos}

% To change formatting of subslides in list of slides (whole numerotation)
\def\slide@subheading[#1]#2{%
  \stepcounter{slidesubsection}%
  \addtocontents{los}{\protect\l@subslide
    {\the\c@slidesection.\the\c@slidesubsection}{\ignorespaces#1}{\@SCTR}}%
  \gdef\theslidesubheading{#1}%
  \def\@tempa{#2}%
  \ifx\@tempa\@empty\else
  {\edef\@currentlabel{\csname p@slidesubsection\endcsname
      \theslidesubsection}\makeslidesubheading{#2}}%
    \fi}

% To avoid Overfull messages on each line of the list...
\def\slide@dottedcline{\@dottedtocline{1}{0.3em}{1.5em}}
\makeatother


\newcommand{\cmd}[1]{%
\texttt{\$ \textbf{#1 \(\hookleftarrow\)}}
}

\newcommand{\rootcmd}[1]{%
\texttt{\# \textbf{#1 \(\hookleftarrow\)}}
}

\newcommand{\opt}[1]{%
{\bf\texttt{#1}}
}

% For overlays, to force to print all preceding ones
\makeatletter
\def\pst@initoverlay#1{%
\pst@Verb{%
/BeginOL {dup (all) eq exch TheOL le or {IfVisible not {Visible
/IfVisible true def} if} {IfVisible {Invisible /IfVisible false def} if}
ifelse} def
\tx@InitOL /TheOL (#1) def}}
\makeatother 

\newcommand{\SlideColours}[3][black]{%
\slideframe[\psset{linecolor=#1,fillcolor=#3,fillstyle=solid}]{scplain}
\color{#2}}

\newcounter{revealctr}[slide]
\setcounter{revealctr}{1}
\newcommand{\reveal}{%
\overlay{\value{revealctr}}\stepcounter{revealctr}}


% \slash
% \textasciitilde
% \textasciicircum
% \textgreater
% \textless
% \(\hookleftarrow\)
%

%\twoup[2]


