Text Formattingchange bullet shape in beamer toc

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

change bullet shape in beamer toc

Post by asafw »

Hi there,

I am using the default beamer theme, and would like to have square *unnumbered* bullets for sections in the ToC. I didn't find an easy way to modify this when I looked online.

Changing "ball" to "square" in
\setbeamertemplate{section in toc}[ball unnumbered]
doesn't work..

Also, is there a way to change the color of the square (from default blue to black)?

Thanks a lot,
Asaf

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

change bullet shape in beamer toc

Post by Stefan Kottwitz »

Hi Asaf,

you can define such as style. Here I modified the original definition from beamerbaseauxtemplates.sty:

Code: Select all

\defbeamertemplate{section in toc}{square unnumbered}{%
  \leavevmode\leftskip=1.75ex%
  \llap{\textcolor{red!70!black}{\vrule width2.25ex
    height1.85ex depth.4ex}}%
  \kern1.5ex\inserttocsection\par}
I just chose a red-black mix, you can change that as desired.

Now that works:

Code: Select all

\setbeamertemplate{section in toc}[square unnumbered]
square-tableofcontents.png
square-tableofcontents.png (13.04 KiB) Viewed 19843 times
Stefan
LaTeX.org admin
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: change bullet shape in beamer toc

Post by asafw »

Thank you so much Stefan! This is great.
-Asaf
Post Reply