Code: Select all
$\begin{pmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{pmatrix}$
Code: Select all
$\begin{pmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{pmatrix}$
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
If so, take a look at the pgf/tikZ manual or at some examples [1]. Otherwise the »Math mode« document may help.kapowza wrote:[…] I know that I've seen something similar using tikz matrix in the past, but I can't figure it out now. Any ideas? Also, what if I wanted to draw a basic line through the diagonal instead of around it?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p