- 目錄排版:
- 代碼:
\documentclass{ctexart}
\usepackage{amsmath}
\begin{document}
\section{簡介}
\LaTeX{}將排版模式分爲文本模式和數學模式。文本模式用於普通文本排版,數學模式用於數學公式的排版。
\section{行內公式}
\subsection{美元符號}
$a+b=c+d$
\subsection{小括號}
\(a+b=c+d\)
\subsection{math環境}
\begin{math}
a+b=c+d
\end{math}
\section{上下標}
\subsection{上標}
$3^2+x^5=0$
$3^{78+67}+x^5=0$
\subsection{下標}
$3_2+x_5=0$
$3_{78+67}+x_5=0$
\section{希臘字母}
$\alpha$
$\beta$
$\gamma$
$\epsilon$
$\pi$
$\Gamma$
$\Delta$
$\Pi$
$\Theta$
$\Omega$
\section{數學函數}
$\log$
$\sin$
$\cos$
$\arcsin$
$\arccos$
$\ln$
$\sin^2x+\cos^2x=1$
$y=log_2x$
$\sqrt{67/56}$
$\sqrt[9]{32}$
$3/4$
$\frac{3}{4}$
\section{行間公式}
$$a+b=c+d$$
\subsection{中括號進行行間排版}
\[a+b=c+d\]
\subsection{displaymath排版行間公式}
\begin{displaymath}
q+d=SD+sd
\end{displaymath}
\subsection{公式進行自動編號利用equation}
公式引用例如\ref{5}
\begin{equation}
a+b=c+d \label{5}
\end{equation}
\subsection{公式中不進行自動編號是利用equation*}
此時交叉引用的編號爲節的編號\ref{小節}
\begin{equation*}
a+b=f+g \label{小節}
\end{equation*}
\LaTeX{}的公式排版中圖表以及公式都可以採用此種自動排版的方式進行。
\end{document}
- 運行結果
- 參考鏈接:
https://www.bilibili.com/video/BV15x411j7k6?from=search&seid=12286284678251383685