How Do You Write Matrices in the Gummi LaTeX Editor?

  • Context: LaTeX 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
  • Tags Tags
    Matrices
Click For Summary

Discussion Overview

The discussion focuses on the syntax for writing matrices in the Gummi LaTeX editor, specifically addressing issues encountered by users when attempting to use certain matrix commands.

Discussion Character

  • Technical explanation, Conceptual clarification, Homework-related

Main Points Raised

  • One participant inquires about examples of writing matrices in Gummi, noting that the syntax used on the forum does not work for them.
  • Another participant asks for clarification on what specific attempts did not work.
  • A participant shares a specific example of a matrix command that fails in Gummi: \begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix}.
  • One participant explains that the pmatrix command is part of the amsmath package and suggests adding \usepackage{amsmath} to the preamble to resolve the issue.
  • A later reply confirms that including \usepackage{amsmath} in the preamble resolves the problems experienced with matrix syntax.

Areas of Agreement / Disagreement

Participants generally agree that including the amsmath package in the preamble is necessary for the matrix syntax to function correctly in Gummi. However, there is no consensus on other potential issues or alternative solutions.

Contextual Notes

The discussion does not address potential limitations or dependencies on specific versions of Gummi or LaTeX packages, nor does it explore other matrix formatting options that may exist.

Who May Find This Useful

Users of the Gummi LaTeX editor, particularly those interested in typesetting matrices and encountering syntax issues.

Stephen Tashi
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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
5
Views
2K