Text Formattingbeamer | ToC Font

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
the_blue_note
Posts: 15
Joined: Mon Oct 24, 2011 9:38 pm

beamer | ToC Font

Post by the_blue_note »

Hi again,

I'm almost done with my PhD presentation! However, I would like to change the font style in the ToC. I've tried the following:

Code: Select all

\begin{frame}
	\frametitle{TOC}
	  \fontsize{15}{13}\usefont{OT1}{phv}{bc}{n}\selectfont
	  \tableofcontents
\end{frame}
However, it just changes the size, not the style or the colour. What should I do?

Many thanks in advance. Cheers!
Pablo
Last edited by the_blue_note on Mon Jan 23, 2012 1:05 am, edited 2 times in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

the_blue_note
Posts: 15
Joined: Mon Oct 24, 2011 9:38 pm

Re: beamer | ToC Font

Post by the_blue_note »

Hi again,
could anybody please help me with my last question? I really need to solve the issue. I've tried everything I could imagine with no results. Any help would be really appreciated!
Many thanks to all for your time.
Pablo
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: beamer | ToC Font

Post by Stefan Kottwitz »

Hi Pablo,

perhaps somebody can help if you post a small compilable example with your settings. At least the preamble seems to be required for giving a working answer.

Stefan
LaTeX.org admin
the_blue_note
Posts: 15
Joined: Mon Oct 24, 2011 9:38 pm

beamer | ToC Font

Post by the_blue_note »

Stefan,
thanks a lot for your advice. My apologies about not including the code.
This is as minimal as I can get:

Code: Select all

\documentclass{beamer}          
\usetheme{Madrid}
\usefonttheme{serif}
\setbeamerfont{frametitle}{size=\LARGE, series=\usefont{OT1}{phv}{bc}{n}} 

\begin{document}

\AtBeginSection[]
{  
 \addtocounter{framenumber}{-1}
 \begin{frame}<beamer>
   \frametitle{TOC}
   \tableofcontents[currentsection]
 \end{frame}
}

\begin{frame}{TOC}
	\tableofcontents
\end{frame}

\section{Intro}
\subsection{Subsection 1}

\begin{frame}{Frame title}
Some text.
\end{frame}

\end{document}

What I'm triying is to get the same font in the TOC as the one that I'm using in the frame title.
Thanks again.
Pablo
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

beamer | ToC Font

Post by Stefan Kottwitz »

Hi Pablo,

have a look here: http://www.mpi-inf.mpg.de/logo/presenta ... meMPII.sty

It makes text and table of contents items sans serif and shows how you can do it using \setbeamerfont - even without the \let\rmdefault=\sfdefault there.

Stefan
LaTeX.org admin
the_blue_note
Posts: 15
Joined: Mon Oct 24, 2011 9:38 pm

Re: beamer | ToC Font

Post by the_blue_note »

Stefan,
million thanks! (once again) Very cool theme, by the way.
Cheers,
Pablo
Post Reply