修改主幻灯片尺寸-Beamer

修改主幻灯片尺寸-Beamer

我正在进行 Beamer 演示文稿,我想为幻灯片留出尽可能多的空间,因为我希望包含的图像尽可能清晰可见。更具体地说,我想减少图片中红色箭头所指的空间

在此处输入图片描述

降低外部主题的高度,并将logo图片移至底部。

这怎么可能呢?

我的代码如下

\documentclass[slidestop,compress,mathserif,10pt,xcolor=dvipsnames]{beamer}

\usepackage[demo]{graphicx}
\usetheme{Ilmenau}
\usepackage[bars]{beamerthemetree}
\addtobeamertemplate{block begin}{}{\justifying}
\useoutertheme[subsection=true]{smoothbars}

\usepackage{ifthen}
\newboolean{doublelogo}%Double logo after a certain slide
\setboolean{doublelogo}{true}
\logo{%
  \makebox[0.99\paperwidth]{%
  \ifthenelse{\boolean{doublelogo}}{
    \includegraphics[width=0.6cm,keepaspectratio]{ntua-logo.jpg}}{}%
    \hfill%
    \includegraphics[width=0.9cm,keepaspectratio]{ntof-logo.pdf}%
    \hfill
    \includegraphics[width=0.6cm,keepaspectratio]{cern-logo.jpg}
  }%
}

\title{Title}
\author{author}
\date{}

\begin{document}
 \titlepage
\end{document}

答案1

第一部分

移动徽标:很简单,只需使用。根据您的需要\vspace进行调整。-0.3cm

\logo{%
    \vspace*{-0.3cm}
    \makebox[0.99\paperwidth]{%
        \includegraphics[width=0.6cm,keepaspectratio]{cern_logo}
    }%
}

第二部分

在您的 MWE 中,我没有看到标题周围的可用空间像图片中那样多,但如果您想更改间距,您可以重新定义标题。例如,您可以调整ht=2.75ex框的高度

\makeatletter
\setbeamertemplate{headline}
{%
    \pgfuseshading{beamer@barshade}%
    \ifbeamer@sb@subsection%
    \vskip-9.75ex%
    \else%
    \vskip-7ex%
    \fi%
    \begin{beamercolorbox}[ignorebg,ht=2.75ex,dp=3.75ex]{section in head/foot}
        \insertnavigation{\paperwidth}
    \end{beamercolorbox}%
    \ifbeamer@sb@subsection%
    \begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
        leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
        \usebeamerfont{subsection in head/foot}\insertsubsectionhead
    \end{beamercolorbox}%
    \fi%
}%
\makeatother

完整代码

\documentclass[slidestop,compress,mathserif,10pt,xcolor=dvipsnames]{beamer}

\usetheme{Ilmenau}
\usepackage[bars]{beamerthemetree}
\addtobeamertemplate{block begin}{}{\justifying}
\useoutertheme[subsection=true]{smoothbars}

\usepackage{ifthen}
\newboolean{doublelogo}%Double logo after a certain slide
\setboolean{doublelogo}{true}
\logo{%
    \vspace*{-0.3cm}
    \makebox[0.99\paperwidth]{%
        \includegraphics[width=0.6cm,keepaspectratio]{cern_logo}
    }%
}

\makeatletter
\setbeamertemplate{headline}
{%
    \pgfuseshading{beamer@barshade}%
    \ifbeamer@sb@subsection%
    \vskip-9.75ex%
    \else%
    \vskip-7ex%
    \fi%
    \begin{beamercolorbox}[ignorebg,ht=2.75ex,dp=3.75ex]{section in head/foot}
        \insertnavigation{\paperwidth}
    \end{beamercolorbox}%
    \ifbeamer@sb@subsection%
    \begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
        leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
        \usebeamerfont{subsection in head/foot}\insertsubsectionhead
    \end{beamercolorbox}%
    \fi%
}%
\makeatother


\title{Title}
\author{author}
\date{}

\begin{document}

    \begin{frame}
            \titlepage
    \end{frame}

    \section{test}

    \subsection{testtest}

    \begin{frame}
        test
    \end{frame}

    \begin{frame}
        test
    \end{frame} 

\end{document}

在此处输入图片描述

相关内容