峥嵘岁月
记得第一次参加美赛是是一个寒冷潮湿的早春,那时还不怎么会 ,我们用word+在线文档小程序“语文建模”,比赛的第三天在本地word上从早写到晚,结果一次不小心的操作(应该是先误删后保存再关闭文件)导致这一天书写的内容功亏一篑,虽然有手动备份但也是当天早上非常原始的版本。幸好当时还有把新建的文件放到桌面上编辑的习惯,登录OneDrive才重新恢复了文件。
迎接第二次参赛的是更加充分的准备与技术加持。当时一整个寒假都在学习相关知识,这里不得不力荐一下2021年O奖得主浩然讲数学建模 ,他的这个合集尤其是论文写作这块讲得非常棒;另一方面,我也在思考如何提前搜集好相关的资源例如数据网站并汇总到一起形成一个网页,于是我建立了自己的第一个Pages,也就是现在博客的第一篇内容 🤣;最后就是提前准备好论文模板,在一段时间的搜寻后发现了这样一份简洁易用的 模板——EasyMCM .
激扬文字
“要想拿O奖,首先得长得像O奖。”
浩然讲数学建模 合集视频可以说几乎都是围绕这句话展开的,所以要长得像O奖,先从论文模板开始!根据他的O奖论文模板顺藤摸瓜,我找到了原始的模板并在此基础上综合其他O奖论文中的特色进行了细微的修改与补充,其中主要的改进有
完善了并列子图的代码,组图和每个子图可分别定义caption和label,精确控制子图间距,1x2,1x3,2x2等等排列方式自由组合
引入algorithm2e
宏包,添加了伪代码的模板
完善了附录代码的添加功能,直接将代码文件放在code
文件夹下即可
完善了BibTeX
的引用方法,可以将参考文献的.bib
文件直接放在根目录下自动生成参考文献
定义了\upcite
命令,将引用符号上标
增加了超链接
调整了模型假设部分的格式,采用了2020A题O奖论文#200134(经典)中的样式,比如这个
上述代码片段
下面列出了部分的新增代码片段,更方便直接copy😋
组图
1x2的组图
1 2 3 4 5 6 7 8 9 10 11 12 13 14 \begin {figure}[htbp] \centering \begin {subfigure}[b]{.3\textwidth } \includegraphics [width=\textwidth ]{img/example-image-a.pdf} \caption {left}\label {subfig:left} \end {subfigure} \hspace {10mm} \begin {subfigure}[b]{.3\textwidth } \includegraphics [width=\textwidth ]{img/example-image-b.pdf} \caption {right}\label {subfig:right} \end {subfigure} \caption {Two images}\label {subfigure} \end {figure}
1x3的组图
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 \begin {figure}[!htbp] \centering \begin {subfigure}[t]{0.3\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-a.pdf} \caption *{} \label {} \end {subfigure} \begin {subfigure}[t]{0.3\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-b.pdf} \caption *{} \label {} \end {subfigure} \begin {subfigure}[t]{0.3\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-c.pdf} \caption *{} \label {} \end {subfigure} \caption {Three images} \label {Three images} \end {figure}
2x2的组图
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 \begin {figure}[!htbp] \centering \begin {subfigure}[t]{0.4\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-a.pdf} \caption {左上} \label {} \end {subfigure} \begin {subfigure}[t]{0.4\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-b.pdf} \caption {右上} \label {} \end {subfigure} \qquad \begin {subfigure}[t]{0.4\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-a.pdf} \caption {左下} \label {} \end {subfigure} \begin {subfigure}[t]{0.4\textwidth } \centering \includegraphics [width=\textwidth ]{img/example-image-b.pdf} \caption {右下} \label {} \end {subfigure} \caption {组图组图变变变} \end {figure}
伪代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 \begin {algorithm}[H] \KwIn {输入} \KwOut {输出 } initialization\; \While {not at end of this document}{ read current\; \Repeat {this end condition}{ do these things\; } \eIf {understand}{ go to next section\; current section becomes this one\; }{ go back to the beginning of current section\; } \Do {this end condition}{ do these things\; } } \caption {How to write algorithms} \end {algorithm}
超链接
请使用\href{url}{caption}
,例如:
1 \href {https://www.wolframalpha.com }{wolframalpha}
浪遏飞舟
一些常见的缩略语💬
i.e., blabla
也即是blabla(一定加逗号)
e.g., blabla
例如,blabla
, etc. blabla
,等等。blabla
n.b.
特别注意
cf.
参见
一些实用的 辅助工具🔧
下载与使用
可以直接把该仓库clone到本地,也可以前往GitHub下载最新的源文档LDMCM
1 git clone https://github.com/LeyuDame/LDMCM.git
本地编译:
当然也可以上传到overleaf上进行在线编译,编译器选择xelatex
,点击一次compile
即可