美赛 LaTex排版笔记

  • 1.基础操作与总排版
    • 基础操作
    • 中文排版
      • 字体与字号调节
    • 首行缩进
    • 新开一页
    • 加粗
    • 序列
      • (1)无序序列
      • (2)有序序列
      • (3)步骤描述
    • 分行与分段
    • 强制垂直距离
  • 2.数学
    • 公式
      • (1)行间一个公式
      • (2)行间多个公式
    • 矩阵或行列式
    • 分段函数
    • 假设检验
    • 引理等
  • 3.图表
    • 图片
    • 表格
  • 4.附录环境
  • 5.代码
  • 6. 参考文献
  • 7. 其他配置问题
    • 宏包安装

美赛论文Latex简易模板 | 快速上手(附注释)

1.基础操作与总排版

基础操作

command+T:注释
command+U:反操作

中文排版

字体与字号调节

  • 字体
{\songti 宋体}
{\heiti 黑体}
{\fangsong 仿宋}
{\kaishu 楷书}
  • 字号
\zihao{0}  初号字

首行缩进

  • 全局
\setlength{\parindent}{0pt}
  • 只针对某一行
\noindent

新开一页

\newpage

加粗

\textbf{Most of the drivers are rational. }

序列

(1)无序序列

\begin{itemize}\item \textbf{}\item \textbf{}\item \textbf{}\item \textbf{}
\end{itemize}

(2)有序序列

 \begin{enumerate}[\bfseries 1.] # 或者[1)]\item We do ...\item We do ...\item We do ...\end{enumerate}

(3)步骤描述

\begin{description}\item[Step 1]  \item[Step 2]  \item[Step 3]  \end{description}

分行与分段

  • 分行 \\
  • 分段 \par或者直接敲两个空格
    区别 行间距小 段间距大

强制垂直距离

\vspace{0.3cm}

2.数学

公式

对齐使用&

简书:LaTex的公式输入
插入公式 (从MathType公式编辑器导入到LaTex中)
编号问题

(1)行间一个公式

\begin{equation}
{T_{h,i}} \sim N(15,4)
\nonumber #无序号
\end{equation}

公式的引用

The detail can be described by equation \eqref{eq:heat}:  #公式引用\eqref{label}
\begin{equation}\label{eq:heat}  #label在这里
\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)
\end{equation}

(2)行间多个公式

  • 一个公式占两行
 \begin{equation}\begin{split}
{{\rm{Z}}^ - } &= ({Z_1}^ - ,{Z_2}^ - , \cdots {Z_6}^ - )\\
{\rm{                &=  (min}}\left\{ {{z_{11}},{z_{21}}, \cdots ,{z_{n1}}} \right\},{\rm{min}}\left\{ {{z_{12}},{z_{22}}, \cdots ,{z_{n2}}} \right\}\cdots ,{\rm{min}}\left\{ {{z_{16}},{z_{26}}, \cdots ,{z_{n6}}} \right\}{\rm{)}}\end{split}\end{equation}

  • 一次性插入多个只占一行的公式
\begin{align}{x^{(1)}} &= ({x^{(1)}}(1),{x^{(1)}}(2), \cdots ,{x^{(1)}}(7))\\{x^{(1)}}(m) &= \sum\limits_{i = 1}^m {{x^{(0)}}(i)} ,m = 1,2, \cdots ,7\end{align}

矩阵或行列式

\[\begin{pmatrix}{*{20}c}{a_{11} } & {a_{12} } & {a_{13} }  \\{a_{21} } & {a_{22} } & {a_{23} }  \\{a_{31} } & {a_{32} } & {a_{33} }  \\\end{pmatrix}= \frac{{Opposite}}{{Hypotenuse}}\cos ^{ - 1} \theta \arcsin \theta
\]
\lipsum[9]\[\left( {\begin{array}{*{20}{c}}
{*20c{a_{11}}}&{{a_{12}}}&{{a_{13}}}\\
{{a_{21}}}&{{a_{22}}}&{{a_{23}}}\\
{{a_{31}}}&{{a_{32}}}&{{a_{33}}}
\end{array}} \right) = \frac{{Opposite}}{{Hypotenuse}}{\cos ^{ - 1}}\theta \arcsin \theta \]
\[p_{j}=\begin{cases} 0,&\text{if $j$ is odd}\\r!\,(-1)^{j/2},&\text{if $j$ is even}\end{cases}
\]

分段函数

\[p_{j}=\begin{cases} 0,&\text{if $j$ is odd}\\r!\,(-1)^{j/2},&\text{if $j$ is even}\end{cases}
\]

假设检验

