Writing matrices in Gummi LaTeX editor

  • Topic: LaTeX 
  • Thread starter Stephen Tashi
  • Start date
  • Tags Tags
    Matrices
4 replies · 2K views · last reply
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,605
What are some examples of writing matrices in the Gummi latex editor? Something about the syntax used on the forum doesn't work for me when used in Gummi.
 
This example doesn't work when the underlying LaTex is pasted into the Gummi editor:
\begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix}
 
pmatrix is an extension from amslatex. In the preamble of your tex file, add

\usepackage{amsmath}

and it will work. There are many useful extensions in amsmath and I use it in almost all my documents. See the ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf.
 
  • Like
Likes   Reactions: Stephen Tashi
Thank you DrClaude.
\usepackage{amsmath} in the preamble makes things behave as expected.