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

The code


results in the error ! Dimension too large: \@tempdima. Is there a known/simple fix for this?

share|improve this question
If you define \definecolor{somecolor}{HTML}{097054} and then use \onslide<2>{\textcolor{somecolor}{foo}} it works. – percusse Dec 12 '11 at 6:59
It's a good idea to define colors, as shown in percusse's comment, in the preamble, so that one can be consistent in their usage. – egreg Dec 12 '11 at 8:40
up vote 5 down vote accepted

Adding the color definition


to the preamble and later using it via


solves the problem.

share|improve this answer

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.