# LaTeX/數學公式

\usepackage{amsmath}


\usepackage{mathtools}


## 數學環境(數學環境)

LaTeX 需要事先知道後面的文本確實包含數學元素。這是因為 LaTeX 排版數學符號的方式與普通文本不同。因此,特殊的環境為此目的而被聲明。根據它們的呈現方式，它們可以分為兩類：

• text - 內聯公式(行內公式), 即在聲明文本的正文之內. 例如, 我可以在這句話中表達 ${\displaystyle a+a=2a}$${\displaystyle \sum _{i=0}^{n}f(x)\Delta x}$.
• displayed - 外聯公式(行間公式), 即與正文分開的公式.例如, 要在行間顯示一個公式:
${\displaystyle a+a=2a}$
${\displaystyle \sum _{i=0}^{n}f(x)\Delta x}$
• 行內公式: 在 LaTeX 中, 使用 $...$ 來聲明一個行內公式, 或者使用 $$...$$. 被括起來的地方會被解釋為一個行內公式數學環境.
• 行間公式: 使用 $$...$$ 來聲明一個行間公式, 或者使用 $...$.

• 行內公式

\begin{math}

...

\end{math}

• 行間公式

\begin{displaymath}

...

\end{displaymath}

• 自動編號的行間公式

...

1. 所有空格與換行都會失去作用. 要在數學模式里使用空格, 你應用 \quad 輸入一個標準寬度的空格. 或者使用 \ 或 \; 或 \, 等輸入寬度不同的空格.
2. 不允許出現空行, 只能是一個段落一段公式.
3. 所有字母都會按變量(var)格式排版, 如果需要排版普通拉丁文樣式的字母, 請使用 \mathrm{}. 例如, \mathrm{d} 常用來表現 微分算子 ${\displaystyle \mathrm {d} }$

### 在段落文字內插入並以 "displayed" 樣式顯示公式

${\displaystyle \sum _{i=0}^{n}f(x)\Delta x}$

## 符號

+ - = ! / ( ) [ ] < > | ' : *


Beyond those listed above, distinct commands must be issued in order to display the desired symbols. There are many examples such as Greek letters, set and relations symbols, arrows, binary operators, etc.

For example:

θ

Fortunately, there's a tool that can greatly simplify the search for the command for a specific symbol. Look for "Detexify" in the external links section below. Another option would be to look in "The Comprehensive LaTeX Symbol List" in the external links section below.

## 希臘字母

θ

Scroll down to #List_of_Mathematical_Symbols for a complete list of Greek symbols.

## 算子

For certain operators such as limits, the subscript is placed underneath the operator: θ

For the modular operator there are two commands: ± and ±: θ θ

To use operators which are not pre-defined, such as argmax, see custom operators

## 指數和次方數

• k_{n+1} = n^2 + k_n^2 - k_{n-1}編譯為${\displaystyle k_{n+1}=n^{2}+k_{n}^{2}-k_{n-1}}$
• f(n) = n^5 + 4n^2 + 2 |_{n=17}編譯為${\displaystyle f(n)=n^{5}+4n^{2}+2|_{n=17}}$

Powers and indices are equivalent to superscripts and subscripts in normal text mode. The caret (^) character is used to raise something, and the underscore (_) is for lowering. If more than one expression is raised or lowered, they should be grouped using curly braces ({ and }). θ

An underscore (_) can be used with a vertical bar (${\displaystyle |}$) to denote evaluation using subscript notation in mathematics:

θ

## 分數及二項式

A fraction is created using the ±} command. (for those who need their memories refreshed, that's the top and bottom respectively!). Likewise, the binomial coefficient (aka the Choose function) may be written using the ± command[3]: θ

It is also possible to use the ± command without the amsmath package: θ

You can embed fractions within fractions: θ{y-z} \] |render= ${\displaystyle {\frac {{\frac {1}{x}}+{\frac {1}{y}}}{y-z}}}$ }}

