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.

Following Beamer: increase radius of circle in TOC and include subsection bullet I set the 'subsection in toc' of Beamer by:

\setbeamertemplate{subsection in toc}
 {\leavevmode\leftskip=2em$\bullet$\hskip1em\inserttocsubsection\par}

However, if a subsection title exceeds the current line, the new line is not indented correcty; the new line begins below the bullet and is not aligend with the first line. How can I change this? enter image description here

share|improve this question

1 Answer 1

up vote 6 down vote accepted

A quick solution is to put the tocsubsection contents into a parbox:

\setbeamertemplate{subsection in toc}
 {\leavevmode\leftskip=2em$\bullet$\hskip1em\parbox[t]{\textwidth-\leftskip-2em}{\inserttocsubsection}\vspace{2ex}\par}

Note that for the arithmetic to calculate the length of the parbox, the package calc is required. A little vertical space is added after the parbox to solve somewhat the spacing problems noted by Julian. The vertical spacing for the short subsection title is different from the one in the larger subsection titles.

image

share|improve this answer
3  
that would be my solution too, although it may come to one's mind to calculate the box width by \textwidth-\leftskip-1em –  bloodworks Jan 7 '13 at 10:56
    
The solution has one drawback: If you have an additional subsection in this section, the lines nearly colide/are drawn to close to each other. –  Julian Jan 7 '13 at 13:10
    
@bloodworks Thanks for the suggestion. Updated answer accordingly. –  guillem Jan 7 '13 at 14:46

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.