# Latex使用技巧总结(Latex tips summary)-其他

## Latex使用技巧总结(Latex tips summary)

### 设置字体颜色

\usepackage{color}


\textcolor[rgb]{1,0,0}{需要变色的内容}


### 设置粗体

\textbf{想要设置粗体的字符}


### 设置花体

\mathcal{想要变成花体的字符}


### 输入根号：

\sqrt{A+B}


### 公式中换行：

$$\begin{split} q_0 = \frac{\sqrt{tr(R)+1}}{2} \\ q_1 = \frac{m_{23}-m_{32}}{4q_0} \\ \end{split}$$


### 方程组不标号：

\usepackage{amsmath}


\begin{equation*}
\begin{cases}
l_{11}y_{1} = 1 \\
l_{21}y_{1} + l_{22}y_{2} = 0 \\
l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\
l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0
\end{cases}
\end{equation*}


### 方程组整体标号：

\usepackage{amsmath}


$$\begin{cases} l_{11}y_{1} = 1 \\ l_{21}y_{1} + l_{22}y_{2} = 0 \\ l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\ l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0 \end{cases}$$


### 方程组中每个方程都标号：

\usepackage{cases}


\begin{numcases}{}
l_{11}y_{1} = 1 \\
l_{21}y_{1} + l_{22}y_{2} = 0 \\
l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\
l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0
\end{numcases}

————————

### Set font color

Macro package used:

\usepackage{color}


Use example:

\textcolor[rgb]{1,0,0}{需要变色的内容}


### Set bold

Use example:

\textbf{想要设置粗体的字符}


### Set flower body

Use example:

\mathcal{想要变成花体的字符}


### Enter root:

Use example:

\sqrt{A+B}


### Line break in formula:

Add split at the upper and lower ends of the formula, and use \ to indicate the position of line feed.

Use example:

$$\begin{split} q_0 = \frac{\sqrt{tr(R)+1}}{2} \\ q_1 = \frac{m_{23}-m_{32}}{4q_0} \\ \end{split}$$


### Equations are not labeled:

Use macro package:

\usepackage{amsmath}


Use example:

\begin{equation*}
\begin{cases}
l_{11}y_{1} = 1 \\
l_{21}y_{1} + l_{22}y_{2} = 0 \\
l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\
l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0
\end{cases}
\end{equation*}


### Overall label of equations:

Use macro package:

\usepackage{amsmath}


Use example:

$$\begin{cases} l_{11}y_{1} = 1 \\ l_{21}y_{1} + l_{22}y_{2} = 0 \\ l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\ l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0 \end{cases}$$


### Each equation in the equation set is labeled:

Use macro package:

\usepackage{cases}


Use example:

\begin{numcases}{}
l_{11}y_{1} = 1 \\
l_{21}y_{1} + l_{22}y_{2} = 0 \\
l_{31}y_{1} + l_{32}y_{2} + l_{33}y_{3} = 0 \\
l_{41}y_{1} + l_ {42}y_{2} + l_{43}y_{3} + l_{44}y_{4} = 0
\end{numcases}