Note that when appearing inside another fraction, or in inline text ${\displaystyle {\tfrac {a}{b}}}$, a fraction is noticeably smaller than in displayed mathematics. The ± and ± commands[3] force the use of the respective styles, ± and ±. Similarly, the ± and ± commands typeset the binomial coefficient.

Another way to write fractions is to use the ± command without the amsmath package: θ

For relatively simple fractions, it may be more aesthetically pleasing to use powers and indices: θ

If you use them throughout the document, usage of xfrac package is recommended. This package provides ± command to create slanted fractions. Usage: θ

Alternatively, the nicefrac package provides the ± command, whose usage is similar to ±.

### 繁分數

Continued fractions should be written using ± command[3]: θ} |render= ${\displaystyle x=a_{0}+{\cfrac {1}{a_{1}+{\cfrac {1}{a_{2}+{\cfrac {1}{a_{3}+a_{4}}}}}}}}$ }}

## 方根

The ± command creates a square root surrounding an expression. It accepts an optional argument specified in square brackets ([ and ]) to change magnitude: θ \] |render= ${\displaystyle {\sqrt {\frac {a}{b}}}}$ }} θ

Some people prefer writing the square root "closing" it over its content. This method arguably makes it more clear just what is in the scope of the root sign. This habit is not normally used while writing with the computer, but if you still want to change the output of the square root, LaTeX gives you this possibility. Just add the following code in the preamble of your document: θ

|render=

The new style is on left, the old one on right

}} This TeX code first renames the ± command as ±, then redefines ± in terms of the old one, adding something more. The new square root can be seen in the picture on the right, compared to the old one. Unfortunately this code won't work if you want to use multiple roots: if you try to write ${\displaystyle {\sqrt[{b}]{a}}}$ as ±} after you used the code above, you'll just get a wrong output. In other words, you can redefine the square root this way only if you are not going to use multiple roots in the whole document.

## 總和與積分

The ± and ± commands insert the sum and integral symbols respectively, with limits specified using the caret (^) and underscore (_): θ θ

There are many other "big" commands which operate in a similar manner:

 \sum ${\displaystyle \sum \,}$ \prod ${\displaystyle \prod }$ \coprod ${\displaystyle \coprod }$ \bigoplus ${\displaystyle \bigoplus }$ \bigotimes ${\displaystyle \bigotimes }$ \bigodot ${\displaystyle \bigodot }$ \bigcup ${\displaystyle \bigcup }$ \bigcap ${\displaystyle \bigcap }$ \biguplus ${\displaystyle \biguplus }$ \bigsqcup ${\displaystyle \bigsqcup }$ \bigvee ${\displaystyle \bigvee }$ \bigwedge ${\displaystyle \bigwedge }$ \int ${\displaystyle \int }$ \oint ${\displaystyle \oint }$ \iint[3] ${\displaystyle \iint }$ \iiint[3] ${\displaystyle \iiint }$ \iiiint[3] ${\displaystyle \iiiint }$ \idotsint[3] ${\displaystyle \int \!\cdots \!\int }$

For more integral symbols, including those not included by default in the Computer Modern font, try the esint package.

The ± command[3] allows the use of ± to write the limits over multiple lines: θ

P(i,j)


\] |render=${\displaystyle \sum _{\overset {\scriptstyle 0 }}

If you want the limits of an integral to be specified above and below the symbol (like the sum), use the ± command: θ However if you want this to apply to ALL integrals, it is preferable to specify the \left.\begin{array}{r}

 -\frac{1}{m}=\frac{\sum_{i=1}^n{X_iY_i}-\frac{1}{n}\sum_{i=1}^n{X_i\sum_{i=1}^n{Y_i}}}{\sum_{i=1}^n{X_{i}^{2}-\frac{1}{n}\left(\sum_{i=1}^n{X_i}\right)^2}}\\
\frac{1}{m}\lg C=\frac{1}{n}\left(\sum_{i=1}^n{Y_i+\frac{1}{m}\sum_{i=1}^n{X_i}}\right)\\


\end{array} \right\} option when loading the amsmath package: \documentclass{artical} \begin{document} Hallo! \end{document}

