Sign up ×
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.

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

1 Answer 1

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.