Aligning matrices in Equation Editor
Imported from the Apple Support Forums via the Wayback Machine 🔗
Would anyone know how to use a {pmatrix} and the ampersand "&" separator properly within an {align} command when LaTeX is used in equation editor in Pages?
I use the Edit Equation tool to add matrices to my Pages documents. For that, I usually use the LaTeX command
begin{pmatrix} end{pmatrix}
Sometimes I have a series of equations each of which includes one or more matrices. I use the LaTeX command
begin{align} end{align}
to align the matrices in different rows of the equations.
Within a {pmatrix}, the elements of a matrix on the same row are separated and aligned properly via the ampersand "&" between the elements . But when the {pmatrix} is within an {align} command, the Pages equation editor seems to fail to recognize the ampersand correctly.
To compensate for that, I insert empty spaces via tilde "~" into a matrix (and remove the ampersands) whenever it is inside an {align} command but the result is usually (aesthetically) not so satisfying and more importantly the process is too cumbersome and time consuming.
Here are three examples:
The first example is
whose code is
begin{pmatrix}
1 & 3 & 5\
2 & 4 & 0
end{pmatrix}
The second example is
whose code is
begin{align}
begin{pmatrix}
1 & 3 & 5\
2 & 4 & 0
end{pmatrix}
end{align}
and the third example is
whose code is
begin{align}
begin{pmatrix}
-1 ~~~~ 3 ~~~ 5\
2 ~~ -4 ~~~~ 0
end{pmatrix}
end{align}
I use Pages 7.3 on macOS 10.13.6. Thank you!
4 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0