Subscripts and superscripts in other contexts as well as other parameters to amsmath package related to them are described in Advanced Mathematics chapter.

For bigger integrals, you may use personal declarations, or the bigints package [4].

## Brackets, braces and delimiters

How to use braces in multi line equations is described in the Advanced Mathematics chapter.

The use of delimiters such as brackets soon becomes important when dealing with anything but the most trivial equations. Without them, formulas can become ambiguous. Also, special types of mathematical structures, such as matrices, typically rely on delimiters to enclose them.

There are a variety of delimiters available for use in LaTeX: θ

### Automatic sizing

Very often mathematical features will differ in size, in which case the delimiters surrounding the expression should vary accordingly. This can be done automatically using the ± and ± commands. Any of the previous delimiters may be used in combination with these: θ If a delimiter on only one side of an expression is required, then an invisible delimiter on the other side may be denoted using a period (.).

### Manual sizing

In certain cases, the sizing produced by the ± and ± commands may not be desirable, or you may simply want finer control over the delimiter sizes. In this case, the ±, ±, ± and ± modifier commands may be used: θ

## 矩陣與數列

A basic matrix may be created using the Template:LaTeX/Environment environment[3]: in common with other table-like structures, entries are specified by row, with columns separated using an ampersand (±) and a new rows separated with a double backslash (±) θ

To specify alignment of columns in the table, use starred version[5]: θ

The alignment by default is \left.\begin{array}{r}

 -\frac{1}{m}=\frac{\sum_{i=1}^n{X_iY_i}-\frac{1}{n}\sum_{i=1}^n{X_i\sum_{i=1}^n{Y_i}}}{\sum_{i=1}^n{X_{i}^{2}-\frac{1}{n}\left(\sum_{i=1}^n{X_i}\right)^2}}\\
\frac{1}{m}\lg C=\frac{1}{n}\left(\sum_{i=1}^n{Y_i+\frac{1}{m}\sum_{i=1}^n{X_i}}\right)\\


\end{array} \right\} but it can be any column type valid in Template:LaTeX/Environment environment.

However matrices are usually enclosed in delimiters of some kind, and while it is possible to use the \left and \right commands, there are various other predefined environments which automatically include delimiters:

Environment name Surrounding delimiter Notes
Template:LaTeX/Environment[3] ${\displaystyle (\,)}$ centers columns by default
Template:LaTeX/Environment[5] ${\displaystyle (\,)}$ allows to specify alignment of columns in optional parameter
Template:LaTeX/Environment[3] ${\displaystyle [\,]}$ centers columns by default
Template:LaTeX/Environment[5] ${\displaystyle [\,]}$ allows to specify alignment of columns in optional parameter
Template:LaTeX/Environment[3] ${\displaystyle \{\,\}}$ centers columns by default
Template:LaTeX/Environment[5] ${\displaystyle \{\,\}}$ allows to specify alignment of columns in optional parameter
Template:LaTeX/Environment[3] ${\displaystyle |\,|}$ centers columns by default
Template:LaTeX/Environment[5] ${\displaystyle |\,|}$ allows to specify alignment of columns in optional parameter
Template:LaTeX/Environment[3] ${\displaystyle \|\,\|}$ centers columns by default
Template:LaTeX/Environment[5] ${\displaystyle \|\,\|}$ allows to specify alignment of colums in optional parameter

When writing down arbitrary sized matrices, it is common to use horizontal, vertical and diagonal triplets of dots (known as ellipses) to fill in certain columns and rows. These can be specified using the ±, ± and ± respectively: θ In some cases you may want to have finer control of the alignment within each column, or want to insert lines between columns or rows. This can be achieved using the Template:LaTeX/Environment environment, which is essentially a math-mode version of the tabular environment, which requires that the columns be pre-specified: θ

You may see that the AMS matrix class of environments doesn't leave enough space when used together with fractions resulting in output similar to this:

${\displaystyle M={\begin{bmatrix}{\frac {5}{6}}&{\frac {1}{6}}&0\\{\frac {5}{6}}&0&{\frac {1}{6}}\\0&{\frac {5}{6}}&{\frac {1}{6}}\end{bmatrix}}}$

