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

I have been trying to create a list and a bunch of subfigures (both on each half of the slide). I have used \setbeamercovered{transparent}to progress along the list per keystroke. I want this keystroke to also be used to draw tikz overlays on the figure. I saw quite a few solutions, but all of them were using just a single figure. I cant seem to get it working for subfigures. Can someone please help me out..

Here is my minimal code..


I have seen this as a solution before

\node[anchor=south west,inner sep=0] at (0,0) {\includegraphics[width=1\textheight]{5.pdf}};  
\draw<1>[red,ultra thick,rounded corners] (1.6,1) rectangle (\textheight-1cm,5);  
\draw<2>[red,ultra thick,rounded corners] (5.7,4.1) rectangle (7.5,4.9);  

But how do I do the same for subfigures?

share|improve this question
Can you complete your code snippet to a minimal working example (MWE) that illustrates your problem and shows which packages you use? – percusse Oct 9 '12 at 15:57
up vote 3 down vote accepted

I am not sure if this is the kind of overlay effect that you are trying to achieve; I used \onslide so that each image will become visible simultaneously with a corresponding item:




\item  First item.
\item  Second item.
\item  Third item.
\item  Fourth item.
\caption{test figure}


enter image description here

Please notice that I included some % characters that are essential to suppress spurious blank spaces. Also, subfigure is an obsolete package, so it would be a good idea to use subcaption instead.

Since I didn't have your actual figures, I used \PassOptionsToPackage{demo}{graphicx}; this simply replaces actual figures with black rectangles; delete that line in your actual document.

share|improve this answer
Hi, thanks so much for your response..I will try it out immediately! – jamie Oct 10 '12 at 8:36
Hi, as a more elegant way to solve my problem, I came across \fcolorbox. With this I can draw boxes on top of my figures and highlight what I wanna speak about, but I am now restricted by the size of this box. Is there a way to draw a box to any size without putting text into it? – jamie Oct 10 '12 at 13:13
@jamie sure, but it's hard to give precise advise without seeing some code illustrating what are you trying to do. Can you please edit your question and add (not replace, just add) the new information and a minimal example (as in my answer) of your code? – Gonzalo Medina Oct 10 '12 at 13:34

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.