公式輸入一般有這麼幾種情況:行間公式,行內公式,分段公式。
- 行內公式
$a=b+c$
- 行間公式
$$a=b+c$$
or
\begin{equation}
a=b+c
\end{equation}
%後者是帶編號的。
- 分段公式
\begin{equation} f(x)=\begin{cases} 3x,x>0\\ 2x,x\leq 0 \end{cases} \end{equation}
示例圖片
公式輸入一般有這麼幾種情況:行間公式,行內公式,分段公式。
$a=b+c$
$$a=b+c$$
or
\begin{equation}
a=b+c
\end{equation}
%後者是帶編號的。
\begin{equation}
f(x)=\begin{cases}
3x,x>0\\
2x,x\leq 0
\end{cases}
\end{equation}
示例圖片
% 必須加下列兩句 \documentclass[compress,red]{beamer} \mode<presentation> \usepackage{listings}
近期有了在TeX文檔中插入源代碼的需要。TeX的\verbatim可以幫助你保留輸入text的原始格式,但用於輸入源代碼還是顯得不夠專業。Googl