θ

If you need "border" or "indexes" on your matrix, plain TeX provides the macro ± θ

### Matrices in running text

To insert a small matrix, and not increase leading in the line containing it, use Template:LaTeX/Environment environment:

θ

## 在方程式中加入文字

The math environment differs from the text environment in the representation of text. Here is an example of trying to represent text within the math environment: θ

There are two noticeable problems: there are no spaces between words or numbers, and the letters are italicized and more spaced out than normal. Both issues are simply artifacts of the maths mode, in that it treats it as a mathematical expression: spaces are ignored (LaTeX spaces mathematics according to its own rules), and each character is a separate element (so are not positioned as closely as normal text).

There are a number of ways that text can be added properly. The typical way is to wrap the text with the ±} command [3] (a similar command is ±}, though this causes problems with subscripts, and has a less descriptive name). Let's see what happens when the above equation code is adapted: θ

The text looks better. However, there are no gaps between the numbers and the words. Unfortunately, you are required to explicitly add these. There are many ways to add spaces between maths elements, but for the sake of simplicity you may literally add the space character in the affected ±(s) itself (just before the text.) θ

### 格式化文字

Using the ± is fine and gets the basic result. Yet, there is an alternative that offers a little more flexibility. You may recall the introduction of font formatting commands, such as ±, ±, ±, etc. These commands format the argument accordingly, e.g., ±} gives bold text. These commands are equally valid within a maths environment to include text. The added benefit here is that you can have better control over the font formatting, rather than the standard text achieved with ±.

θ

## 格式化數學符號

So we can format text, what about formatting mathematics? There are a set of formatting commands very similar to the font formatting ones just used, except they are aimed specifically for text in maths mode (requires amsfonts)

LaTeX command Sample Description Common use
±} ${\displaystyle ABCDEFabcdef123456\,}$ the default math font most mathematical notation
±} ${\displaystyle \mathrm {ABCDEFabcdef123456} \,}$ this is the default or normal font, unitalicised units of measurement, one word functions
±} ${\displaystyle {\mathit {ABCDEFabcdef123456}}\,}$ italicised font
±} ${\displaystyle \mathbf {ABCDEFabcdef123456} \,}$ bold font vectors
±} ${\displaystyle {\mathsf {ABCDEFabcdef123456}}\,}$ Sans-serif
±} ABCDEFabcdef123456 Monospace (fixed-width) font
±} ${\displaystyle {\mathcal {ABCDEFabcdef123456}}\,}$ Calligraphy (uppercase only) often used for sheaves/schemes and categories
±}[6] ${\displaystyle {\mathfrak {ABCDEFabcdef123456}}\,}$ Fraktur Almost canonical font for Lie algebras
±}[6] ${\displaystyle \mathbb {ABCDEFabcdef123456} \,}$ Blackboard bold Used to denote special sets (e.g. real numbers)
±}[7] Script

The maths formatting commands can be wrapped around the entire equation, and not just on the textual elements: they only format letters, numbers, and uppercase Greek, and the rest of the maths syntax is ignored.

To bold lowercase Greek or other symbols use the ± command[3]; this will only work if there exists a bold version of the symbol in the current font. As a last resort there is the ± command[3] (poor mans bold): this prints multiple versions of the character slightly offset against each other θ To change the size of the fonts in math mode, see Changing font size.

### 重音標記

So what to do when you run out of symbols and fonts? Well the next step is to use accents:

 a' ${\displaystyle a'\,}$ a'' ${\displaystyle a''\,}$ a''' ${\displaystyle a'''\,}$ a'''' ${\displaystyle a''''\,}$ \hat{a} ${\displaystyle {\hat {a}}\,}$ \bar{a} ${\displaystyle {\bar {a}}\,}$ \overline{aaa} ${\displaystyle {\overline {aaa}}\,}$ \check{a} ${\displaystyle {\check {a}}\,}$ \tilde{a} ${\displaystyle {\tilde {a}}\,}$ \grave{a} ${\displaystyle {\grave {a}}\,}$ \acute{a} ${\displaystyle {\acute {a}}\,}$ \breve{a} ${\displaystyle {\breve {a}}\,}$ \vec{a} ${\displaystyle {\vec {a}}\,}$ \dot{a} ${\displaystyle {\dot {a}}\,}$ \ddot{a} ${\displaystyle {\ddot {a}}\,}$ \dddot{a}[3] \ddddot{a}[3] \not{a} ${\displaystyle \not {a}\,}$ \mathring{a} \widehat{AAA} ${\displaystyle {\widehat {AAA}}\,}$ \widetilde{AAA}

