编辑

编辑

我正在使用该Luebeck模板进行beamer演示并在定制过程中遇到一些问题。

  1. 我想移动标识右上角(在 中headline)以便它不会妨碍每个帧的内容并且可见。

  2. 我想插入日期(简短日期)在左下角(在footline),左对齐。我找到了一种解决方案,将页码插入到右下角,但我似乎无法将其复制到左侧部分。

奖励问题

  1. 是否可以添加两个不同的标志;第一个在左上角,第二个在右上角?
  2. 是否可以删除headline扉页中的(内容)?这是不是个坏主意?

预期的

必须删除图像才能将其发布在下面的编辑部分。

平均能量损失

\documentclass[11pt]{beamer}
% ------------------------------------------------------------------------------
% Packages
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage[normalem]{ulem}
% ------------------------------------------------------------------------------
% Parameters
\mode<presentation>{\usetheme{Luebeck}}
\setbeamertemplate{itemize items}[triangle]
\setbeamercovered{transparent}
\usecolortheme{seagull}
\usefonttheme{serif}
\addtobeamertemplate{block begin}{}{\justifying}
% ToC
\AtBeginSection[] {
  \begin{frame}{Contents}
    \tableofcontents[currentsection]
  \end{frame}
}
% Pagination
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
  \oldmacro\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}
% ------------------------------------------------------------------------------
% Infos
\title[Short title]{Title}
\subtitle[Short subtitle]{Subtitle}
\author[Short Author]{Author}
\date[Short date]{Date}
\institute[Short Institute]{Institute}
\logo{\includegraphics[height=1cm]{logo.png}}
% ------------------------------------------------------------------------------
% Document
\begin{document}
% ------------------------------------------------------------------------------
% Titlepage
\begin{frame}
  \titlepage{}
\end{frame}
% ------------------------------------------------------------------------------
% ToC
\begin{frame}{Contents}
  \tableofcontents
\end{frame}
% ------------------------------------------------------------------------------
% Content
\section{First section}
\subsection{First subsection}
\begin{frame}{First subsection}
  \dots
\end{frame}

\subsection{Second subsection}
\begin{frame}{Second subsection}
  \dots
\end{frame}

\section{Second section}
\section{Third section}
\section{Fourth section}
% ------------------------------------------------------------------------------
% Fin
\end{document}

编辑

除了右上角图像上的小偏移外,@samcarter 提出的解决方案效果很好。

确实,在图像前插入了一个小空间,并且它会根据活动部分的子部分进行扩展。

在此处输入图片描述 在此处输入图片描述

平均能量损失

\documentclass[11pt]{beamer}
% ------------------------------------------------------------------------------
% Packages
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage[normalem]{ulem}
% ------------------------------------------------------------------------------
% Parameters
\mode<presentation>{\usetheme{Luebeck}}
\setbeamertemplate{itemize items}[triangle]
\setbeamercovered{transparent}
\usecolortheme{seagull}
\usefonttheme{serif}
\addtobeamertemplate{block begin}{}{\justifying}
% ToC
\AtBeginSection[] {
  \begin{frame}{Contents}
    \tableofcontents[currentsection]
  \end{frame}
}
% Headline
\makeatletter
\setbeamertemplate{headline}{%
  \leavevmode%
  \@tempdimb=2.4375ex%
  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
    \multiply\@tempdimb by\beamer@sectionmax%
  \else%
    \multiply\@tempdimb by\beamer@subsectionmax%
  \fi%
  \ifdim\@tempdimb>0pt%
    \advance\@tempdimb by 1.825ex%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\includegraphics[height=\@tempdimb]{logo-1.png}\hfill\insertsectionnavigation{.3\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\hfill\includegraphics[height=\@tempdimb]{logo-2.png}\vfil}%
    \end{beamercolorbox}%
  \fi%
}
\makeatother
% Footline
\makeatletter
\setbeamertemplate{footline}{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortdate \hfill \insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle \hfill \insertframenumber\,/\,\inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother
% ------------------------------------------------------------------------------
% Infos
\title[Short title]{Title}
\subtitle[Short subtitle]{Subtitle}
\author[Short Author]{Author}
\date[Short date]{Date}
\institute[Short Institute]{Institute}
% \logo{\includegraphics[height=1cm]{logo.png}}
% ------------------------------------------------------------------------------
% Document
\begin{document}
% ------------------------------------------------------------------------------
% Titlepage
\begin{frame}
  \titlepage{}
\end{frame}
% ------------------------------------------------------------------------------
% ToC
\begin{frame}{Contents}
  \tableofcontents
\end{frame}
% ------------------------------------------------------------------------------
% Content
\section{First section}
\subsection{First subsection}
\begin{frame}{First subsection}
  \dots
\end{frame}

\subsection{Second subsection}
\begin{frame}{Second subsection}
  \dots
\end{frame}

\section{Second section}
\section{Third section}
\section{Fourth section}
% ------------------------------------------------------------------------------
% Fin
\end{document}

答案1

\documentclass[11pt]{beamer}
% ------------------------------------------------------------------------------
% Packages
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage[normalem]{ulem}
% ------------------------------------------------------------------------------
% Parameters
\mode<presentation>{\usetheme{Luebeck}}
\setbeamertemplate{itemize items}[triangle]
\setbeamercovered{transparent}
\usecolortheme{seagull}
\usefonttheme{serif}
\addtobeamertemplate{block begin}{}{\justifying}
% ToC
\AtBeginSection[] {
  \begin{frame}{Contents}
    \tableofcontents[currentsection]
  \end{frame}
}
% Headline
\makeatletter
\setbeamertemplate{headline}{%
  \leavevmode%
  \@tempdimb=2.4375ex%
  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
    \multiply\@tempdimb by\beamer@sectionmax%
  \else%
    \multiply\@tempdimb by\beamer@subsectionmax%
  \fi%
  \ifdim\@tempdimb>0pt%
    \advance\@tempdimb by 1.825ex%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\includegraphics[height=\@tempdimb]{example-image}\hfill\insertsectionnavigation{.3\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.3\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.2\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\hfill\includegraphics[height=\@tempdimb]{example-image}\vfil}
    \end{beamercolorbox}%    
  \fi%
}
\makeatother
% Footline
\makeatletter
\setbeamertemplate{footline}{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortdate \hfill \insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle \hfill \insertframenumber\,/\,\inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother
% ------------------------------------------------------------------------------
% Infos
\title[Short title]{Title}
\subtitle[Short subtitle]{Subtitle}
\author[Short Author]{Author}
\date[Short date]{Date}
\institute[Short Institute]{Institute}
% \logo{\includegraphics[height=1cm]{logo.png}}
% ------------------------------------------------------------------------------
% Document
\begin{document}
% ------------------------------------------------------------------------------
% Titlepage
\begin{frame}
  \titlepage{}
\end{frame}
% ------------------------------------------------------------------------------
% ToC
\begin{frame}{Contents}
  \tableofcontents
\end{frame}
% ------------------------------------------------------------------------------
% Content
\section{First section}
\subsection{First subsection}
\begin{frame}{First subsection}
  \dots
\end{frame}

\subsection{Second subsection}
\begin{frame}{Second subsection}
  \dots
\end{frame}

\section{Second section}
\section{Third section}
\section{Fourth section}
% ------------------------------------------------------------------------------
% Fin
\end{document}

在此处输入图片描述

相关内容