%% File: studyGuide.sty
%%
%% GWR's LaTeX style file for study guides to ``Numerical Methods with MATLAB''
%% Study guides are lists of learning goals for students.
%%
%% Use \documentclass{article} and \renewcommand{\guideName}{"subject-specific name"}
%%
%% Gerald Recktenwald, gerry@me.pdx.edu
\ProvidesPackage{studyGuide}[2000/16/10 Gerald Recktenwald's Study Guide Style]
\RequirePackage{fancyheadings}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Operating System utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\OS}{Mac} % used to manage alternative path separators, etc.
% \providecommand{\OS}{Unix}
% \providecommand{\OS}{Win}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Headers and Footers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\guideName}{Numerical Methods with \MATLAB} % Default text used in page header, redefine
% \usepackage{fancyheadings} % See \RequirePackage, above
\pagestyle{fancy}
\lhead[\fancyplain{}{\bfseries\thepage}]%
{\fancyplain{}{\bfseries\rightmark}}
\chead[\fancyplain{}{\bfseries\guideName}]
{\fancyplain{}{\bfseries\guideName}}
\rhead[\fancyplain{}{\bfseries\leftmark}]%
{\fancyplain{}{\bfseries\thepage}}
\lfoot{\fontsize{7}{9}\sffamily%
This document was created by Gerald Recktenwald. It is in the public domain.}
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic Numerical Analysis utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\matdim}[2]{\ensuremath{#1\times#2}} % dimension of a matrix: \matdim{m}{n} = m x n
\providecommand{\norm}[1]{{\ensuremath{{\|#1\|}}}}
\providecommand{\pnorm}[2]{{\ensuremath{{\|#1\|}_{#2}}}} % requires specification of value for p
\providecommand{\rank}[1]{\ensuremath{\mathrm{rank}(#1)}}
\providecommand{\epsm}{\ensuremath{\varepsilon_m}}
\providecommand{\bigO}[1]{\ensuremath{\mathcal{O}(#1)}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic MATLAB utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\names}[1]{{\normalfont\scshape #1}} % could be used for defn of \MATLAB
\providecommand{\MATLAB}{\names{Matlab}}
\newenvironment{mtext}% Offset a minipage for inclusion of MATLAB (or other code) in typewriter font
{\begin{center}\setlength{\topsep}{0pt} \begin{minipage}[t]{5.0in}\small\begin{alltt}}
{\end{alltt}\end{minipage}\end{center}}