├── .gitignore ├── PAPER.tex ├── README.md ├── easymcm.sty └── img └── water.png /.gitignore: -------------------------------------------------------------------------------- 1 | ## Generated files 2 | .vscode 3 | PAPER.pdf 4 | 5 | ## Core latex/pdflatex auxiliary files: 6 | *.aux 7 | *.lof 8 | *.log 9 | *.lot 10 | *.fls 11 | *.out 12 | *.toc 13 | *.fmt 14 | *.fot 15 | *.cb 16 | *.cb2 17 | .*.lb 18 | 19 | ## Intermediate documents: 20 | *.dvi 21 | *.xdv 22 | *-converted-to.* 23 | # these rules might exclude image files for figures etc. 24 | # *.ps 25 | # *.eps 26 | # *.pdf 27 | 28 | ## Generated if empty string is given at "Please type another file name for output:" 29 | .pdf 30 | 31 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 32 | *.bbl 33 | *.bcf 34 | *.blg 35 | *-blx.aux 36 | *-blx.bib 37 | *.run.xml 38 | 39 | ## Build tool auxiliary files: 40 | *.fdb_latexmk 41 | *.synctex 42 | *.synctex(busy) 43 | *.synctex.gz 44 | *.synctex.gz(busy) 45 | *.pdfsync 46 | 47 | ## Build tool directories for auxiliary files 48 | # latexrun 49 | latex.out/ 50 | 51 | ## Auxiliary and intermediate files from other packages: 52 | # algorithms 53 | *.alg 54 | *.loa 55 | 56 | # achemso 57 | acs-*.bib 58 | 59 | # amsthm 60 | *.thm 61 | 62 | # beamer 63 | *.nav 64 | *.pre 65 | *.snm 66 | *.vrb 67 | 68 | # changes 69 | *.soc 70 | 71 | # comment 72 | *.cut 73 | 74 | # cprotect 75 | *.cpt 76 | 77 | # elsarticle (documentclass of Elsevier journals) 78 | *.spl 79 | 80 | # endnotes 81 | *.ent 82 | 83 | # fixme 84 | *.lox 85 | 86 | # feynmf/feynmp 87 | *.mf 88 | *.mp 89 | *.t[1-9] 90 | *.t[1-9][0-9] 91 | *.tfm 92 | 93 | #(r)(e)ledmac/(r)(e)ledpar 94 | *.end 95 | *.?end 96 | *.[1-9] 97 | *.[1-9][0-9] 98 | *.[1-9][0-9][0-9] 99 | *.[1-9]R 100 | *.[1-9][0-9]R 101 | *.[1-9][0-9][0-9]R 102 | *.eledsec[1-9] 103 | *.eledsec[1-9]R 104 | *.eledsec[1-9][0-9] 105 | *.eledsec[1-9][0-9]R 106 | *.eledsec[1-9][0-9][0-9] 107 | *.eledsec[1-9][0-9][0-9]R 108 | 109 | # glossaries 110 | *.acn 111 | *.acr 112 | *.glg 113 | *.glo 114 | *.gls 115 | *.glsdefs 116 | *.lzo 117 | *.lzs 118 | 119 | # uncomment this for glossaries-extra (will ignore makeindex's style files!) 120 | # *.ist 121 | 122 | # gnuplottex 123 | *-gnuplottex-* 124 | 125 | # gregoriotex 126 | *.gaux 127 | *.gtex 128 | 129 | # htlatex 130 | *.4ct 131 | *.4tc 132 | *.idv 133 | *.lg 134 | *.trc 135 | *.xref 136 | 137 | # hyperref 138 | *.brf 139 | 140 | # knitr 141 | *-concordance.tex 142 | # TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files 143 | # *.tikz 144 | *-tikzDictionary 145 | 146 | # listings 147 | *.lol 148 | 149 | # luatexja-ruby 150 | *.ltjruby 151 | 152 | # makeidx 153 | *.idx 154 | *.ilg 155 | *.ind 156 | 157 | # minitoc 158 | *.maf 159 | *.mlf 160 | *.mlt 161 | *.mtc[0-9]* 162 | *.slf[0-9]* 163 | *.slt[0-9]* 164 | *.stc[0-9]* 165 | 166 | # minted 167 | _minted* 168 | *.pyg 169 | 170 | # morewrites 171 | *.mw 172 | 173 | # nomencl 174 | *.nlg 175 | *.nlo 176 | *.nls 177 | 178 | # pax 179 | *.pax 180 | 181 | # pdfpcnotes 182 | *.pdfpc 183 | 184 | # sagetex 185 | *.sagetex.sage 186 | *.sagetex.py 187 | *.sagetex.scmd 188 | 189 | # scrwfile 190 | *.wrt 191 | 192 | # sympy 193 | *.sout 194 | *.sympy 195 | sympy-plots-for-*.tex/ 196 | 197 | # pdfcomment 198 | *.upa 199 | *.upb 200 | 201 | # pythontex 202 | *.pytxcode 203 | pythontex-files-*/ 204 | 205 | # tcolorbox 206 | *.listing 207 | 208 | # thmtools 209 | *.loe 210 | 211 | # TikZ & PGF 212 | *.dpth 213 | *.md5 214 | *.auxlock 215 | 216 | # todonotes 217 | *.tdo 218 | 219 | # vhistory 220 | *.hst 221 | *.ver 222 | 223 | # easy-todo 224 | *.lod 225 | 226 | # xcolor 227 | *.xcp 228 | 229 | # xmpincl 230 | *.xmpi 231 | 232 | # xindy 233 | *.xdy 234 | 235 | # xypic precompiled matrices and outlines 236 | *.xyc 237 | *.xyd 238 | 239 | # endfloat 240 | *.ttt 241 | *.fff 242 | 243 | # Latexian 244 | TSWLatexianTemp* 245 | 246 | ## Editors: 247 | # WinEdt 248 | *.bak 249 | *.sav 250 | 251 | # Texpad 252 | .texpadtmp 253 | 254 | # LyX 255 | *.lyx~ 256 | 257 | # Kile 258 | *.backup 259 | 260 | # gummi 261 | .*.swp 262 | 263 | # KBibTeX 264 | *~[0-9]* 265 | 266 | # TeXnicCenter 267 | *.tps 268 | 269 | # auto folder when using emacs and auctex 270 | ./auto/* 271 | *.el 272 | 273 | # expex forward references with \gathertags 274 | *-tags.tex 275 | 276 | # standalone packages 277 | *.sta 278 | 279 | # Makeindex log files 280 | *.lpz 281 | 282 | # xwatermark package 283 | *.xwm 284 | 285 | # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib 286 | # option is specified. Footnotes are the stored in a file with suffix Notes.bib. 287 | # Uncomment the next line to have this generated file ignored. 288 | #*Notes.bib 289 | -------------------------------------------------------------------------------- /PAPER.tex: -------------------------------------------------------------------------------- 1 | %% 美赛模板:正文部分 2 | 3 | \documentclass[12pt]{article} % 官方要求字号不小于 12 号,此处选择 12 号字体 4 | 5 | % 本模板不需要填写年份,以当前电脑时间自动生成 6 | % 请在以下的方括号中填写队伍控制号 7 | \usepackage[1234567]{easymcm} % 载入 EasyMCM 模板文件 8 | \problem{A} % 请在此处填写题号 9 | \usepackage{mathptmx} % 这是 Times 字体,中规中矩 10 | %\usepackage{mathpazo} % 这是 COMAP 官方杂志采用的更好看的 Palatino 字体,可替代以上的 mathptmx 宏包 11 | 12 | \title{An MCM Paper Made by Team 1234567} % 标题 13 | 14 | % 如需要修改题头(默认为 MCM/ICM),请使用以下命令(此处修改为 MCM) 15 | %\renewcommand{\contest}{MCM} 16 | 17 | % 文档开始 18 | \begin{document} 19 | 20 | % 此处填写摘要内容 21 | \begin{abstract} 22 | Here is the abstract of your paper. 23 | 24 | Firstly, that is ... 25 | 26 | Secondly, that is ... 27 | 28 | Finally, that is ... 29 | 30 | % 美赛论文中无需注明关键字。若您一定要使用, 31 | % 请将以下两行的注释号 '%' 去除,以使其生效 32 | % \vspace{5pt} 33 | % \textbf{Keywords}: MATLAB, mathematics, LaTeX. 34 | 35 | \end{abstract} 36 | 37 | \maketitle % 生成 Summary Sheet 38 | \tableofcontents % 生成目录 39 | 40 | 41 | % 正文开始 42 | \section{Introduction} 43 | \subsection{Problem Background} 44 | Here is the problem background ... 45 | 46 | Two major problems are discussed in this paper, which are: 47 | \begin{itemize} 48 | \item Doing the first thing. 49 | \item Doing the second thing. 50 | \end{itemize} 51 | 52 | \subsection{Literature Review} 53 | A literatrue\cite{1} say something about this problem ... 54 | 55 | \subsection{Our work} 56 | We do such things ... 57 | 58 | \begin{enumerate}[\bfseries 1.] 59 | \item We do ... 60 | \item We do ... 61 | \item We do ... 62 | \end{enumerate} 63 | 64 | \section{Preparation of the Models} 65 | \subsection{Assumptions} 66 | 67 | \subsection{Notations} 68 | The primary notations used in this paper are listed in Table \ref{tb:notation}. 69 | 70 | % 三线表示例 71 | \begin{table}[!htbp] 72 | \begin{center} 73 | \caption{Notations} 74 | \begin{tabular}{cl} 75 | \toprule 76 | \multicolumn{1}{m{3cm}}{\centering Symbol} 77 | &\multicolumn{1}{m{8cm}}{\centering Definition}\\ 78 | \midrule 79 | $A$&the first one\\ 80 | $b$&the second one\\ 81 | $\alpha$ &the last one\\ 82 | \bottomrule 83 | \end{tabular}\label{tb:notation} 84 | \end{center} 85 | \end{table} 86 | 87 | \section{The Models} 88 | \subsection{Model 1} 89 | \subsubsection{Details about Model 1} 90 | The detail can be described by equation \eqref{eq:heat}: 91 | \begin{equation}\label{eq:heat} 92 | \frac{\partial u}{\partial t} - a^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2} \right) = f(x, y, z, t) 93 | \end{equation} 94 | 95 | \subsection{Model 2} 96 | \subsubsection{Conclusion of Model 2} 97 | The results are shown in Figure \ref{fig:result}, where $t$ denotes the time in seconds, and $c$ refers to the concentration of water in the boiler. 98 | 99 | \begin{figure}[htbp] 100 | \centering 101 | \includegraphics[width=.8\textwidth]{water.png} 102 | \caption{The result of Model 2}\label{fig:result} 103 | \end{figure} 104 | 105 | \clearpage 106 | \subsubsection{Commetary on Model 2} 107 | The instance of long and wide tables are shown in Table \ref{tb:longtable}. 108 | 109 | % 长表格示例,更多用法请参考 longtable 宏包文档 110 | % 以下环境及对应参数可实现表格内的自动换行与表格的自动断页 111 | % 您也可以选择自行载入 tabularx 宏包,并通过 X 参数指定对应列自动换行 112 | \begin{longtable}{ p{4em} p{14em} p{14em} } 113 | \caption{Basic Information about Three Main Continents (scratched from Wikipedia)} 114 | \label{tb:longtable}\\ 115 | \toprule 116 | Continent & Description & Information \\ 117 | \midrule 118 | Africa & Africa Continent is surrounded by the Mediterranean Sea to the 119 | north, the Isthmus of Suez and the Red Sea to the northeast, the Indian 120 | Ocean to the southeast and the Atlantic Ocean to the west. & 121 | At about 30.3 million km$^2$ including adjacent islands, it covers 6\% 122 | of Earth's total surface area and 20\% of its land area. With 1.3 123 | billion people as of 2018, it accounts for about 16\% of the world's 124 | human population. \\ 125 | \midrule 126 | Asia & Asia is Earth's largest and most populous continent which 127 | located primarily in the Eastern and Northern Hemispheres. 128 | It shares the continental landmass of Eurasia with the continent 129 | of Europe and the continental landmass of Afro-Eurasia with both 130 | Europe and Africa. & 131 | Asia covers an area of 44,579,000 square kilometres, about 30\% 132 | of Earth's total land area and 8.7\% of the Earth's total surface 133 | area. Its 4.5 billion people (as of June 2019) constitute roughly 134 | 60\% of the world's population. \\ 135 | \midrule 136 | Europe & Europe is a continent located entirely in the Northern 137 | Hemisphere and mostly in the Eastern Hemisphere. It comprises the 138 | westernmost part of Eurasia and is bordered by the Arctic Ocean to 139 | the north, the Atlantic Ocean to the west, the Mediterranean Sea to 140 | the south, and Asia to the east. & 141 | Europe covers about 10,180,000 km$^2$, or 2\% of the Earth's surface 142 | (6.8\% of land area), making it the second smallest 143 | continent. Europe had a total population of about 741 million (about 144 | 11\% of the world population) as of 2018. \\ 145 | \bottomrule 146 | \end{longtable} 147 | 148 | Figure \ref{fig:subfigures} gives an example of subfigures. Figure \ref{subfig:left} is on the left, and Figure \ref{subfig:right} is on the right. 149 | 150 | % 子图(多图并列)示例,更多用法请参考 subfigure 宏包文档 151 | % 如果您只希望几张图并列,不需要额外的 caption,那么在 figure 环境中 152 | % 连续插入总宽度不超过 \textwidth 的多个 \includegraphics 命令即可 153 | \begin{figure}[htbp] 154 | \centering 155 | \begin{subfigure}[b]{.4\textwidth} 156 | \includegraphics[width=\textwidth]{water.png} 157 | \caption{Image on the left}\label{subfig:left} 158 | \end{subfigure} 159 | \begin{subfigure}[b]{.4\textwidth} 160 | \includegraphics[width=\textwidth]{water.png} 161 | \caption{Image on the right}\label{subfig:right} 162 | \end{subfigure} 163 | \caption{Two images}\label{fig:subfigures} 164 | \end{figure} 165 | 166 | \section{Strengths and Weaknesses} 167 | \subsection{Strengths} 168 | \begin{itemize} 169 | \item First one... 170 | \item Second one ... 171 | \end{itemize} 172 | 173 | \subsection{Weaknesses} 174 | \begin{itemize} 175 | \item Only one ... 176 | \end{itemize} 177 | 178 | 179 | % 以下为信件/备忘录部分,不需要可自行去掉 180 | % 如有需要可将整个 letter 环境移动到文章开头或中间 181 | % 请在第二个花括号内填写标题,如「信件」(Letter)或「备忘录」(Memorandum) 182 | \begin{letter}{Memorandum} 183 | \begin{flushleft} % 左对齐环境,无首行缩进 184 | \textbf{To:} Heishan Yan\\ 185 | \textbf{From:} Team 1234567\\ 186 | \textbf{Date:} October 1st, 2019\\ 187 | \textbf{Subject:} A better choice than MS Word: \LaTeX 188 | \end{flushleft} 189 | 190 | In the memo, we want to introduce you an alternate typesetting program to the prevailing MS Word: \textbf{\LaTeX}. In fact, the history of \LaTeX\ is even longer than that of MS Word. In 1970s, the famous computer scientist Donald Knuth first came out with a typesetting program, which named \TeX\ \ldots 191 | 192 | Firstly, \ldots 193 | 194 | Secondly, \ldots 195 | 196 | Lastly, \ldots 197 | 198 | According to all those mentioned above, it is really worth to have a try on \LaTeX! 199 | \end{letter} 200 | 201 | 202 | % 参考文献,此处以 MLA 引用格式为例 203 | \begin{thebibliography}{99} 204 | \bibitem{1} Einstein, A., Podolsky, B., \& Rosen, N. (1935). Can quantum-mechanical description of physical reality be considered complete?. \emph{Physical review}, 47(10), 777. 205 | \bibitem{2} \emph{A simple, easy \LaTeX\ template for MCM/ICM: EasyMCM}. (2018). Retrieved December 1, 2019, from\url{https://www.cnblogs.com/xjtu-blacksmith/p/easymcm.html} 206 | \end{thebibliography} 207 | 208 | 209 | % 以下为附录内容 210 | % 如您的论文中不需要附录,请自行删除 211 | \begin{subappendices} % 附录环境 212 | 213 | \section{Appendix A: Further on \LaTeX} 214 | To clarify the importance of using \LaTeX\ in MCM or ICM, several points need to be covered, which are \ldots 215 | 216 | To be more specific, \ldots 217 | 218 | All in all, \ldots 219 | 220 | Anyway, nobody \textbf{really} needs such appendix \ldots 221 | 222 | \section{Appendix B: Program Codes} 223 | Here are the program codes we used in our research. 224 | 225 | % 代码环境示例三则 226 | % 如您的论文不需要展示代码,请删除 227 | % 更多用法,请参考 listings 宏包文档 228 | 229 | % Python 代码示例 230 | \begin{lstlisting}[language=Python, name={test.py}] 231 | # Python code example 232 | for i in range(10): 233 | print('Hello, world!') 234 | \end{lstlisting} 235 | 236 | % MATLAB 代码示例 237 | \begin{lstlisting}[language=MATLAB, name={test.m}] 238 | % MATLAB code example 239 | for i = 1:10 240 | disp("hello, world!"); 241 | end 242 | \end{lstlisting} 243 | 244 | % C++ 代码示例 245 | \begin{lstlisting}[language=C++, name={test.cpp}] 246 | // C++ code example 247 | #include 248 | using namespace std; 249 | 250 | int main() { 251 | for (int i = 0; i < 10; i++) 252 | cout << "hello, world" << endl; 253 | return 0; 254 | } 255 | \end{lstlisting} 256 | 257 | \end{subappendices} % 附录内容结束 258 | 259 | \end{document} % 结束 260 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 一个简洁、易用的美赛 LaTeX 模板: easymcm 2 | 3 | [![GitHub release (latest by date)](https://img.shields.io/github/v/release/xjtu-blacksmith/easymcm)](https://github.com/xjtu-blacksmith/easymcm/releases) 4 | ![GitHub All Releases](https://img.shields.io/github/downloads/xjtu-blacksmith/easymcm/total) 5 | 6 | |:warning: 停止更新说明| 7 | |:-| 8 | |因个人时间精力有限,且已本科毕业多年,无法再关注到比赛相关进展,恐该模板无法及时在每年比赛前适配实现相应功能,决定自【**2023 年上半年**】开始停止更新维护!各位新用户如希望继续使用 LaTeX 参加美塞建模,请使用由 LaTeXStudio 开发维护的 `mcmthesis` 文档类:[GitHub 主页](https://github.com/latexstudio-org/mcmthesis);或者,也可在 上查找其他用户发布的美塞简易模板及论文样例,它们的开发时间更新,在使用上也较本模板更为灵活,可根据自己的需要增添功能。
感谢大家多年来对本模板的支持!如果您是低年级在校大学生,有意接力本模板的继续维护更新,也欢迎通过邮件与我取得联系: 9 | 10 | --- 11 | 12 | easymcm 是一个为美国大学生数学建模竞赛(MCM)准备的简易 LaTeX 模板。它二次开发自 LaTeX 宏包 `mcmthesis` 于 2013 年发布的 `v5.0` 版本,原作者是[王昭礼](http://www.latexstudio.net)。 13 | 14 | > 事实上,`easymcm` 与另一美赛 `mcmthesis` 的最新版本并无关联,后者为一个文档类(class)而非一个宏包(package)。该文档类现由 [Liam0205](https://github.com/Liam0205/mcmthesis/releases/) 维护。 15 | 16 | 关于 `easymcm` 的说明及其来由,详见原作者[黑山雁的博客](https://xjtu-blacksmith.cn/program/easymcm)。2019 年时,easymcm 宏包由[黑山雁](https://github.com/xjtu-blacksmith)移交给[钱院学辅](https://qyxf.site)组织管理;到 2020 年,因若干原因,本模板再次移回到黑山雁个人名下。 17 | 18 | ## 发布渠道 19 | 20 | [![GitHub Repo stars](https://img.shields.io/github/stars/xjtu-blacksmith/easymcm?style=social)](https://github.com/xjtu-blacksmith/easymcm) 21 | [![Gitee Repo stars](https://gitee.com/xjtu-blacksmith/easymcm/badge/star.svg?theme=dark)](https://gitee.com/xjtu-blacksmith/easymcm/stargazers) 22 | 23 | 开发和分享此宏包,并无功利目的,仅是为了方便初学者的使用;基于此目的,作者不会将该宏包发布到 CTAN 之上,仅供国内用户学习使用。 24 | 25 | - GitHub(主要分发平台): 26 | - Gitee(国内镜像): 27 | 28 | ## 使用说明 29 | 30 | 本模板中包含的主要文件为两个: 31 | 32 | - `easymcm.sty`:宏包文件,定义了论文的各项样式、配置; 33 | - `PAPER.tex`:论文正文,用于撰写论文的具体内容。 34 | 35 | 后者可根据用户的需要修改为其他名称,例如队伍控制号为 1234567 的队伍可将 `PAPER.tex` 改名为 `1234567.tex` 再编译,这样将直接得到文件名符合官方要求的 `1234567.pdf` 文件。 36 | 37 | 在这两份文件中,均有详细的注释说明。若用户需要局部修改样式(如修改某处的字号、段间距),在 `PAPER.tex` 中对应位置用分组 + 命令的方式就可解决;若用户需要修改全局样式(如修改正文的默认段间距),则可先到 `easymcm.sty` 文件中检查是否有对应的命令进行设置,若有可直接修改其参数,若无可自行添加。 38 | 39 | ## 编译方式 40 | 41 | 本份模板允许使用 `pdftex`、`xetex`、`luatex` 等各个通行引擎编译,兼容老旧的 CTeX 套装。 42 | 43 | 若您使用 CTeX 套装,建议您在[发布](https://github.com/qyxf/easymcm/releases)页面上下载**带有 ANSI 字样**的文件,否则文件中的中文注释将在 CTeX 套装的 WinEdt 编辑器中显示为乱码;反之,若您使用的是比较新的发行版本,请不要使用带有 ANSI 字样的版本。 44 | 45 | 如您身处比较流畅的国际网络环境中(例如,能够访问 Google),推荐您使用 [Overleaf](https://overleaf.com) 在线编译,以减少各类错误的发生。下载本模板的 `zip` 压缩包,并上传至 Overleaf 中作为项目,即可快速编辑、编译。 46 | 47 | ## 联系作者 48 | 49 | 本模板目前由[黑山雁](https://github.com/xjtu-blacksmith)维护。若在使用过程中出现任何问题,可通过以下方式联系作者: 50 | 51 | - 在本模板的[讨论页面](https://github.com/xjtu-blacksmith/easymcm/discussions)发布帖子(推荐,但需要注册 GitHub 账号); 52 | - 通过作者的邮箱 xjbs@protonmail.com 联系作者(不推荐,作者很可能不会回复你)。 53 | -------------------------------------------------------------------------------- /easymcm.sty: -------------------------------------------------------------------------------- 1 | %% 2 | %% EasyMCM: 一个简洁、易用的美赛模板 3 | %% Oringinal template (MCMthesis v5.0) by latexstudio, 4 | %% Redeveloped by Heishan Yan (xjtu-blacksmith), 5 | %% 目前由黑山雁(@xjtu-blacksmith)维护 6 | %% 7 | %% v5.00 : 注释全部汉化(且添加了大量注释),并将格式改进为符合当前规范的版本 8 | %% v5.01 : 正式改为独立宏包 EasyMCM,改为简洁、清晰、符合美赛规范的格式 9 | %% v5.02 : 支持了 7 位控制号,改进了若干已知问题,并补充了一些非必需的内容 10 | %% v5.1 : 适配 2020 年 Summary sheet 样式,大幅优化代码,更加简明易用 11 | %% v5.2 : 适配 2021 年 Summary sheet 样式,更正了页码,并增加一些例子 12 | %% v5.2.2: 适配 2022 年 Summary sheet 样式,调整纸张大小为 US letter 13 | %% 14 | %% 个人网站:https://xjtu-blacksmith.cn 15 | %% 博客发布页面:https://xjtu-blacksmith.cn/program/easymcm 16 | %% GitHub 发布页面:https://github.com/xjtu-blacksmith/easymcm/releases 17 | %% Gitee 发布页面:https://gitee.com/xjtu-blacksmith/easymcm/releases 18 | %% 19 | 20 | \NeedsTeXFormat{LaTeX2e}[2005/12/01] 21 | \ProvidesPackage{easymcm}[2022/01/05 easymcm v5.2.2] 22 | \typeout{easymcm package, version 5.2.2} 23 | 24 | % 基本宏包 25 | \RequirePackage[letterpaper,margin=2.5cm,bottom=1.5cm]{geometry} % 页边距和纸张大小 26 | \RequirePackage{fancyhdr,fancybox} % 设置页眉页脚 27 | \RequirePackage{ifthen} % 逻辑结构 28 | \RequirePackage{lastpage} % 生成"Page X of XX" 29 | \RequirePackage{paralist} % 修改 itemize 各项间距 30 | \RequirePackage{indentfirst} % 全文首行缩进 31 | \RequirePackage[toc,page,title,titletoc,header]{appendix} % 附录定制 32 | 33 | % 数学公式 34 | \RequirePackage{amsfonts,amsmath,amssymb} % AMS-LaTeX 符号、公式 35 | 36 | % 定理环境声明 37 | % 事实上大部分论文中用不到,但仍保留以供使用 38 | \newtheorem{Theorem}{Theorem}[section] 39 | \newtheorem{Lemma}[Theorem]{Lemma} 40 | \newtheorem{Corollary}[Theorem]{Corollary} 41 | \newtheorem{Proposition}[Theorem]{Proposition} 42 | \newtheorem{Definition}[Theorem]{Definition} 43 | \newtheorem{Example}[Theorem]{Example} 44 | 45 | % 目录 46 | \RequirePackage{titlesec,titletoc} % 自定义目录样式 47 | \setcounter{tocdepth}{3} % 目录显示到 subsubsection(3) 级别 48 | \RequirePackage[font=small]{caption} % 使图表标题字号小一号 49 | \renewcommand\abstractname{Summary} % 摘要标题 50 | 51 | % 表格相关 52 | \RequirePackage{longtable,multirow,array} % 各种基本的表格宏包 53 | \RequirePackage{booktabs} % 三线表宏包 54 | 55 | % 字体相关 56 | \RequirePackage[T1]{fontenc} % 开启拓展区正文字体 57 | \RequirePackage{url} % 网址宏包,以下命令使得网址能自动换行 58 | \def\UrlBreaks{\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J 59 | \do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V 60 | \do\W\do\X\do\Y\do\Z\do\[\do\\\do\]\do\^\do\_\do\`\do\a\do\b 61 | \do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n 62 | \do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z 63 | \do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]\do\)\do\, 64 | \do\?\do\'\do+\do\=\do\#} 65 | 66 | % 基本参数 67 | \setlength{\headheight}{15pt} 68 | \newcommand{\MCM@control}{0000000} % 队伍控制号,默认为 0000000 69 | \DeclareOption*{\edef\MCM@control{\CurrentOption}} % 宏包选项接收控制号 70 | \ProcessOptions 71 | \newcommand{\control}{\MCM@control} 72 | \newcommand{\team}{Team \#\ \MCM@control} 73 | \newcommand{\contest}{MCM/ICM} 74 | 75 | % 书签,插图和交叉引用的设置 76 | \RequirePackage{graphicx} % 插图 77 | \RequirePackage{subcaption} % 子图 78 | \RequirePackage{flafter} % 引用该宏包可避免图片在引用它的正文之前出现 79 | \RequirePackage{ifpdf} % 判断是否在运行 pdftex 80 | \ifpdf% 81 | \RequirePackage{epstopdf} % pdftex 不能使用 eps 图片,用该宏包转成 pdf 后使用 82 | \DeclareGraphicsExtensions{.pdf,.jpg,.jpeg,.png} % 允许的图片类型 83 | \RequirePackage[ 84 | linkcolor=black, % 消除链接色彩 85 | citecolor=black, 86 | colorlinks=true, 87 | linkcolor=black, 88 | citecolor=black, 89 | urlcolor=black]{hyperref} 90 | \else\DeclareGraphicsExtensions{.eps,.ps} % 不需要转换 eps 图片格式 91 | \ifxetex\RequirePackage[ 92 | xetex, % 运行 xetex 93 | pdfstartview=FitH, 94 | bookmarksnumbered=true, 95 | bookmarksopen=true, 96 | colorlinks=true, 97 | linkcolor=black, 98 | citecolor=black, 99 | urlcolor=black]{hyperref} 100 | \else\RequirePackage[ 101 | dvipdfm, % 运行其他编译引擎(如 luatex) 102 | pdfstartview=FitH, 103 | bookmarksnumbered=true, 104 | bookmarksopen=true, 105 | colorlinks=true, 106 | linkcolor=black, 107 | citecolor=black, 108 | urlcolor=black]{hyperref} 109 | \fi\fi 110 | 111 | % 以下设置使得一页上最多有六个浮动对象(图、表) 112 | % 且顶部最多三个,底部最多三个 113 | % 可自行修改参数 114 | \setcounter{totalnumber}{6} 115 | \setcounter{topnumber}{3} 116 | \setcounter{bottomnumber}{3} 117 | 118 | % 很多人发现缺省的浮动参数过于严格了 119 | % 下面的命令 120 | \renewcommand{\textfraction}{0.15} 121 | \renewcommand{\topfraction}{0.85} 122 | \renewcommand{\bottomfraction}{0.65} 123 | \renewcommand{\floatpagefraction}{0.60} 124 | % 将浮动参数重新设置为更宽松的值。 125 | % ---选自《LaTeX2e插图指南》 126 | 127 | % 图表标题名称 128 | \renewcommand{\figurename}{Figure} 129 | \renewcommand{\tablename}{Table} 130 | \setlength{\belowcaptionskip}{4pt} 131 | \setlength{\abovecaptionskip}{4pt} % 设置 caption 与上下文间距 132 | 133 | % 以下定义了自动识别的图表文件夹 134 | % 若使用这些名字命名文件夹 135 | % 则引用图片路径时只需填文件名即可 136 | \graphicspath{{./}{./img/}{./fig/}{./image/}{./figure/}{./picture/}} 137 | 138 | % 页眉页脚设置 139 | \lhead{\small \team} 140 | \chead{} 141 | \rhead{\small Page \thepage\ of \pageref{LastPage}} 142 | \lfoot{} 143 | \cfoot{} 144 | \rfoot{} 145 | 146 | % 信件/备忘录环境 147 | \newcounter{prefix} % 创建隐藏前缀计数器,避免对 letter 环境编号 148 | \renewcommand{\theHsection}{\theprefix.\thesection} % 针对 hyperref 149 | \newenvironment{letter}[1]{\refstepcounter{section}\addtocounter{section}{-1}\section*{#1}\addcontentsline{toc}{section}{#1}}{\stepcounter{prefix}} 150 | 151 | % 附录代码环境 152 | \RequirePackage{listings} 153 | \renewcommand*{\ttdefault}{txtt} % 代码字体 154 | \lstset{ 155 | showspaces = false, 156 | showstringspaces = false, 157 | showtabs = false, 158 | title = {\raggedright\bfseries\ttfamily\lstname\vspace{1pt}}, 159 | frame = shadowbox, 160 | basicstyle = {\small\ttfamily}, 161 | keywordstyle = {\bfseries}, 162 | tabsize = 4} 163 | 164 | % 快乐 etoolbox 165 | \RequirePackage{etoolbox} % 减轻正文复杂度 166 | \AtBeginEnvironment{abstract}{\setlength\parskip{1ex}} % 摘要中增加段距 167 | \AtBeginEnvironment{thebibliography}{ 168 | \refstepcounter{section} 169 | \addcontentsline{toc}{section}{References}} % 参考文献附加链接 170 | \BeforeBeginEnvironment{subappendices}{ 171 | \clearpage 172 | \setcounter{secnumdepth}{-1}} % 附录附加链接 173 | \BeforeBeginEnvironment{letter}{\clearpage} % 信件环境附加换页 174 | 175 | % COMAP 要求的 Summary Sheet 标题(2020) 176 | % 注意每年比赛时有可能有小调整 177 | % 请以官网发布的样式为准自行做小的修改! 178 | \newcommand{\@problem}[1]{} 179 | \newcommand{\problem}[1]{\gdef\@problem{#1}} 180 | \newcommand{\makesheet}{ %生成sheet头命令的定义 181 | \null% 182 | \vspace*{-5pc}% 183 | \begin{center} 184 | \begingroup 185 | \setlength{\parindent}{0pt} 186 | \begin{minipage}[t]{0.33\linewidth} 187 | \centering 188 | \textbf{Problem Chosen}\\ 189 | \LARGE\@problem 190 | \end{minipage}% 191 | \begin{minipage}[t]{0.34\linewidth} 192 | \centering 193 | \bfseries\the\year\\\contest\\{Summary Sheet} 194 | \end{minipage}% 195 | \begin{minipage}[t]{0.33\linewidth} 196 | \centering 197 | \textbf{Team Control Number}\\ 198 | \LARGE\MCM@control\\[1.8pc] 199 | \end{minipage}\par 200 | \vskip1ex 201 | \rule{\linewidth}{1.5pt}\par 202 | \endgroup 203 | \vskip 10pt% 204 | \end{center}} 205 | 206 | % abstract 环境的设置 207 | \newbox\@abstract % 将摘要创建为盒子 208 | \setbox\@abstract\hbox{} % 盒子置空 209 | \long\def\abstract{\bgroup\global\setbox\@abstract\vbox\bgroup\hsize\textwidth} 210 | \def\endabstract{\egroup\egroup} 211 | \def\make@abstract{ 212 | \vskip -10pt\par 213 | {\centering\Large\bfseries\@title\vskip1ex}\par % 插入论文标题,字号可自己修改 214 | {\centering\bfseries\abstractname\vskip1.5ex}\par %摘要标题 215 | \noindent\usebox\@abstract\par % 摘要正文 216 | \vskip 10pt} % 底部留空,若不需要可删去 217 | 218 | % Summary Sheet 生成 219 | \def\@maketitle{ 220 | \makesheet% 221 | \make@abstract 222 | \pagestyle{empty} 223 | \newpage} 224 | 225 | % 目录生成 226 | \renewcommand\tableofcontents{% 227 | \centerline{\normalfont\Large\bfseries\contentsname% 228 | \@mkboth{% 229 | \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% 230 | \vskip 3ex% 231 | \@starttoc{toc}% 232 | \thispagestyle{fancy} 233 | \clearpage 234 | \pagestyle{fancy} 235 | \setlength\parskip{1ex}} % 调整段间距 236 | 237 | \endinput -------------------------------------------------------------------------------- /img/water.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xjtu-blacksmith/easymcm/835183a57807b7fa45f9d5197804332db0bc5892/img/water.png --------------------------------------------------------------------------------