latex模板讲解

latex学习

因为数模的美赛需要用到latex最近趁着空暇,学了一下,收获蛮多的,以下是其中学到的一些东西

界面介绍

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-GqpnodqB-1612014370745)(C:\Users\86183\AppData\Roaming\Typora\typora-user-images\image-20210130103654353.png)]

新建文件 打开文件 保存 撤销上一步重做 剪切代码 复制 粘贴 查找和替换 拼写检查 (不太会用) 图片 表格 超链接

注意book chapter只能应用于书籍

\begin {document}%所用的开头都必须要有这个

\end{document}%两个相呼应 一开头一结尾

latex中一个空行代表一个分段

忽然发现一点一点介绍有点麻烦 还是拿模板来讲吧

\documentclass{mcmthesis}

% \documentclass与\begin{document}之间位置称为导言区 作为源代码的开头 规定文档使用的文档类 格式\documentclass{文档名称}

%使用\usepackage 来调用宏包和 一些对于文档的全局设置命令也在这里使用

%mcmthesis这个文档类需要再单独安装一下

\mcmsetup{CTeX = FALSE, % 使用 CTeX 套装时,设置为 true
tcn = 2118837, problem = A,
sheet = true, titleinsheet = true, keywordsinsheet = true,
titlepage = false, abstract = true}

\usepackage{palatino}%调用的字体宏包 这个字体宏包好像有点老 可以考虑换一种
\usepackage{lipsum}

\usepackage{geometry}%这个是用来设置页面参数的宏包

\geometry{left=3.0cm,right=3.0cm}%左右边距3.0cm

%=设置正文和数学字体===============
%有些字体需要安装一些字体文件,注意辨别。
%我参照 MCM论文集的字体 使用如下宏包来定制字体。

\usepackage{graphicx}%这个宏包是用来插入eps格式图片
\usepackage{subfigure}%提供子图表和子标题的排版宏包
\setlength\parskip{.5\baselineskip}

%1.设置段落之间的距离,若不需要删除或者注释掉即可。

%2.setlength是设置专门设置长度的 可设置 段落间垂直距离 \parskip 边框宽度\fboxrule

边框内边距\fboxsep

\newtheorem{definition}{Definition}[section]%newtheorem是设置定理的 格式、newtheroem{定理名称}{定理类型标签 定理还是公理}[章节名称]
\def\abstractname{Abstract}%可修改摘要名称

\usepackage{xeCJK}
\setCJKmainfont{SimSun}%可输入中文

\usepackage{indentfirst}%令章节标题后的第一段首行缩进
\setlength{\parindent}{2em}

%这是首行缩进两字符 将\parinent改为\leftskip是左缩进 \rightskip是右缩进

\usepackage{chngpage}
\usepackage{array}%表格的宏包
\usepackage{booktabs}%制作三线表的宏包
\usepackage{threeparttable}
\usepackage{longtable}%提供排版跨页长表格的环境

\usepackage[numbers,sort&compress]{natbib}
%%% 实现参考文献标号在右上角
\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}
%然后引用的时候使用\upcite{}的格式(一般的正常引用格式为\cite{})

\usepackage{titletoc}%用于修改目录中各条目的格式
\titlecontents{section}[3cm]{\bf \large}{\contentslabel{2.8em}}{}{%
\titlerule*[0.5pc]{ ⋅ \cdot }\contentspage}%
\titlecontents{subsection}[4cm]{\normalsize}{\contentslabel{2.5em}}{}{%
\titlerule*[0.5pc]{ ⋅ \cdot }\contentspage}%
\titlecontents{subsubsection}[5.3cm]{\normalsize}{\contentslabel{3.0em}}{}{%
\titlerule*[0.5pc]{ ⋅ \cdot }\contentspage}%