\begin{equation}
\begin{split}
{H_0:}\quad &\text{There is no di↵erence in average throughputs} \\
&\text{in existing modeland control time model, i.e.} {\mu _1} = {\mu _2}\\
{H_1:}\quad&\text{$H_0$ is wrong, i.e.} {\mu _1} \ne {\mu _2}
\nonumber
\end{split}
\end{equation}

引理等

\begin{Theorem} \label{thm:latex}
\LaTeX
\end{Theorem}
\begin{Lemma} \label{thm:tex}
\TeX .
\end{Lemma}
\begin{proof}
The proof of theorem.
\end{proof}

3.图表

图片

Latex中插入多张图片,实现并排排列或者多行多列排列

  • 有各自小标题
\begin{figure}[ht]\centering #居中包括自己的小标题\begin{minipage}[b]{0.45\linewidth}#三个图并排似乎是0.3\centering\includegraphics[width=6cm]{1}\caption{Either A or B is open}\label{fig:minipage1}\end{minipage}\quad\begin{minipage}[b]{0.45\linewidth}\centering\includegraphics[width=6cm]{2}\caption{Either C,D or E is open}\label{fig:minipage2}\end{minipage}
\end{figure}

  • 公用一个标题
\begin{figure}[ht]\centering\begin{minipage}[b]{0.45\linewidth}\centering\includegraphics[width=7cm]{3}\label{fig:minipage3}\end{minipage}\quad\begin{minipage}[b]{0.45\linewidth}\centering\includegraphics[width=7cm]{4}\label{fig:minipage4}\end{minipage}\caption{Two or three tollbooth egress lanes merge into one lane}
\end{figure}

  • 公用一个标题同时有小标题

\usepackage{graphicx}
\usepackage{subfigure}

\begin{figure}[htbp]\centering\subfigure[year 2020]{\includegraphics[width=7cm]{2020line.pdf}%\caption{fig1}}\quad\subfigure[year 2040]{\includegraphics[width=7cm]{2040line.pdf}}\caption{Trend of propotion of all levels}\label{2040}
\end{figure}
  • 三张图
\begin{figure}[htbp]\centering\subfigure[year 2020]{\includegraphics[width=4.5cm]{2020.pdf}%\caption{fig1}}\quad\subfigure[year 2028]{\includegraphics[width=4.5cm]{2028.pdf}}\quad\subfigure[year 2040]{\includegraphics[width=4.5cm]{2040.pdf}}\caption{Distribution of culture carriers}
\end{figure}

  • 四张图
\begin{figure}[htbp]\centering\subfigure[]{\includegraphics[width=7cm]{1.pdf} #[width=3cm]就是四张图缩小并排摆放%\caption{fig1}
}\quad\subfigure[]{\includegraphics[width=7cm]{2.pdf}
}\quad\subfigure[]{\includegraphics[width=7cm]{3.pdf}
}\quad\subfigure[]{\includegraphics[width=7cm]{4.pdf}
}\caption{Results of GM(1,1)}
\end{figure}

表格

在线生成网站:Create LaTex table online

\begin{table}[]\begin{center} #表格居中 或者直接只有  \centering\begin{tabular}{|l|l|l|}\hline\multicolumn{1}{|r|}{Notation} & Definition & Unit \\ \hlineL & Number of outgoing lanes in highway & N/A  \\B & Number of tollbooths & N/A  \\D & Distance of the tollbooth and the end of the plaza & m   \\  \hline\end{tabular}\end{center} #表格居中
\end{table}


表格和图片的引用
\ref{label}

4.附录环境

\begin{subappendices}
\section{Appendix : Code of Matlab}
\end{subappendices}

5.代码

  • matlab
    \lstset{language=Matlab}
\begin{lstlisting}
\end{lstlisting}
  • python
    \usepackage{pythonhighlight}
\begin{python}
\end{python}

6. 参考文献

  • 简易版
