summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls')
-rw-r--r--Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls99
1 files changed, 76 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls b/Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls
index 6cf5f3220f6..111f0c758dc 100644
--- a/Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls
+++ b/Master/texmf-dist/tex/latex/mcmthesis/mcmthesis.cls
@@ -7,11 +7,9 @@
%% mcmthesis.dtx (with options: `class')
%%
%% -----------------------------------
-%%
%% This is a generated file.
%%
-%% Copyright (C)
-%% 2010 -- 2015 by latexstudio
+%% Copyright (C) 2010 -- 2015 by latexstudio
%% 2014 -- 2019 by Liam Huang
%% 2019 -- present by latexstudio.net
%%
@@ -23,15 +21,13 @@
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
-%% This work has the LPPL maintenance status `maintained'.
-%%
%% The Current Maintainer of this work is latexstudio.net.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{mcmthesis}
- [2024/01/19 v6.3.2 The Thesis Template Designed For MCM/ICM]
+ [2024/01/22 v6.3.3 The Thesis Template Designed For MCM/ICM]
\typeout{The Thesis Template Designed For MCM/ICM}
-\def\MCMversion{v6.3.2}
+\def\MCMversion{v6.3.3}
\RequirePackage{xkeyval}
\RequirePackage{etoolbox}
\define@boolkey{MCM}[MCM@opt@]{CTeX}[false]{}
@@ -40,13 +36,16 @@
\define@boolkey{MCM}[MCM@opt@]{sheet}[true]{}
\define@boolkey{MCM}[MCM@opt@]{titleinsheet}[false]{}
\define@boolkey{MCM}[MCM@opt@]{keywordsinsheet}[false]{}
-\define@cmdkeys{MCM}[MCM@opt@]{tcn,problem}
+\define@cmdkeys{MCM}[MCM@opt@]{tcn,problem,tstyle}
\define@key{MCM}{tcn}[0000]{\gdef\MCM@opt@tcn{#1}}
\define@key{MCM}{problem}[A]{\gdef\MCM@opt@problem{#1}}
-\setkeys{MCM}{tcn=0000,problem=B}
+\define@key{MCM}{tstyle}[A]{\gdef\MCM@opt@tstyle{#1}}
+\setkeys{MCM}{tcn=0000,problem=B,tstyle=\color{red}\bfseries}
\define@key{mcmthesis.cls}{tcn}[0000]{\gdef\MCM@opt@tcn{#1}}
\define@key{mcmthesis.cls}{problem}[A]{\gdef\MCM@opt@problem{#1}}
+\define@key{mcmthesis.cls}{tstyle}[A]{\gdef\MCM@opt@tstyle{#1}}
+\define@boolkey{mcmthesis.cls}[MCM@opt@]{CTeX}{}
\define@boolkey{mcmthesis.cls}[MCM@opt@]{titlepage}{}
\define@boolkey{mcmthesis.cls}[MCM@opt@]{abstract}{}
\define@boolkey{mcmthesis.cls}[MCM@opt@]{sheet}{}
@@ -63,7 +62,6 @@
\newcommand{\team}{Team \#\ \MCM@opt@tcn}
\RequirePackage{fancyhdr, fancybox}
\RequirePackage{ifthen}
-\RequirePackage{lastpage}
\RequirePackage{listings}
\RequirePackage[toc, page, title, titletoc, header]{appendix}
\RequirePackage{paralist}
@@ -106,10 +104,18 @@
\fi
\fi
\geometry{letterpaper, margin = 1in}
-\pagestyle{fancy}
+\fancypagestyle{main}{
\fancyhf{}
\lhead{\small\sffamily \team}
\rhead{\small\sffamily Page \thepage\ of \pageref{LastPage}}
+}
+\pagestyle{main}
+
+\fancypagestyle{aimain}{
+\fancyhf{}
+\lhead{\small\sffamily \team}
+\rhead{\small\sffamily Page \thepage }
+}
\setlength\parskip{.5\baselineskip}
\renewcommand\tableofcontents{%
\centerline{\normalfont\Large\bfseries\sffamily\contentsname
@@ -148,19 +154,19 @@
\newbox\@abstract%
\setbox\@abstract\hbox{}%
\long\def\abstract{\bgroup\global\setbox\@abstract\vbox\bgroup\hsize\textwidth\leftskip1cm\rightskip1cm}%
- \def\endabstract{\egroup\egroup}
+ \def\endabstract{\egroup\egroup}%
\def\make@abstract{%
- \begin{center}
- \textbf{\abstractname}
- \end{center}
+ \begin{center}%
+ \textbf{\abstractname}%
+ \end{center}%
\usebox\@abstract\par
}
\else
\RenewEnviron{abstract}{\xdef\@abstract{\expandonce\BODY}}
\def\make@abstract{%
- \begin{center}
- \textbf{\abstractname}
- \end{center}
+ \begin{center}%
+ \textbf{\abstractname}%
+ \end{center}%
\@abstract\par
}
\fi
@@ -200,7 +206,7 @@
\begin{minipage}[t]{0.33\linewidth}
\centering%
\textbf{Problem Chosen}\\[0.7pc]
- {\Large\textcolor{red}{\MCM@opt@problem}}\\[2.8pc]
+ {\Large \MCM@opt@tstyle {\MCM@opt@problem}}\\[2.8pc]
\end{minipage}%
\begin{minipage}[t]{0.33\linewidth}
\centering%
@@ -209,7 +215,7 @@
\begin{minipage}[t]{0.33\linewidth}
\centering%
\textbf{Team Control Number}\\[0.7pc]
- {\Large\textcolor{red}{\MCM@opt@tcn}}\\[2.8pc]
+ {\Large\MCM@opt@tstyle{\MCM@opt@tcn}}\\[2.8pc]
\end{minipage}\par
\rule{\linewidth}{1.5pt}
\endgroup
@@ -267,7 +273,7 @@
% with logo specified
\begin{minipage}[t]{\columnwidth}%
\begin{flushright}
- \vspace{-0.6in}
+ \vspace{-0.2in}
\MCM@memologo
\vspace{0.5in}
\par\end{flushright}%
@@ -332,9 +338,56 @@
keywordstyle=\color{darkblue}\bfseries,%
identifierstyle=,%
commentstyle=\color{darkgreen},%\itshape,%
- stringstyle=\color{black}%
+ stringstyle=\color{black},%
+ breaklines=true,%
+ postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}
}
-\lstloadlanguages{C,C++,Java,Matlab,Mathematica}
+\lstloadlanguages{C,C++,Java,Matlab,python,Mathematica}
+
+
+\def\AIcite{\@newl@bel b}
+\let\citation\@gobble
+\DeclareRobustCommand\AIcite{%
+ \@ifnextchar [{\@tempswatrue\@AIcitex}{\@tempswafalse\@AIcitex[]}}
+\def\@AIcitex[#1]#2{\leavevmode
+ \let\@AIcitea\@empty
+ \@AIcite{\@for\@AIciteb:=#2\do
+ {\@AIcitea\def\@AIcitea{,\penalty\@m\ }%
+ \edef\@AIciteb{\expandafter\@firstofone\@AIciteb\@empty}%
+ \if@filesw\immediate\write\@auxout{\string\citation{\@AIciteb}}\fi
+ \@ifundefined{b@\@AIciteb}{\hbox{\reset@font\bfseries ?}%
+ \G@refundefinedtrue
+ \@latex@warning
+ {Citation `\@AIciteb' on page \thepage \space undefined}}%
+ {\@AIcite@ofmt{\csname b@\@AIciteb\endcsname}}}}{#1}}
+\def\@AIcite#1#2{[AI: {#1\if@tempswa , #2\fi}]}
+\let\@AIcite@ofmt\hbox
+
+\def\reportname{Report on Use of AI}
+
+\providecommand\@AIlabel[1]{#1.~}
+
+\newenvironment{ReportAiUse}[1]
+ {\centerline{\underline{\large\sffamily\bfseries\reportname}}%
+ \vspace*{-.2em}
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \list{\@AIlabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@AIlabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\def\AImatter{\label{LastPage}\clearpage\pagestyle{aimain}}
\endinput
%%
%% This work consists of these files mcmthesis.dtx,