2

I am using Copenhagen theme for presentation. I have problem. Actually the text of my subsection heading is long that it do not appear completely in the upper bar of slide. Please suggest me what should I do?

  • 1
    You can use the optional argument: \subsection[Short title]{Test subsection with a really long title and some additional words for the example} – Gonzalo Medina Feb 23 '14 at 19:50
  • You you please create a minimal working example (MWE) that shows your current setup? – Werner Feb 23 '14 at 20:04
  • \documentclass[hyperref={pdfpagelabels=false}]{beamer} \usetheme{Copenhagen} \begin{document} \title[Title]{} \author[Author]{} \institute[Test]{} \date{\today} \subject{Informatics} { \begin{frame} \titlepage \end{frame} } \section{Introduction} \subsection{Test subsection with a really long title and some additional words for the example} \begin{frame} \frametitle{Table} Test Section \end{frame} \end{document} – Ahmed Feb 24 '14 at 0:02
  • Now as it can bee seen that in 2nd slide the text of subsection does not appear completely and it does not shift to the next, i was having this problem, if anyone can help me out. – Ahmed Feb 24 '14 at 0:04
3

Too long titles in the headline are a bad practice.

You can provide a shorter version for the headline using the optional argument for \subsection, as in

\subsection[A short version of the title]{Test subsection with a really long title and some additional words for the example}

The long version will still be used for the eventual ToC(s).

A complete example:

\documentclass[hyperref={pdfpagelabels=false}]{beamer} 
\usetheme{Copenhagen} 

\begin{document} 

\section{Introduction} 
\subsection[A short version of the title]{Test subsection with a really long title and some additional words for the example} 
\begin{frame} 
\frametitle{Table} 
Test
\end{frame} 

\end{document}

If you want to use the long title for the headline (I son't recommend this), you can use a \parbox:

\documentclass[hyperref={pdfpagelabels=false}]{beamer} 
\usetheme{Copenhagen} 

\begin{document} 

\section{Introduction} 
\subsection[\protect\parbox{.5\textwidth}{Test subsection with a really long title and some additional words for the example}]{Test subsection with a really long title and some additional words for the example} \begin{frame} 
\frametitle{Table} Test Section 
\end{frame} 

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.