## 正負號

Latex deals with the + and − signs in two possible ways. The most common is as a binary operator. When two maths elements appear either side of the sign, it is assumed to be a binary operator, and as such, allocates some space either side of the sign. The alternative way is a sign designation. This is when you state whether a mathematical quantity is either positive or negative. This is common for the latter, as in maths, such elements are assumed to be positive unless a − is prefixed to it. In this instance, you want the sign to appear close to the appropriate element to show their association. If you put a + or a − with nothing before it but you want it to be handled like a binary operator you can add an invisible character before the operator using ±}. This can be useful if you are writing multiple-line formulas, and a new line could start with a = or a +, for example, then you can fix some strange alignments adding the invisible character where necessary.

## 控制水平行距

LaTeX is obviously pretty good at typesetting maths—it was one of the chief aims of the core Tex system that LaTeX extends. However, it can't always be relied upon to accurately interpret formulas in the way you did. It has to make certain assumptions when there are ambiguous expressions. The result tends to be slightly incorrect horizontal spacing. In these events, the output is still satisfactory, yet, any perfectionists will no doubt wish to fine-tune their formulas to ensure spacing is correct. These are generally very subtle adjustments.

There are other occasions where LaTeX has done its job correctly, but you just want to add some space, maybe to add a comment of some kind. For example, in the following equation, it is preferable to ensure there is a decent amount of space between the maths and the text.

θ

This code produces errors with Miktex 2.9 and does not yield the results seen on the right. Use \textrm instead of just \text.

(Note that this particular example can be expressed in more elegant code by the Template:LaTeX/Environment construct provided by the amsmath package described in Advanced Mathematics chapter.)

LaTeX has defined two commands that can be used anywhere in documents (not just maths) to insert some horizontal space. They are ± and ±

A ± is a space equal to the current font size. So, if you are using an 11pt font, then the space provided by ± will also be 11pt (horizontally, of course.) The ± gives twice that amount. As you can see from the code from the above example, ±s were used to add some separation between the maths and the text.

OK, so back to the fine tuning as mentioned at the beginning of the document. A good example would be displaying the simple equation for the indefinite integral of y with respect to x:

${\displaystyle \int y\,\mathrm {d} x}$

If you were to try this, you may write:

θ

However, this doesn't give the correct result. LaTeX doesn't respect the white-space left in the code to signify that the y and the dx are independent entities. Instead, it lumps them altogether. A ± would clearly be overkill is this situation—what is needed are some small spaces to be utilized in this type of instance, and that's what LaTeX provides:

Command Description Size
± small space 3/18 of a quad
± medium space 4/18 of a quad
± large space 5/18 of a quad
± negative space -3/18 of a quad

NB you can use more than one command in a sequence to achieve a greater space if necessary.

So, to rectify the current problem:

θ θ θ

The negative space may seem like an odd thing to use, however, it wouldn't be there if it didn't have some use! Take the following example:

θ

The matrix-like expression for representing binomial coefficients is too padded. There is too much space between the brackets and the actual contents within. This can easily be corrected by adding a few negative spaces after the left bracket and before the right bracket.

θ

## Advanced Mathematics: AMS Math package

The AMS (American Mathematical Society) mathematics package is a powerful package that creates a higher layer of abstraction over mathematical LaTeX language; if you use it it will make your life easier. Some commands amsmath introduces will make other plain LaTeX commands obsolete: in order to keep consistency in the final output you'd better use amsmath commands whenever possible. If you do so, you will get an elegant output without worrying about alignment and other details, keeping your source code readable. If you want to use it, you have to add this in the preamble: \documentclass{artical} \begin{document} Hallo! \end{document}

