Math & ScienceCreating a Matrix with a Large 0 in the Upper Triangle?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
mombe
Posts: 7
Joined: Sun Apr 04, 2010 5:26 pm

Creating a Matrix with a Large 0 in the Upper Triangle?

Post by mombe »

Hi All,

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
Last edited by mombe on Tue Mar 22, 2011 4:04 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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?

Post by localghost »

An example from my archives which probably needs some adjustments. It's just a basic structure.

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
mombe
Posts: 7
Joined: Sun Apr 04, 2010 5:26 pm

Re: Creating a Matrix with a Large 0 in the Upper Triangle?

Post by mombe »

Thanks! That worked perfectly with a little tweaking!!
Post Reply