当前位置:   article > 正文

LaTeX常用命令操作_latex命令

latex命令
  • mathtype中的公式转为letax格式:
    在这里插入图片描述
    例如:\[\left( {{\cal A},{\cal B}, \cdots } \right)\] 删除前后的\],并且在letax公式前后放上$
    即:$\left( {{\cal A},{\cal B}, \cdots } \right)$
    效果为 ( A , B , ⋯ ) \left( {{\cal A},{\cal B}, \cdots } \right) (A,B,)

  • 某一行文字居中显示:\centerline{内容}

  • 斜体: \emph{内容}

  • 加粗 :\bm{内容} 文本加粗 \textbf {内容}

  • 公式希腊字母加粗:加入宏包\usepackage{amsmath},使用 \boldsymbol {内容}

  • 公式普通字母ABC加粗:\mathbf {内容}

  • Lelax默认字体是斜体,若改成正体:\rm {内容}

  • 希腊字母正体:加入宏包\usepackage{upgreek}, 用\uppi(而非\pi)得到正体小写π。类似的,使用\upalpha得到正体α。

  • 换行且首行空两个字母:段落后面使用\par命令

  • 公式内部换行:在公式需要换行的位置放上: } \right. (双斜杠) \left.{

  • 带有序号的公式:

\begin{equation}
 \label{deqn_ex1a}
	\mathcal{Y} = \mathcal{G}{ \times _1}{{\mathbf{B}}_1}{ \times _2}{{\mathbf{B}}_2}{ \times _3}		{{\mathbf{B}}_3}
\end{equation}
  • 1
  • 2
  • 3
  • 4

在这里插入图片描述

  • 多个不同公式用一个序号:
\begin{equation} \label{eqn2}
 \begin{split}
	n&=\left[\frac{b-a}{0.01}\right]+1, \\
	S&=\frac{1}{n}\sum\limits_{j=1}^{n}(\lambda_{0j}-\lambda_{j}).
 \end{split}
\end{equation}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

在这里插入图片描述

  • 多个不同序号公式等号对齐:
\begin{align}  
x^2 + y^2 &=  z^2 \\ 
 x^3 + y^3 &<  z^3
\end{align} 
  • 1
  • 2
  • 3
  • 4

在这里插入图片描述

  • 一个序号中包含多个公式等号对齐:
\begin{equation}
  \begin{split}
	{\mathbf{A}} &= \mathbf{B}+\mathbf{C},    \\
	{{\mathbf{A}}_u} &= \left[ {{{\mathbf{a}}_1},{{\mathbf{a}}_2}, \cdots ,{{\mathbf{a}}_{{K}}}} \right],   
  \end{split}
\end{equation}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

在这里插入图片描述

  • 公式内容是第一行:
\begin{equation}
 \arraycolsep=1.4pt\def\arraystretch{1.2}
  \begin{array}{ll}
	&\left\| {{{{\mathbf{\Gamma}} }}{{{{\mathbf{\hat A}}} }} - {{{{\mathbf{\hat A}}} }} {{\mathbf{\hat B}}}^\dag {{{\mathbf{\Gamma}} }}			{{\underline {{\mathbf{\hat B}}} }}} \right\|_F \hfill \\
   &= \left( {{{\mathbf{I}}_{N - 1}} - {{\underline {{\mathbf{\hat B}}} }_1}{{\mathbf{\hat B}}} _1^\dag } \right) \odot \left( { {{\mathbf{\hat B}}} _2^* {{\mathbf{\hat B}}} _2^T} \right)\hfill. \\
  \end{array}
 \end{equation}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

在这里插入图片描述

  • 在下一页插入双栏公式:
    插入宏包:\newcounter{MYtempeqncnt}
\begin{figure*}[!b]
\normalsize
\setcounter{MYtempeqncnt}{\value{equation}}
\hrulefill
\vspace*{4pt}
\begin{equation}
  \begin{split}
  {{{\mathbf{\hat g}}}_{r1}} &= \underline {{\mathbf{\hat b}}} \left( {{\varphi _i}} \right) \cdot /\underline {{\mathbf{\hat b}}} \left( {{\varphi _j}} \right) \\ 
   &= \left[ {1,{e^{ - j\pi \left( {\sin {\varphi _i} - \sin {\varphi _j}} \right)}}, \cdots ,{e^{ - j\pi \left( {n - 1} \right)\left( {\sin {\varphi _i} - \sin {\varphi _j}} \right)}},} \right.{\left. { {e^{ - j\pi n\left( {\sin {\varphi _i} - \sin {\varphi _j}} \right)}}, \cdots ,{e^{ - j\pi \left( {N - 1} \right)\left( {\sin {\varphi _i} - \sin {\varphi _j}} \right)}}} \right]^T} \\ 
  \end{split}
  \end{equation}
\setcounter{equation}{\value{MYtempeqncnt}}
\end{figure*}
``
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

在这里插入图片描述

  • 单行公式左对齐:
\begin{flalign}
	&\ {{\mathbf{A}}} = \left[ {{{\mathbf{a}}_1},{{\mathbf{a}}_2}, \cdots ,{{\mathbf{a}}_{{K}}}} \right], &  
\end{flalign}
  • 1
  • 2
  • 3

在这里插入图片描述

  • 一个公式包含多个等号对齐
 - \begin{equation}
  \begin{split}
	x&=a+b+c\\
	&=d+e\\
	&=f+g
  \end{split}
\end{equation}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

在这里插入图片描述

  • 自定义公式顺序: 在公式中插入 \tag{数字}
  • 自定义表格\图片顺序:在图表中插入 \renewcommand{\thefigure}{数字}或者\renewcommand{\thetable}{数字}
  • 注释letax中一部分内容: \iffalse XXXX \fi
  • 公式内部换行:}\right. \\ \left.{
  • 区域标黄 \sethlcolor{yellow}\hl{XXX}
  • 文字标蓝 {\color{blue} XXXXX}
  • 解决分式过小,在\frac 前面加上\displaystyle,例如$\displaystyle \frac{{\partial L\left( {\mathbf{{\boldsymbol{\upphi}}}} \right)}}{{\partial {{\boldsymbol \upphi} _k}}}$
  • 字母下方加上波浪线$\underset{\widetilde{}}{A}$
  • 等号上面有三角号的一种表示方法:$\stackrel{\triangle}{=}$
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号