保姆级手把手教学 数学建模美赛信件格式latex模板(overleaf)
可能是最后一次打美赛了,感觉有的东西不整理整理有点对不起自己的经历。感觉为这个比赛付出过挺多的,这几次参赛的经历也从各种方面提升了我的能力,相信未来的自己也还会怀念这段时光。
个人认为美赛的难点之一就是优质资源难得,不知道自己的整理算不算优质资源,但是还是希望可以为他人提供一点帮助。毕竟自己淋过雨,所以要抢别人的伞(bushi
关于信件方面,感觉网上零零碎碎的整理还是非常多的,但是有很多不符合我个人的预期,方便起见,自己整理了一份。
效果图
话不多说,先上效果图。
就是说没有很好看,但是也不算难看,比直接干巴巴地放一整页字强太多了。
注意点
这部分按要素来吧,这部分主要分为这几个要素难点:
- section去掉序号并居中显示
- 信件格式设计:横线加行间距
- 花边(wallpaper)
- 文本框显示(tcolorbox实现)
- 文本框嵌入至文本(wrapfig)
- 去页眉页脚
- 无序列表(itemize)=> 没什么难度,但是感觉在letter里面还是非常重要的
实现细节
section
之前的章节一般是张这样的
\section 和 \subsection 前都有序号且是左边定格显示
我们操作下:
{\centering\section*{Letter}}
% center居中
% *去标号
信件格式设计
信件一般有个开头,我们用这种双横线中间夹信息的方式表示
需要注意的是行间距需要缩短一点,因为横线和这几行字已经占了很多空间了,如果每行信息还是按照段间距的空位来写的话,实在是没有空间留给后文了。
\noindent\rule{\textwidth}{1pt}
\vspace{-0.2cm}
\noindent \ To:
\vspace{-0.2cm}
\noindent \ From: Team \#1887415157 of 2023 MCM
\vspace{-0.2cm}
\noindent \ Date: February 31, 2023
\vspace{-0.2cm}
\noindent \ Subject:
\vspace{-0.4cm}
\noindent\rule{\textwidth}{1pt}
花边
原来只是想放代码的,然后发现有的读者不会 ps……
那顺便也教一下
- 从网上抓一个比较好看的花边图片,记得稍微高清点,放ps里
- 裁剪工具只留一个花边
- 魔术橡皮擦把白色的地方变透明
- 创建一个白色的大概 38:50 的画布,然后魔术橡皮擦一下
- 放花边,调大小
- 再搞一个,转180度,放对角
- 合并图层并导出
最后把这个上传overleaf,把结果上传overleaf,剩下的交给代码。
%背景
\usepackage{wallpaper}
\begin{document}
% 占据页面1.0(100%)大小,居中显示
\ThisCenterWallPaper{1}{images/bg\(38_50\).png}
\end{document}
文本框
一个比较奇怪的需求吧,不过确实可以用来突出重点,感觉也可以用在其他的几种文体里面,格式创新,方便突出重点。
引入包
\usepackage{fancyhdr}
\usepackage{tcolorbox}
生成黄底文本框,手动调整下行间距段间距。
\begin{tcolorbox}
[
colback=yellow!9!white,%gray background
colframe=white!75!white,% black frame colour
width=7cm,% Use 8cm total width,
% title=,
arc=5mm, auto outer arc,
boxrule=0.5pt,
]
\vspace{0.2cm}
\begin{center}
\fontsize{20pt}{1}\selectfont{}
Note
\end{center}
\vspace{-0.2cm}
1. Text Text Text Text
2. Text Text Text Text Text Text Text Text Text
3. Text Text Text Text Text Text Text Text Text Text Text Text
4. Text Text Text Text
\vspace{0.3cm}
\end{tcolorbox}
文本框嵌入
不能让这个文本框单独占一行,这样空间不足,正文不够写了。
先导入包
%图文混排
\usepackage{wrapfig}
在想在右边插入文本框的文字前加入 \begin{wrapfigure}\end{wrapfigure}
代码段。
\begin{wrapfigure}{r}{8cm}%靠文字内容的右侧
\centering
\begin{tcolorbox}
[
colback=yellow!9!white,%gray background
colframe=white!75!white,% black frame colour
width=7cm,% Use 8cm total width,
% title=,
arc=5mm, auto outer arc,
boxrule=0.5pt,
]
\vspace{0.2cm}
\begin{center}
\fontsize{20pt}{1}\selectfont{}
Note
\end{center}
\vspace{-0.2cm}
1. Text Text Text Text
2. Text Text Text Text Text Text Text Text Text
3. Text Text Text Text Text Text Text Text Text Text Text Text
4. Text Text Text Text
\vspace{0.3cm}
\end{tcolorbox}
%
% \caption{\footnotesize 运动健康}
\end{wrapfigure}
A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning.
This part must be a bit of an unordered list or an ordered list or something like that, otherwise it's really all text and will look super ugly.
去页眉页脚
一句话就好了,不过仅仅只针对这一页
\pagestyle{empty}
无序列表
这个真的没什么难度,但是必须要做。
原因很简单,美赛大段文本不会有人愿意看的。如果这段文本不能在5秒之内抓住评委的眼球,大概率直接被忽略掉。如果一篇文章出现超过4页这样的文本,那就是策略上是重大失误。
相比于前面20页左右的正文,信件显得尤为重要。
为什么?
- 美赛强调创新。因为信件是成果的罗列,是我们的研究对现实的贡献,一些有意思的结果、创新的点子,都可以在这里展示,相当于文章中独立的一块展示你的作品的优点和现实意义的地方
- 美赛的评委来自各个领域。以C题为例,C题为数据分析类方向的题目,但是评委不一定是大数据专业或者机器学习方向的从业者,所以前面的部分实际上对他们来说可理解性不强,那他们看一篇文章最重要的点在哪里?摘要和信件。这两个是最通俗易懂的部分,也是很能反应团队作品亮点的地方。
那么为了方便评委抓住大段文字的重点,是不是这样的无序列表就显得尤为重要了?
直接把文章的亮点甩评委脸上,喂到他嘴里。
代码如下
\begin{itemize}
\item \textbf{Solution 1.} \textbf{Build more shopping centers}. Explain solution1 explain solution1 explain solution1 explain solution1 explain solution1 explain solution1.
\item \textbf{Solution 2.} \textbf{Build more shopping centers}. Explain solution2 explain solution2 explain solution2 explain solution2.
\item \textbf{Solution 3.} \textbf{Build more shopping centers}. Explain solution3 explain solution3 explain solution3in solution1 explain solution1 explain solution1.
\item \textbf{Solution 4.} \textbf{Build more shopping centers}. Explain solution4 explain solution4 explain solution4 explain solution4 explain solution4 explain solution4 explain solution4.
\end{itemize}
% 缩短下距离,为后面的文本再省出点空间
\vspace{-0.4cm}
代码(可直接食用)
博主latex功底一般,很多排版的细节都是靠 \vspace 啊之类的方法暴力解决的。
\documentclass{mcmthesis}
\pagestyle{empty}
%背景
\usepackage{wallpaper}
\usepackage{fancyhdr}
\usepackage{tcolorbox}
% 设置字体
% \usepackage{fontspec}
%图文混排
\usepackage{wrapfig}
\begin{document}
{\centering\section*{Letter}}
% 只在这页添加图片
\ThisCenterWallPaper{1}{images/bg\(38_50\).png}
\newcommand{\tnewroman}{\fontspec{Times New Roman}}
\newcommand{\adobegothicstdb}{\fontspec{Adobe Gothic Std B}}
\newcommand{\Centaur}{\fontspec{Centaur}}
\noindent\rule{\textwidth}{1pt}
\vspace{-0.2cm}
\noindent \ To:
\vspace{-0.2cm}
\noindent \ From: Team \#1887415157 of 2023 MCM
\vspace{-0.2cm}
\noindent \ Date: February 31, 2023
\vspace{-0.2cm}
\noindent \ Subject:
\vspace{-0.4cm}
\noindent\rule{\textwidth}{1pt}
A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning.
\begin{wrapfigure}{r}{8cm}%靠文字内容的右侧
\centering
\begin{tcolorbox}
[
colback=yellow!9!white,%gray background
colframe=white!75!white,% black frame colour
width=7cm,% Use 8cm total width,
% title=,
arc=5mm, auto outer arc,
boxrule=0.5pt,
]
\vspace{0.2cm}
\begin{center}
\fontsize{20pt}{1}\selectfont{}
Note
\end{center}
\vspace{-0.2cm}
1. Text Text Text Text
2. Text Text Text Text Text Text Text Text Text
3. Text Text Text Text Text Text Text Text Text Text Text Text
4. Text Text Text Text
\vspace{0.3cm}
\end{tcolorbox}
%
% \caption{\footnotesize 运动健康}
\end{wrapfigure}
A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning. A randomly generated piece of English that has no real meaning.
This part must be a bit of an unordered list or an ordered list or something like that, otherwise it's really all text and will look super ugly.
\begin{itemize}
\item Solution 1. \textbf{Build more shopping centers}. Explain solution1 explain solution1 explain solution1 explain solution1 explain solution1 explain solution1.
\item Solution 2. \textbf{Build more shopping centers}. Explain solution2 explain solution2 explain solution2 explain solution2.
\item Solution 3. \textbf{Build more shopping centers}. Explain solution3 explain solution3 explain solution3in solution1 explain solution1 explain solution1.
\item Solution 4. \textbf{Build more shopping centers}. Explain solution4 explain solution4 explain solution4 explain solution4 explain solution4 explain solution4 explain solution4.
\end{itemize}
\vspace{-0.4cm}
A part summarizes the words of the table above. Ura Ura Ura Ura Ura Ura Ura Ura. Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba Aba. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah.
Conclusion. This part of writing conclusive things, one or two sentences to summarize it, do not write too much.
\end{document}
更多推荐
所有评论(0)