\begin{thebibliography}{00}\bibitem{r1} 华瑞博远. 5G产业链全景图\bibitem{r2} 李瑞龙 钱琪. 从分歧到共识:疫情下的5G发展思考. 腾讯研究院 \url{http://paper.cnii.com.cn/article/rmydb_15608_290795.html}
\end{thebibliography}
  • BibTex版本
\citep{evidence}

\nocite{*}
\bibliographystyle{unsrtnat}
\setcitestyle{numbers}
\bibliography{ref.bib}

LaTex 论文排版(3): 插入参考文献
LaTex第七课:参考文献排版
简易版本
Latex(TEXStudio)中的引用文章(调用bib文件)的正确打开方式

natbib
各类cite引用格式Latex——natbib宏包使用说明中文版
转载

7. 其他配置问题

宏包安装

Mac texlive+texstudio 如何手动安装宏包

美赛 LaTex排版笔记相关推荐

  1. 2021美赛Latex排版美化 完整代码2

    今天是2月2号,还有三天就打美赛了,我在2021美赛Latex排版美化 完整代码1的基础上又做了一些补充,希望可以帮助到大家. 文章目录 一.2021美赛新要求 二.带颜色的表格 三.公式 四.目录超 ...

  2. 2021美赛Latex排版美化 完整代码1

    2021美赛Latex排版 还有两周就打美赛啦!!!这次小组准备用Latex排版,毕竟比word用得舒坦~ 下面是官网下载的MCM-ICM_2021_Summary: %%%%%%%%%%%%%%%% ...

  3. 美赛latex模板单独修改目录的行间距

    美赛 latex模板mcmthesis 单独修改目录的行间距 mcmthesis.cls第113行 \setlength\parskip{.5\baselineskip}%正文的行间距 \renewc ...

  4. 美赛LaTeX关键操作讲解--绘制表格,插入图片、公式、代码块

    后天2022年美赛就开始了,针对写作要求,博主着重整理了一下运用LaTeX绘制表格,插入图片.公式的详细操作以及相应的注释要求.(以下代码直接复制便可以使用,编号格式方面以及设置好了) 希望大家都能在 ...

  5. 小白使用LaTeX排版笔记

    安装LaTeX CTeX是TEX中的一个版本,CTeX 指的是CTEX 中文套装的简称 LaTeX官方网站:https://www.latex-project.org/ CTeX官方网站:http:/ ...

  6. latex 排版笔记

    文章目录 @[TOC] 1. 页面设置 2. [更改数学公式的字体](https://www.dazhuanlan.com/2020/01/06/5e12865f2a5bd/) 3. 表格设置 图表并 ...

  7. 美赛论文Latex简易模板 | 快速上手(附注释)

    最近又是一年一度的美赛备战期(2019),想必会有许多萌新(包括我)正在积极地备战中.其中重要的一环想必就是上手Latex,照着往年O奖论文打出一份框架模板,掌握经常用到的Latex语法.了解基础用法 ...

  8. 锐评美赛2021C、D、E题 o奖论文

    文章目录 美赛阅读论文笔记 2021 C 2021D 简单解读一下题目 2021E 美赛阅读论文笔记 2021 C 2123823 假设做的非常好,通过给的参考论文,假设了只有4-10月是蜂的活动时间 ...

  9. latex 排版记录 从期刊投稿模版开始学latex

    1,一些基础资源 安装参考的这里:最简单傻瓜式的 Latex+Texstudio 安装教学.前期基本练习也可使用在线latex编辑器:www.overleaf.com.资源如图片通过左侧上传,右侧 R ...

最新文章

  1. PHP异常处理类(文件上传提示)
  2. C++异常 返回错误码
  3. thinkphp 5.0.3 rce getshell_关于ThinkPHP的一些渗透方式
  4. python3 字符串格式化
  5. linux last 命令年份,【帝联运维课堂】(第七十二期)Linux下last命令如何显示年份...
  6. [Swift]LeetCode268. 缺失数字 | Missing Number
  7. 分布式对象存储 读书笔记(一) 开始
  8. 分类数据显示功能_缓存优化
  9. 提问:Server Application Unavailable
  10. mvd没什么每次参数双都多一个逗号_必看!PostgreSQL参数优化
  11. bundle java_Bundle类
  12. mysql job status_检查SQL Server Job状态
  13. GitKraKenSetup工具——小章鱼
  14. Java基础语法(详细版)
  15. 可能是最简单暴力的卸载工具Geek Uninstaller
  16. Win10系统重装教程(纯净版)
  17. 安卓电视/平板玩街机游戏
  18. c语言中shift f12组合建,C++学习1-(C语言基础、VS快捷键)
  19. ​ 每周一书《数学之美 第二版》分享!
  20. 空口定义、下行传输流程

热门文章

  1. id 重启event_windows server 2008 R2服务器自动重启,事件ID:6008和事件ID:5
  2. gitlab合并分支
  3. 正无穷大、负无穷大和非数
  4. Interpreter解释器模式
  5. 新手福利:真机调试无需开发者证书
  6. 总结几点无线Mesh网络的优点
  7. 不要看《深入浅出MFC》!
  8. 三维建模思路培养——复古风书房建模
  9. GD32F4xx 以太网芯片(enc28j60)驱动移植
  10. 20v转5v_12v转5v_5v转3.3v 5A用AH8316