Let's suppose I have a long TOC in beamer, which LaTeX expands to two (or more) slides thanks to the allowframebreaks option.  \documentclass[12pt]{beamer} \usetheme{madrid} \usepackage[american]{babel} \usepackage[utf8]{inputenx} \usepackage[T1]{fontenc} \usepackage{lmodern}  \title{List of Donald Duck universe characters} \author{Walt Disney}  \begin{document}  \section{Main characters} \subsection{Donald Duck} \subsection{Daisy Duck} \subsection{Huey, Dewey, and Louie} \subsection{Scrooge McDuck} \subsection{Ludwig Von Drake}  \section{Relatives} \subsection{Duck family (Disney)} \subsection{Clan McDuck}  \section{Duck characters} \subsection{Umperio Bogarto} \subsection{Bum Bum Ghigno} \subsection{Magica De Spell} \subsection{Evroniani} \subsection{Flintheart Glomgold} \subsection{Gloria} \subsection{Gotrocks} \subsection{Grand Mogul} \subsection{Mata Harrier} \subsection{Brigitta MacBridge}  \begin{frame}[allowframebreaks]{Donald Duck universe characters} \tableofcontents \end{frame}  \end{document}   The first slide is filled to its maximum extend, and the rest goes (top-aligned) on the second slide. However, I'd like to fine tune it such that section 1&amp;2 are shown on slide 1, whereas section 3 (including all its subsections) goes to slide 2. Of course, the text on both slides should be vertically centered, not top aligned. I would also like to preserve the automatic title numbering on the subsequent slides, i.e.,  I, II, III.  I know about , but have no idea where to put it!? \tableofcontents[hideothersubsections] as  does not seem to do the trick either.
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}
57926
My MWE:  \documentclass{beamer} \usepackage[english]{babel} \usepackage{calc} \usepackage[absolute,overlay]{textpos} \usepackage{pdfsync} \mode&lt;presentation&gt;  \title[AAA]{AAA} %\subtitle \institute[AAA]{BBB} \author{AAA} \date{BBB}  % Define the title of each inserted pre-subsection frame \newcommand*\titleSubsec{Next Subsection} % Define the title of the "Table of Contents" frame \newcommand*\titleTOC{Outline}  \begin{document}  \section{Section 1}  \begin{frame}\frametitle{Section 1 - A}     \begin{itemize}         \item &lt;1-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}         \vspace{0.5cm}         \item &lt;2-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}     \end{itemize} \end{frame}  \begin{frame}\frametitle{Section 1 - B}     PHOTO \end{frame}  \begin{frame}\frametitle{Section 1 - A}     \begin{itemize}         \item &lt;1-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}         \vspace{0.5cm}         \item &lt;2-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}     \end{itemize} \end{frame}  \end{document}   What I basically want is to get rid of page 2 and page 4 of the pdf output file. That is, on the first slide I want to show item &lt;1>, then I want to show a slide with just a photo, and then I want to show item &lt;1> together with item &lt;2> on a new slide.
30899
I'm trying to create a toc in a large Latex document which uses the KOMA script.  In the toc I would like to center the parts and remove all other components (pagenumber, partnumber). I use tocloft (a hard requirement for other reasons).  While I managed to remove the pagenumber, the partnumber is still there and the parts are very much on the right site instead of being centered.  A simplified example is:  \documentclass{scrbook} \usepackage[ngerman]{babel}  \usepackage{lipsum}  \usepackage{tocloft} \renewcommand{\cftpartfont}{\hfill\Large\bfseries} \renewcommand{\cftpartaftersnum}{\hfill} \addtocontents{toc}{\cftpagenumbersoff{part}}  \begin{document} \tableofcontents \part{A} \section{a} \lipsum \part{B} \section{b} \lipsum  \end{document}   I have adapted the commands for the centering from an example of the tocloft manual, where      \renewcommand{\cftZtitlefont}{\hfill\Large\bfseries} together with   \renewcommand{\cftafterZtitle}{\hfill} will give a centered Large   bold title.   was used to center the title (instead of the parts).   So my question, how can I center the parts and remove the partnumber?
87761
Currently, (and this is even mentioned in the current , Chapter 19), in-frame notes are ordered such that those notes that used the "[item]" option are all bunched up at the end of the subject note page.  Is there a relatively painless way to change this so that you can list said "[item]" notes, say, in the middle of the notes page?  Here is a MWE to show what I'm looking for:  \documentclass{beamer}  \setbeameroption{show notes}  \begin{document}  \begin{frame}     This is boring.     \note{I want this to be line 1\par}     \note[item]{I want this to be line 2}     \note{I want this to be line 3} \end{frame}  \end{document}   The output (notes page) of this code is:    WHAT FINALLY WORKED FOR ME:  Please see the selected answer below, plus the comments attached to same, for the explanation behind the following code.  Also note that the indentation problem (as per ted_kingdom's comment below said selected answer) still exists.  \documentclass{beamer} \setbeameroption{show notes} \begin{document}   \makeatletter \def\myrenewcommand{\@ifnextchar&lt;{\beamer@myrenewcom}{\beamer@origrenewcommand}} \def\beamer@myrenewcom&lt;&gt;{\@star@or@long\beamer@myrenew@command} \def\beamer@myrenew@command#1{%   \expandafter\def\expandafter\beamer@name\expandafter{\csname @orig\string#1\endcsname}%   \expandafter\let\beamer@name=#1\relax% \@ifnextchar[{\beamer@@myrenewcom{#1}}{\beamer@myrenewcomnoopt {#1}{0}}} \def\beamer@@myrenewcom#1[#2]{\@ifnextchar[{\beamer@myrenewcomopt{#1}{#2}}{\beamer@myrenewcomnoopt{#1}{#2}}} \long\def\beamer@myrenewcomnoopt#1#2#3{%   \ifnum#2=0\relax%     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sortzero\expandafter{\csname beamerx@\string#1\endcsname}}%   \else     \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@sort\expandafter{\csname beamerx@\string#1\endcsname}{#2}}%   \fi%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#3}% } \long\def\beamer@myrenewcomopt#1#2[#3]#4{%   \expandafter\def\expandafter#1\expandafter{\expandafter\beamer@presort\expandafter{\csname beamerx@\string#1\endcsname}{#2}{#3}}%   \beamer@argscount=#2\relax%   \advance\beamer@argscount by 1\relax%   \expandafter\renewcommand\csname beamerx@\string#1\endcsname[\beamer@argscount]{#4}% }   \makeatletter \myrenewcommand&lt;&gt;{\beamer@inframenote}[2][]{%   \ifbeamer@inlecture%     \only#3{%       \def\beamer@temp{#1}%       \ifx\beamer@temp\beamer@itemtext%         \expandafter\gdef\expandafter\beamer@notes%         \expandafter{\beamer@notes\par\hskip30pt$\bullet$\hskip10pt#2\par}%       \else         \expandafter\gdef\expandafter\beamer@notes%          \expandafter{\beamer@notes#2\par}       \fi%     }%   \fi%   }  \begin{frame}     This is boring.     \note{I want this to be line 1}     \note[item]{I want this to be line 2}     \note[item]{I want this to be line 3}     \note{I want this to be line 4}     \note{I want this to be line 5}     \note[item]{I want this to be line 6}     \note[item]{I want this to be line 7}     \note{I want this to be line 8}     \note{I want this to be line 9}     \note[item]{I want this to be line 10} \end{frame}  \end{document}
71079
I am trying to generate pseudocode in both presentation slides and handout using Beamer.  I can use the listings package in the slides by adding [fragile] to the frame environment.  However, how can I use the lstlistings environment when in article mode?  Below is a minimal example.   File: slides.tex   \documentclass{beamer} \input{mwe-body.tex}   File: notes.tex  \documentclass{article} \usepackage{beamerarticle} \input{mwe-body.tex}   File: mwe-body.tex  \usepackage{listings} \begin{document}  \begin{frame}[fragile] \frametitle{Frame 1} test 1 \begin{lstlisting}     int sum = 0; \end{lstlisting} \end{frame}  \mode&lt;article&gt;{ test 2  \begin{lstlisting}     int sum = 1; \end{lstlisting} } \end{document}   pdflatex slides.tex works to generate the presentation.   pdflatex notes.tex has the following error:   Runaway argument? ! Paragraph ended before \lst@next was complete. &lt;to be read again&gt;                \par l.18 }   Any solutions?
26938
With the following example, I get a different vertical distance between "Contents" and "1 bar 5" and "foo" and "Lorem". How do I get the first entry of the TOC to the same height as "Lorem ipsum", that is the base line should be the red rule in the image below:    \documentclass{book} \begin{document} \tableofcontents  \chapter*{foo} Lorem ipsum  \chapter{bar} Lorem ipsum   \end{document}
116905
I am making a poster using the beamer document class. What I have done is that I divided the poster in two columns. In each column I do have a few blocks with content. What I want to do is to continue a block's body in the next column in case that it doesn't fit in the first one. Is that possible somehow?  Below I provide a minimum example of how my configuration is.  \documentclass{beamer} \usepackage{lipsum}  \newlength{\columnheight} \setlength{\columnheight}{25cm}  \begin{document}  \begin{frame}[fragile] \begin{columns}     % ---------------------------------------------------------%     % Set up a column      \begin{column}{.49\textwidth}         \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}             \begin{minipage}[T]{.95\textwidth}                 \parbox[t][\columnheight]{\textwidth}{                     \begin{block}                         \lipsum[1-2]                     \end{block}                 }             \end{minipage}         \end{beamercolorbox}     \end{column}     \begin{column}{.49\textwidth}         \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}             \begin{minipage}[T]{.95\textwidth}                 \parbox[t][\columnheight]{\textwidth}{                 }             \end{minipage}         \end{beamercolorbox}     \end{column} \end{columns} \end{frame}  \end{document}
85421
I would like to add two figures figures to a beamer slide, one on top of the other.  Is there a simple command, similar to \linewidth or \textwidth for the height?  The figures have dimensions roughly twice as wide as they are tall.  I would like them to use the full vertical space without encroaching on the title/controls.  If their dimensions were reverse, I would put them side by side using width=0.5\linewidth. I am not sure the height analog.    Here is what I am using now.  As an alternative, I use the \paperhieght but then have to visually check that the chosen scale factor left enough room for the title and controls at the bottom.   \begin{frame}{4$\times$167 gH5 in 10 mM K$^{+}$: Comparison}   \begin{center}     \includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_c000_4x167_h5_k010_33_fit}\\     \onslide&lt;2&gt;{       \includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_best1000_c000_4x167_h5_k010_33_fit}     }   \end{center} \end{frame}   In addition to having to check the scale factor, this also has the disadvantage that it must be changed if I add/remove the frame title or switch to a different theme.  If there I instead used the available slide height, it may not need to be updated.
114722
I'm trying to write a custom Beamer theme and I'm having trouble figuring out how to manage the title page to allow an arbitrary assignment of authors or titles.  I've managed to figure out how to place the title, date, and author information in relative position, but the text must be of a certain number of lines to make everything line up properly with the display boxes (i.e. the Title in the center of the blue box and the author and date information in the center of the green box.) If the title is more or less than 2 lines, it breaks the formatting. If the authors span more than 2 lines it breaks the formatting. I ultimately want the Title to resize within a certain bounding box within the blue area and the author and date to resize within a bounding box in the green box.  What is the best way to accomplish this?  My beamerinnerthemeUniversity.sty file contains the following:  \definecolor{UniversityGreen}{RGB}{0, 133, 66} \definecolor{UniversityOrange}{RGB}{199, 91, 18} \definecolor{UniversityBlue}{RGB}{0, 161, 222}   \setbeamertemplate{background}{   \begin{tikzpicture}   \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);   \fill[color=UniversityBlue] (0,2) rectangle (\the\paperwidth,\the\paperheight);   \fill[color=UniversityOrange] (0,0) rectangle(2.95,1.9);   \node[inner sep=0] at (1.475,0.95) {\includegraphics[width=.25\textwidth]{University_logo.pdf}};   \fill[color=UniversityGreen] (3.05,0) rectangle(\the\paperwidth,1.9);   \ifnum\thepage&gt;1\relax%    \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);    \fi   \end{tikzpicture} }   \defbeamertemplate*{title page}{university}[1][] {     \vskip4cm%     \begin{beamercolorbox}[wd=12cm,leftskip=2cm,sep=8pt,#1]{title page header}       \usebeamerfont{title}\inserttitle\par%     \end{beamercolorbox}%     \vskip1.75cm%     \begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{author}       \usebeamerfont{author}\insertauthor%     \end{beamercolorbox}      \vskip0.2cm%     \begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{date}       \usebeamerfont{author}\insertdate%     \end{beamercolorbox}   \vfill }  \setbeamertemplate{items}[square] \setbeamertemplate{sections/subsections in toc}[square]   \mode &lt;all&gt;   Here is an example of the output when everything is lined up with a 2-line title and 2 authors with short names:  \documentclass[xcolor={table}]{beamer} \usepackage[T1]{fontenc}  \usetheme{default} \RequirePackage{tikz} \useinnertheme{University}  \begin{document} \title[A Presentation of Great Import]{A Presentation of Great Import:\\Important discoveries in science} \author{Bob Smith \and  Sally Johnson} \institute{State University}  \date{February 24, 2016}  \frame{\titlepage} \end{document}     Here is an example of the overflow with a longer title and more authors  \documentclass[xcolor={table}]{beamer} \usepackage[T1]{fontenc}  \usetheme{default} \RequirePackage{tikz} \useinnertheme{University}  \begin{document} \title[A Presentation of Great Import]{A Presentation of Great Import:\\Important discoveries in science\\and a further digression on important things} \author{Bob Smith \and  Sally Johnson \and Uma Thirugnanasampanthan} \institute{State University}  \date{February 24, 2016}  \frame{\titlepage} \end{document}
87889
When compiling with the parameter label as in the MWE, allowframebreaks doesn't work. Why not?  Is there any difference between setting a frame title as a frame argument and by using \frametitle?  \documentclass{beamer} \usetheme{Warsaw} \usepackage{blindtext} \begin{document}  \begin{frame}[allowframebreaks,label=frame1]{Title} %\frametitle{Title} \framesubtitle{Sub-title} \blindtext Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........  Text........ Text........ Text........ Text........ Text........  \end{frame}  \end{document}
49971
I want to display my article's abstract and table of contents side-by-side, to save space. I'm using the multicol package, but it tries to keep each column the same height, and I can't figure out how to force it to move content into the second column.  Here's a mockup; I'm just padding out the abstract to show what it should look like. The layout is perfect, I just want a way to do this properly:  \usepackage{multicol} \begin{document} \maketitle  \begin{multicols}{2} \section*{Abstract}  \lipsum[1-2]  a % padding to make the first column run to   % end of page a  a  a  a  a  a  a  a  a  a  a  a  \tableofcontents \end{multicols}   And here's what it looks like, rendered (perfect except for the padding lines):
103287
How do I use the style beamer uses for the table of contents in other slides? I.e., make enumerates rather big and bold etc. Ideally, I'd like to do something like  \begin{frame}{My Outline}   \styleframeastoc % NOT working, obviously.   \begin{enumerate}      ...   \end{enumerate} \end{frame}   Background  I want to define my own outline where below each heading there is a one-sentence explanation of what I'm gonna cover in that section. I.e.:   First Approach  A very simple and straightforward approach that however only works in an ideal world. Second Approach  Refinement of the first approach to ... ...   I figured that it would be easiest to not use the actual TOC mechanism for that, but rather insert the respective slides "manually" (there are only 5 or so sections anyways).
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.
73447
I am trying to implement a style to name tables and figures depending on the section for a thesis and can't figure out how to do it with LaTeX.  In the end it should look like this:   and my document:  \documentclass{article}  \begin{document}  \section{Start} Start text \section{Middle} Middle text \begin{table}[h]     \centering     \begin{tabular}{l}     first table\\     \end{tabular} \caption{A normal table} \end{table}  \section*{Supplemental}  \begin{table}[h]     \centering     \begin{tabular}{l}         table in supplemental part\\     \end{tabular} \caption{This should read: ``Table S1: caption text''} \end{table}  \end{document}      I don't want to change the naming permanently, it should continue normally in the next chapter. Is there any easy way to accomplish something like this?
100631
For a presentation with Beamer, I would like to have a slide where a long list of formulas (maybe mixed with text) scrolls automatically within a certain part of the slide. This should look like e.g. closing credits in movies.   I have tried the idea from  based on animateinline from the , but whenever I use environments like \begin{equation} ... \end{equation} or commands like \textcolor{red}{...} I get an error:  TeX capacity exceeded, sorry [main memory size=3000000]. \end{frame}   Ideally, the formulas/the text should be given within the document itself, but if a solution with an external PDF works fine, I'll take it!  Any ideas how that might work?
38622
I use the LaTeX Beamer style for presentations and get a table of contents (toc) after the title page, as well as at the start of each section (where the contents of the current section are highlighted).  How can I remove all those extra tocs at the start of each section?
84101
I could do \subsection{} and \subsubsection{} but not \subsubsubsection{}. This command does not seem to be available in LaTeX. Is there an alternative command?