### Introducing text and dots in formulas

amsmath defines also the ± command, that is a generalization of the existing ±. You can use ± in both text and math mode and LaTeX will replace it with three dots "…" but it will decide according to the context whether to put it on the bottom (like ±) or centered (like ±).

### Dots

LaTeX gives you several commands to insert dots in your formulas. This can be particularly useful if you have to type big matrices omitting elements. First of all, here are the main dots-related commands LaTeX provides:

Code Output Comment
± ${\displaystyle \dots }$ generic dots, to be used in text (outside formulas as well). It automatically manages whitespaces before and after itself according to the context, it's a higher level command.
± ${\displaystyle \ldots }$ the output is similar to the previous one, but there is no automatic whitespace management; it works at a lower level.
± ${\displaystyle \cdots }$ These dots are centered relative to the height of a letter. There is also the binary multiplication operator, \cdot, mentioned below.
± ${\displaystyle \vdots }$ vertical dots
± ${\displaystyle \ddots }$ diagonal dots
± inverse diagonal dots (requires the mathdots package)
± ${\displaystyle \ldots \ldots }$ to be used in matrices, it creates a row of dots spanning n columns.

Instead of using ± and ±, you should use the semantically oriented commands. It makes it possible to adapt your document to different conventions on the fly, in case (for example) you have to submit it to a publisher who insists on following house tradition in this respect. The default treatment for the various kinds follows American Mathematical Society conventions.

Code Output Comment
± for "dots with commas"
± for "dots with binary operators/relations"
± for "multiplication dots"
± for "dots with integrals"
± for "other dots" (none of the above)

## 數學符號列表

All the pre-defined mathematical symbols from the \TeX\ package are listed below. More symbols are available from extra packages.

