Latex记录
1. 符号
① 下标:&x_1&; 上标:&x^1&; 上下标是多个字母时用花括号{}:&x_{123}&。
② 大于号:\textgreater
③ 小于号: \textless
④ 不等于号:\neq ;约等于:\approx
下面的后面要加空格,否则会识别错误
⑤ 大于等于:\geq
⑥ 小于等于:\leq
(在数学环境中(比如equation)使用$\alpha$)
latex 中花括号用\left\{\right\}
表示,如:\left\{内容\right\}。或者直接用 \{ 内容 \}。
⑦ 异或符号: \oplus
⑧ 属于:\in
⑨ 尖括号:\langle 1 \rangle
⑩ 向左箭头:\leftarrow
2. 希腊字母
阿尔法\alpha; 贝塔\beta; 伽马\gamma; 兰姆达\lambda; 西格玛\sigma; 德尔塔\Delte; 肉\rho;派\pi
3. 斜体: \emph{内容} ;加粗: \textbf{内容}
4.Latex中的简单的协议格式(Protocol)
\documentclass[11pt]{article}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{algpseudocode}
\usepackage{algorithmicx,algorithm}
\usepackage{amsmath}
\usepackage{pifont}\floatname{algorithm}{Protocol}\begin{document}
\begin{algorithm}[Protocol]
\caption{Functional} %算法的名字
\hspace*{0.02in} {\bf Input: } $P_S$ Input. % 算法的输入,\hspace*{0.02in}用来控制位置,同时利用 \\ 进行换行\hspace*{0.02in} {\bf Output:} $P_S$ output. %算法的结果输出\begin{algorithmic}[1]
\State \textbf{After step:}\State Forward1.
\State Forward2.
\State Forward3.
\State Forward4.\end{algorithmic}
\end{algorithm}
\end{document}
5.使用符号 出现后面字体斜体并且没有空格怎么办?
-------如使用花括号以及下面的大于号,后面的文字斜体并且没有空格
解决方法:使用$$符号将>和cashT括起来。
使用$更改:\left\{$内容$\right\}$。
6. 数学符号:减号 和 短横杠 - :
\textit{1-out-of-2} ; $1-out-of-2 $
上述两个公式都能实现斜体效果。但由于式子需要短横杠,所以不能用$$符号,不然会被识别为减号。下图是两种书写格式 显示结果:
7. 论文贡献点处分条目 : 优点有缩进,看起来更清楚。其中 * 可以改为编号1. 2. 3.等。带效果图。
\begin{itemize}
\item[*] contribution1
\item[*] contribution2
\end{itemize}
8. 在latex中插入定理, 引理, 推论和定义等_赵宗义11的博客-CSDN博客_latex 定理
9. latex中的对与错(对号与叉号)_计算机视觉-Archer的博客-CSDN博客_latex 叉号
Latex记录
1. 符号
① 下标:&x_1&; 上标:&x^1&; 上下标是多个字母时用花括号{}:&x_{123}&。
② 大于号:\textgreater
③ 小于号: \textless
④ 不等于号:\neq ;约等于:\approx
下面的后面要加空格,否则会识别错误
⑤ 大于等于:\geq
⑥ 小于等于:\leq
(在数学环境中(比如equation)使用$\alpha$)
latex 中花括号用\left\{\right\}
表示,如:\left\{内容\right\}。或者直接用 \{ 内容 \}。
⑦ 异或符号: \oplus
⑧ 属于:\in
⑨ 尖括号:\langle 1 \rangle
⑩ 向左箭头:\leftarrow
2. 希腊字母
阿尔法\alpha; 贝塔\beta; 伽马\gamma; 兰姆达\lambda; 西格玛\sigma; 德尔塔\Delte; 肉\rho;派\pi
3. 斜体: \emph{内容} ;加粗: \textbf{内容}
4.Latex中的简单的协议格式(Protocol)
\documentclass[11pt]{article}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{algpseudocode}
\usepackage{algorithmicx,algorithm}
\usepackage{amsmath}
\usepackage{pifont}\floatname{algorithm}{Protocol}\begin{document}
\begin{algorithm}[Protocol]
\caption{Functional} %算法的名字
\hspace*{0.02in} {\bf Input: } $P_S$ Input. % 算法的输入,\hspace*{0.02in}用来控制位置,同时利用 \\ 进行换行\hspace*{0.02in} {\bf Output:} $P_S$ output. %算法的结果输出\begin{algorithmic}[1]
\State \textbf{After step:}\State Forward1.
\State Forward2.
\State Forward3.
\State Forward4.\end{algorithmic}
\end{algorithm}
\end{document}
5.使用符号 出现后面字体斜体并且没有空格怎么办?
-------如使用花括号以及下面的大于号,后面的文字斜体并且没有空格
解决方法:使用$$符号将>和cashT括起来。
使用$更改:\left\{$内容$\right\}$。
6. 数学符号:减号 和 短横杠 - :
\textit{1-out-of-2} ; $1-out-of-2 $
上述两个公式都能实现斜体效果。但由于式子需要短横杠,所以不能用$$符号,不然会被识别为减号。下图是两种书写格式 显示结果:
7. 论文贡献点处分条目 : 优点有缩进,看起来更清楚。其中 * 可以改为编号1. 2. 3.等。带效果图。
\begin{itemize}
\item[*] contribution1
\item[*] contribution2
\end{itemize}
8. 在latex中插入定理, 引理, 推论和定义等_赵宗义11的博客-CSDN博客_latex 定理
9. latex中的对与错(对号与叉号)_计算机视觉-Archer的博客-CSDN博客_latex 叉号