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

In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat fails to compile.

Is there anything I could do to have these two packages compile together?

Minimal example:



This document fails to compile if you remove both percent
signs. Remove any one of them and it compiles fine.
share|improve this question
up vote 5 down vote accepted

add \usepackage{etex}

share|improve this answer
I’m curious: why does this help? – Caramdir Sep 24 '10 at 14:05
this package "modifies LaTeX\u2019s register allocation macros to make use of the extended register range." In the above example, as far as I can understand there is a lack of memory allocation for "dimen". My answer relies more on experience than understanding. Experts are welcome to comment. – pluton Sep 24 '10 at 14:15
Great answer! succinct, correct and fast! Go TeX.SE! – Yossi Farjoun Sep 24 '10 at 14:30
Just to make this answer more complete: the order of the packages seems to have to be: easybmat,etex, tikz. – Yossi Farjoun Sep 29 '10 at 9:23
While the package works, the alignment is screwy unless one uses the settings given in this solution to a different question of mine: tex.stackexchange.com/questions/3606/… – Yossi Farjoun Oct 4 '10 at 14:40

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.