Text formatting + writing a matrice

  • Thread starter Thread starter JamesGoh
  • Start date Start date
AI Thread Summary
The discussion centers on creating perfectly aligned matrices using text formatting tools. LaTeX is highlighted as a method for entering matrices, specifically using the code \begin{bmatrix} for brackets. An example matrix is provided to illustrate the correct syntax. Alternatives to this method exist, but LaTeX is noted as one of the simplest techniques. Proper formatting is essential for achieving the desired visual output in mathematical contexts.
JamesGoh
Messages
140
Reaction score
0
What button in the text formatting allows you to create perfectly aligned matrices ?
 
Physics news on Phys.org
JamesGoh said:
What button in the text formatting allows you to create perfectly aligned matrices ?

Do you mean like using "code" tags to get uniformly spaced text? Or do you mean creating matrices in LaTeX?
 
You can enter a matrix (there's no such word as matrice) using LaTeX like this:
[ tex ]\ begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \ end{bmatrix}[ /tex ]

This LaTeX code (with the extra spaces removed from the tex tags and before begin and end) produces this matrix:
\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

There are several other ways to do this, of which this technique is probably the simplest. If you want the matrix surround with parentheses instead of brackets, use pmatrix in both places.
 
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...

Similar threads

Back
Top