美赛论文LaTeX实用模板.docx
《美赛论文LaTeX实用模板.docx》由会员分享,可在线阅读,更多相关《美赛论文LaTeX实用模板.docx(47页珍藏版)》请在冰豆网上搜索。
美赛论文LaTeX实用模板
\documentclass{icmmcm}
\usepackage{url}%ForformattingURLsandotherwebor
%filereferences.
\usepackage{mflogo}%ProvidestheMETAFONTlogo;you
%won'tneeditforyourreport.
\usepackage{graphicx}%Forimportinggraphics.
\usepackage{natbib}
%%%SampleICM/MCMContestSubmission
%%%
%%%Basedonsampleseniorthesisdocument
%%%LastmodifiedbyJeremyRouse
%%%Summer2000
%%%
%%%andontheLaTeXHintsdocument
%%%createdbyC.M.Connelly
%%%Copyright2002-2012
%%%---------------
%%%LocalmandandEnvironmentDefinitions
%%%Ifyouhaveanylocalmandorenvironmentdefinitions,putthem
%%%hereorinaseparatestylefilethatyouloadwith\usepackage.
%\newtheoremdeclarations
\newtheorem{Theo1}{Theorem}
\newtheorem{Theo2}{Theorem}[section]
\newtheorem{Lemma}[Theo2]{Lemma}
%Eachoftheabovedefinesanewtheoremenvironment.
%Multipletheoremscanbedoneinthesameenvironment.
%Theo2'snumberisdefinedbythesubsectionit'sin.
%Theo3usesthesamenumberingcounterandnumberingsystemas
%Theo2(that'sthemeaningof[Theo2]).
%%%Youprobablywon'twantanyofthefollowingmands,whichare
%%%heretoallowvariousthenamesofmands,makeexamplestypeset
%%%properly,andsoon.Youcan,ofcourse,usethemasexamplesfor
%%%yourownuser-definedmands.
\newmand{\bslash}{\symbol{'134}}%backslash
\newmand{\bsl}{{\texttt{\bslash}}}
\newmand{\}[1]{\bsl\texttt{#1}\xspace}
\newmand{\file}[1]{\texttt{#1}\xspace}
\newmand{\pdftex}{PDF\tex}
\newmand{\pdflatex}{PDF\latex}
\newmand{\acronym}[1]{\textsc{#1}\xspace}
\newmand{\key}[1]{\textsf{\emph{#1}}\xspace}
\newmand{\class}[1]{\textsf{#1}\xspace}
\newmand{\package}[1]{\textsf{#1}\xspace}
\newmand{\env}[1]{\texttt{#1}\xspace}
\newmand{\prog}[1]{\texttt{#1}\xspace}
\newmand{\mand}[1]{\texttt{\bsl{}#1}\xspace}
\newmand{\ctt}{\texttt{p.text.tex}\xspace}
\newmand{\tex}{\TeX\xspace}
\newmand{\latex}{\LaTeX\xspace}
%%%Notethatthe\xspacemandesfromthexspacepackage.It
%%%allowsyoutypeamandthatinsertstextwithouthavingto
%%%worryabouthowyou``end''thatmand.
%%%
%%%Without\xspace,youwouldneedtoendamandwithabackslash
%%%followedbyaspaceorwithanemptysetofbracesifyoufollowed
%%%themandwithaspace.Forexample,
%%%
%%%\fooisaveryimportantalgorithm.
%%%
%%%mightproduce
%%%
%%%Thefoobarbazalgorithmisaveryimportantalgorithm.
%%%
%%%whereaswiththe\xspacemand,thesamecodewouldproduce
%%%
%%%Thefoobarbazalgorithmisaveryimportantalgorithm.
%%%
%%%Ifyouneedtobuttamandthatproducestextagainstaletter
%%%ofsomesort--say,topluralizeit--youneedtotellTeX
%%%whereyourmandnameendssothatitexpandsthecorrect
%%%macro.Soyoumightdo
%%%
%%%\bar{}sareverybusycreatures.
%%%TeXhasanamazinglygoodhyphenationalgorithm,butsometimesit
%%%getsconfusedandneedssomehelp.
%%%
%%%Forwordsthatonlyoccuronceortwice,youcaninserthints
%%%directlyintoyourtext,asin
%%%
%%%ourdata\-basesystemisoneofthemostplexeverdevised
%%%
%%%Forwordsthatyouusealot,andthatseemtokeependingupat
%%%theendofaline,however,insertingthehintseachtimegetsto
%%%beadrag.Youcanusethe\hyphenationmandtogloballytell
%%%TeXwheretohyphenatewordsitcan'tfigureoutonitsown.
\hyphenation{white-space}
%%%EndLocalmandandEnvironmentDefinitions
%%%---------------
%%%---------------
%%%TitleBlock
\title{\latexHintsforICM/MCMContestReports}
%%%Whichcontestareyoutakingpartin?
(Justone!
)
\contest{ICM/MCM}
%%%Thequestionyouanswered.(Again,justtheone.)
\question{ReportSample}
%%%YourContestTeamControlNumber
\team{21247}
%%%Anormaldocumentwouldspecifytheauthor'sname(andpossibly
%%%theiraffiliationorotherinformation)inan\authormand.
%%%BecausetheICM/MCMContestrulesspecifythatthenamesofthe
%%%teammembers,theiradvisor,andtheirinstitutionshouldnot
%%%appearanywhereinthereport,do*not*definean\authormand.
%%%Definingthe\datemandisoptional.Ifyouleaveitblank,
%%%yourdocumentwillincludethedatethatthefileistypeset,in
%%%theform``Monthdd,yyyy''.
%\date{}
%%%EndTitleBlock
%%%---------------
\begin{document}
%%%---------------
%%%Summary
\begin{summary}
Thisdocumentismeanttogiveyouaquickintroductionto\TeX\and
\LaTeX.Itcoversalotofmaterial,butstillbarelymanagesto
scratchthesurface.Itshouldprovideyouwithsomeinspiration
and,Ihope,withsomeusefulcodeyoucancopy,modify,andusein
yourreport.
Youshouldusethe\file{blank-template.tex}fileasabasisfor
yourreportratherthanthisfile.Besuretochangeitsnameto
somethingsensible(maybeyourteamcontrolnumber),andtosetthe
valuesofthe\{title},\{question},and\{team}mands
toappropriatevalues.
Goodluck!
\hfill{}--Claire
\end{summary}
%%%EndSummary
%%%---------------
%%%---------------
%%%PrintTitleBlock,Contents,etal.
\maketitle
\tableofcontents
%%%Unmentthefollowinglinesifyouhavefiguresortablesin
%%%yourreport:
\listoffigures
\listoftables
%%%EndPrintTitleBlock,Contents,etal.
%%%---------------
\section{Introduction:
WhatIs\latex?
}%
\label{sec:
introduction}
\latexisatoolthatallowsyoutoconcentrateonyourwritingwhile
takingadvantageofthe\textypesettingsystemtoproduce
high-qualitytypesetdocuments.
\latex'sbenefitsinclude
\begin{enumerate}
\itemStandardizeddocumentclasses
\itemStructuralframeworksfororganizingdocuments
\itemAutomaticnumberingandcross-referencingofstructuralelements
\item``Floating''figuresandtables
\itemHigh-levelprogramminginterfaceforaccessing\tex's
typesettingcapabilities
\itemAccessto\latexextensionsthroughloading``packages''
\end{enumerate}
\section{StructuredWriting}%
\label{sec:
structured-writing}
LikeHTML,\footnote{HyperTextMarkupLanguage}\latexisamarkup
languageratherthana\acronym{Wysiwyg}{}\footnote{WhatYouSeeIs
WhatYouGet.}system.Youwriteplaintextfilesthatusespecial
\key{mands}and\key{environments}thatgoverntheappearanceand
functionofpartsofyourtextinyourfinaltypesetdocument.
\subsection{DocumentClasses}%
\label{sec:
document-classes}
Thegeneralappearanceofyourdocumentisdeterminedbyyourchoice
of\key{documentclass}.Documentclassesalsoload\latexpackages
toprovideadditionalfunctionality.
\latexprovidesanumberofbasicclasses,including\class{article},
\class{letter},\class{report},and\class{book}.Therearealsoa
largenumberofotherdocumentclassesavailable,including
\class{amsart}and\class{amsbook},createdbytheAmerican
MathematicalSocietyandprovidingsomeadditionalmathematically
usefulstructuresandmands;\class{foils},\class{prosper},and
\class{seminar},whichallowyoutocreate``slides''for
presentations;themathdepartment's\class{thesis}class,for
formattingseniortheses;andmanyjournal-orpany-specific
classesthatformatyourdocumenttomatchthe``housestyle''ofa
particularperiodicalorpublisher.
\subsection{Packages}%
\label{sec:
packages}%
\label{sec:
ctan}
\latexpackages,or\key{stylefiles},defineadditionalmandsand
environments,orchangethewaythatpreviouslydefinedmandsand
environmentswork.Byloadingpackages,youcanchangethefontsused
inyourdocument,writeyourdocumentinanon-Englishlanguagewitha
non-\acronym{Ascii}fontencoding,includegraphics,formatprogram
listings,addcustomheadersandfooterstoyourdocument,andmuch
more.
Atypical\texinstallationincludeshundredsofstylefiles,and
hundredsmoreareavailablefromtheprehensive\texArchive
Network(CTAN),at\url{.ctan.org/}.
\subsection{Structuralmands}%
\label{sec:
structural-mands}
\begin{table}
\centering
\begin{tabular}{ll}
\toprule
mand&Notes\\
\midrule
\{part}&\class{book}\&\class{report}only\\
\{chapter}&\class{book}\&\class{report}only\\
\{section}\\
\{subsection}\\
\{subsubsection}\\
\{paragraph}\\
\{subparagraph}\\
\bottomrule
\end{tabular}
\caption[Structuralmandsin\latex]{Structuralmandsin\latex.}%
\label{tab:
structural-mands}
\end{table}
\latexprovidesasetofstructuralmandsfordefiningsectionsof
yourdocument,asshowninTable~\ref{tab:
structural-mands}.
Notethattheargumenttostructuralmandsaremovingarguments
(seeSection~\ref{sec:
fragile-mands})becausetheycanbereusedin
thetableofcontentsorinpageheadersorfooters.Structural
mandscantakeanoptionalargumentinwhichyouspecifynonfragile
mandsorashorterversionoftheactualsectiontitlethatfits.
You'llgenerallyknowwhenyouneedtoprovideanoptionalargumentby
\TeX'sbehavior.
\subsection{LabelsandReferences}%
\label{sec:
labels-and-references}
Sectionsarenumberedautomaticallyby\latexduringtypesetting.If
youchangeyourmindanddecidethatasubsectionshouldbepromoted
toasection,ormovedtotheendofyourdocument,thesectionswill
berenumberedsothatthenumbersareconsistent.
Sectionscanalsobe\mand{label}{}edwithatagsuchas
\begin{quote}
\begin{verbatim}
\section{OurplicatedEquations}%
\label{sec:
plicated-eqs}
\end{verbatim}
\end{quote}
andreferredtowitha\mand{ref}or\mand{pageref}mand,as
in
\begin{quote}
\begin{verbatim}
InSection~\ref{sec:
plicated-eqs},wepointedout...
\end{verbatim}
\end{quote}
or
\begin{quote}
\begin{verbatim}
Onpage~\pageref{fig:
gordian-knot},weillustrated...
\end{verbatim}
\end{quote}
\latexsubstitutesthecorrectsectionnumberwhentypesettin