\title{\large (The Math Behind the Bath: A ”Cool” Investigation on
Cooling }%修改标题题目

\author{ }%用于填写作者

\date{\today}%此命令自动生成当前日期

\begin{document}%文件开始 每一份的开始都必须是这个

\begin{abstract}%开始摘要

\begin{keywords}%关键词开始
\end{keywords}

\end{abstract}%结束摘要
\maketitle%标题结束
%\pagestyle{empty}
\newpage % 开始新一页 %
%==================================================================
%生=成=目=录===============
\begin{adjustwidth}{-1cm}{0cm}

\setcounter{tocdepth}{3}
\thispagestyle{empty}
\tableofcontents %

\end{adjustwidth}

\newpage

\pagestyle{fancy}

\setcounter{page}{1}
\section{Introduction}
\subsection{Background}
\subsection{Problem Restatement}
The problems that we need to solve in this paper are:
\begin{itemize}
\item
\item
\item
\end{itemize}
\section{The Description of the Problem}
\section{The Models}
\numberwithin{equation}{subsection}% 想设置成公式后面显示标号 结果没有成功
\subsection{heat equivalent model}
\subsubsection{Symbols and Definitions}

\begin{itemize}
\item
\end{itemize}
\subsubsection{Assumptions}
\begin{enumerate}
\item
\end{enumerate}
\subsubsection{The Foundation of Model}

Q i n p u t = C m ( T 1 + T 2 ) {Q_{input}} = Cm({T_1} + {T_2}) Qinput=Cm(T1+T2) %注意公式的形式 带俩%和[]\是行间公式
\subsubsection{Solution and Result}
\paragraph{One-dimensional thinking}
\paragraph{One-dimensional form of Fourier heat conduction equation}

\begin{figure}
\centering
\includegraphics[scale=0.3]{空间温度分布情况.eps}
\caption{Space temperature distribution}
\end{figure} %这个是插入图片的

\subsection{Specific heat dissipation model}
\subsubsection{Symbols and Definitions}
\paragraph{Fluid-solid heat conduction model}
\subsubsection{Solution and Result}
\paragraph{Fluid-air interface heat dissipation}

\paragraph{Calculation of heat dissipation between fluid and the outer wall of bathtub}

\subsection{bath water temperature control model}
\subsubsection{Symbols and Definitions}

\subsubsection{Assumptions}
\subsubsection{The Foundation of Model}
\paragraph{Heat input}

\subparagraph{Convective heat dissipation between water surface and air}

\subparagraph{The body heat}

\subparagraph{The heat of discharged water}

\paragraph{ Law of conservation of energy}

\subsubsection{Strength and Weakness}

\subsection{Improved Model}

\subsubsection{The Foundation of Model}

\subsubsection{Analysis of the Result}

\section{Conclusion}

\section{Future Work}

\section{References}
\bibliography{book}
%[1]傅里叶热传导方程和牛顿冷却定律在流体热学研究中的数学模型应用_李昂
%[2]浴缸水温控制模型的建立与仿真_汪佳星
学校的VPN好像有问题,登录不了知网,上面引用的文献格式有点问题 没法从知网里导出bib文件
\newpage
\section{Appendix}
\subsection{Programs and codes}

%\section{First appendix}

\lipsum[13]

Here are simulation programmes we used in our model as follow.\

\textbf{\textcolor[rgb]{0.98,0.00,0.00}{Input matlab source:}}

%输入带颜色的文本 格式 \textcolor{\textcolot[颜色英文]}{色彩代码}
\lstinputlisting[language=Matlab]{./code/mcmthesis-matlab2.m}

%\section{Second appendix}

%some more text \textcolor[rgb]{0.98,0.00,0.00}{\textbf{Input C++ source:}}
%\lstinputlisting[language=C++]{./code/mcmthesis-sudoku.cpp}

\end{document}

上面的代码是我将最近刚刚练习做好的一篇美赛论文 进行拆分删减的 不是一篇完整的美赛latex模板 大家用的时候要注意修改鸭

  • 3
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值