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 am trying to create a custom table of contents format. What I want to do is to have the description of the section inside a block environment like:

\section{Section 1}
\frame{
\begin{block}
This is section description 1
\end{block}
}

\section{Section 2}
\frame{
\begin{block}
This is section description 2
\end{block}
}

\section{Section 3}
\frame{
\begin{block}
This is section description 3
\end{block}
}

and then show those blocks in the table of contents, instead of the section names.

Let me explain why I need this. In my presentation I have three research questions that guide the overall presentation, and split it to several sections (each question is one section). Initially, I present all three together in one slide, but I then want to present only one of them, basically shading the rest, like what happens in the table of contents.

Is something like that possible?

Thanks in advance, Y.K.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Below there's one possible solution; the basic idea is to redefine the section in toc template in such a way that the mandatory argument of \section will now be used for the description of the section and will be placed inside a block in the ToCs; the optional argument of \section can be used for the headline (in case an outer theme with section in the headline is being used). Here's the code:

\documentclass[breaklinks]{beamer}
\usetheme{Boadilla}
\useoutertheme{miniframes}

\makeatletter
\AtBeginSection{%
  \begin{frame}
  \frametitle{Outline}
  \tableofcontents[currentsection]
  \end{frame}
}

\setbeamertemplate{section in toc}{\protect\block{Research Question~\inserttocsectionnumber}\inserttocsection\protect\endblock}

\begin{document}
\begin{frame}
\frametitle{General Outline}
\tableofcontents
\end{frame}

\section[Section one title]{This is section description 1}
\begin{frame}
Contents of section one
\end{frame}

\section[Section two title]{This is a very long section description. This is a very long section description. This is a very long section description. This is a very long section description.}
\begin{frame}
Contents of section two
\end{frame}

\section[Section three title]{This is section description 3}
\begin{frame}
Contents of section three
\end{frame}

\end{document}

and some of the resulting frames showing the two first partial ToCs with the descriptions inside a block (current section with normal code and other section shaded as requested) and the headline with the titles:

enter image description here

enter image description here

share|improve this answer
    
First, thanks for the quick reply. This is a step towards the right direction, but I would still like to maintain the original block environment (blue rounded box etc). Furthermore, I would like no enumeration, but this is a secondary concern. I would be glad to provide you with any additional info you may require. –  Y.K. Aug 24 '12 at 21:48
    
@Y.K. Do you mean you want to include the complete blocks in the table of contents? –  Gonzalo Medina Aug 24 '12 at 21:51
    
Yes, that's exactly what I want to do. I have added some description about why I want to do that in my original post. Maybe this helps clarify a few things... :) Thanks for your time. –  Y.K. Aug 24 '12 at 21:54
    
@Y.K. I've updated my answer. It is something like that what you want? –  Gonzalo Medina Aug 24 '12 at 22:08
    
Well... it's closer to what I had in mind. There are three problems with it :). First, I don't really want this "Section *" to be in the outline. Second, I want only the block of the current section to appear bold, the rest shaded (as I added to the original post). Finally, I don't want the blocks to appear before each section as well, as they do now. Are there any hope for those fixes? :) –  Y.K. Aug 24 '12 at 22:20

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.