Pages、Numbers 和 Keynote 支援 LaTeX 及 MathML,並支援可以透過 blahtex 轉換為 MathML 的所有 LaTeX 指令。以下列出其他支援的 LaTeX 擴充功能。
iBooks Author 亦支援 LaTeX 和 MathML,但此 app 已不再提供或更新。
進一步了解如何從 iBooks Author 轉至 Pages
iCloud.com 的 Pages、Numbers 和 Keynote 不支援 LaTeX 和 MathML。
LaTeX 指令
LaTeX 一般會要求將方程式置於數學模式指令中 (如下方範例所示)。為簡化方程式編寫,Pages、Numbers、Keynote 和 iBooks Author 的方程式編輯器預設使用數學模式,因此你無需在方程式中加入數學模式指令。
- \begin{math} … \end{math}
- \begin{displaymath} … \end{displaymath}
- \begin{equation} … \end{equation}
- $ … $
- $$ … $$
- \( … \)
- \[ … \]
如要在沿用段落樣式的方程式中加入文字,請使用 \text{…}。不支援在 \text{…} 中使用巢狀方程式。
在數學模式中,blahtex 尚未全面支援非 ASCII 的 Unicode 字元,但在文字模式中接受完整的 Unicode 字元集。如要了解特定字元的詳情 (例如版權符號及重音標記字元),請參閱「blahtex 手冊」第 2.22 版。
以下列出支援的 LaTeX 指令 (blahtex 的擴充功能) 以及 MathML 元素和屬性。
Pages、Numbers 和 Keynote 支援的 LaTeX 指令
指令或符號 |
---|
\phantom{} |
\color |
\cancel |
\underrightarrow、\underleftarrow、\underleftrightarrow |
\lneq、\gneq、\lvertneq、\gvertneq |
\thinspace、\medspace、\thickspace、\negthinspace、\negmedspace、\negthickspace |
"\:", "\,", "\;", "\!", "\ " |
\lmoustache、\rmoustache |
\lgroup、\rgroup |
\brace、\brack |
\xleftarrow、\xrightarrow |
\dddot、\ddddot |
\copyright |
\pounds |
\diagup、\diagdown |
\dag、\ddag、\dagger、\ddagger |
\owns、\ni |
{split} |
Pages、Numbers 和 Keynote 不支援的 LaTeX 指令
指令或符號 | 備註 |
---|---|
\mathring{} | |
\ae、\AE | |
\smallint | |
\idotsint | |
\euro | Unicode 符號;僅適用於文字模式 |
\varGamma | |
\cal | 使用 \mathcal{} |
\mathml{} | |
\center | |
\aligned 中的 [lrc] | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\hspace | 使用「\:」、「\,」、「\;」或 \phantom{} |
\mspace | |
\centernot | |
\buildrelover | 使用 \overset、\underset |
\tabular 相關環境 | 僅為 \matrix 及 \aligned 提供有限支援 |
\sideset | |
\pmb、\boldmath、\unboldmath | 使用 \boldsymbol |
iBooks Author 支援的 LaTeX 指令
指令或符號 |
---|
\phantom{} |
\color |
\cancel |
\underrightarrow、\underleftarrow、\underleftrightarrow |
\lneq、\gneq、\lvertneq、\gvertneq |
\thinspace、\medspace、\thickspace、\negthinspace、\negmedspace、\negthickspace |
"\:", "\,", "\;", "\!", "\ " |
\lmoustache、\rmoustache |
\lgroup、\rgroup |
\brace、\brack |
\xleftarrow、\xrightarrow |
\dddot、\ddddot |
iBooks Author 不支援的 LaTeX 指令
指令或符號 | 備註 |
---|---|
\mathring{} | |
\copyright | Unicode 符號;僅適用於文字模式 |
\pounds | Unicode 符號;僅適用於文字模式 |
\ae、\AE | |
\smallint | |
\diagup、\diagdown | |
\idotsint | |
\euro | Unicode 符號;僅適用於文字模式 |
\varGamma | |
\cal | 使用 \mathcal{} |
\mathml{} | |
\center | |
\aligned 中的 [lrc] | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\dag、\ddag | 支援 \dagger、\ddagger |
{split} | |
\hspace | 使用「\:」、「\,」、「\;」或 \phantom{} |
\mspace | |
\centernot | |
\buildrelover | 使用 \overset、\underset |
\owns | 使用 \ni |
\tabular 相關環境 | 僅為 \matrix 及 \aligned 提供有限支援 |
\sideset | |
\pmb、\boldmath、\unboldmath | 使用 \boldsymbol |
LaTeX 套件
不支援下列 LaTeX 套件:
套件 | 備註 |
---|---|
cancel | 使用 \cancel |
ams | 使用 \underrightarrow、\underleftarrow、\underleftrightarrow |
centernot |
MathML 元素
以下表格說明 Pages、Numbers、Keynote 和 iBooks Author 支援的 MathML 元件。
支援的 MathML 元件
元件 | 備註 |
---|---|
mo | |
mi | |
mn | |
mrow | |
menclose | 不支援部分嵌套形式 |
mtable | 不支援部分屬性 |
mtr | |
mtd | |
mfrac | |
msup | |
msub | |
msubsup | |
munder | |
mover | |
munderover | |
mstack | |
msrow | |
msgroup | |
mscarries | |
mscarry | |
msline | |
mlongdiv | |
mpadded | |
mspace | |
maction | Pages、Numbers、Keynote 和 iBooks Author 支援第一個 MathML 子項,並忽略其他子項 |
mphantom | |
mfenced | |
mroot | |
msqrt | |
none | |
mstyle | |
mtext | |
ms | |
maligngroup | |
malignmark |
部分受支援的 MathML 元件
元件 | 備註 |
---|---|
mlabeledtr | 視為 <mtr> 並忽略第一個子操作 |
semantics | 視為 row |
annotation | 有效地忽略 |
不支援的 MathML 元件
元件 | 備註 |
---|---|
mmultiscripts | |
mprescripts | |
mglyph | |
merror | |
{ContExp} | 不支援內容 MathML 元件。 查看 {ContExp} 涵蓋哪些元件。 |
MathML 屬性
以下表格說明 Pages、Numbers、Keynote 和 iBooks Author 支援的 MathML 屬性。
支援的 MathML 屬性
Pages、Numbers、Keynote 和 iBooks Author 支援下列 MathML 屬性:
元件 | 屬性 | 從 <mstyle> 繼承的預設值 | 值 (若為規格的子集,則為值語法) |
---|---|---|---|
* | mathcolor | yes | |
mstyle | scriptlevel | no | |
mstyle | display | no | |
mstyle | scriptminsize | no | |
mstyle | scriptsizemultiplier | no | |
mstyle | <指定屬性連可沿用的預設值> | n/a | |
mo | lspace | yes | |
mo | rspace | yes | |
mo | largeop | yes | |
mo | minsize | yes | |
mo | maxsize | yes | |
mo | accent | yes | |
mo | movablelimits | yes | |
mo | symmetric | yes | |
mo | stretchy | yes | |
mo | form | yes | |
mspace | width | yes | |
mspace | height | yes | |
mspace | depth | yes | |
ms | lqoute | yes | |
ms | rqoute | yes | |
mfrac | linethickness | yes | |
mfrac | numalign | yes | |
mfrac | denomalign | yes | |
mover | accent | yes | |
mover | align | yes | |
munderover | accent | yes | |
munderover | underaccent | yes | |
munder | accentunder | yes | |
munder | align | yes | |
mtable | rowalign | yes | |
mtable | columnalign | yes | |
mtable | columnspacing | yes | |
mtable | displaystyle | yes | |
mtr | rowalign | yes | |
mtr | columnalign | yes | |
mtd | rowalign | yes | |
mtd | columnalign | yes | |
mstack | align | yes | top | bottom | center | baseline | axis |
msrow | position | yes | |
msgroup | position | yes | |
msgroup | shift | yes | |
mscarries | position | yes | |
mscarries | crossout | yes | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
mscarry | crossout | yes | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
msline | length | yes | |
msline | position | yes | |
mpadded | height | no | |
mpadded | depth | no | |
mpadded | width | no | |
mpadded | lspace | no | |
mpadded | voffset | no | |
mfenced | open | yes | |
mfenced | close | yes | |
mfenced | separators | yes | |
maligngroup | groupalign | yes | |
malignmark | edge | yes |
部分支援的 MathML 屬性
Pages、Numbers、Keynote 和 iBooks Author 局部支援下列 MathML 屬性:
元件 | 屬性 | 從 <mstyle> 繼承的預設值 | 值 (若為規格的子集,則為值語法) |
備註 |
---|---|---|---|---|
mo、mn、mi | mathvariant | yes | 不支援 initial、stretched、looped、tailed | |
mtable | align | no | top | bottom | center | baseline | axis | 不支援 rownumber |
menclose | notation | yes | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike | 更多內容 |
mlongdiv | longdivstyle | no | lefttop |
不支援的 MathML 屬性
元件 | 屬性 | 備註 |
---|---|---|
* | mathbackground | |
mstyle | infixlinebreakstyle | |
mstyle | veryverythinmathspace、verythinmathspace、thinmathspace、mediummathspace、thickmathspace、verythickmathspace、veryverythickmathspace | 在 MathML 3 中已被淘汰。 |
mi、mn、mo、ms、mstyle、mtext | mathsize | |
mi、mn、mo、ms、mstyle、mtext | dir | |
mi、mn、mo、ms、mstyle、mtext | fontfamily、fontweight、fontstyle、fontsize、color、background | 在 MathML 3 中已被淘汰。 |
mo | linebreak | |
mo | lineleading | |
mo | linebreakstyle | |
mo | linebreakmultchar | |
mo | identalign | |
mo | identshift | |
mo | identtarget | |
mo | identalignfirst | |
mo | identshiftfirst | |
mo | identalignlast | |
mo | identshiftlast | |
mo | fence | 不影響視覺版面配置 |
mo | separator | 不影響視覺版面配置 |
mspace | linebreak | |
mfrac | bevelled | |
mtable | groupalign | |
mtable | alignmentscope | |
mtable | columnwidth | |
mtable | width | |
mtable | rowspacing | |
mtable | rowlines | |
mtable | columnlines | |
mtable | frame | |
mtable | framespacing | |
mtable | equalrows | |
mtable | equalcolumns | |
mtable | side | |
mtable | minlabelspacing | |
mtr | groupalign | |
mtd | rowspan | |
mtd | columnspan | |
mtd | groupalign | |
mstack | stackalign | |
mstack | charalign | |
mstack | charspacing | |
mlongdiv | position | |
mlongdiv | shift | |
mscarries | location | |
mscarries | scriptsizemultiplier | |
mscarry | location | |
msline | leftoverhang | |
msline | rightoverhang | |
msline | mslinethickness | |
msub | subscriptshift | |
msup | superscriptshift | |
msubsup | superscriptshift | |
msubsup | subscriptshift | |
mrow | ltr | |
maction | selection | |
maction | actiontype |
範例方程式
基本數學
LaTeX | 轉譯為 |
---|---|
0.15 \cdot \frac{1}{8} |
![]() |
-22 \div 11 |
![]() |
2x + 3y \ge -21 |
![]() |
3(b-5) < -6(b+5) |
![]() |
\left \{ 6 \tfrac{4}{5}, \, \sqrt{49}, \, 6.\overline{3}, \, 7\sqrt{5} \right \} |
![]() |
對齊方式
LaTeX | 轉譯為 |
---|---|
\begin{aligned} 9 && < && 15 && < && 16 \\ \sqrt{9} && < && \sqrt{15} && < && \sqrt16 \\ 3 && < && \sqrt{15} && < && 4 \end{aligned} |
![]() |
\begin{aligned} \text{first number} & & \text{second number} \\ 10 \mbox{\phantom{=digit}} & \cdot & 9 \mbox{\phantom{=digit}} \end{aligned}
|
![]() |
\begin{aligned} N &= 0.555\ldots \\ {\color{red}10}N &= {\color{red} 10}(0.555\ldots) \\ 10N &= 5.555\ldots \end{aligned} |
![]() |
顏色
LaTeX | 轉譯為 |
---|---|
\begin{aligned} N &= 0.555\ldots \\ {\color{red}10}N &= {\color{red} 10}(0.555\ldots) \\ 10N &= 5.555\ldots \end{aligned} |
![]() |
\sum_{\color{0A7C10}n=0}^{\color{red}\infty} a_n x^n |
![]() |
積分
LaTeX | 轉譯為 |
---|---|
\textstyle \int_{-N}^{N} e^x\, dx |
![]() |
\int_{-N}^{N} e^x\, dx |
![]() |
\textstyle 用來區別內嵌方程式及顯示方程式。
矩陣
LaTeX | 轉譯為 |
---|---|
\begin{matrix} a & b \\ c & d \\ \end{matrix} |
![]() |
\begin{matrix} c(1)^{n-1} & \dots & c(1)^2 & c(1) & 1 \\ c(2)^{n-1} & \dots & c(2)^2 & c(2) & 1 \\ \vdots & \ddots & \vdots & \vdots & \vdots \\ c(n)^{n-1} & \dots & 1 & 0 & 0 \end{matrix} |
![]() |
|x| = \begin{cases} \phantom{-} x& \text{if } x \geq 0 \\ -x & \text{if } x<0 \end{cases} |
![]() |
R_\theta = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \phantom{-} \cos \theta \end{bmatrix} |
![]() |
一般方程式元件
LaTeX | 轉譯為 |
---|---|
\(\Delta S^\circ=\sum S^{\circ }\text{products} - \sum S^{\circ }\text{reactants}\) |
![]() |
HF(aq) +H_{2}O(l) \rightleftharpoons H_{3}O^{+} (aq) +F_{-}(aq) |
![]() |
\nabla \times \overrightarrow{\mathbf{B}} - \frac{1}{C} \frac{\delta \overrightarrow{\mathbf{E}}}{\delta t} = 4\pi \rho |
![]() |
x = \frac{- b\pm\sqrt{b^2-4a c}}{2a} |
![]() |
完整格式算術
MathML | 轉譯為 |
---|---|
<?xml version="1.0"?> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mstack> <mscarries location='nw'> <none/> <mscarry crossout='updiagonalstrike' location='n'> <mn>2</mn> </mscarry> <mn>1</mn> <none/> </mscarries> <mn>2,327</mn> <msrow> <mo>-</mo> <mn> 1,156</mn> </msrow> <msline/> <mn>1,171</mn> </mstack> </math> |
|
<math xmlns="http://www.w3.org/1998/Math/MathML"> <mlongdiv> <mn> 12 </mn> <mn> 16.5 </mn> <mn> 198 </mn> <msgroup position='1' shift='-1'> <msgroup> <mn> 12</mn> <msline length='2'/> </msgroup> <msgroup> <mn> 78</mn> <mn> 72</mn> <msline length='2'/> <mn> 6.0</mn> <mn> 6.0</mn> </msgroup> <msgroup position='-1'> <!-- extra shift to move to the right of the "." --> <msline length='3'/> <mn> 0</mn> </msgroup> </msgroup> </mlongdiv> </math> |
|
<math xmlns="http://www.w3.org/1998/Math/MathML"> <mstack charspacing="loose"> <mscarries position="1"> <mn>1</mn> </mscarries> <mscarries position="1"> <mn>1</mn> <mn>2</mn> </mscarries> <mn>435</mn> <msrow> <mo>×</mo> <none/> <mn>25</mn> </msrow> <msline/> <mscarries position="2"> <mn>1</mn> </mscarries> <mn>2175</mn> <msrow position="1"> <mn>870</mn> </msrow> <msline/> <mn>10875</mn> </mstack> </math> |
|
Pages、Numbers、Keynote 和 iBooks Author 不支援將 LaTeX 用於長除法和餘數。如要使用長除法和餘數,請務必使用 MathML。
更多內容
- 在 Pages 中加入數學方程式:
- 在 Numbers 中加入數學方程式:
- 在 Keynote 中加入數學方程式: