%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% pjdone.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% sample root file for a single SMSTC unit.  See pjdtwo.tex
%% for a multiple unit sample.
%%
%% Note that it uses the REPORT class
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{report}

%% load the REQUIRED package smstc
\usepackage{smstc}      % SMSTC style file
%%
%% it loads and uses the (standard implementation) packages
%% amsmath, amssymb, cite, fancybox, graphicx, ifthen, minitoc, url,
%% xspace

%% load any optional packages here.  E.g.
%%
%\usepackage{color}
%%
% \usepackage{hyperref}  % creates hypertext links in PDf file
%% WARNING!  you should delete the .aux and .toc files before loading
%% the hyperref package (not doing so can cause some weird errors)
%% NOTE ALSO that the hyperref package is known to mess up the page
%% layout by increasing the top margin.  If this happens, then redefine
%% it to make the margin smaller than the settings given in smstc.sty -
%% e.g. to make the top margin 2cm less than that in smstc.sty use
%  \topmargin = -3.47cm
%%
% \usepackage{placeins}  % OR \usepackage[section]{placeins}
%% Helps to position floats: insert "\FloatBarrier" in the text at
%% places that floats should not move past.
%%
% \usepackage{float}  % a different way to (try to) get floats to go
%%                      where you want them

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Essential inputs: ALL THESE MUST BE THE SAME WITHIN A STREAM
%%
\Streamname{Your stream name}  %% e.g. Algebra
\Unitname{Lecture}  %% Name given to contribution unit
\Thisyear{2007/08}  %% academic year

%%
%% ESSENTIAL INPUTS: author information for first unit
%% Must be defined before the first \begin{unit} command
%%
%% Separate multiple entries with \et
%% Syntax is:
%% \Author{author1, instution1}
%% \Author{author1, instution1\et author2, institution2}
%% \Author{auth1, uni1\et auth2, uni2\et auth3, uni3}
%% etc.  See below for concrete examples
%%
%% Example 1: single author
% \Author{Joe Bloggs, University of Scotland}
%%
%% Example 2: multiple authors
%%\Author{Jo Aardvark, University of Highland Scotland\et Joe Bloggs, University of Lowland Scotland}

%% Alternatively, to list an email address for each author (as a footnote)
%% use the \AuthorFt command INSTEAD of the \Author command.  It uses the
%% same syntax, but don't put a space before \et with \AuthorFt
%% Use one \Email command for each email address
%% (listed in the correct order).  See example below.
%%
\AuthorFt{Jo Aardvark, University of Highland Scotland\et Joe
Bloggs, University of Lowland Scotland}

\Email{j.aardvark@hs.ac.uk}
\Email{j.bloggs@ls.ac.uk}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% My macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Put any of your macros here.  To aid compilation of the separate
%% contributions from your stream into one document, do not use obvious
%% names that may conflict with someone else's macros, or definitions
%% in smstc.sty.
%%
%% For example:
%% \newcommand{\pjdU}{UUU} is safer than
%% \newcommand{\U}{UUU}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\initdoc %% REQUIRED immediately after \begin{document}

%% Text here will be printed at the start of the main document, below
%% the full table of contents.  It would be sensible to discard this
%% first page if your contribution is just one unit.  So don't write
%% anything here unless you want to keep the front page with the full
%% index.
%%

Test text for page (i).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% New unit - start "unit" environment
%% it starts with a heading and an individual table of contents (toc)
%%
%% There are 2 compulsory arguments.
%% - first argument: unit number (used as a counter)
%% - second argument: unit title
%%
\begin{unit}{5}{Continuum Mechanics I}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%Your text comes here. Separate text sections with

\section{ Section heading}
\label{PJDsec:intro}  % Give it a unique label
% and use \ref{PJDsec:intro} and \cite{PJDjournal1}

\subsection{Subsection Heading}
\label{PJDsec:subintro}

