改变Beamer的脚标

minomic 05/13/2018. 2 answers, 85 views
beamer

我正在努力做一些不应该太难的事情,但由于某种原因,我无法把头围住。 基本上,在我的Beamer演示文稿的脚印中,我想要显示两个徽标(位于页面的左下角和右下角)以及帧号(位于中间)。 这是我的尝试:

\documentclass{beamer}

\usetheme{Madrid}

\title{\textbf{My awesome presentation}}
\author{Name Surname}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
    \hspace*{0.3cm}\raisebox{0.2cm}{\includegraphics[height=0.8cm]{first_image.png}}%
    \hfill%
    \raisebox{0.5cm}{\insertframenumber{} / \inserttotalframenumber}%
    \hfill%
    \raisebox{0.3cm}{\includegraphics[height=0.8cm]{second_image.png}}%
    \hspace*{0.3cm}
}


\begin{document}

{
\setbeamertemplate{footline}{}
\begin{frame}
\titlepage
\end{frame}
}

\begin{frame}{Title}
Blah blah
\end{frame}

\begin{frame}{Another frame}
Blah blah
\end{frame}

\end{document} 

图像显示正确,但帧号不在页面中间。 当然我可以想象为什么,因为这两幅图像的宽度不同,但我该如何解决?

2 Answers


samcarter 05/13/2018.

快速解决方法:将图像置于某个已知宽度的环境中,例如\parboxminipage或类似文件。

题外话题:如果您希望标题为粗体,请使用\setbeamerfontNO并且不要在\author等字段中放置格式化说明。

\documentclass{beamer}

\usetheme{Madrid}
\setbeamerfont{title}{series=\bfseries}

\title{My awesome presentation}
\author{Name Surname}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
    \hspace*{0.3cm}\parbox{3cm}{\includegraphics[height=0.8cm]{example-image-golden-upright}}%
    \hfill%
    {\insertframenumber{} / \inserttotalframenumber}%
    \hfill%
    \parbox{3cm}{\hfill\includegraphics[height=0.8cm]{example-image-golden}}%
    \hspace*{0.3cm}
    \vskip0.3cm
}


\begin{document}

\begin{frame}{Title}
Blah blah
\end{frame}


\end{document} 

在这里输入图像描述


user94293 05/14/2018.

使用\llap\rlap

\documentclass{beamer}

\usetheme{Madrid}
\setbeamerfont{title}{series=\bfseries}

\title{My awesome presentation}
\author{Name Surname}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
    \hspace*{0.3cm}\rlap{\includegraphics[height=0.8cm]{example-image-golden-upright}}%
    \hfill%
    {\insertframenumber{} / \inserttotalframenumber}%
    \hfill%
    \llap{\includegraphics[height=0.8cm]{example-image-golden}}%
    \hspace*{0.3cm}
    \vskip0.3cm}


\begin{document}

\begin{frame}{Title}
  Blah blah
\end{frame}


\end{document} 

HighResolutionMusic.com - Download Hi-Res Songs

1 Alan Walker

Diamond Heart flac

Alan Walker. 2018. Writer: Alan Walker;Sophia Somajo;Mood Melodies;James Njie;Thomas Troelsen;Kristoffer Haugan;Edvard Normann;Anders Froen;Gunnar Greve;Yann Bargain;Victor Verpillat;Fredrik Borch Olsen.
2 Sia

I'm Still Here flac

Sia. 2018. Writer: Sia.
3 Blinders

Breach (Walk Alone) flac

Blinders. 2018. Writer: Dewain Whitmore;Ilsey Juber;Blinders;Martin Garrix.
4 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
5 Cardi B

Taki Taki flac

Cardi B. 2018. Writer: Bava;Juan Vasquez;Vicente Saavedra;Jordan Thorpe;DJ Snake;Ozuna;Cardi B;Selena Gomez.
6 Bradley Cooper

Shallow flac

Bradley Cooper. 2018. Writer: Andrew Wyatt;Anthony Rossomando;Mark Ronson;Lady Gaga.
7 Martin Garrix

Yottabyte flac

Martin Garrix. 2018. Writer: Martin Garrix.
8 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
9 Lady Gaga

I'll Never Love Again flac

Lady Gaga. 2018. Writer: Benjamin Rice;Lady Gaga.
10 Kelsea Ballerini

This Feeling flac

Kelsea Ballerini. 2018. Writer: Andrew Taggart;Alex Pall;Emily Warren.
11 Mako

Rise flac

Mako. 2018. Writer: Riot Music Team;Mako;Justin Tranter.
12 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
13 Dewain Whitmore

Burn Out flac

Dewain Whitmore. 2018. Writer: Dewain Whitmore;Ilsey Juber;Emilio Behr;Martijn Garritsen.
14 Charli XCX

1999 flac

Charli XCX. 2018. Writer: Charli XCX;Troye Sivan;Leland;Oscar Holter;Noonie Bao.
15 Deep Chills

Run Free flac

Deep Chills. 2018.
16 Rita Ora

Let You Love Me flac

Rita Ora. 2018. Writer: Rita Ora.
17 Avril Lavigne

Head Above Water flac

Avril Lavigne. 2018. Writer: Stephan Moccio;Travis Clark;Avril Lavigne.
18 Khalid

Better flac

Khalid. 2018. Writer: Charlie Handsome;Jamil Chammas;Denis Kosiak;Tor Erik Hermansen;Mikkel Stoleer Eriksen;Khalid.
19 Diplo

Electricity flac

Diplo. 2018. Writer: Diplo;Mark Ronson;Picard Brothers;Wynter Gordon;Romy Madley Croft;Florence Welch.
20 Julia Michaels

There's No Way flac

Julia Michaels. 2018. Writer: Ian Kirkpatrick;Justin Tranter;Julia Michaels;Lauv.

Related questions

Hot questions

Language

Popular Tags