Writing matrices in Gummi LaTeX editor

  • Context: LaTeX 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
  • Tags Tags
    Matrices
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
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.
 
Physics news on Phys.org
Can you show what you tried that doesn't work?
 
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.