Relation Symbols
Symbol Script Symbol Script Symbol Script Symbol Script Symbol Script
${\displaystyle \leq }$ \leq ${\displaystyle \geq }$ \geq ${\displaystyle \equiv \,}$ \equiv ${\displaystyle \models }$ \models ${\displaystyle \prec }$ \prec
${\displaystyle \succ }$ \succ ${\displaystyle \sim }$ \sim ${\displaystyle \perp }$ \perp ${\displaystyle \preceq }$ \preceq ${\displaystyle \succeq }$ \succeq
${\displaystyle \simeq }$ \simeq ${\displaystyle \mid }$ \mid ${\displaystyle \ll }$ \ll ${\displaystyle \gg }$ \gg ${\displaystyle \asymp }$ \asymp
${\displaystyle \parallel }$ \parallel ${\displaystyle \subset }$ \subset ${\displaystyle \supset }$ \supset ${\displaystyle \approx }$ \approx ${\displaystyle \bowtie }$ \bowtie
${\displaystyle \subseteq }$ \subseteq ${\displaystyle \supseteq }$ \supseteq ${\displaystyle \cong }$ \cong ${\displaystyle \sqsubset }$ \sqsubset ${\displaystyle \sqsupset }$ \sqsupset
${\displaystyle \neq \,}$ \neq ${\displaystyle \smile }$ \smile ${\displaystyle \sqsubseteq }$ \sqsubseteq ${\displaystyle \sqsupseteq }$ \sqsupseteq ${\displaystyle \doteq }$ \doteq
${\displaystyle \frown }$ \frown ${\displaystyle \in }$ \in ${\displaystyle \ni }$ \ni ${\displaystyle \propto }$ \propto ${\displaystyle =\,}$ =
${\displaystyle \vdash }$ \vdash ${\displaystyle \dashv }$ \dashv ${\displaystyle <\,}$ < ${\displaystyle >\,}$ >
Greek Letters
Symbol Script
${\displaystyle \mathrm {A} \,}$ and ${\displaystyle \alpha \,}$ \Alpha and \alpha
${\displaystyle \mathrm {B} \,}$ and ${\displaystyle \beta \,}$ \Beta and \beta
${\displaystyle \Gamma \,}$ and ${\displaystyle \gamma \,}$ \Gamma and \gamma
${\displaystyle \Delta \,}$ and ${\displaystyle \delta \,}$ \Delta and \delta
${\displaystyle \mathrm {E} \,}$, ${\displaystyle \epsilon \,}$ and ${\displaystyle \varepsilon }$ \Epsilon, \epsilon and \varepsilon
${\displaystyle \mathrm {Z} \,}$ and ${\displaystyle \zeta \,}$ \Zeta and \zeta
${\displaystyle \mathrm {H} \,}$ and ${\displaystyle \eta \,}$ \Eta and \eta
${\displaystyle \Theta \,}$, ${\displaystyle \theta \,}$ and ${\displaystyle \vartheta }$ \Theta, \theta and \vartheta
${\displaystyle \mathrm {I} \,}$ and ${\displaystyle \iota \,}$ \Iota and \iota
${\displaystyle \mathrm {K} \,}$ and ${\displaystyle \kappa \,}$ \Kappa and \kappa
${\displaystyle \Lambda \,}$ and ${\displaystyle \lambda \,}$ \Lambda and \lambda
${\displaystyle \mathrm {M} \,}$ and ${\displaystyle \mu \,}$ \Mu and \mu
${\displaystyle \mathrm {N} \,}$ and ${\displaystyle \nu \,}$ \Nu and \nu
${\displaystyle \Xi \,}$ and ${\displaystyle \xi \,}$ \Xi and \xi
${\displaystyle \Pi \,}$, ${\displaystyle \pi \,}$ and ${\displaystyle \varpi }$ \Pi, \pi and \varpi
${\displaystyle \mathrm {P} \,}$, ${\displaystyle \rho \,}$ and ${\displaystyle \varrho }$ \Rho, \rho and \varrho
${\displaystyle \Sigma \,}$, ${\displaystyle \sigma \,}$ and ${\displaystyle \varsigma }$ \Sigma, \sigma and \varsigma
${\displaystyle \mathrm {T} \,}$ and ${\displaystyle \tau \,}$ \Tau and \tau
${\displaystyle \Upsilon \,}$ and ${\displaystyle \upsilon \,}$ \Upsilon and \upsilon
${\displaystyle \Phi \,}$, ${\displaystyle \phi \,}$, and ${\displaystyle \varphi }$ \Phi, \phi and \varphi
${\displaystyle \mathrm {X} \,}$ and ${\displaystyle \chi \,}$ \Chi and \chi
${\displaystyle \Psi \,}$ and ${\displaystyle \psi \,}$ \Psi and \psi
${\displaystyle \Omega \,}$ and ${\displaystyle \omega \,}$ \Omega and \omega
Binary Operations
Symbol Script Symbol Script Symbol Script Symbol Script
${\displaystyle \pm \,}$ \pm ${\displaystyle \cap \,}$ \cap ${\displaystyle \diamond }$ \diamond ${\displaystyle \oplus }$ \oplus
${\displaystyle \mp }$ \mp ${\displaystyle \cup }$ \cup ${\displaystyle \bigtriangleup }$ \bigtriangleup ${\displaystyle \ominus }$ \ominus
${\displaystyle \times \,}$ \times ${\displaystyle \uplus }$ \uplus ${\displaystyle \bigtriangledown }$ \bigtriangledown ${\displaystyle \otimes }$ \otimes
${\displaystyle \div }$ \div ${\displaystyle \sqcap }$ \sqcap ${\displaystyle \triangleleft }$ \triangleleft ${\displaystyle \oslash }$ \oslash
${\displaystyle \ast }$ \ast ${\displaystyle \sqcup }$ \sqcup ${\displaystyle \triangleright }$ \triangleright ${\displaystyle \odot }$ \odot
${\displaystyle \star }$ \star ${\displaystyle \vee }$ \vee ${\displaystyle \bigcirc }$ \bigcirc ${\displaystyle \circ }$ \circ
${\displaystyle \wedge }$ \wedge ${\displaystyle \dagger \,}$ \dagger ${\displaystyle \bullet }$ \bullet ${\displaystyle \setminus \,}$ \setminus
${\displaystyle \ddagger \,}$ \ddagger ${\displaystyle \cdot }$ \cdot ${\displaystyle \wr }$ \wr ${\displaystyle \amalg }$ \amalg
Set and/or Logic Notation
Symbol Script
${\displaystyle \exists \,}$ \exists
${\displaystyle \forall \,}$ \forall
${\displaystyle \neg \,}$ \neg
${\displaystyle \in \,}$ and ${\displaystyle \notin \,}$ \in and \notin
${\displaystyle \ni \,}$ \ni
${\displaystyle \land \,}$ \land
${\displaystyle \lor \,}$ \lor
${\displaystyle \rightarrow \,}$ \rightarrow
${\displaystyle \implies \,}$ \implies
${\displaystyle \iff \,}$ \iff
${\displaystyle \top \,}$ \top
${\displaystyle \bot \,}$ \bot
${\displaystyle \emptyset \,}$ and ${\displaystyle \varnothing \,}$ \emptyset and \varnothing
Delimiters
Symbol Script
${\displaystyle \uparrow \,}$ \uparrow
${\displaystyle \Uparrow \,}$ \Uparrow
${\displaystyle \downarrow \,}$ \downarrow
${\displaystyle \Downarrow \,}$ \Downarrow
${\displaystyle \{\,}$ \{
${\displaystyle \}\,}$ \}
${\displaystyle \lceil \,}$ \lceil
${\displaystyle \rceil \,}$ \rceil
${\displaystyle \langle \,}$ \langle
${\displaystyle \rangle \,}$ \rangle
${\displaystyle /\,}$ /
${\displaystyle \backslash \,}$ \backslash
${\displaystyle |\,}$ |
${\displaystyle \|\,}$ \|
Other symbols
Symbol Script
${\displaystyle \partial }$ \partial
${\displaystyle \infty }$ \infty
${\displaystyle \nabla }$ \nabla
${\displaystyle \hbar }$ \hbar
${\displaystyle \Box }$ \Box
${\displaystyle \aleph }$ \aleph
${\displaystyle \ell }$ \ell
${\displaystyle \imath }$ \imath
${\displaystyle \jmath }$ \jmath
${\displaystyle \Re }$ \Re
${\displaystyle \Im }$ \Im

