Skip to content

Commit

Permalink
shuwei
Browse files Browse the repository at this point in the history
  • Loading branch information
‘peitsan’ committed Nov 14, 2022
1 parent b29185f commit 83693bf
Show file tree
Hide file tree
Showing 50 changed files with 11,316 additions and 12 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

\maketitle
\begin{abstract}
cumcmthesis 是为全国大学生数学建模竞赛编写的\LaTeX{}模板, 旨在让大家专注于 论文的内容写作, 而不用花费过多精力在格式的定制和调整上. 本手册是相应的参考, 其 中提供了一些环境和命令可以让模板的使用更为方便. 同时需要注意, 使用者需要有一 定的 \LaTeX{} 的使用经验, 至少要会使用常用宏包的一些功能, 比如参考文献,数学公式,图片使用,列表环境等等. 例子文件参看 \texttt{example.tex}.
协议短文写一段文字协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文协议短文写一段文

\begin{mdframed} [%
roundcorner=5pt,
Expand Down Expand Up @@ -140,9 +140,7 @@ \section{模板的基本使用}
\end{tcode}

下面给出写作与排版上的一些建议。

\section{图片}

建模中不可避免要插入图片。图片可以分为矢量图与位图。位图推荐使用 \verb|jpg,png| 这两种格式,避免使用 \verb|bmp| 这类图片,容易出现图片插入失败这样情况的发生。矢量图一般有 \verb|pdf,eps| ,推荐使用 \verb|pdf| 格式的图片,尽量不要使用 \verb|eps| 图片,理由相同。

注意图片的命名,避免使用中文来命名图片,可以用英文与数字的组合来命名图片。避免使用\verb|1,2,3| 这样顺序的图片命名方式。图片多了,自己都不清楚那张图是什么了,命名尽量让它有意义。下面是一个插图的示例代码。
Expand Down Expand Up @@ -185,16 +183,31 @@ \section{图片}
这相当于整体是一张大图片,大图片引用是\cref{fig:sample-figure},子图引用别分是\cref{fig:sample-figure-a}、\cref{fig:sample-figure-b}、\cref{fig:sample-figure-c}。

如果原本两张图片的高度不同,但是希望它们缩放后等高的排在同一行,参考这个例子:


\begin{figure}[c]
\centering
\includegraphics[height=0.2\textheight]{smokeblk}
\caption{多图并排示例}
\end{figure}
\\
\\
\begin{figure}[c]
\centering
\includegraphics[height=0.2\textheight]{smokeblk}
\caption{多图并排示例}
\end{figure
\begin{figure}

\centering
\begin{minipage}[c]{0.48\textwidth}
\centering
\includegraphics[height=0.2\textheight]{cat}
\includegraphics[height=0.1\textheight]{cat.pdf}
\subcaption{一只猫}
\end{minipage}
\begin{minipage}[c]{0.48\textwidth}
\centering
\includegraphics[height=0.2\textheight]{smokeblk}
\includegraphics[height=0.2\textheight]{IMG/13.jpg}
\subcaption{电路图}
\end{minipage}
\caption{多图并排示例}
Expand Down Expand Up @@ -234,7 +247,7 @@ \section{绘制普通三线表格}

\bigskip

table环境是一个将表格嵌入文本的浮动环境。tabular环境的必选参数由每列对应一个格式字符所组成:c表示居中,l表示左对齐,r表示右对齐,其总个数应与表的列数相同。此外,\verb|@{文本}|可以出现在任意两个上述的列格式之间,其中的文本将被插入每一行的同一位置。表格的各行以\verb|\\|分隔,同一行的各列则以\&分隔。 \verb|\toprule| 、\verb|\midrule| 和 \verb|\bottomrule| 三个命令是由booktabs宏包提供的,其中 \verb|\toprule| 和 \verb|\bottomrule| 分别用来绘制表格的第一条(表格最顶部)和第三条(表格最底部)水平线, \verb|\midrule| 用来绘制第二条(表头之下)水平线,且第一条和第三条水平线的线宽为 1.5pt ,第二条水平线的线宽为 1pt 引用方法与图片的相同。
table环境是一个将表格嵌入文本的浮动环境。\\tabular环境的必选参数由每列对应一个格式字符所组成:c表示居中,l表示左对齐,r表示右对齐,其总个数应与表的列数相同。此外,\verb|@{文本}|可以出现在任意两个上述的列格式之间,其中的文本将被插入每一行的同一位置。表格的各行以\verb|\\|分隔,同一行的各列则以\&分隔。 \verb|\toprule| 、\verb|\midrule| 和 \verb|\bottomrule| 三个命令是由booktabs宏包提供的,其中 \verb|\toprule| 和 \verb|\bottomrule| 分别用来绘制表格的第一条(表格最顶部)和第三条(表格最底部)水平线, \verb|\midrule| 用来绘制第二条(表头之下)水平线,且第一条和第三条水平线的线宽为 1.5pt ,第二条水平线的线宽为 1pt \\引用方法与图片的相同。

\section{公式}

Expand All @@ -248,11 +261,23 @@ \section{公式}
\]
其中 $ E $ 是能量,$ m $ 是质量,$ c $ 是光速。

如果希望某个公式带编号,并且在后文中引用可以参考下面的写法:
\begin{equation}
E=mc^2
\label{eq:energy}
\end{equation}
如果希望某个公式带编号,并且在后$\det\log\exp\coprod$文中引用可以参\textbf{考下面的写}法:
$$
\det\log\exp\coprod \
\det\log\exp\coprod
\det\log\exp\coprod \\
\det\log\exp\coprod
\det\log\exp\coprod
$$

\begin{equation}
\det\log\exp\coprod
\tag{5-2-6}
\label{eq:energy}
\end{equation}



\cref{eq:energy}是质能方程。

多行公式有时候希望能够在特定的位置对齐,以下是其中一种处理方法。
Expand Down Expand Up @@ -421,7 +446,7 @@ \section{参考文献与引用}

参考文献对于一篇正式的论文来说是必不可少的,在建模中重要的参考文献当然应该列出。\LaTeX{}在这方面的功能也是十分强大的,下面进介绍一个比较简单的参考文献制作方法。有兴趣的可以学习 \verb|bibtex| 或 \verb|biblatex| 的使用。

\LaTeX{}的入门书籍可以看《\LaTeX{}入门》\cite{liuhaiyang2013latex}。这是一个简单的引用,用 \verb|\cite{bibkey}| 来完成。要引用成功,当然要维护好 bibitem 了。下面是个简单的例子。
\LaTeX{}的入门书籍可以看《\LaTeX{}入门》$^{\cite{liuhaiyang2013latex}}$。这是一个简单的引用,用 \verb|\cite{bibkey}| 来完成。要引用成功,当然要维护好 bibitem 了\cite{mathematical-modeling}。下面是个简单的例子$^{\cite{liuhaiyang}}$

\newpage

Expand All @@ -431,8 +456,15 @@ \section{参考文献与引用}
刘海洋.
\newblock \LaTeX {}入门\allowbreak[J].
\newblock 电子工业出版社, 北京, 2013.


\bibitem[2]{mathematical-modeling}
全国大学生数学建模竞赛论文格式规范 (2019 年 9 月 12 日修改).

\bibitem[3]{liuhaiyang}
刘海洋.
\newblock \LaTeX {}入门\allowbreak[J].
\newblock 电子工业出版社, 北京, 2013.
\end{thebibliography}

\newpage
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shuwei Cup 2022 LaTeX模板.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Shuwei Cup 2022 LaTeX模板/demo.pdf
Binary file not shown.
254 changes: 254 additions & 0 deletions Shuwei Cup 2022 LaTeX模板/demo.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
% !TeX encoding = utf-8
% !TEX spellcheck = en-us
% !TeX program = pdflatex

% !Mode:: "TeX:UTF-8"
%% 本模板可以使用以下两种方式编译:
%%
%% 1. PDFLaTeX[推荐]
%% 2. XeLaTeX

%% 注意:
%%  1. 文件默认的编码为 UTF-8 对于windows,请选用支持UTF-8编码的编辑器。
%% 2. 若是模板有什么问题,请及时与我们取得联系,Email:[email protected]
%% 3. 可以到 https://ask.latexstudio.net 提问


\documentclass{swmcmthesis}

%%%%%%%%%%%%填写相关信息%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{The \LaTeX{} Template for swmcm} %论文题目

\baominghao{202200000001} %报名号,修改为自己的队号

\zubie{ABCD} %选题

\abstract{ {\color{blue}This template was developed by \url{latexstudio.net}} (Your team's summary should be included as the first page of your electronic submission.) Type a summary of your results on this page. Do not include the name of your school, advisor, or team members on this page. \\ \centerline{\includegraphics[width=.5\linewidth]{gongzhonghao-n}} \\ {\color{red}Papers must be submitted as an Adobe PDF electronic file, and typed in English, with a readable font of at least 12-point type. Be sure to change the control number and problem choice above.}} % 摘要

\keywords{keyword1, keyword2, keyword3, keyword4}

\date{2022}

\begin{document}

% 生成首页
\maketitle
% 目录
\tableofcontents

\newpage

% -------------------------正文开始
\setcounter{page}{1}
\section{Introduction}
\lipsum[1]

\begin{center}
{{\Huge Please use pdflatex to compile this file}}
\end{center}

\subsection{Background}
\lipsum[1-2]

\subsection{Use figure}
\lipsum[1-2]

\begin{figure}[h!t]
\centering
\includegraphics[width=0.6\textwidth]{example-image-a}
\caption{caption}
\label{fig:label}
\end{figure}

sub figure without title

\begin{figure}[h!t]
\centering
\subfigure{\includegraphics[width=0.485\linewidth]{example-image-a}}\hfill
\subfigure{\includegraphics[width=0.485\linewidth]{example-image-b}}
\end{figure}

\newpage
sub figure with title

\begin{figure}[h!t]
\centering
\subfigure[title a]{\includegraphics[width=0.485\linewidth]{example-image-a}}\hfill
\subfigure[title b]{\includegraphics[width=0.485\linewidth]{example-image-b}}
\end{figure}

\section{Use table}

\begin{table}[h!t]
\centering
\caption{caption}
\label{tbl:label}
\begin{tabular}{cccccc}
\toprule
A & B & C & A & B & C \\
\midrule
12 & 23 & 34 & 12 & 23 & 34 \\
13 & 24 & 35 & 13 & 24 & 35 \\
14 & 25 & 36 & 14 & 25 & 36 \\
15 & 26 & 37 & 15 & 26 & 37 \\
\bottomrule
\end{tabular}
\end{table}

\subsection{Use Equation}

Eq.~\eqref{eq1} show the xxx
\begin{align}
\label{eq1}
a^2+b^2=c^2
\end{align}
where xxx

Eq.~\eqref{eq2} show the xxx
\begin{align}
\label{eq2}
a^2+b^2=c^2\\
\label{eq3}
a^2+b^2=c^2
\end{align}
where xxx

Eq.~\eqref{eq4} show the xxx
\begin{align}
\label{eq4}
\begin{cases}
a^2+b^2=c^2\\
a^2+b^2=c^2
\end{cases}
\end{align}
where xxx

\subsection{Use enumerate}

\begin{enumerate}
\item xxx
\item xxx
\item xxx
\item xxx
\end{enumerate}

\subsection{Analysis of question two}
\lipsum[1-2]

\section{Symbol and Assumptions}
\lipsum[1-2]

\subsection{Symbol Description}

\begin{table}[!h]
\centering
\begin{tabular}{cc}
\toprule[1.5pt]
Symbol & Description\\
\midrule[1pt]
$D$(in) & xxx xxx\\
$P_u$(lbs) & xxx xxx\\
$u_u$(in) & xxx xxx\\
$\beta$ & xxx xxx\\
$G_f$(psi.in) & xxx xxx\\
\bottomrule[1.5pt]
\end{tabular}
\end{table}

\subsection{References cite}
Learn \LaTeX{} at Ref.\cite{bib:one}

Learn \LaTeX{} at Refs.\cite{bib:one,bib:two}

Learn \LaTeX{} at Refs.\cite{bib:one,bib:two,vedio,bib4}

\section{Model}
\lipsum[1-2]

\section{Test the Models}
\lipsum[1-2]

\section{Sensitivity Analysis}
\lipsum[1-2]

\section{Strengths and Weakness}
\lipsum[1-2]

\section{Conclusion}
\lipsum[1-2]

%----------------------------参考文献

\begin{thebibliography}{9}%宽度9
\bibitem{bib:one} \url{https://www.latexstudio.net}
\bibitem{bib:two} \url{https://wenda.latexstudio.net}
\bibitem{vedio} \url{https://space.bilibili.com/209746320}

\bibitem{bib4} L. Prandtl, Fluid motions with very small friction, Proceedings of the 3rd International Mathematical Congress, Heidelberg: H. Schlichting, 1904, 484-491.

\bibitem{bib5} K. O. Friedriehs and W. Wasow, Singular perturbations of nonlinear oscillations, Duke. Math. J., 1946, 13: 367-381.

\bibitem{bib6} W. Wasow, Asymptotic Expansions for Ordinary Differential Equations, Interscience, New York, 1965.
\end{thebibliography}

% ---------------------开始附录

\newpage

\section*{Appendix}
% 在目录中添加Appendix
\addcontentsline{toc}{section}{Appendix}

\begin{lstlisting}[language=matlab,caption={The matlab Source code of Algorithm}]
kk=2;[mdd,ndd]=size(dd);
while ~isempty(V)
[tmpd,j]=min(W(i,V));tmpj=V(j);
for k=2:ndd
[tmp1,jj]=min(dd(1,k)+W(dd(2,k),V));
tmp2=V(jj);tt(k-1,:)=[tmp1,tmp2,jj];
end
tmp=[tmpd,tmpj,j;tt];[tmp3,tmp4]=min(tmp(:,1));
if tmp3==tmpd, ss(1:2,kk)=[i;tmp(tmp4,2)];
else,tmp5=find(ss(:,tmp4)~=0);tmp6=length(tmp5);
if dd(2,tmp4)==ss(tmp6,tmp4)
ss(1:tmp6+1,kk)=[ss(tmp5,tmp4);tmp(tmp4,2)];
else, ss(1:3,kk)=[i;dd(2,tmp4);tmp(tmp4,2)];
end;end
dd=[dd,[tmp3;tmp(tmp4,2)]];V(tmp(tmp4,3))=[];
[mdd,ndd]=size(dd);kk=kk+1;
end; S=ss; D=dd(1,:);
\end{lstlisting}
\begin{lstlisting}[language=c,caption={The lingo source code}]
kk=2;
[mdd,ndd]=size(dd);
while ~isempty(V)
[tmpd,j]=min(W(i,V));tmpj=V(j);
for k=2:ndd
[tmp1,jj]=min(dd(1,k)+W(dd(2,k),V));
tmp2=V(jj);tt(k-1,:)=[tmp1,tmp2,jj];
end
tmp=[tmpd,tmpj,j;tt];[tmp3,tmp4]=min(tmp(:,1));
if tmp3==tmpd, ss(1:2,kk)=[i;tmp(tmp4,2)];
else,tmp5=find(ss(:,tmp4)~=0);tmp6=length(tmp5);
if dd(2,tmp4)==ss(tmp6,tmp4)
ss(1:tmp6+1,kk)=[ss(tmp5,tmp4);tmp(tmp4,2)];
else, ss(1:3,kk)=[i;dd(2,tmp4);tmp(tmp4,2)];
end;
end
dd=[dd,[tmp3;tmp(tmp4,2)]];V(tmp(tmp4,3))=[];
[mdd,ndd]=size(dd);
kk=kk+1;
end;
S=ss;
D=dd(1,:);
\end{lstlisting}

% ----------------
% 在目录中添加格式规范,可以删掉

% \section*{Format specification}
\addcontentsline{toc}{section}{Format specification}

\includepdfmerge{shuwei,1-2}

\end{document}
Binary file added Shuwei Cup 2022 LaTeX模板/figures/cat.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shuwei Cup 2022 LaTeX模板/shuwei.pdf
Binary file not shown.
Loading

0 comments on commit 83693bf

Please sign in to comment.