1

I'm using beamer for my presentation where I use a lot of colours to point out certain terms in equations with

{\color<2->[rgb]{1.0,0.22,0} some text}

When I make the handout, the colours will all appear together on one slide.

Is there a way to say to ignore all the colours in handout?

I could remove them all, but my presentation is quit long. I wondered if there was a systematic way.

2
  • This is a lot easier if the colours themselves are defined in the preamble: do you have most of the use cases as a hard-coded colour (as in the example) or as a logical/named one?
    – Joseph Wright
    Sep 1 '15 at 6:26
  • @JosephWright No I'm afraid I always did the code as in the example... It started as a try-out and then I got stuck on that. In the future I'll be smarter ;)! Sep 1 '15 at 6:30
1

If your colours are hard-coded then the best you can do is to redefine \color to do nothing in handout mode.

\mode<handout>{%
  \def\color<#1>[#2]#3{}
}

This is risky as it assumes all uses have both the <...> and [...] arguments: a more sophisticated approach is possible. I'd strongly recommend giving each colour a name, as you can then do

\definecolor{my-colour-1}{rgb}{1.0,0.22,0}
\mode<handout>{%
  \definecolor{my-colour-1}{RGB}{0,0,0}
}

which will turn the colour into black in handout mode without any internal fiddling.

1
  • Perfect! And that's indeed way better. Luckily I only used the color with <...> and [...]. I cannot upvote but thanks! Sep 1 '15 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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