LaTeX e MathML sono supportati da tutte e tre le app di iWork (Pages, Numbers e Keynote), nonché da iBooks Author. iWork e iBooks Author supportano tutti i comandi LaTeX che possono essere convertiti in MathML con blahtex. Di seguito sono elencate ulteriori estensioni di LaTeX supportate.
Scopri come aggiungere equazioni con LaTeX e MathML ai documenti iWork o in un libro iBooks Author.
LaTeX e MathML non sono attualmente supportati nelle app di iWork su iCloud.com.
Comandi LaTeX
In genere, LaTeX richiede che le equazioni siano racchiuse all'interno di comandi in modalità matematica come quelli negli esempi riportati di seguito. Per facilitare l'authoring delle equazioni, gli editor di equazioni di iWork e di iBooks Author vengono impostati di default sulla modalità matematica e non è quindi necessario aggiungere comandi della modalità matematica alle equazioni.
- \begin{math} … \end{math}
- \begin{displaymath} … \end{displaymath}
- \begin{equation} … \end{equation}
- $ … $
- $$ … $$
- \( … \)
- \[ … \]
In iWork o iBooks Author, per aggiungere testo a un'equazione che erediti lo stile del paragrafo, usa il comando \text{…}. La nidificazione delle equazioni all'interno di \text{...} non è supportata.
In modalità matematica, blahtex non supporta completamente i caratteri Unicode non ASCII, mentre accetta il set completo di caratteri Unicode in modalità testo. Per ulteriori informazioni su caratteri specifici, come il simbolo del copyright e i caratteri accentati, consulta il manuale di blahtex, 2.22.
Di seguito sono elencati i comandi LaTeX (estensioni di blahtex), nonché gli elementi e gli attributi MathML supportati.
Comandi LaTeX supportati da iWork
Comando o simbolo |
---|
\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} |
Comandi LaTeX non supportati da iWork
Comando o simbolo | Note |
---|---|
\mathring{} | |
\ae, \AE | |
\smallint | |
\idotsint | |
\euro | Simbolo Unicode; funziona solo in modalità testo |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] in \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\hspace | Usa “\:”, “\,”, “\;” o \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Usa \overset, \underset |
Ambienti \tabular | Supporto limitato per \matrix e \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Comandi LaTeX supportati da iBooks Author
Comando o simbolo |
---|
\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 |
Comandi LaTeX non supportati da iBooks Author
Comando o simbolo | Note |
---|---|
\mathring{} | |
\copyright | Simbolo Unicode; funziona solo in modalità testo |
\pounds | Simbolo Unicode; funziona solo in modalità testo |
\ae, \AE | |
\smallint | |
\diagup, \diagdown | |
\idotsint | |
\euro | Simbolo Unicode; funziona solo in modalità testo |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] in \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\dag, \ddag | \dagger, \ddagger supportati |
{split} | |
\hspace | Usa “\:”, “\,”, “\;” o \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Usa \overset, \underset |
\owns | Usa \ni |
Ambienti \tabular | Supporto limitato per \matrix e \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Pacchetti LaTeX
Questi pacchetti LaTeX non sono supportati:
Pacchetto | Note |
---|---|
cancel | Usa \cancel |
ams | Usa \underrightarrow, \underleftarrow, \underleftrightarrow |
centernot |
Elementi MathML
Per saperne di più sugli elementi MathML supportati da iWork e da iBooks Author, consulta le seguenti tabelle.
Elementi MathML supportati
Elemento | Note |
---|---|
mo | |
mi | |
mn | |
mrow | |
menclose | Non tutte le forme di inclusione sono supportate |
mtable | Non tutti gli attributi sono supportati |
mtr | |
mtd | |
mfrac | |
msup | |
msub | |
msubsup | |
munder | |
mover | |
munderover | |
mstack | |
msrow | |
msgroup | |
mscarries | |
mscarry | |
msline | |
mlongdiv | |
mpadded | |
mspace | |
maction | iWork e iBooks Author supportano il primo elemento figlio MathML e ignorano il resto |
mphantom | |
mfenced | |
mroot | |
msqrt | |
none | |
mstyle | |
mtext | |
ms | |
maligngroup | |
malignmark |
Elementi MathML parzialmente supportati
Elemento | Note |
---|---|
mlabeledtr | Considerato come <mtr> con il primo elemento figlio ignorato |
semantics | Considerato come riga |
annotation | Ignorato a tutti gli effetti |
Elementi MathML non supportati
Elemento | Note |
---|---|
mmultiscripts | |
mprescripts | |
mglyph | |
merror | |
{ContExp} | Gli elementi MathML di contenuto non sono supportati. Scopri quali elementi sono coperti da {ContExp}. |
Attributi MathML
Per saperne di più sugli attributi MathML supportati da iWork e da iBooks Author, consulta le seguenti tabelle.
Attributi MathML supportati
I seguenti attributi MathML sono supportati da iWork e iBooks Author:
Elemento | Attributo | Valore predefinito ereditabile da <mstyle> | Valori (sintassi dei valori in caso di sottoinsieme di specifiche) |
---|---|---|---|
* | mathcolor | sì | |
mstyle | scriptlevel | No | |
mstyle | display | No | |
mstyle | scriptminsize | No | |
mstyle | scriptsizemultiplier | No | |
mstyle | <attributi specificati con il valore predefinito ereditabile> | n/d | |
mo | lspace | sì | |
mo | rspace | sì | |
mo | largeop | sì | |
mo | minsize | sì | |
mo | maxsize | sì | |
mo | accent | sì | |
mo | movablelimits | sì | |
mo | symmetric | sì | |
mo | stretchy | sì | |
mo | form | sì | |
mspace | width | sì | |
mspace | height | sì | |
mspace | depth | sì | |
ms | lqoute | sì | |
ms | rqoute | sì | |
mfrac | linethickness | sì | |
mfrac | numalign | sì | |
mfrac | denomalign | sì | |
mover | accent | sì | |
mover | align | sì | |
munderover | accent | sì | |
munderover | underaccent | sì | |
munder | accentunder | sì | |
munder | align | sì | |
mtable | rowalign | sì | |
mtable | columnalign | sì | |
mtable | columnspacing | sì | |
mtable | displaystyle | sì | |
mtr | rowalign | sì | |
mtr | columnalign | sì | |
mtd | rowalign | sì | |
mtd | columnalign | sì | |
mstack | align | sì | top | bottom | center | baseline | axis |
msrow | position | sì | |
msgroup | position | sì | |
msgroup | shift | sì | |
mscarries | position | sì | |
mscarries | crossout | sì | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
mscarry | crossout | sì | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike |
msline | length | sì | |
msline | position | sì | |
mpadded | height | No | |
mpadded | depth | No | |
mpadded | width | No | |
mpadded | lspace | No | |
mpadded | voffset | No | |
mfenced | open | sì | |
mfenced | close | sì | |
mfenced | separators | sì | |
maligngroup | groupalign | sì | |
malignmark | edge | sì |
Attributi MathML parzialmente supportati
I seguenti attributi MathML sono parzialmente supportati da iWork e iBooks Author:
Elemento | Attributo | Valore predefinito ereditabile da <mstyle> | Valori (sintassi dei valori in caso di sottoinsieme di specifiche) |
Note |
---|---|---|---|---|
mo, mn, mi | mathvariant | sì | initial, stretched, looped, tailed non supportati | |
mtable | align | No | top | bottom | center | baseline | axis | rownumber non supportato |
menclose | notation | sì | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike | Scopri di più |
mlongdiv | longdivstyle | No | lefttop |
Attributi MathML non supportati
Elemento | Attributo | Note |
---|---|---|
* | mathbackground | |
mstyle | infixlinebreakstyle | |
mstyle | veryverythinmathspace, verythinmathspace, thinmathspace, mediummathspace, thickmathspace, verythickmathspace, veryverythickmathspace | Non più utilizzato in 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 | Non più utilizzato in 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 | Non ha effetto sul layout visivo |
mo | separator | Non ha effetto sul layout visivo |
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 |
Esempi di equazioni
Matematica di base
LaTeX | Aspetto finale |
---|---|
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 \} |
![]() |
Allineamento
LaTeX | Aspetto finale |
---|---|
\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} |
![]() |
Colore
LaTeX | Aspetto finale |
---|---|
\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 |
![]() |
Integrali
LaTeX | Aspetto finale |
---|---|
\textstyle \int_{-N}^{N} e^x\, dx |
![]() |
\int_{-N}^{N} e^x\, dx |
![]() |
\textstyle distingue tra le equazioni in corpo e quelle fuori corpo.
Matrici
LaTeX | Aspetto finale |
---|---|
\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} |
![]() |
Elementi comuni delle equazioni
LaTeX | Aspetto finale |
---|---|
\(\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} |
![]() |
Forma aritmetica estesa
Attributi | Aspetto finale |
---|---|
<?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 e iBooks Author non supportano LaTeX per le divisioni lunghe e i resti. Per lavorare con le divisioni lunghe e i resti, devi utilizzare MathML.