%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%% pjdtwo.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% sample root file for multiple SMSTC units. See pjdone.tex for a
%% single 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, but note:
Each unit should have self-contained references. So you need to be
careful to ensure that you use a different citation label for a
reference which is used in more than one unit. See below in this
file for layout instructions for inputting bibliography entries
yourself, and for how to use BibTeX to create them.
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 non-BibTeX users (for this document)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Please use the following syntax to create the bibliography
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Instructions for BibTeX users (for a multi-unit document)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Unfortunately using basic BibTeX to create more than one
%% bibliography as described below is a bit clunky, but probably the
%% most straightforward way to do it. Other options are to use e.g.
%% the chapterbib package, which allows a separate
%% bibliography for each included file.
%%
%% BibTeX users - please use
%%
%%\bibliographystyle{siam} %% Required
%%\bibliography{pjdbib} %% Input your own .bib file name(s)
%%
%% Warning! If you cite the same reference in more than one unit, then
%% you will need to create different labels for it in your .bib file(s)
%% - one for each unit in which it is used (see pjdbib.bib).
%%
%% Run the following commands once your document is finalised:
%%
%% latex pjdtwo
%% bibtex pjdtwo
%%
%% This creates ONE file pjdtwo.bbl which contains a complete
%% bibliography for the whole document. You need to insert a copy at
%% the end of each unit, and then edit it to just include that unit's
%% cited references. Then comment out the \bibliography command
%% above and re-latex this file.
%%
\end{unit}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Next unit
%% Only need to reset the author info if it has changed. If so, do this
%% BEFORE the \begin{unit} command.
%%
%\AuthorFt{Joe Bloggs, University of Scotland} %% optional
%\Email{j.bloggs@scot.ac.uk} %% one needed for each entry in \AuthorFt
%%
%% or to have no email address instead do:
%%
\Author{Joe Bloggs, University of Scotland} %% optional
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{unit}{6}{Continuum Mechanics II}
\section{Another section}
It follows from equation \deq{line} that
\[
y - c = m\, x\,.
\]
%---------------------- begfig ----------------------------------
\begin{figure}[ht]
\centerline{\includegraphics[width=6cm]{figure.eps}} %%
\caption{Please write your figure caption here}
\label{PJDfig:2} %% Give it a unique label
\end{figure}
%---------------------- endfig ----------------------------------
\section{And another one}
According to Lubich \cite{p2-lubich} \dots
It then follows from \cite[12.3]{grad-ryzh} \dots
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Exercises} %%or \section*{Exercises} for no number
\begin{exercise}
\item For each \dots
\item If $f: \R^2 \rightarrow \C$ is defined by \dots
\end{exercise}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% New bib
\begin{thebibliography}{9}
%% Book
\bibitem{grad-ryzh}
{\sc I.~S. Gradshteyn and I.~M. Ryzhik}, {\em Table of Integrals,
Series, and Products}, Academic Press, fifth~ed., 1994.
%% Journal
\bibitem{p2-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.
\end{thebibliography}
\end{unit}
\end{document}