Todas las apps de iWork (Pages, Numbers y Keynote) y iBooks Author son compatibles con LaTeX y MathML. iWork y iBooks Author son compatibles con todos los comandos LaTeX que puedan convertirse a MathML con blahtex. Más abajo se indican más extensiones LaTeX compatibles.
Aprende a añadir ecuaciones a tus documentos de iWork o a tu libro de iBooks Author con LaTeX y MathML.
LaTeX y MathML no son compatibles por ahora con las apps de iWork de iCloud.com.
Comandos 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 resulte más fácil crear ecuaciones, los editores de ecuaciones de iWork y iBooks Author están configurados en modo matemático por omisión, de modo que no es necesario que añadas comandos de modo matemático a tus ecuaciones.
- \begin{math} … \end{math}
- \begin{displaymath} … \end{displaymath}
- \begin{equation} … \end{equation}
- $ … $
- $$ … $$
- \( … \)
- \[ … \]
Si quieres añadir texto a una ecuación en iWork o iBooks Author que herede el estilo de párrafo, usa \text{…}. No se admite el anidamiento de ecuaciones dentro de \text{...}.
En modo matemático, blahtex no es completamente compatible con caracteres unicode no ASCII; sin embargo, en modo de texto, blahtex acepta todos los caracteres unicode. Para obtener más información acerca de caracteres concretos, como el símbolo de copyright o los caracteres con tildes, consulta el Manual de blahtex 2.22.
Los comandos LaTeX compatibles (extensiones de blahtex) y los elementos y atributos MathML compatibles se enumeran a continuación.
Comandos LaTeX 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 LaTeX no compatibles con iWork
Comando o símbolo | Notas |
---|---|
\mathring{} | |
\ae, \AE | |
\smallint | |
\idotsint | |
\euro | Símbolo Unicode; funciona solo en modo de texto |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] en \aligned | |
\fillin | |
\strut | |
\vphantom | |
\hphantom | |
\smash | |
\hspace | Usa “\:”, “\,”, “\;” o \phantom{} |
\mspace | |
\centernot | |
\buildrelover | Usa \overset, \underset |
Entornos relacionados con \tabular | Compatibilidad limitada con \matrix y \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Comandos LaTeX 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 LaTeX no compatibles con iBooks Author
Comando o símbolo | Notas |
---|---|
\mathring{} | |
\copyright | Símbolo Unicode; funciona solo en modo de texto |
\pounds | Símbolo Unicode; funciona solo en modo de texto |
\ae, \AE | |
\smallint | |
\diagup, \diagdown | |
\idotsint | |
\euro | Símbolo Unicode; funciona solo en modo de texto |
\varGamma | |
\cal | Usa \mathcal{} |
\mathml{} | |
\center | |
[lrc] en \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 |
Entornos relacionados con \tabular | Compatibilidad limitada con \matrix y \aligned |
\sideset | |
\pmb, \boldmath, \unboldmath | Usa \boldsymbol |
Paquetes LaTeX
Estos paquetes LaTeX no son compatibles:
Paquete | Notas |
---|---|
cancel | Usa \cancel |
ams | Usa \underrightarrow, \underleftarrow, \underleftrightarrow |
centernot |
Elementos MathML
Consulta las tablas siguientes para descubrir los elementos de MathML compatibles con iWork y iBooks Author.
Elementos 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 MathML e ignoran el resto |
mphantom | |
mfenced | |
mroot | |
msqrt | |
none | |
mstyle | |
mtext | |
ms | |
maligngroup | |
malignmark |
Elementos 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 MathML no compatibles
Elemento | Notas |
---|---|
mmultiscripts | |
mprescripts | |
mglyph | |
merror | |
{ContExp} | Los elementos de contenido MathML no son compatibles. Consulta qué elementos están cubiertos por {ContExp}. |
Atributos MathML
Consulta las tablas siguientes para descubrir los atributos MathML compatibles con iWork y iBooks Author.
Atributos MathML compatibles
Los siguientes atributos MathML son compatibles con iWork y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de <mstyle> | Valores (La sintaxis de los valores es un subconjunto de la especificación) |
---|---|---|---|
* | mathcolor | sí | |
mstyle | scriptlevel | no | |
mstyle | display | no | |
mstyle | scriptminsize | no | |
mstyle | scriptsizemultiplier | no | |
mstyle | <atributos especificados con valor heredable predeterminado> | n/a | |
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í |
Atributos MathML parcialmente compatibles
Los siguientes atributos MathML son parcialmente compatibles con iWork y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de <mstyle> | Valores (La sintaxis de los valores es un subconjunto de la especificación) |
Notas |
---|---|---|---|---|
mo, mn, mi | mathvariant | sí | No es compatible con initial, stretched, looped, tailed | |
mtable | align | no | top | bottom | center | baseline | axis | rownumber no es compatible |
menclose | notation | sí | updiagonalstrike | downdiagonalstrike | horizontalstrike | verticalstrike | Más información |
mlongdiv | longdivstyle | no | lefttop |
Atributos 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 las divisiones largas y los restos LaTeX. Para trabajar con divisiones largas y restos debes utilizar MathML.