How to Write a Matrix on a Webpage?

  • Context: Undergrad 
  • Thread starter Thread starter cookiemnstr510510
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary

Discussion Overview

The discussion revolves around how to properly write a matrix on a webpage, specifically using LaTeX formatting. Participants seek assistance with formatting issues and share resources for help.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant asks for help on how to write a matrix, indicating a lack of familiarity with the formatting.
  • Several participants provide a link to a help page on LaTeX formatting as a resource for writing matrices.
  • A participant expresses confusion about their formatting attempt, specifically mentioning the use of the command '\being{vmatrix}' and seeking clarification on what they are doing wrong.
  • Another participant suggests using either '##matrix##' or '$$matrix$$' for proper formatting, and points out a typo in the command used by the original poster.
  • A later reply confirms understanding after receiving clarification and thanks another participant for their help.

Areas of Agreement / Disagreement

Participants generally agree on the correct formatting methods for writing matrices, though there are some initial misunderstandings and typographical errors that are pointed out and corrected.

Contextual Notes

Some participants may have varying levels of familiarity with LaTeX, which could affect their understanding of the formatting rules discussed.

cookiemnstr510510
Messages
162
Reaction score
14
Hello, sorry if this is in the incorrect thread but I am wondering how I write a matrix on here?
Much help appreciated and more problems to come ;)
Thanks!
 
Physics news on Phys.org
cookiemnstr510510 said:
okay, what am I doing wrong?
\being{vmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{vmatrix}
You need to put it in either ##matrix## or in $$matrix$$ for a separated line.
Inline ##
\begin{vmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{vmatrix}
## text, which is ok for matrices, or on an extra line
$$
\begin{bmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{bmatrix}
$$
and you wrote 'begin' wrong - looks a bit like Bejing.
 
  • Like
Likes   Reactions: cookiemnstr510510
\begin{vmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{vmatrix}

Got it! Thank you @fresh_42
 
  • Like
Likes   Reactions: berkeman

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K