「LaTex」小知识随记

前言:

写论文必备的基本技巧。

目录:

  1. 大写的罗马数字;
  2. 小写的罗马数字;
  3. 换行;
  4. 正文中插入字符,字符两边需要添加$$,如输出%;
  5. 插入矩阵;
  6. 插入公式的命令;
  7. 临时取消首行缩进,如取消\par后的缩进;
  8. 数学公式:分号;
  9. 数学公式:插入单花括号;
  10. 插入空格;
  11. 插入冒号;
  12. 换行 + 首行缩进;
  13. 插入乘号(✖);
  14. 插入空格;
  15. 插入表格;

1.大写的罗马数字:

\uppercase\expandafter{\romannumeral*}  ‘*’ 用期望的数字代替

2.小写的罗马数字:

\romannumeral*  ‘*’ 用期望的数字代替

3.换行:

\par

4.正文中插入字符,字符两边需要添加$$,如输出%:

$\%$

5.插入矩阵:

\begin{equation}       %开始数学环境
\left(                 %左括号
  \begin{array}{ccc}   %该矩阵一共3列,每一列都居中放置
    a11 & a12 & a13\\  %第一行元素
    a21 & a22 & a23\\  %第二行元素
  \end{array}
\right)                 %右括号
\end{equation}

6.插入公式:

\begin{equation}
a^2+b^2=c^2
\end{equation}

7.临时取消首行缩进,如取消\par后的缩进:

\noindent

8.数学公式:分号

%小分号
frac
%大分号
dfrac

9.数学公式:插入单花括号

\begin{equation}
\left\{
\begin{array}{rcl}
** \\
**
\end{array}
\right.
\end{equation}

10.插入空格:

\qquad

11.插入冒号:

\colon

12.换行 + 首行缩进:

%换行
 \\ 
%换行+首行缩进
 \\ \indent

13.插入乘号(✖):

/times

14.插入空格:

两个quad空格 a \qquad b a \qquad b 两个m的宽度
quad空格 a \quad b a \quad b 一个m的宽度
大空格 a\ b a\ b 1/3m宽度
中等空格 a\;b a\;b 2/7m宽度
小空格 a\,b a\,b 1/6m宽度
没有空格 ab ab\,  
紧贴 a\!b a\!b 缩进1/6m宽度

15.插入表格:

\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
\toprule
Col 1 & Col 2 & Col 3 & Col4\\
\midrule
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
\bottomrule
\end{tabular*}
\end{table}
发布了203 篇原创文章 · 获赞 838 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/103845401