LaTeX y MathML son compatibles con las tres apps de iWork (Pages, Numbers y Keynote) y con iBooks Author. iWork y iBooks Author son compatibles con todos los comandos de LaTeX que pueden convertirse a MathML con blahtex. A continuación, se enumeran extensiones LaTeX compatibles adicionales.
Obtén información sobre cómo agregar ecuaciones con LaTeX y MathML a los documentos de iWork o a un libro de iBooks Author.
Actualmente, LaTeX y MathML no son compatibles con las apps de iWork en iCloud.com.
Comandos de LaTeX
Por lo general, LaTeX requiere que las ecuaciones queden circunscritas al comando de modo matemático, como en los ejemplos que se muestran a continuación. Para que crear ecuaciones sea más fácil, los editores de ecuaciones de iWork y iBooks Author están configurados en modo matemático de manera predeterminada, así que no es necesario que agregues comandos de modo matemático a las ecuaciones.
- \begin{math} … \end{math}
- \begin{displaymath} … \end{displaymath}
- \begin{equation} … \end{equation}
- $ … $
- $$ … $$
- \( … \)
- \[ … \]
Si deseas agregar texto a una ecuación en iWork o iBooks Author que herede el estilo del párrafo, usa \text{…}. No está permitido anidar ecuaciones dentro de \text{...}.
En el modo matemático, blahtex no es totalmente compatible con los caracteres Unicode no ASCII, pero sí acepta el conjunto completo de caracteres Unicode en el modo texto. Para obtener más información acerca de caracteres concretos, como el símbolo de copyright, y caracteres con tilde, consulta el Manual de blahtex, 2.22.
Los comandos de LaTeX compatibles (extensiones de blahtex) y los elementos y atributos de MathML compatibles se enumeran a continuación.
Comandos de LaTeX que son compatibles con iWork
Comando o símbolo |
---|
\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} |
Comandos de LaTeX que no son compatibles con iWork
Comando o símbolo | Notas |
---|---|
\mathring{} | |
\ae, \AE | |
\smallint | |
\idotsint | |
\euro | Símbolo Unicode; funciona solamente en modo de texto |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] in \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\hspace | Usa "\:", "\,", "\;" o \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Usa \overset, \underset |
\tabular-related environments | Compatibilidad limitada con \matrix y \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Comandos de LaTeX que son compatibles con iBooks Author
Comando o símbolo |
---|
\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 |
Comandos de LaTeX que no son compatibles con iBooks Author
Comando o símbolo | Notas |
---|---|
\mathring{} | |
\copyright | Símbolo Unicode; funciona solamente en modo de texto |
\pounds | Símbolo Unicode; funciona solamente en modo de texto |
\ae, \AE | |
\smallint | |
\diagup, \diagdown | |
\idotsint | |
\euro | Símbolo Unicode; funciona solamente en modo de texto |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] in \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\dag, \ddag | \dagger, \ddagger son compatibles |
{split} | |
\hspace | Usa "\:", "\,", "\;" o \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Usa \overset, \underset |
\owns | Usa \ni |
\tabular-related environments | Compatibilidad limitada con \matrix y \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Paquetes de LaTeX
Los siguientes paquetes de LaTeX no son compatibles:
Paquete | Notas |
---|---|
cancel | Usa \cancel |
ams | Usa \underrightarrow, \underleftarrow, \underleftrightarrow |
centernot |
Elementos de MathML
Consulta las siguientes tablas para obtener información sobre los elementos de MathML que son compatibles con iWork y iBooks Author.
Elementos de MathML compatibles
Elemento | Notas |
---|---|
mo | |
mi | |
mn | |
mrow | |
menclose | No todas las formas de inclusión son compatibles |
mtable | No todos los atributos son compatibles |
mtr | |
mtd | |
mfrac | |
msup | |
msub | |
msubsup | |
munder | |
mover | |
munderover | |
mstack | |
msrow | |
msgroup | |
mscarries | |
mscarry | |
msline | |
mlongdiv | |
mpadded | |
mspace | |
maction | iWork y iBooks Author son compatibles con el primer elemento secundario de MathML e ignoran el resto |
mphantom | |
mfenced | |
mroot | |
msqrt | |
none | |
mstyle | |
mtext | |
ms | |
maligngroup | |
malignmark |
Elementos de MathML parcialmente compatibles
Elemento | Notas |
---|---|
mlabeledtr | Se trata como <mtr> con el primer elemento secundario ignorado |
semantics | Se trata como row |
annotation | Se ignora en la práctica |
Elementos de MathML no compatibles
Elemento | Notas |
---|---|
mmultiscripts | |
mprescripts | |
mglyph | |
merror | |
{ContExp} | Los elementos de contenido de MathML no son compatibles. Averigua qué elementos están cubiertos por {ContExp}. |
Atributos de MathML
Consulta las siguientes tablas para obtener información sobre los atributos de MathML que son compatibles con iWork y iBooks Author.
Atributos de MathML compatibles
Los siguientes atributos de MathML son compatibles con iWork y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de <mstyle> | Valores (sintaxis de los valores si es un subconjunto de la especificación) |
---|---|---|---|
* | mathcolor | yes | |
mstyle | scriptlevel | no | |
mstyle | display | no | |
mstyle | scriptminsize | no | |
mstyle | scriptsizemultiplier | no | |
mstyle | <atributos especificados con valor predeterminado transmisible> | 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 |
Atributos de MathML parcialmente compatibles
Los siguientes atributos de MathML son parcialmente compatibles con iWork y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de <mstyle> | Valores (sintaxis de los valores si es un subconjunto de la especificación) |
Notas |
---|---|---|---|---|
mo, mn, mi | mathvariant | yes | Not supporting initial, stretched, looped, tailed | |
mtable | align | no | top | bottom | center | baseline | axis | rownumber no compatible |
menclose | notation | yes | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike | Más información |
mlongdiv | longdivstyle | no | lefttop |
Atributos de MathML no compatibles
Elemento | Atributo | Notas |
---|---|---|
* | mathbackground | |
mstyle | infixlinebreakstyle | |
mstyle | veryverythinmathspace, verythinmathspace, thinmathspace, mediummathspace, thickmathspace, verythickmathspace, veryverythickmathspace | Depreciados en 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 | Depreciados en 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 | No afecta a la presentación visual. |
mo | separator | No afecta a la presentación visual. |
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 |
Ecuaciones de ejemplo
Matemática básica
LaTeX | Se muestra como |
---|---|
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 \} |
![]() |
Alineación
LaTeX | Se muestra como |
---|---|
\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
LaTeX | Se muestra como |
---|---|
\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 |
![]() |
Integrales
LaTeX | Se muestra como |
---|---|
\textstyle \int_{-N}^{N} e^x\, dx |
![]() |
\int_{-N}^{N} e^x\, dx |
![]() |
\textstyle distingue entre ecuaciones “en línea” e independientes.
Matrices
LaTeX | Se muestra como |
---|---|
\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} |
![]() |
Elementos comunes de ecuaciones
LaTeX | Se muestra como |
---|---|
\(\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} |
![]() |
Aritmética de división larga
MathML | Se muestra como |
---|---|
<?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 y iBooks Author no son compatibles con LaTeX para divisiones largas y restos. Para trabajar con divisiones largas y restos, debes usar MathML.