Skip to content

Instantly share code, notes, and snippets.

@weisi
Last active September 30, 2015 08:17
Show Gist options
  • Save weisi/1750708 to your computer and use it in GitHub Desktop.
Save weisi/1750708 to your computer and use it in GitHub Desktop.
Lightweight template for Mathematical Contest in Modelling 2012
% multiple1902 <multiple1902@gmail.com>
% mcmthesis.cls
% This work is licensed under a Creative Commons Attribution 3.0 Unported License
% http://creativecommons.org/licenses/by/3.0/
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{mcmthesis}
[2012/2/6 0.9.9 Lightweight Template for Mathematical Contest in Modeling]
\LoadClass[11pt]{article}
\RequirePackage{fullpage}
\RequirePackage[colorlinks, allcolors=black, pdfcreator={LaTeX}]{hyperref}
% Header
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}%
\lhead{Team\# \team}%
\rhead{Page \arabic{page} of \pageref{LastPage}}%
\renewcommand{\headrule}{\hrule \@height \headrulewidth \@width \headwidth
\vskip .5cm}% \vskip -\headrulewidth}
}
\fancypagestyle{memo}{%
\fancyhf{}%
\lhead{Team\# \team}%
\rhead{}%
\renewcommand{\headrule}{\hrule \@height \headrulewidth \@width \headwidth
\vskip .5cm}% \vskip -\headrulewidth}
}
\pagestyle{plain}
\setlength{\headheight}{15pt}
% Typography
%\RequirePackage{mathpazo}
\RequirePackage{concmath}
%\RequirePackage{fouriernc}
%\RequirePackage{tgchorus}
\RequirePackage{multirow}
\RequirePackage{enumerate}
\RequirePackage{mdwlist}
\RequirePackage{pgfgantt}
\RequirePackage{verbatim}
\RequirePackage{graphicx}
\RequirePackage{subfigure}
\RequirePackage{booktabs}
\RequirePackage{tabularx}
\RequirePackage{color}
\RequirePackage{colortbl}
%\RequirePackage[table]{xcolor}
\RequirePackage{pstricks}
\usepackage{algpseudocode}
\usepackage{algorithm}
\RequirePackage{afterpage}
%\afterpage{\clearpage}
% Mathematical packages
\RequirePackage{amsmath,amsthm,amssymb}
% Options
\newcommand{\team}{000}
\author{}
\date{}
% Bold Title
\AtBeginDocument{
\hypersetup{
pdfinfo={
Title={\@title},
Subject={Camping along the Big Long River},
}
}
\let\oldtitle=\@title
\def\@title{\textbf{\oldtitle}}
}
% Environments
\newenvironment{summary}{
\renewcommand{\thepage}{-}
\phantom{\mbox{}}
\vskip -.75in
\includegraphics[width=\linewidth, clip=true, trim=3cm 28cm 1.8cm 20.5cm]{ssheet.pdf}
\pagestyle{empty}
%\phantom{x}
\vskip 2.75in
\begin{center}
\Large \textbf{Summary}
\end{center}
\phantom{x}
}{
\clearpage
\setcounter{page}{1}
\pagestyle{plain}
\renewcommand{\thepage}{\arabic{page}}
}
% multiple1902 <multiple1902@gmail.com>
% paper.tex
% This work is licensed under a Creative Commons Attribution 3.0 Unported License:
% http://creativecommons.org/licenses/by/3.0/
\documentclass{mcmthesis}
\graphicspath{{./figures/}}
\renewcommand{\team}{10086}
\title{Hello}
\begin{document}
\begin{summary}
Hello World
\end{summary}
\maketitle
\section{Hello One}
\section{Hello Two}
\begin{thebibliography}{99}
\bibitem{COMAP} COMAP. (2006). \emph{Contest Rules, Registration and Instructions}.
Retrieved from \url{http://www.comap.com/undergraduate/contests/mcm/instructions.php}
\end{thebibliography}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment