列举可以简单解决的latex问题
必备宏包
- 无脑usepackage
- ctex:一般都需要用这个建立汉语环境
- graphicx:一般都需要这个用来插图
- amsfonts, amsmath:公式必备
- 特定功能
- enumerate:
begin enumerate, item, item, end
- hyperref
- url:
\url{xx.com}
- enumerate:
公式
基本
\$
文内,\$\$
换行居中,equation
换行居中编号- 善用
left+aligned+right
,cases
Q:公式(equation或$$)里面的换行符\\
不起作用了
A:\usepackage{amsmath}
插图
\begin{figure}[htbp]
\centering
\includegraphics[width=0.8\textwidth]{fig1.png}
\caption{Some Illustration.}
\label{fig1}
\end{figure}