LaTeX Cheatsheet - LaTeX Academic Typesetting Reference

LaTeX rewards sticking to a few reliable snippets and punishes improvising at the last minute. Grouped by document structure, text formatting, math, lists, tables and references, each command shows its purpose and common companion packages. Use it to scaffold a paper skeleton, typeset math correctly, and wire up citations without re-opening the boring user guide. After reading you can draft an article that compiles on the first pass.

Reference·45 commands·Last updated 2026-07-21
latexTypesettingAcademic

Document Structure 8

\documentclass{article}
文档type(article/report/book/beamer)
\usepackage[utf8]{inputenc}
编码Set
\usepackage{amsmath}
数学package
\title{Title} \author{Author} \date{\today}
标题信息
\begin{document} ... \end{document}
文档环境
\maketitle
生成标题
\tableofcontents
生成Directory
\section{} \subsection{} \subsubsection{}
章节命令

Text Formats 8

\textbf{bold}
粗体
\textit{italic}
斜体
\underline{underline}
下划线
\emph{emphasis}
强调(通常斜体)
\texttt{monospace}
宽字体
\footnote{footnote text}
脚注
\label{sec:intro} \ref{sec:intro}
标签&引用
\cite{key}
引用文献

Math Formulas 10

$E = mc^2$
行内公式
\[ E = mc^2 \]
独立公式(无编号)
\begin{equation} ... \end{equation}
编号公式
\begin{align} ... \end{align}
对齐公式
\frac{a}{b}
分数
\sqrt{x}
平方根
\sum_{i=1}^{n} x_i
sum
\int_{a}^{b} f(x) dx
积分
\alpha \beta \gamma \delta
希腊字母
\infty \partial \nabla
特殊符号

List Environments 3

\begin{itemize} \item ... \end{itemize}
无序list
\begin{enumerate} \item ... \end{enumerate}
有序list
\begin{description} \item[term] desc \end{description}
描述list

Tables 6

\begin{tabular}{|c|c|c|} ... \end{tabular}
表格环境
\hline
横线
a & b & c \\
行分隔
\multicolumn{2}{|c|}{text}
merge列
\begin{table}[htbp] ... \end{table}
浮动表格
\caption{Caption} \label{tab:1}
表格标题&标签

Charts 5

\usepackage{graphicx}
图形package
\includegraphics[width=0.5\textwidth]{image.png}
Insert图片
\begin{figure}[htbp] ... \end{figure}
浮动图
\caption{Caption} \label{fig:1}
图标题&标签
\begin{subfigure} ... \end{subfigure}
子图(需 subcaption package)

References 5

\bibliographystyle{plain}
参考文献样式
\bibliography{references}
引用 bib File
\begin{thebibliography}{99} ... \end{thebibliography}
手动参考文献
\cite{key}
引用
\citep{key} \citet{key}
括号引用/文本引用(natbib)

Tips

  • Use \left( and \right) in math to auto-size parentheses.
  • Float placement [htbp]: h here, t top, b bottom, p separate page.
  • Use \label and \ref for cross-references instead of hardcoding numbers.

FAQ

What are the essential LaTeX commands?

By purpose: structure uses \documentclass, \begin{document}/\end{document} and \section; text uses \textbf, \emph and \verb; math uses $...$ inline and $$...$$ display, \frac, \sum; lists use itemize/enumerate; tables use tabular; references use \cite with BibTeX/biblatex. This page groups copy-ready snippets.

How do I insert math formulas in LaTeX?

Inline math uses a single dollar pair like $E=mc^2$; display math uses double dollars $$...$$ or the equation environment. Use equation when you want a number, double dollars when you do not.

How do I add references in LaTeX?

Cite with \cite{key} in the body and print the list at the end with \bibliography{filename} or biblatex’s \printbibliography; entries live in a .bib file. Compile with BibTeX or biblatex to generate the list.

How do I quickly locate a LaTeX compile error?

Read the first error line in the compiler log — most issues (missing package, unclosed environment, unescaped special char) point at a specific line. Build a minimal compilable skeleton first, then add content, rather than editing heavily right before the deadline.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us