Math & Science ⇒ Creating a Matrix with a Large 0 in the Upper Triangle?
Creating a Matrix with a Large 0 in the Upper Triangle?
I'm just finishing up my undergrad, and am relatively new to LaTeX (I've only been using it for a year) so I appologize if this is a silly question.
What I'm trying to do is to create a lower triangular matrix, with the entire upper triangle (all zeros) denoted by one large zero in the center of the upper triangle. I can't find a large 0 symbol anywhere, nor do I know how to change the math font size in only one place. Any available help would be greatly appreciated.
Best,
Ethan
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Creating a Matrix with a Large 0 in the Upper Triangle?
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools} % loads »amsmath«
\usepackage{multirow}
\begin{document}
\begin{equation}
\begin{pmatrix}
1 & \multicolumn{2}{c}{\text{\kern0.5em\smash{\raisebox{-1ex}{\Large 0}}}} \\
& 1 & \\
\multicolumn{2}{c}{\text{\kern-0.5em\smash{\raisebox{0.75ex}{\Large 0}}}} & 1
\end{pmatrix}
\end{equation}
\end{document}
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10