I'm trying beamer for the first time (but have some experience with LaTeX).  I want to use \pause and number some problems, but the numbers increment when I don't want them to.  There must be a simple way to fix this, but I haven't found it yet. Here is an example of code  \documentclass{beamer} \usetheme{Madrid}  \newcounter{bar} \newcommand{\pbctr}{%    \stepcounter{bar}%     \thebar}  \begin{document}  \begin{frame}{Some examples and problems} \begin{block}{Problem \pbctr} \begin{enumerate} \item How many divisors does the number 2 have? \pause \item How many divisors does the number 4 have? \pause \item What is the smallest number with six divisors? \end{enumerate} \end{block} \pause \begin{block}{Problem \pbctr} \begin{itemize} \item Can I distribute evenly 30 apples amongst 5 children \pause \item Can I distribute evenly 33 apples amongst 6 children? \end{itemize} \end{block} \end{frame} \end{document}   Any help would be appreciated.  code
110674
I'm trying to continue the numbering of examples in enumerate environments in beamer. For example, I'd like one slide to feature   Foo Bar   and the next slide   Zip Yadda   My strategy so far has been to define a counter that saves the enumerate counter at the end of the first environment and can then be queried to set the enumerate counter at the start of the second enumerate environment. (This is essentially the proposal also found at )  That works wonderfully so long as I don't try to uncover elements of the slide sequentially. The problem, of course, is that as each of the pdf-pages that make up the slide is created, the counter is advanced. Here's a MWE.  \documentclass{beamer}  \setbeamercovered{highly dynamic}  \newcounter{saveenumi} \newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}} \newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}   \begin{document}  \begin{frame}[&lt;+-&gt;]   \begin{enumerate}   \item foo   \item bar%     \seti   \end{enumerate} \end{frame}  \begin{frame}[&lt;+-&gt;]   \begin{enumerate}     \conti   \item zip   \item yadda%     \seti   \end{enumerate} \end{frame}  \end{document}   As the second slide is progressively uncovered (pages 3 and 4 of the resulting PDF), the counter at the beginning of the enumerate environment is advanced each time. So page 3 of the PDF has the right numbering, (3) and (4) respectively, while the fully revealed page has the wrong numbering. Pictures follow:   on one of the slides    on the following one
42324
I don't actually have a real problem, but I'd like to understand why beamer requires multiple compilations to get the slide count right.  I'm writing a presentation, so I often add a new frame, write something, and then compile the presentation to see how it looks. But every time a new frame is added the total number of slides isn't updated, so the last slide shows a n+1/n label instead of n+1/n+1 as I'd expect(where n is the previous number of slides).  I've tried to search a bit but I couldn't find anything mentioning this behaviour.  Is this supposed to be the normal behaviour?  edit: I can reproduce this by doing the following steps:   Create a random beamer presentation(using a style that shows the slide count e.g. AnnArbor) with one frame Compile it Add a new frame Compile again and the last slide will show the described behaviour.
5871
On a slide with two blocks aligned using columns, the spacing on the left and the right is not equal, ie the pair of columns in not centered on the page as in this example. I've tried enclosing the columns in \begin{centering} but that doesn't seem to work. How can I make the pair of columns centered?  % Preview source code  %% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{beamer} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3}  \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.  % this default might be overridden by plain title style  \newcommand\makebeamertitle{\frame{\maketitle}}%  \AtBeginDocument{    \let\origtableofcontents=\tableofcontents    \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}    \def\gobbletableofcontents#1{\origtableofcontents}  }  \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%  \def\@lyxframe{\@ifnextchar&lt;{\@@lyxframe}{\@@lyxframe&lt;*&gt;}}%  \def\@@lyxframe&lt;#1&gt;{\@ifnextchar[{\@@@lyxframe&lt;#1&gt;}{\@@@lyxframe&lt;#1&gt;[]}}  \def\@@@lyxframe&lt;#1&gt;[{\@ifnextchar&lt;{\@@@@@lyxframe&lt;#1&gt;[}{\@@@@lyxframe&lt;#1&gt;[&lt;*&gt;][}}  \def\@@@@@lyxframe&lt;#1&gt;[#2]{\@ifnextchar[{\@@@@lyxframe&lt;#1&gt;[#2]}{\@@@@lyxframe&lt;#1&gt;[#2][]}}  \long\def\@@@@lyxframe&lt;#1&gt;[#2][#3]#4\@lyxframestop#5\lyxframeend{%    \frame&lt;#1&gt;[#2][#3]{\frametitle{#4}#5}}  \newenvironment{topcolumns}{\begin{columns}[t]}{\end{columns}}  \def\lyxframeend{} % In case there is a superfluous frame end  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.  \setbeamertemplate{blocks}[shadow=false] \beamertemplatenavigationsymbolsempty \usecolortheme{rose} \useinnertheme{circles}  \makeatother  \usepackage{babel} \begin{document}  \lyxframeend{}\lyxframe{My slide} \begin{center} \begin{topcolumns}%{} \noindent   \column{0.5\textwidth} \begin{exampleblock} {A short list\inputencoding{latin1}{\phantom{g}}\inputencoding{latin9}} \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} \end{exampleblock}  \column{0.5\textwidth} \begin{exampleblock} {A long list} \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \item Item 4 \item Item 5 \item Item 6 \end{itemize} \end{exampleblock} \end{topcolumns}%{} \end{center} \lyxframeend{} \end{document}
108933
I want to have a List of Figures in my Beamer presentation.  I spent some time searching the web for a solution and only found desperate people telling others that it's not possible, i.e.  or .  I also made some experiments on my own, i.e. "abuse" tocloft to do the job. However, even \usepackage{tocloft} causes pdflatex to fail with ! LaTeX Error: \l@section undefined. (and lying to tocloft by defining the command as empty beforehand doesn't to any good either).  I can't really see why it should be that difficult to make a List of Figures in beamer, since \tableofcontents works flawlessly.   I'm not afraid of doing some coding on my own, but I'm not deep enough into TeX to really understand the magic behind the "List of Figures", "Table of Contents" and alike.  Is anyone out there having suggestions or links that might help me figure this out?  \documentclass{beamer}  % uncomment the following line % to get the error message % `! LaTeX Error: \l@section undefined.`  %\usepackage{tocloft}   % uncomment the following lines INSTEAD % to lie to tocloft % and get the next error message  %\makeatletter %\newcommand\l@section{} %\makeatother %\usepackage{tocloft}  \begin{document}  \begin{frame}{A frame} \begin{figure} \mbox{A} \caption{An 'A'} \end{figure} \end{frame}  \begin{frame}{List of Figures} \listoffigures \end{frame}  \end{document}   EDIT: Solution  Starting from Marco Daniels answer to my question, I modified his code to reflect my needs. Here is what I came up with. Please feel free to comment, improve and reuse this.  \RequirePackage{ifthen}  \makeatletter  \AtEndDocument{%   \clearpage   \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%   \if@filesw   \newwrite\tf@lof   \immediate\openout\tf@lof\jobname.lof\relax   \newwrite\tf@lot   \immediate\openout\tf@lot\jobname.lot\relax   \fi }  \long\def\beamer@makecaption#1#2#3#4{%   \def\insertcaptionname{\csname#1name\endcsname}%   \def\insertcaptionnumber{\csname the#1\endcsname}%   \edef\insertframenumber{\theframenumber}%   \ifthenelse{\equal{#3}{\empty}}{%       \def\insertlistcaption{#2}%   }{%     \def\insertlistcaption{#3}%   }   \def\insertsource{#4}%   \def\insertcaption{#2}%   \ifthenelse{\equal{#1}{figure}}{%       \addtocontents{lof}{\protect\listoffigureformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}{\insertsource}}{}{}%   }{}   \ifthenelse{\equal{#1}{table}}{%       \addtocontents{lot}{\protect\listoftableformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}}{}{}%   }{}   \nobreak\vskip\abovecaptionskip\nobreak   \sbox\@tempboxa{\usebeamertemplate**{caption}}%   \ifdim \wd\@tempboxa &gt;\hsize   \usebeamertemplate**{caption}\par   \else   \global \@minipagefalse   \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%   \fi   \nobreak\vskip\belowcaptionskip\nobreak% }  \def\listoffigureformat#1#2#3#4{%   \makebox[2ex][r]{#1}%   \hspace{1ex}%   {\usebeamercolor[fg]{bibliography entry author} #2}%   \ifthenelse{\equal{#4}{\empty}}{}{ -- #4}%   \dotfill%   \makebox[2ex][r]{#3}\par% } \def\listoffigures{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lof}% } \def\listoftableformat#1#2#3{\makebox[2ex][r]{#1}\hspace{1ex}#2\dotfill\makebox[2ex][r]{#3}\par} \def\listoftables{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lot}% }  \long\def\@caption#1[#2]#3{   \par\nobreak   \begingroup     \@parboxrestore     \if@minipage       \@setminipage     \fi     \beamer@makecaption{#1}{\ignorespaces #3}{\ignorespaces #3}{\ignorespaces #2}\par\nobreak     \endgroup}  \makeatother
54153
I am currently making a presentation using Beamer. I have section, subsection, subsubsections in my presentation. I want to achieve the following:   The TOC at the starting of the presentation won't show subsubsections. Starting of a subsection, I need a TOC of that subsection as well as subsubsections.   I know the first can be achieved using \setcounter{tocdepth}{2}. But I can't get the second one. It would be better if the subsubsections of the current subsection is highlighted and others are faded.  Please help me out.   note: I have checked this: . However, the difference is I want a TOC at the starting of subsections.  I also have checked this:  However, the difference is this shows the whole TOC (although shaded) at the starting of each subsection. I wanted a mini-TOC, particularly for the current subsection. If a subsection doesn't have a subsubsection, no TOC should be generated.
2951
I would like to have in beamer something like  \begin{frame} The two main reasons are :  \begin{itemize} \item First reason \pause  \item Second reason \end{itemize} \end{frame}   But I would like to insert an image to illustrate the first reason, that would be on another slide, without altering the display of my presentation.  I would therefore like to have   Slide n : slide a with first item shown Slide n+1 : slide b with an image to illustrate this first item  Slide n+2 : slide a with the two items displayed   How would it be possible ? And additionnaly would it be possible for the slide b not to be numbered ?
112293
I'd like to do the following enumeration in beamer;  1. First Item 2. Second Item 3. Third Item 3'. Alternative Version of Third Item.   However, if I do this:    \begin{enumerate}     \item First Item     \item Second Item     \item Third Item     \item[3'] Alternative Third Item   \end{enumerate}   then the last item doesn't appear with the usual bullet style.     Help?  Thanks!
46041
I actually like the bullets shown when using \useoutertheme{miniframes}, but for the long talk I have to give there are just ridiculously many.     Is it possible to keep the same theme and just removing the bullets, and then displaying slide numbers instead?  Here is a minimal example:  \documentclass[compress, final]{beamer}     \usetheme[height=0mm]{Rochester}     \usecolortheme{dolphin}     \useinnertheme{rectangles}     \useoutertheme[footline=empty, subsection=true]{miniframes}  \begin{document}  \begin{frame}{Test frame}     \begin{block}&lt;+-&gt;{Block}         Beamer is cool     \end{block} \end{frame}  \end{document}
120344
I have a beamer presentation with only three sections. Right now they are spaced at equal distances across the slide, but I would like to compress them so that they are spaced evenly in the left hand side of the headline.   Right now it looks like:  Section 1  ---------------------------- Section 2---------------------------Section 3   And I would prefer it to look like  Section 1-------Section 2-------Section 3   Is there a way to customize the horizontal width of the navigation bar at the top? Thank you in advance!  \documentclass[compress]{beamer} \useoutertheme[footline=authortitle,subsection=false]{miniframes} \begin{document} \section{Section 1} \subsection{Subsection 1} \frame{}\frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{} \section{Section 2} \subsection{Subsection 1} \frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{}\frame{} \section{Section 3} \subsection{Subsection 1} \frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{}\frame{} \end{document}
69768
Recently (about 5 mins ago) I found that miniframes, a Beamer outer template, does not works properly if I compile the file by XeLaTeX.  To be specific, I tried to compile this MWE  \documentclass{beamer} \usetheme{Ilmenau} \begin{document} \section{Section 1} \subsection{Subsection 1} \frame{1}\frame{2}\frame{3} \subsection{Subsection 2} \frame{4}\frame{5} \section{Section 2} \subsection{Subsection 1} \frame{6}\frame{7}\frame{8}\frame{9} \section{Section 3} \subsection{Subsection 1} \frame{10}\frame{11} \subsection{Subsection 2} \frame{12}\frame{13}\frame{14} \subsection{Subsection 3} \frame{15}\frame{16}\frame{17}\frame{18} \end{document}   with LaTeX, LuaLaTeX, and XeLaTeX separately. For the first two compilers the small circles are clickable while for the third compiler they are not. (The cursor does not become a hand while hovering). At the same time, three compilers produce clickable (sub)section titles.  I guess TeX.SX is not a good place to report bugs. But I am not sure if this is of XeLaTeX or of Beamer.  P.S. I am using OS X 10.11.1 and MacTeX and I just synced my packages.
25939
Say I made a beamer presentation and I want to print it out.  Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information?  Of course there are some things one could do with find &amp; replace, but I would prefer a more sophisticated solution if such exists.
74411
I have a table with 7 columns and want to show the first 5 at once, and then  the 6th and 7th on consecutive slides.  This is the code I have for now:  \begin{frame}{Наслов}     \begin{itemize}         \item Ставка.     \end{itemize}         \begin{tabular}{ccccc&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide}c}             $p_1$ &amp; $p_2$ &amp; $\ldots$ &amp; $p_{9}$ &amp; $p_{10}$ &amp; $W$  &amp; $D$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $1$     &amp; $w_1$&amp; $d_1$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $0$     &amp; $w_2$&amp; $d_2$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_3$&amp; $d_3$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_4$&amp; $d_4$\\             $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$\\             $0$   &amp; $0$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_{1023}$&amp; $d_{1023}$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_{1024}$&amp; $d_{1024}$         \end{tabular} \end{frame}   This produces 2 slides: the first one with p1, p2, ..., p9, p10 and D columns, and the second with W added, while I want them to appear in the following order:   1st slide: p1, p2, ..., p9, p10  2nd slide: p1, p2, ..., p9, p10, W 3rd slide: p1, p2, ..., p9, p10, W, D   I looked in the manual and found this example:  \begin{frame}     \begin{tabular}{l!{\vrule}c&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide&lt;3-&gt;}c&lt;{\onslide&lt;4-&gt;}c&lt;{\onslide}c}     Class &amp; A &amp; B &amp; C &amp; D \\     217     X &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\     Y &amp; 3 &amp; 4 &amp; 5 &amp; 6 \\     Z &amp; 5 &amp; 6 &amp; 7 &amp; 8     \end{tabular} \end{frame}   which does what is supposed to. However, I don't seem to be able to apply its logic to my problem. :( Is anyone willing to help?   P.S. What are the meanings of &lt; and ! in columns specification?
45560
I'm making a Beamer presentation. I need to show some notes on a second screen, so I'm using pgfpages.  Whereas, when I put a section, it appears 2 times :/ Here, it's a minimal code with the problem. Have you any idea ?  \documentclass{beamer} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel}  \usepackage{pgfpages} \setbeameroption{show notes on second screen=right}    \begin{document} \begin{frame} \tableofcontents \end{frame}  \begin{frame} \section{test} toto \end{frame}  \end{document}   Thanks !
68417
I have  this slide for a presentation:  \begin{frame} {Bonjour}  Hi  \begin{itemize}  \item blabla  \begin{itemize}  \item A  \item B \end{itemize} \end{itemize}  \begin{overlayarea}{1\textwidth}{0.6\textheight} \only&lt;1&gt;{ \begin{block} {La solution1}  blablablablablablablablablabla \end{block}  } \only&lt;2&gt;{  \begin{block}  {La solution2}    blablablablablablablablablabla   \end{block}        }   \end{overlayarea}    \end{frame}   I want the subitem A and B to disappear when La solution1 and La solution2  appear and at the same time they should take the places of A and B. The Hi should stay though.
47694
I have two-column slides where there is a tikz figure on the left, and itemization on the right. There is >10 overlays due to pauses in the itemization, and some pieces of the tikz picture are added/removed/modified accordingly (with \only&lt;&gt;) as are the items uncovered.  It is easy to break the code by adding one \pause, because all numbers have to be rewritten.  Is there a way (no hint in Beamer Manual, chap. 9) to assign the value of beamerpause counter to symbolic names, at the point when that part gets uncovered for the first time, something like (needs multiple passes to be resolved) the following?  \begin{column}{..}    \only&lt;/bar-&gt;{...}  % &lt;2-&gt; (use e.g. / to reference labels)    \only&lt;-/baz&gt;{...}  % &lt;-3&gt; \end{column} \begin{column{..}    \begin{itemize}       \item foo \pause       \item bar \firstUncoveredLabel{bar}\pause % assign 2 to label /bar       \item baz \pause[baz]       % nicer syntax; assign 3 to label /baz       \item end    \end{itemize} \end{column}   EDIT: minimal working example:  \documentclass{beamer} \usepackage{tikz} \begin{document}    \begin{frame}       \begin{columns}          \begin{column}{.5\textwidth}             \tikz{                \draw&lt; -3&gt;        (0,0) grid (3,3);                \draw&lt;2-3&gt;[red]   (0,0) -- (3,1);                \draw&lt;3- &gt;[green] (0,0) -- (3,2);                \draw&lt;4  &gt;[blue]  (0,0) -- (3,3);             }          \end{column}          \begin{column}{.5\textwidth}             \begin{itemize}                %%%% uncomment this item and all numbers above have to be shifted :-(                % \item important remark at the beginning \pause                 \item grid \pause                \item grid, red \pause                \item grid, red, green \pause                \item green, blue             \end{itemize}          \end{column}       \end{columns}    \end{frame} \end{document}   and this is what I dream of (does not compile):  \documentclass{beamer} \usepackage{tikz} \begin{document}    \begin{frame}       \begin{columns}          \begin{column}{.5\textwidth}             \tikz{                %% use symbolic names for overlay specificaiton                \draw&lt;-/gridRedGreen&gt;                (0,0) grid (3,3);                \draw&lt;/gridRed-/gridRedGreen&gt;[red]   (0,0) -- (3,1);                \draw&lt;/gridRedGreen-&gt;        [green] (0,0) -- (3,2);                \draw&lt;/last&gt;                 [blue]  (0,0) -- (3,3);             }          \end{column}          \begin{column}{.5\textwidth}             \begin{itemize}                %%%% uncomment and overlays are still correct :-)                % \item important remark at the beginning \pause                 \item grid                \pause[grid]                \item grid, red           \pause[gridRed]                \item grid, red, green    \pause[gridRedGreen]                \item green, blue                   \end{itemize}          \end{column}       \end{columns}    \end{frame} \end{document}
120923
This is a follow-up question to .  I have the following:  \begin{frame}{Questions}   \begin{multicols}{2}     \tableofcontents   \end{multicols} \end{frame}   which is giving me    I'd really like to avoid splitting between subsections.  Can this be done?  MWE  \documentclass{beamer} \usepackage{multicol} \usetheme{default}  \begin{document} \section{Problem Definition} \subsection{Terminology} \subsection{Naive Workflow} \subsection{Fatal Problem} \section{Current Solution} \subsection{What we have} \subsection{How we use it} \section{How it Works} \section{How to Build} \section{Troubleshooting} \subsection{No defaulting} \subsection{Inconsistent defaulting} \subsection{Most other problems}  \begin{frame}{Questions}   \begin{multicols}{2}     \tableofcontents   \end{multicols} \end{frame} \end{document}
45598
\documentclass[11pt,a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage{lipsum}     \usepackage{tocloft}     \begin{document}      \tableofcontents     \thispagestyle{empty}         \newpage      \section{Preface} %want section number to be 0     \thispagestyle{empty}         \pagenumbering{roman}     \lipsum[1-3]     \newpage      \section{Start From Here}     \lipsum[1-5]      \section{And So On...}     \lipsum[1-5]     \end{document}      How do I get section numbering to start at 0?   Edit: I know I can do \section*{Preface}, but that removes it from the ToC, which isn't what I want.