LaTeX et MathML sont pris en charge par les trois applications iWork (Pages, Numbers et Keynote) et iBooks Author. iWork et iBooks Author prennent en charge toutes les commandes LaTeX pouvant être converties en MathML avec blahtex. D’autres extensions LaTeX prises en charge sont énumérées ci-dessous.
Découvrez comment ajouter des équations en langage LaTex et MathML à vos documents iWork ou livre iBooks Author.
LaTeX et MathML ne sont actuellement pas pris en charge dans les apps iWork sur iCloud.com.
Commandes LaTeX
Le langage LaTeX requiert généralement l’utilisation d’équations contenues dans des commandes mathématiques, comme illustré ci-dessous. Pour faciliter la création d’équations, les éditeurs d’équations d’iWork et d’iBooks Author se trouvent en mode mathématique par défaut. Il n’est donc pas nécessaire d’ajouter des commandes mathématiques à vos équations.
- \begin{math} … \end{math}
- \begin{displaymath} … \end{displaymath}
- \begin{equation} … \end{equation}
- $ … $
- $$ … $$
- \( … \)
- \[ … \]
Si vous souhaitez ajouter du texte à une équation adoptant le style du paragraphe dans lequel elle se trouve, dans iWork ou iBooks Author, saisissez \text{…}. L’imbrication d’équations dans \text{...} n’est pas possible.
En mode mathématique, le programme blahtex ne prend pas entièrement en charge les caractères Unicode non-ASCII, mais il prend en charge les caractères Unicode en mode texte. Pour obtenir plus d’informations sur des caractères spécifiques, par exemple, le symbole © et les caractères avec accent, consultez la version 2.22 du manuel d’utilisation de blahtex.
Les commandes LaTeX (extensions de blahtex) et les éléments et attributs MathML pris en charge sont indiqués ci-dessous.
Commandes LaTeX prises en charge par iWork
Commande ou symbole |
---|
\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} |
Commandes LaTeX non prises en charge par iWork
Commande ou symbole | Notes |
---|---|
\mathring{} | |
\ae, \AE | |
\smallint | |
\idotsint | |
\euro | Symbole Unicode, fonctionne en mode texte uniquement |
\varGamma | |
\cal | Utilisez \mathcal{} |
\mathml{} | |
\center | |
[lrc] dans \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\hspace | Utilisez "\:", "\,", "\;" ou \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Utilisez \overset, \underset |
\tabular-related environments | Prise en charge limitée de \matrix et \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Utilisez \boldsymbol |
Commandes LaTeX prises en charge par iBooks Author
Commande ou symbole |
---|
\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 |
Commandes LaTeX non prises en charge par iBooks Author
Commande ou symbole | Notes |
---|---|
\mathring{} | |
\copyright | Symbole Unicode, fonctionne en mode texte uniquement |
\pounds | Symbole Unicode, fonctionne en mode texte uniquement |
\ae, \AE | |
\smallint | |
\diagup, \diagdown | |
\idotsint | |
\euro | Symbole Unicode, fonctionne en mode texte uniquement |
\varGamma | |
\cal | Utilisez \mathcal{} |
\mathml{} | |
\center | |
[lrc] dans \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\dag, \ddag | \dagger, \ddagger pris en charge |
{split} | |
\hspace | Utilisez "\:", "\,", "\;" ou \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Utilisez \overset, \underset |
\owns | Utilisez \ni |
\tabular-related environments | Prise en charge limitée de \matrix et \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Utilisez \boldsymbol |
Paquets LaTeX
Les paquets LaTeX suivants ne sont pas pris en charge :
Paquet | Notes |
---|---|
cancel | Utilisez \cancel |
ams | Utilisez \underrightarrow, \underleftarrow, \underleftrightarrow |
centernot |
Éléments MathML
Utilisez les tableaux ci-dessous pour en savoir plus sur les éléments MathML pris en charge par iWork et iBooks Author.
Éléments MathML pris en charge
Élément | Notes |
---|---|
mo | |
mi | |
mn | |
mrow | |
menclose | Les formes d’inclusion ne sont pas toutes prises en charge |
mtable | Les attributs ne sont pas tous pris en charge |
mtr | |
mtd | |
mfrac | |
msup | |
msub | |
msubsup | |
munder | |
mover | |
munderover | |
mstack | |
msrow | |
msgroup | |
mscarries | |
mscarry | |
msline | |
mlongdiv | |
mpadded | |
mspace | |
maction | iWork et iBooks Author prennent en charge le premier enfant MathML et ignorent le reste |
mphantom | |
mfenced | |
mroot | |
msqrt | |
none | |
mstyle | |
mtext | |
ms | |
maligngroup | |
malignmark |
Éléments MathML partiellement pris en charge
Élément | Notes |
---|---|
mlabeledtr | Traité de la même façon que <mtr>, premier enfant ignoré |
semantics | Traité comme row |
annotation | Ignoré |
Éléments MathML non pris en charge
Élément | Notes |
---|---|
mmultiscripts | |
mprescripts | |
mglyph | |
merror | |
{ContExp} | Les éléments de contenu MathML ne sont pas pris en charge. Découvrez quels éléments correspondent à {ContExp}. |
Attributs MathML
Utilisez les tableaux ci-dessous pour en savoir plus sur les attributs MathML pris en charge par iWork et iBooks Author.
Attributs MathML pris en charge
Les attributs MathML suivants sont pris en charge par iWork et iBooks Author :
Élément | Attribut | Valeur par défaut héritable de <mstyle> | Valeurs (Syntaxe de la valeur si sous-ensemble de caractères spécifiques) |
---|---|---|---|
* | mathcolor | oui | |
mstyle | scriptlevel | non | |
mstyle | display | non | |
mstyle | scriptminsize | non | |
mstyle | scriptsizemultiplier | non | |
mstyle | <attributs spécifiés avec valeur par défaut héritable> | n/a | |
mo | lspace | oui | |
mo | rspace | oui | |
mo | largeop | oui | |
mo | minsize | oui | |
mo | maxsize | oui | |
mo | accent | oui | |
mo | movablelimits | oui | |
mo | symmetric | oui | |
mo | stretchy | oui | |
mo | form | oui | |
mspace | width | oui | |
mspace | height | oui | |
mspace | depth | oui | |
ms | lqoute | oui | |
ms | rqoute | oui | |
mfrac | linethickness | oui | |
mfrac | numalign | oui | |
mfrac | denomalign | oui | |
mover | accent | oui | |
mover | align | oui | |
munderover | accent | oui | |
munderover | underaccent | oui | |
munder | accentunder | oui | |
munder | align | oui | |
mtable | rowalign | oui | |
mtable | columnalign | oui | |
mtable | columnspacing | oui | |
mtable | displaystyle | oui | |
mtr | rowalign | oui | |
mtr | columnalign | oui | |
mtd | rowalign | oui | |
mtd | columnalign | oui | |
mstack | align | oui | top | bottom | center | baseline | axis |
msrow | position | oui | |
msgroup | position | oui | |
msgroup | shift | oui | |
mscarries | position | oui | |
mscarries | crossout | oui | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
mscarry | crossout | oui | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
msline | length | oui | |
msline | position | oui | |
mpadded | height | non | |
mpadded | depth | non | |
mpadded | width | non | |
mpadded | lspace | non | |
mpadded | voffset | non | |
mfenced | open | oui | |
mfenced | close | oui | |
mfenced | separators | oui | |
maligngroup | groupalign | oui | |
malignmark | edge | oui |
Attributs MathML partiellement pris en charge
Les attributs MathML suivants sont partiellement pris en charge par iWork et iBooks Author :
Élément | Attribut | Valeur par défaut héritable de <mstyle> | Valeurs (Syntaxe de la valeur si sous-ensemble de caractères spécifiques) |
Notes |
---|---|---|---|---|
mo, mn, mi | mathvariant | oui | initial, stretched, looped, tailed non prises en charge | |
mtable | align | non | top | bottom | center | baseline | axis | rownumber non prise en charge |
menclose | notation | oui | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike | En savoir plus |
mlongdiv | longdivstyle | non | lefttop |
Attributs MathML non pris en charge
Élément | Attribut | Notes |
---|---|---|
* | mathbackground | |
mstyle | infixlinebreakstyle | |
mstyle | veryverythinmathspace, verythinmathspace, thinmathspace, mediummathspace, thickmathspace, verythickmathspace, veryverythickmathspace | Obsolète en langage 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 | Obsolète en langage 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 | N’affecte pas la mise en page visuelle |
mo | separator | N’affecte pas la mise en page visuelle |
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 | la position | |
mscarries | scriptsizemultiplier | |
mscarry | la position | |
msline | leftoverhang | |
msline | rightoverhang | |
msline | mslinethickness | |
msub | subscriptshift | |
msup | superscriptshift | |
msubsup | superscriptshift | |
msubsup | subscriptshift | |
mrow | ltr | |
maction | selection | |
maction | actiontype |
Exemples d’équations
Équations mathématiques de base
Paquets | Se présente sous la forme |
---|---|
0.15 \cdot \frac{1}{8} |
![]() |
-22 \div 11 |
![]() |
2x + 3y \ge -21 |
![]() |
3(b-5) < -6(b+5) |
![]() |
\left \{ 6 {\textstyle \frac{4}{5}}, \, \sqrt{49}, \, 6.\overline{3}, \, 7\sqrt{5} \right \} |
![]() |
Alignement
Paquets | Se présente sous la forme |
---|---|
\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} |
![]() |
Color
Paquets | Se présente sous la forme |
---|---|
\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 |
![]() |
Intégrales
Paquets | Se présente sous la forme |
---|---|
\textstyle \int_{-N}^{N} e^x\, dx |
![]() |
\int_{-N}^{N} e^x\, dx |
![]() |
\textstyle permet de différencier les équations en ligne des équations centrées.
Matrices
Paquets | Se présente sous la forme |
---|---|
\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} |
![]() |
Éléments d’équation communs
Paquets | Se présente sous la forme |
---|---|
\(\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} |
![]() |
Formules arithmétiques longues
Éléments | Se présente sous la forme |
---|---|
<?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> |
|
iWork et iBooks Author ne prennent pas en charge le langage LaTeX pour les longues divisions et les longs restes. Pour travailler avec de longues divisions et de longs restes, vous devez utiliser le langage MathML.