Take the 2-minute tour ×
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.

I'm building a beamer presentation and would like to have some parts of the text shown as red on specific slides, but ONLY on beamer mode (as opposed to handout mode). I have tried the following:

\color<beamer:2>{red}{some text}

The above worked well on beamer mode (the text was shown in red on slide 2, and black on the other slides). However, in handout mode, the text is red.

Is there a way for the text to be red on slide 2 on beamer mode, black on all other slides, and also black on handout mode?

share|improve this question
    
\color<handout:2>{red}{some text} ? –  tohecz Oct 24 '12 at 12:53
    
Thanks, but no, I want the exact opposite. I want that piece of text to be BLACK in handout mode. Oddly enough, your suggestion makes the text red in beamer mode too. Is something wrong with my xcolor package or is that supposed to happen? –  Gabriela Oct 24 '12 at 12:58
    
In the case this doesn't help, I think it would be better to add a minimal working example (MWE) that illustrates your problem, so that those who want to help you don't have to make it themselves. –  tohecz Oct 24 '12 at 13:06
    
OK, here you go: pastebin.com/E5WEFtA5 This works well on beamer mode, but the red text remains red in handout mode. –  Gabriela Oct 24 '12 at 13:21
    
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  Kurt Oct 24 '12 at 14:13

1 Answer 1

up vote 8 down vote accepted

Use

\color<beamer:2|handout:0>{red}{some text}

The thing to remember about overlay specifications is that the default assumption is to take the action. So when in handout mode, TeX sees \color<beamer:2>{red}{some text} and asks "I'm in handout mode, is there any reason not to execute \color?". To which the response is "No" as there's no specific handout declaration. Putting in handout:0 says "In handout mode only do this on slide 0". As there is never a slide 0, this effectively says "In handout mode don't do this".

See also the following for similar issues with specifying overlays if you find examples helpful to learn about things like this:

share|improve this answer
    
Thank you! That really helped. :D –  Gabriela Oct 24 '12 at 17:07
    
Till Tantau gave us pgfkeys and overlay specifications. Marvelous innovations! –  Matthew Leingang Oct 3 '13 at 15:12

Your Answer

 
discard

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.