Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following triangle matrix with zeroes on the diagonal

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\begin{document}
\[
M = \begin{pmatrix}
    0 & a_{1,2} & a_{1,3}   & \dots     & a_{1,n}   \\
      & 0       & a_{2,3}   & \dots     & a_{2,n}   \\
      &         & 0         & \ddots    & \vdots    \\
      &         &           &           & 0
  \end{pmatrix}
\]
\end{document}

The small problem I have now, is that the dots from \ddots point from a_{2,3} to the last zero. This could lead to the impression that the diagonal is not given by the zeroes. Anyone an idea?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

How about this

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\begin{document}
\[
M = \begin{pmatrix}
    0 & a_{1,2} & a_{1,3}   & \dots     & a_{1,n}   \\
      & 0       & a_{2,3}   & \dots     & a_{2,n}   \\
      &         & 0         & \ddots    & \vdots    \\
      &         &           &     0      & a_{n-1,n}   \\
      &         &           &           & 0
  \end{pmatrix}
\]
\end{document}

enter image description here

BTW: please post small compilable docs instead of sniplets. The less others have to add the more likely it is to get help.

share|improve this answer
1  
Thanks for the advise I added a MWE to my post. Your solution is fine, thanks (sometimes it is so easy that one didn't see the obvious ;)) –  user2653422 Jul 4 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.