%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% defps.tex                                                             %
% ps macros                                                             %
%                                                                       %
% author:        K.H.Hofmann                                            %
% e-mail:        karlheinrich.hofmann@hs-rm.de                          %
% created:       25.05.2001                                             %
% last revision: 14.04.2016, 17.11.2009                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{psboxit}         % required package
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\xl}
\newlength{\yl}
\newcounter{psa} % versatile counter a
\newcounter{psb} % versatile counter b
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% mygraybox
% Text in a gray shadowed box with border
% Parameter: #1 {left bottom corner (x)}
%            #2 {left bottom corner (y)}
%            #3 {width}    % should be even
%            #4 {height}   % should be even 
%            #5 {text}
%
\newcommand{\mygraybox}[5]{\fboxsep 0mm
                           \fboxrule 0mm
                        \setlength{\xl}{1mm*#3} \addtolength{\xl}{-1.2mm}
                        \setlength{\yl}{1mm*#4} \addtolength{\yl}{-0mm}
                        \put(#1,#2){\psboxit{box 0.8 setgray fill}%
                        {\rule[0ex]{\xl}{0ex}\rule[0ex]{0ex}{\yl} }}
                        \setcounter{psa}{#2+#4}
                        \setcounter{psb}{#1+#3}
                        \lnr{#1}{#2}{#3} \lnr{#1}{\thepsa}{#3}
                        \lnu{#1}{#2}{#4} \lnu{\thepsb}{#2}{#4}
                        \setcounter{psa}{(#3/2)+#1}
                        \setcounter{psb}{(#4/2)+#2}
%\txt{0}{0}{\arabic{psa}}
%\txt{0}{20}{\arabic{psb}}                      
  \txt{\thepsa}{\thepsb}{#5}
                       }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% foilheadlogo
% IT--Logo in colored head line 
% parameter 1: Text
% parameter 2: in general, pagenumber, i.e. \arabic{page}
% parameter 3: color (black, white, red, green, blue, yellow, cyan, magenta)
\newcommand{\foilheadlogo}[3]{\textcolor{#3}{\noindent 
 \begin{picture}(170,15)
  \txtl{0}{12}{{\Large \bf #1}} 
  \txtb{3}{2.5}{{\large #2}} \lnr{7}{2.5}{140} 
  \put(150,0){\epsfig{file=\pathmacros/logo_it.eps,width=20mm,clip=}}
  %\textbox{0}{0}{170}{15}{}
  % ! textwidth=170 mm, to be adpated in case of another width
 \end{picture}} \\
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% foilheada
% colored head line with automatic page numbering 
% parameter 1: Text
% parameter 2: color (black, white, red, green, blue, yellow, cyan, magenta)
\newcommand{\foilheada}[2]{\noindent 
\textcolor{#2}{{\large\sc #1} \hspace{1em}\hrulefill \hspace{1em} \arabic{page}} \\
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% foilbottom
% colored bottom line with automatic date 
% parameter 1: Text
% parameter 2: Date
% parameter 3: color (black, white, red, green, blue, yellow, cyan,
% magenta)
\newcommand{\foilbottom}[3]{\textcolor{#3}{\vfill%
 \rule[0ex]{0ex}{0ex}\hrulefill\rule[0ex]{0ex}{0ex}\\
 #1 \hfill #2}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EOF
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%











