latex常用语法笔记

记录latex使用过程中常见的语法:

(不确定的符号可以通过在mathtype中设置“复制和粘贴选项”---latex,然后去latex中粘贴,查看对应的代码)

如何打空心1(指示函数)\mathbbm{1}

引用文献   \cite{}

引用标号  \ ref{}

非斜体 \mathrm{}

粗体\mathbf{}  或者  {\bf }

空心花体\mathcal{}

波浪线 ~   \sim

上横杠\tilde

上尖\hat

求和\sum        \sum_limits    \sum_nolimits

不标序号\nonumber

标红 \textcolor    或者  {\color{red}  }

半括号  \left.  \right)    或者      \left(    \right.

一个点 \cdot 一个比较大的点\bullet

居中的三个点\cdots

把独立公式编号(1)(2)  改成  带子母的子编号(1a)(1b):

\begin{subequations}

\begin{align}

xxx\\

yyy\\

\end{align}

\end{subequations}

表格如何让标题和TABLE字符处于同一行?

使用\usepackage{caption}

并且通过\captionsetup{font={small}} 来修改caption字体大小

大括弧 \bigg\{                 \bigg(

文字背景色:

\definecolor{mygray}{gray}{0.9}

\colorbox{mygray}{11111}

段落背景色:

\definecolor{shadecolor}{rgb}{0.92,0.92,0.92}
\usepackage{color,framed}

\begin{shaded}
11

22
\end{shaded}

字体控制命令

\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge

公式手动编号

 \begin{align}
a &= b+c\\
&= b+d+f\tag{5.6}
\end{align}

Figure手动编号

\renewcommand\thefigure{S\arabic{figure}}

划横线 \hrulefill

取消缩进  \noindent

\sum里面下标的换行: \atop

猜你喜欢

转载自blog.csdn.net/jianti9962/article/details/82025345