The example below is a slightly modified version of the answer in this thread. I want to condition the circles on whether or not I'm running in desktop or presentation mode. How would I define the counters aCirc and bCirc so that in desktop mode no circles appear? In presentation mode I can kill off one or other circles by setting the appropriate counter to 0. But for some reason, that doesn't work for desktop mode.
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{fit,shapes.geometric}
\newcounter{nodemarkers}
\newcommand<>\circletext[1]{%
\tikz[overlay,remember picture]
\node (marker-\arabic{nodemarkers}-a) at (0,1.5ex) {};%
#1%
\tikz[overlay,remember picture]
\node (marker-\arabic{nodemarkers}-b) at (0,0){};%
\tikz[overlay,remember picture,inner sep=2pt]
\node#2[draw,ellipse,fit=(marker-\arabic{nodemarkers}-a.center) (marker-\arabic{nodemarkers}-b.center)] {};%
\stepcounter{nodemarkers}%
}
\newcounter{aCirc}
\newcounter{bCirc}
\setcounter{aCirc}{2}
\setcounter{bCirc}{3}
\begin{document}
\begin{frame}[<+->]
\frametitle{test}
\begin{tabular}{|ccccccc|}
\hline
\circletext<\theaCirc>{AAAAA}&
B&
C&
\circletext<\thebCirc>{BB}&
A&
B&
C\\
\hline
\end{tabular}
\end{frame}
\end{document}
\documentclass[desktop]{beamer}ordocumentclass{beamer}. I can get the result I want when I use the latter, but when I add the[desktop]option, I can't selectively pick my circles. – Leo Simon Oct 03 '17 at 02:03\@ifclasswith{beamer}{desktop}{}{}to test the documentclass option:\makeatletter\@ifclasswith{beamer}{desktop}{ Define \circletext for desktop mode }{ Define \circletext for other mode }\makeatother– Peter Grill Oct 03 '17 at 04:13desktopmode, you create one slide per frame, i.e., all overlays are suppressed, so a presentation with hundreds of slides is reduced to one with a manageable number. This is what one wants for everything except giving actual presentations. – Leo Simon Oct 03 '17 at 16:53