\subsubsection{Subsubsection Heading}

\section{ New section}

%% For built-in environments use
%%
\begin{theorem}
Theorem text comes here.
\end{theorem}
%%
\begin{theorem}
Theorem text comes here.
\end{theorem}
%%
\begin{lemma}
Lemma text comes here.
\end{lemma}

%% Other predefined numbered environments are proposition and corollary:
%%
%%\begin{corollary}
%%\end{corollary}
%%
%%\begin{proposition}
%%\end{proposition}
%%
%% Follow these definitions (in smstc.sty) to define others.

%% The proof environment isn't numbered:
%%
\begin{proof}
%% Write the text of your proof here -- ends with \end{proof}
Because $\R \ne \C$ \dots

\dots which completes the proof.
\end{proof}

%%Figures
%%
%---------------------- begfig ----------------------------------
\begin{figure}[ht]
\centerline{\includegraphics[width=8cm]{figure.eps}}
%%
\caption{Please write your figure caption here}
\label{PJDfig:1}       %% Give it a unique label
\end{figure}
%---------------------- endfig ----------------------------------

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Equations  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% labelling and referring to them

\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}

\subsubsection{Equations}
Points on the circle satisfy
\begin{equation}  %% (or define abbreviation \be )
  x^2 + y^2 = 4\,,
\label{eq:circle}  %% start label with eq:
\end{equation}    %% (or define abbreviation \ee )
%%
and the line is
\be               %% abbreviation for \begin{equation}
  y = m\, x + c\,.
\label{eq:line}  %% start label with eq:
\ee               %% abbreviation for \end{equation}
Substituting for $y$ from \deq{line} into \deq{circle} gives \dots

\subsubsection{Macros}

Macros in \texttt{smstc.sty} include \verb+\aside+ and \verb+\cut+:

\verb+\aside{text}+ gives \aside{text}

\verb+\cut{text}+ gives \cut{text}

as well as the ``logo'' command \verb+\smstc+ which gives \smstc
(with no extra space needed).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Citations  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Citations}  %% Done in the usual way:

As shown by \cite[Theorem 5.1]{lubich} \dots

We also refer to \cite{jones.th,Pujols}\dots

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Exercises  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section*{Exercises} %%or \section{Exercises} to number it and add to toc

%% If your unit contains exercises, then put them here.  The exercise
%% environment can be used for this (but note that it doesn't display
%% the word "Exercises")
\begin{exercise}
\item For each \dots

\item If $f: \R^2 \rightarrow \C$ is defined by \dots
\end{exercise}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%  Bibliography  %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Instructions for BibTeX users (for a single unit document)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% BibTeX users - please use
%%
%\bibliographystyle{siam}  %% Required
%\bibliography{pjdbib}     %% Input your own .bib file names
%%
%% and comment out all the bibliography stuff below

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%  Bibliography  %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Instructions for non-BibTeX users (for a single unit document)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Please use the following syntax to create the bibliography
%%
%% BibTeX users: [-- comment out the following
\begin{thebibliography}{9}
%% or \begin{thebibliography}{99} if there are >9 of them

%% Book
\bibitem{jones.th}
{\sc D.~S. Jones}, {\em Theory of Electromagnetism}, O. U. P., 1964.

%% Journal
\bibitem{lubich}
{\sc C.~Lubich}, {\em On the multistep time discretization of linear
initial--boundary value problems and their boundary integral
equations}, Numerische Mathematik, 67 (1994), pp.~365--389.

%% Proceedings article
\bibitem{Pujols}
{\sc A.~Pujols}, {\em Time--dependent integral method for {M}axwell
equations}, in Mathematical and Numerical Aspects of Wave
Propagation Phenomena, G.~Cohen, L.~Halpern, and P.~Joly, eds.,
SIAM, 1991, pp.~118--126.

\end{thebibliography}
%% BibTeX users: endcomment --]

\end{unit}

\end{document}
