About the presentation of matrix

  • Thread starter Thread starter applechu
  • Start date Start date
AI Thread Summary
The user is experiencing issues displaying a matrix using LaTeX commands, specifically with the syntax for the bmatrix environment. The solution provided indicates that spaces should not be included before and after the bmatrix command. Additionally, there are problems with using the Daum Equation Editor, as surrounding the pasted code with dollar signs does not compile correctly. The discussion emphasizes the importance of proper syntax in LaTeX for successful rendering of mathematical expressions. Proper formatting is crucial for achieving the desired output in LaTeX.
applechu
Messages
10
Reaction score
0
Hi:
I have a problem about the matrix,
i try the following tex commands:
##A=\begin{ bmatrix } 1 & 2 \\ 3 & 6 \end{ bmatrix }##

and it can not show the matrix, I don't know what is the problem, since the
code style seems right. And another problem is I try to use Daum Equation Editor
to edit the math equation, but the problem is if I add $ and $ surround the code
paste from Daum Equation Editor, it can not show the result I want.
it will show the original codes without any compile. Is any possible solution for that,
thanks a lot.
 
Physics news on Phys.org
applechu said:
Hi:
I have a problem about the matrix,
i try the following tex commands:
##A=\begin{ bmatrix } 1 & 2 \\ 3 & 6 \end{ bmatrix }##

and it can not show the matrix, I don't know what is the problem, since the
code style seems right. And another problem is I try to use Daum Equation Editor
to edit the math equation, but the problem is if I add $ and $ surround the code
paste from Daum Equation Editor, it can not show the result I want.
it will show the original codes without any compile. Is any possible solution for that,
thanks a lot.

Here is a LaTeX guide: https://www.physicsforums.com/showthread.php?t=546968

In your case, you should not type spaces before and after bmatrix. It should be

Code:
##A=\begin{bmatrix} 1 & 2 \\ 3 & 6 \end{bmatrix}##

which gives

##A=\begin{bmatrix} 1 & 2 \\ 3 & 6 \end{bmatrix}##
 
Thanks
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top