\documentclass[11pt]{article}
%This version October 2012
\usepackage{makeidx,graphics}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{array}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{epstopdf}
%\usepackage{subfigure}
\usepackage{varioref}
%%%%%%%%%%%%%%%%%%%changes from old:
%in preamble:
%%%%uses article document class
%%%%%replace "chapter" with "section" in several command defs: Thm, xca, Procedure
%%In body
%%%%%%need to replace \chapter commands with \section commands
%%%%%% Need to replace
% \addcontentsline{toc}{chapter}{\bibname} at beginning of bibliogaphy with
%\addcontentsline{toc}{section}{References} to put bibliography in toc
%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\textwidth}{6.50in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\theoremstyle{plain}
\newtheorem{Thm}{Theorem}[section]
\newtheorem{Cor}[Thm]{Corollary}
\newtheorem{Lem}[Thm]{Lemma}
\newtheorem{Prop}[Thm]{Proposition}
\newtheorem*{Thm*}{Theorem}
\theoremstyle{definition}
\newtheorem{Def}[Thm]{Definition}
\newtheorem{Rem}[Thm]{Remark}
\newtheorem{Exa}[Thm]{Example}
\newtheorem{xca}{ }[section]
\newtheorem{Prc}{Procedure}[section]
\newtheorem*{Def*}{Definition}
\newtheoremstyle{Nmthm}% name
{3pt}% Space above, empty = `usual value'
{3pt}% Space below
{\itshape}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{.5em}% Space after thm head: " " = normal interword space;
% \newline = linebreak
{\thmnote{#3}}% Thm head spec
\theoremstyle{Nmthm}
\newtheorem*{Nmthm}{}% all text will be supplied in the note
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Everything that appears in the paper comes after this \begin{document} command
\begin{document}
%This command sets double spacing of text
\setlength{\baselineskip}{22pt}
%%content for title page
\title{First line of Title
\\Second line of title}
\author{Author's Name\\
Advisor: Advisor's Name}
\date{Date}
%this command sets the title at the head of the document - using the information above
\maketitle
%This command cause the table of contents to be printed here - you need to typeset the final document *twice in a row* (without changes) to get the page references right
\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%The \section command starts a new chapter, resets the numbering for theorems, definitions, etc., and sets an entry for the table of contents
\section{Introduction}
\pagenumbering{arabic} %This command sets the page numbering to arabic numbers and resets the page number to 1.
This is the place for the introductory and background material. This particular document is a template for typing the Senior Comprehensive. For more information on using \LaTeX\ see the templates and examples on the Math Department website.
You will want to replace all this text with your own material. Notice that there is a line skipped in the input file to produce the new paragraph in the output.
The document is designed to provide a title page including a table of contents and a bibliography and the required appendices---but you have to enter the text (and titles) in the chapters and and appendices and use the appropriate format for bibliographic references. Any time you change the document you will have to build (typeset) the document twice to get the table of contents, references (to other items, to the bibliography), and bibliography to come out right.
In order to reduce paper use, the template uses the ``article'' document class, so the ``section'' command is used rather than the ``chapter'' command, and a new chapter does not necessarily begin on new page.
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%beginning of a new chapter
\section{Title for next chapter}
Here is the material of the next chapter, where the mathematical background material is likely to be presented. The program will take care of numbering theorems, definitions, examples, etc. --- but you will want \verb+\label{}+ commands to allow the numbers to appear in the appendices.
%Notice the use of the \label{Firstdef} command - so that the number can be picked up later for Appendix A
\begin{Def}\label{ch1firstdef} Here is the first definition in this chapter.
\end{Def}
Of course, once a term is defined, we may want an example:
\begin{Exa}
And here we have an example.
\end{Exa}
Of course, there will need to be a lot of mathematics here, so presumably we'll want some results:
\begin{Thm}\label{ch2Firstthm}
If there is an even prime number, it is the number 2.
\end{Thm}
\begin{proof}
It is well known that every even is divisible by 2. Since a prime number is a number with no proper divisors other than one, no even number can be prime, unless it is the number 2.
Notice that we have a second (useless) paragraph in this proof and a symbol at the right margin marking the end of the proof.
\end{proof}
The text begins again after the proof. [Notice the extra space before and after the theorem and proof.]
%The next chapter is identified with a \section command
\section{Title for this chapter}
Here are a theorem and a definition in this chapter -- you will want to copy them to the appropriate appendices (and use the \verb+\label{ }+ and \verb+\ref{ }+ commands to have \LaTeX\ keep track of the numbers.
\begin{Thm}\label{thirdchfirstthm}
There is an even prime number.
\end{Thm}
\begin{Def}\label{thirdchapfirstdef}
A definition from chapter 3.
\end{Def}
Here is a big famous theorem, quoted from another source and not included in the numbering system; we'll pretend it's quoted from Gillman's book [\cite{gillman}] by using the \verb+\cite{}+ command and referring to the \verb+\bibitem+ reference defined for that book in the bibliography:
\begin{Nmthm}[Big Famous Theorem \cite{gillman} ]\label{namedthm} There is no such thing as a free lunch.
\end{Nmthm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%The appendices will be used only if requested by the advisor - therefore they are commented out
%Uncomment the following to use the appendices
%\appendix% this command causes all following chapters to be appendices
%\section{Definitions}
%This appendix will list the definitions presented in the paper. In order to get the numbering right, use the Def* environment (instead of Def) and the \verb+\ref{ }+ command to get the number (see the examples). Use copy and paste to get the actual text of the definition.
%
%%example of the Def* environment with the \ref command and the \bf font declaration to get the correct number for the definition
%\begin{Def*}[\bf \ref{ch1firstdef}]
%Here is the first definition in this chapter.
%\end{Def*}
%
%
%\begin{Def*}[\bf \ref{thirdchapfirstdef}]
%A definition from chapter 3.
%\end{Def*}
%
%\section{Theorems}
%Here we get a list of the main theorems --- use the Thm* environment with \verb+\label{ }+ and \verb+\ref{ }+ commands to get \LaTeX\ to handle the numbering. Use copy and past to get the text of the theorem. For named theorems that aren't numbered use the Nmthm environment, as in the text.
%
%
%\begin{Thm*}[\bf \ref{ch2Firstthm}]
%If there is an even prime number, it is the number 2.
%\end{Thm*}
%
%\begin{Thm*}[\bf \ref{thirdchfirstthm}]
%There is an even prime number.
%\end{Thm*}
%
%
%\begin{Nmthm}[Big Famous Theorem]There is no such thing as a free lunch.
%\end{Nmthm}
%Delete to here if not using the appendices
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%These commands format the bibligraphy and refer to items in the text.
%There are examples here for articles, websites, books
\begin{thebibliography}{99}
\setlength{\baselineskip}{12pt}% resets spacing to single space
\addcontentsline{toc}{section}{References} %This command adds the Bibliography to the Table of Contents.
%an article in a journal
\bibitem{boas} {\sc R. P. Boas}, ``Can We Make Mathematics
Intelligible?", {\em Amer. Math. Monthly} 88(1981),
pp.727-731.
%a page on a website
\bibitem{devlin} {\sc Keith Devlin}, ``Staying the
Course'', {\em MAA Online}, Mathematical Association of
America, June 2005, 29 June 2005, Devlin's Angle,
\verb++.
%a book
\bibitem{gillman} {\sc Leonard Gillman}, {\em Writing
Mathematics Well}, The Mathematical Association of
America, 1987.
% a page on a website (author not known)
\bibitem{latexhelp}{\em Goddard Institute for Space
Studies}, NASA Goddard Institute for Space Studies at
Columbia University, 4 August 2005, Hypertext Help with
LaTeX, \verb++.
%a book
\bibitem{goossens}{\sc Michel Goossens, Frank Mittelbach,
Alexander Samarin}, {\em The LATEX Companion},
Addison-Wesley, 1994.
%a wesite
\bibitem {symbols} {\sc Sheldon Green}, {\em Hypertext Help
with LaTeX},NASA, 15 May 1997, 12 July 2005,
\verb++.
%an article in a collection (book)
\bibitem{halmos}{\sc Paul R. Halmos}, ``How to Write
Mathematics'',
in {\em Selecta, Expository Writing}, Springer, 1983, pp.157-186.
% a web page - author known
\bibitem{online}{\sc Andrew Harnack, Eugene Kleppinger}, "Using MLA Style
to Cite and Document Sources", in
{\em online!: a reference guide to using online sources},
Bedford/St.Martin's, 2003, 28 June, 2005.
\verb++.
%a book
\bibitem{lamport} {\sc Leslie Lamport},{\em Latex: A
Document Preparation System: User's Guide and Reference
Manual}, Addison-Wesley, 1985.
%a website - organization known
\bibitem{maa:undergrad} {\em MAA Online}, 2005,
Mathematical Association of America, 29 June 2005,
Information for Undergraduate Students,
\verb++.
\end{thebibliography}
\end{document}