Acerca de la compatibilidad de LaTeX y MathML con Pages, Numbers y Keynote
Obtén más información acerca de cómo usar LaTeX y MathML con Pages, Numbers y Keynote, y echa un vistazo a algunas ecuaciones de ejemplo.
Pages, Numbers y Keynote son compatibles con LaTeX y MathML. Además, admiten todos los comandos LaTeX que pueden convertirse a MathML con blahtex. Más abajo se indican más extensiones LaTeX compatibles.
iBooks Author también es compatible con LaTeX y MathML, pero la app ya no se actualiza ni está disponible.
Obtener más información sobre cómo pasar de iBooks Author a Pages
Pages, Numbers y Keynote en iCloud.com no son compatibles con LaTeX ni MathML.
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 facilitar la creación de ecuaciones, los editores de ecuaciones de Pages, Numbers, Keynote y iBooks Author están en modo matemático de forma predeterminada, por lo que no es necesario añadir comandos de modo matemático a las ecuaciones.
\begin{math} … \end{math}
\begin{displaymath} … \end{displaymath}
\begin{equation} … \end{equation}
$ … $
$$ … $$
\( … \)
\[ … \]
Para añadir texto a una ecuación que hereda el estilo de párrafo, utiliza \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 admitidos en Pages, Numbers y Keynote
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 admitidos en Pages, Numbers y Keynote
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 MathML compatibles con Pages, Numbers, Keynote 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 | Pages, Numbers, Keynote 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 |
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. |
Atributos MathML
Consulta las tablas siguientes para descubrir los atributos MathML compatibles con Pages, Numbers, Keynote y iBooks Author.
Atributos MathML compatibles
Los siguientes atributos MathML son compatibles con Pages, Numbers, Keynote y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de | Valores (la sintaxis de los valores es un subconjunto de la especificación) |
---|---|---|---|
* | mathcolor | sí | |
mstyle | scriptlevel | no | |
mstyle | inutilizable | no | |
mstyle | scriptminsize | no | |
mstyle | scriptsizemultiplier | no | |
mstyle | 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 Pages, Numbers, Keynote y iBooks Author:
Elemento | Atributo | Valor predeterminado heredable de | 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 | Obsoleto 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 | Obsoleto 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 | la ubicación | |
mscarries | scriptsizemultiplier | |
mscarry | la ubicación | |
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
Comandos | se muestra como |
---|---|
| ![]() |
| ![]() |
| ![]() |
| ![]() |
| ![]() |
Alineación
Comandos | se muestra como |
---|---|
| ![]() |
Un buen truco para alinear elementos de ecuaciones es utilizar \mbox{\phantom{space}}. Los contenidos dentro de los corchetes (space) describirán la cantidad de espacio en blanco creado. En el ejemplo anterior, si se añaden caracteres extra a =digit, queda más espacio en blanco entre 10 • 9. | ![]() |
| ![]() |
Color
Comandos | se muestra como |
---|---|
| ![]() |
| ![]() |
Integrales
Comandos | se muestra como |
---|---|
| ![]() |
| ![]() |
\textstyle distingue entre ecuaciones “en línea” e independientes.
Matrices
Comandos | se muestra como |
---|---|
| ![]() |
| ![]() |
| ![]() |
| ![]() |
Elementos comunes de ecuaciones
Comandos | se muestra como |
---|---|
| ![]() |
| ![]() |
| ![]() |
| ![]() |
Aritmética de división larga
Atributos | se muestra como |
---|---|
| ![]() |
| ![]() |
| ![]() |
Pages, Numbers, Keynote y iBooks Author no son compatibles con las divisiones largas y los restos LaTeX. Para trabajar con divisiones largas y restos debes utilizar MathML.
Más información
Añade ecuaciones matemáticas en Pages:
Añade ecuaciones matemáticas en Numbers:
Añade ecuaciones matemáticas en Keynote:
La información sobre productos no fabricados por Apple, o sobre sitios web independientes no controlados ni comprobados por Apple, se facilita sin ningún tipo de recomendación ni respaldo. Apple no se responsabiliza de la selección, el rendimiento o el uso de sitios web o productos de otros fabricantes. Apple no emite ninguna declaración sobre la exactitud o fiabilidad de sitios web de otros fabricantes. Contacta con el proveedor para obtener más información.