TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions.

Is there a way to nicely represent this, e.g. via a matrix which is blank everywhere except from the diagonals which report the expression (written diagonally) and maybe continuous lines elsewhere?

(Please see the attached picture).

enter image description here

Any help appreciated.

share|improve this question
Did you try this by setting up a matrix of math nodes in Tikz? I'll try and see how it goes for me... – kan Apr 11 '13 at 17:20
up vote 6 down vote accepted

enter image description here



\rule[.5ex]{3em}{.5pt} $\exp_1(C)$   \rule[.5ex]{3em}{.5pt}\\
\rule[.5ex]{4em}{.5pt} $\exp_0(C)$   \rule[.5ex]{4em}{.5pt}\\
\rule[.5ex]{3em}{.5pt} $\exp_{-1}(C)$ \rule[.5ex]{3em}{.5pt}

share|improve this answer
Wonderful, thanks! – Acorbe Apr 11 '13 at 17:28

Your Answer


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.