[Tex/LaTex] Remove sidebar in Beamer

beamermarginsspacing

With the following code, I tried to remove the sidebar:

\documentclass[18pt]{beamer}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}

\begin{document}
    \begin{frame}[plain]
        \frametitle{Test}
        I wrote some text, which should appear on the left.
    \end{frame}
\end{document}

sidebar prob

I found that \begin{frame}[plain] is sufficient. However, I gives me:

sidebar prob

The sidebar isn't there, but the place is not used. How can I use it, i.e., move the block as if there were no sidebar?

Best Answer

If you don't need the sidebar in the whole presentation, perhaps it worth to use

\setbeamersize{sidebar width left=0pt}

in the preamble.

Example:

\documentclass[18pt]{beamer}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}

\setbeamersize{sidebar width left=0pt}

\begin{document}
    \begin{frame}
        \frametitle{Test}
        I wrote some text, which should appear on the left.
    \end{frame}
\end{document}

The result:

enter image description here

To have only one frame without sidebar, the previous solution does not work. So, you might want to do some manual work:

\documentclass[18pt]{beamer}
\usepackage{lmodern}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}

%\setbeamersize{sidebar width left=0pt}

\begin{document}
     \begin{frame}{First test}
        I wrote some very long text, which should appear on the left.
    \end{frame}

    \begin{frame}[plain]{Test}
    \hspace*{-1.5cm}\parbox[t]{\textwidth}{
        This is some text.
        \begin{itemize}[<+->]
        \item one
        \item two
        \end{itemize}
        I wrote some very long text, which should appear on the left.
    }    
    \end{frame}

    \begin{frame}{Another test}
        I wrote some very long text, which should appear on the left.
    \end{frame}

\end{document}

Adjust the space as you like, but remember that in this way the right margin is shifted on the left.

Related Question