% $Source: /home/bricks/source/greater/cvs/greaterrepository/GREAT-ER/doc/Manual.sty,v $

% $Author: frank $

% $Revision: 1.1 $
% $Date: 2003-07-24 13:56:46 $
% $Locker:  $

%
% Basic stylefile for all Manuals in the GREAT-ER project.
% Manuals have to be double page
% Variable Settings:
%	ManualAuthor	: dto.
%	ManualType     	: Type of the Manual, eg. Users' Manual
%	GREATERVersion 	: GREAT-ER Version the Manual is related on
% Makros:
%	\Fig{figure}{text}	: creates an mbox around 'figure' and
%				  writes 'text' at the bottom with leading
%				  'Fig. section.figno:'.
%				  Example:
%				  \Fig{\epsfxsize30mm \epsffile{x.eps}}{the x}\\
%	
%	\Tab{table}{text}	: creates an mbox around 'table' and
%				  writes 'text' at the top with leading
%				  'Tab. section tabno:'.
%

\typeout{Manual Style File designed for GREAT-ER manual. 
Ensure to define "stepBackground" before using macro "TutorialStep"!
}

\parindent0cm
\parskip0.5ex

\textwidth=15cm

% macros for special names
% convention: 
%	- program names		:	sc (small caps)
%	- language names, misc 	:	sf (sans serif)
%	- file names		:	tt (typewriter)
%	- functions, procedures :	tt

\newcommand{\WindowsNT}{{{\scshape Windows NT} 4.0}}
\newcommand{\ArcInfo}{{\scshape ARC/INFO}}
\newcommand{\ArcView}{{\scshape ArcView}}
\newcommand{\GREATER}{{\scshape GREAT-ER II}}
\newcommand{\Thuban}{{\scshape Thuban}}
\newcommand{\gawk}{{\scshape gawk}}
\newcommand{\MicroLowFlows}{{\scshape MicroLowFlows}}

\newcommand{\Avenue}{{\sffamily Avenue}}
\newcommand{\TclTk}{{\sffamily Tcl/Tk}}
\newcommand{\awk}{{\sffamily awk}}
\newcommand{\sed}{{\sffamily sed}}
\newcommand{\C}{{\sffamily C}}

\newcommand{\menuitem}[1]{{\sffamily #1}}

%****************************************************************************
%	Marko for step indicator
%

\setlength{\marginparsep}{1em}
\setlength{\marginparwidth}{1cm}

\newcounter{StepCnt}
\newcommand{\Step}{\refstepcounter{StepCnt} \marginpar{Step \arabic{StepCnt}}}
\newcommand{\ResetStep}{\setcounter{StepCnt}{0}}

%****************************************************************************
%	Underlay tutorial steps with gray box and center
%

% \newenvironment{step}{\begin{center}\colorbox{stepBackground}{\parbox{0.95\textwidth}{}{}}\end{center}}
\newcommand{\TutorialStep}[1]%
{
	\begin{center}
	\colorbox{stepBackground}{\parbox{0.95\textwidth}{#1}}
	\end{center}
}

%****************************************************************************
%	Figure makro for graphics continously enumerated.
%
\newcounter{FigCnt}[chapter]
\newcommand{\Fig}[2]%
{
	\refstepcounter{FigCnt}
	\addcontentsline{lof}{figure}%
		{\protect\numberline{\thechapter.\arabic{FigCnt}}{#2}}
	\mbox{#1}
\nopagebreak

	{Figure \thechapter.\arabic{FigCnt}: \it #2}
}

\newcommand{\FigNoEntry}[2]%
{
	\refstepcounter{FigCnt}
	\mbox{#1}
\nopagebreak

	{Figure \thechapter.\arabic{FigCnt}: \it #2}
}

%****************************************************************************
%	Table makro for tables continously enumerated.
%
\newcounter{TabCnt}[section]
\newcommand{\Tab}[2]%
{
	\refstepcounter{TabCnt}
	\addcontentsline{lot}{table}%
		{\protect\numberline{\thesection.\arabic{TabCnt}}{#2}}
	{Table \thesection.\arabic{TabCnt}: \it #2}
\nopagebreak

	\mbox{#1}
}

\newcommand{\TabNoEntry}[2]%
{
	\refstepcounter{TabCnt}
	{Table \thesection.\arabic{TabCnt}: \it #2}
\nopagebreak

	\mbox{#1}
}

%***************************************************************************
%	Makro for directory information
%
\newcommand{\dirinfo}[1]%
{
	#1 \\
}

%***************************************************************************
%	Makro for file information
%
\newcommand{\fileinfo}[2]%
{
	#1 \\ #2 \\
}

%****************************************************************************
\newdimen\fullwidth	\fullwidth=\textwidth

\newdimen\emptyhead	\advance\footskip by 0.5\baselineskip
\emptyhead=\topmargin	\advance\emptyhead by-1\baselineskip

\def\ps@footings{
\let\@mkboth\markboth 
\@ifundefined{chapter}{
\def\sectionmark##1{\markboth
{\uppercase{\ifnum \c@secnumdepth>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}
\def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
{\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}
\def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
}% endps@

	\def\@evenhead{\vbox{\hsize\fullwidth
		\hbox to \fullwidth{{\bf\thepage}\hfil\leftmark}%
		\vskip 3pt \hrule}\hss}
	\def\@oddhead{\vbox{\hsize\fullwidth
		\hbox to \fullwidth{\rightmark\hfil{\bf\thepage}}%
		\vskip 3pt \hrule}\hss}
	\def\@evenfoot{\vbox{\hsize\fullwidth \hrule \vskip 3pt%
		\hbox to \fullwidth{\small \sc {\ManualAuthor} 
		\hfil $\cdot$ \hfil {\ManualType\ GREAT-ER \GREATERVersion}
		\hfil $\cdot$ \hfil {\today} }}\hss}%
	\def\@oddfoot{\vbox{\hsize\fullwidth \hrule \vskip 3pt%
		\hbox to \fullwidth{\small \sc {\ManualAuthor}
		\hfil $\cdot$ \hfil {\ManualType\ GREAT-ER \GREATERVersion}
		\hfil $\cdot$ \hfil \today\ }}\hss}%
%}% endps@

\pagestyle{footings}
