我将徽标放在了标题页中,但我对位置不满意,我希望它位于右下角,作者和日期旁边。
\documentclass{beamer}
\usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis} % Use metropolis theme
\title{Title}
\date{\today}
\author{Author}
\institute{Title}
% logo of my university
\titlegraphic{\includegraphics[width=2cm]{img/politologo.png}}
\AtBeginSection[]{
\begin{frame}{Talk Overview}
\tableofcontents[currentsection]
\end{frame}
\frame{\sectionpage}
}
\begin{document}
\maketitle
\end{document}
答案1
标题图形的位置由主题决定。在本例中,它似乎被放置在幻灯片的左上角。移动它的一个快速(但有点不靠谱)方法是将其放置在picture
宽度和高度为零的环境中,然后将其放置在您喜欢的任何地方。
\documentclass{beamer}
\usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis} % Use metropolis theme
\title{Title}
\date{\today}
\author{Author}
\institute{Title}
% logo of my university
\titlegraphic{%
\begin{picture}(0,0)
\put(305,-120){\makebox(0,0)[rt]{\includegraphics[width=2cm]{example-image}}}
\end{picture}}
\AtBeginSection[]{
\begin{frame}{Talk Overview}
\tableofcontents[currentsection]
\end{frame}
\frame{\sectionpage}
}
\begin{document}
\maketitle
\end{document}
利用争论来\put
达到你想要的效果。
答案2
肮脏但快速的破解:使用 将徽标向右移动并向\flushright
下移动\vspace
:
\documentclass{beamer}
\usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis}
\title{Title}
\date{\today}
\author{Author}
\institute{Title}
% logo of my university
\titlegraphic{\vspace{4cm}\flushright\includegraphics[width=2cm,height=2cm]{example-image-a}}
\begin{document}
\maketitle
\end{document}
答案3
这只是对未来用户的一个想法(但不要接受它作为答案),您始终可以定义自己的标题框并根据需要使用它:
\documentclass{beamer}
\usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis} % Use metropolis theme
\usepackage{tikz}
\let\oldtitle\title
\let\oldinstitute\institute
\let\oldauthor\author
\let\olddate\date
\makeatletter
\def\title#1{\xdef\@title{#1}\oldtitle{#1}}
\def\author#1{\xdef\@author{#1}\oldauthor{#1}}
\def\institute#1{\xdef\@institute{#1}\oldinstitute{#1}}
\makeatother
\title{Title}
\date{\today}
\author{Author}
\institute{Title}
\makeatletter
\def\ttlframe{
\begin{frame}[plain]
\begin{tikzpicture}
\node[anchor=west] at (0,-1) {\LARGE\bfseries\@title};
\draw[orange,thick] (0,-2)--(\textwidth,-2);
\node[anchor=west] at (0,-3){\@author};
\node[anchor=west] at (0,-4){\@date};
\node[anchor=west] at (0,-5){\small\@institute};
\node[anchor=east,yshift=-0.3cm] at (\textwidth,-4) {\includegraphics[width=2cm]{example-image-a}};
\end{tikzpicture}
\end{frame}
}
\makeatother
% logo of my university
%\titlegraphic{\includegraphics[width=2cm]{img/politologo.png}}
\AtBeginSection[]{
\begin{frame}{Talk Overview}
\tableofcontents[currentsection]
\end{frame}
\frame{\sectionpage}
}
\begin{document}
\ttlframe
\end{document}
PS:无论如何,这提供了更大的灵活性......但现有的答案更接近具体问题的解决方案。
PS2:yshift 仅显示您可以调整定位,但我不会真正使用它。