Trigonometric Functions
Symbol Script Symbol Script Symbol Script Symbol Script
${\displaystyle \sin }$ \sin ${\displaystyle \cos }$ \cos ${\displaystyle \tan }$ \tan ${\displaystyle \cot }$ \cot
${\displaystyle \arcsin }$ \arcsin ${\displaystyle \arccos }$ \arccos ${\displaystyle \arctan }$ \arctan ${\displaystyle \operatorname {arccot} }$ \arccot
${\displaystyle \sinh }$ \sinh ${\displaystyle \cosh }$ \conh ${\displaystyle \tanh }$ \tanh ${\displaystyle \coth }$ \coth
${\displaystyle \sec }$ \sec ${\displaystyle \csc }$ \csc

### 總結

As you begin to see, typesetting math can be tricky at times. However, because Latex provides so much control, you can get professional quality mathematics typesetting with relatively little effort (once you've had a bit of practice, of course!). It would be possible to keep going and going with math topics because it seems potentially limitless. However, with this tutorial, you should be able to get along sufficiently.

 編者待辦： introduce symbols from [1] add symbols from [2] consider adding symbols from [3] -- the list of nearly all symbols available for LaTeX Consider, instead of using the symbols from the above mentioned, using what has already been introduced in [4] instead of retyping the tables How to box an equation within an align environment Color in equations

## 附記

1. http://www.ams.org/publications/authors/tex/amslatex
2. http://www.tex.ac.uk/ctan/macros/latex/contrib/mh/mathtools.pdf
3. requires the amsmath package
4. requires the mathtools package
5. requires amsfonts or amssymb packages
6. require mathrsfs package