警告
本文最后更新于 2022-11-16,文中内容可能已过时。
中文支持参考环境配置中的 内容,在这里不做重复
长度
常用的长度单位
单位 |
含义 |
换算成 pt |
换成算成 mm |
pt |
基本单位 |
1 pt |
0.35146 mm |
mm |
毫米 |
2.84 pt |
1 mm |
cm |
厘米 |
28.4 pt |
10 mm |
in |
英寸 |
72.27 pt |
0.35146 mm |
ex |
当前字体的 x 字母高度 |
- |
- |
em |
当前字体的 m 字母宽度 |
- |
- |
空行
空格
超链接
1
2
3
4
5
|
% 开启链接颜色配置,并配置为蓝色
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\url{https://ywang-wnlo.github.io/posts/2033aa70.html}
\href{https://ywang-wnlo.github.io/posts/2033aa70.html}{LaTeX 语法}
|
数学公式
段落中(隐式)
三种均可,任意选择,以 E=mc2 为例
1
2
3
|
\(E=mc^2\)
$E=mc^2$
\begin{math}E=mc^2\end{math}
|
单独成段(显式)
三种均可,任意选择
1
2
3
|
\[E=mc^2\]
\begin{displaymath}E=mc^2\end{displaymath}
\begin{equation}E=mc^2\end{equation}
|
居中,左对齐,右对齐
居中
1
2
3
|
\begin{center}
balabala
\end{center}
|
左对齐
1
2
3
|
\begin{flushleft}
balabala
\end{flushleft}
|
右对齐
1
2
3
|
\begin{flushright}
balabala
\end{flushright}
|
参考文献配置
1
2
|
\bibliographystyle{stylename}
\bibliography{bibfile}
|
其中 bibfile
为 .bib
文件的名,而 stylename
是风格名称,以 overleaf 为例,有如下选项
stylename |
output |
abbrc |
 |
acm |
 |
alpha |
 |
apalike |
 |
ieeetr |
 |
plain |
 |
siam |
 |
unsrt |
 |
TODO
参考资料