4

In Beamer, I use the following code \setbeamerfont{description item}{size=\tiny} but it seem not to work. How can I make description items use tiny as fontsize?

11
  • Perhaps \setbeamerfont{itemize item}{size=\tiny}? Jun 29, 2013 at 11:38
  • @Claudio Fiandrino: This also applies to itemize. Is it possible to apply it to only certain ones by using options like \begin{itemize}[options here]?
    – bkarpuz
    Jun 29, 2013 at 14:26
  • 1
    So, if the problem is not the numbering, this is a question that Marco answered quite recently, see: Changing color and fonts of itemize. Jun 29, 2013 at 14:52
  • 1
    If the problem is solved do you mind if we close this as duplicate of the other Q/A? Jun 29, 2013 at 15:11
  • 1
    @ClaudioFiandrino In my opinion, this should not be a duplicate. Using the enumitem package with beamer is not recommended; in fact, it shouldn't be done. This question deserves a proper beamer way of doing what was requested. I've voted for reopening. Jun 29, 2013 at 16:35

1 Answer 1

2

In TeX Live 2013 in a Linux your code work for the labels. To change only the font size of the text you can simply put \tiny just before of the first item. To do this automatically every time, you can use the solution cited by Alan Munn:

\usepackage{etoolbox}
\AtBeginEnvironment{description}{\tiny}   

Or you can redefine the description environment, or better, simply define a new environment so you can use also the original description:

\documentclass{beamer}
\begin{document}
\begin{frame}

\newenvironment{tynidesc}{
\setbeamerfont{description item}{size=\tiny}
\begin{description}\tiny}{\end{description}}

Scriptsize labels and large font in text    
\setbeamerfont{description item}{size=\scriptsize}
\begin{description}
\Large
\item[test] test    
\item[test] test 
\end{description}

Large labels and scriptsize fontin text 

\setbeamerfont{description item}{size=\Large}
\begin{description}
\scriptsize
\item[test] test    
\item[test] test 
\end{description}

\setbeamerfont{description item}{size=\normalsize}

The \texttt{tynidesc} environment   

\begin{tynidesc}
\item[test] test    
\item[test] test 
\end{tynidesc}

Normal \texttt{description} environment 

\begin{description}
\item[test] test    
\item[test] test 
\end{description}

\end{frame}
\end{document}

MWE2

4
  • Notice that this only changes the font size of the label of the description, not its text. If the OP wants to change the text itself, then they need to use this solution: Beamer and description environment text size (in which case the question is a duplicate, I should think.)
    – Alan Munn
    Jun 29, 2013 at 21:41
  • @AlanMunn, I see. Answer changed.
    – Fran
    Jun 29, 2013 at 22:29
  • With your definition, tynidesc is not overlay-aware. Jun 29, 2013 at 23:52
  • @GonzaloMedina. It is true, but if required you can still use overlays directly in the items.
    – Fran
    Jun 30, 2013 at 0:10

Not the answer you're looking for? Browse other questions tagged .