我在用这主题,但无法在标题页中添加图片。以下命令不起作用。
\titlegraphic{\includegraphics[scale=0.5]{Image}}
为什么不起作用?我该如何添加图片?
\documentclass[10pt, compress]{beamer}
\usetheme{m}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{minted}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usemintedstyle{trac}
\title{Presentation Title}
\author{Author 1\inst{1} \and Author 2\inst{2}}
\date{}
\institute[UP]{\inst{1} Institute 1 \and \inst{2} Institute 2}
\begin{document}
\maketitle
\begin{frame}
Text here
\end{frame}
\end{document}
答案1
使用来自 GitHub 的上游代码,当我使用它metropolis
作为主题名称时,它可以正常工作。
\documentclass[10pt, compress]{beamer}
\usetheme{metropolis}
\title{Presentation Title}
\author{Author 1\inst{1} \and Author 2\inst{2}}
\date{}
\institute[UP]{\inst{1} Institute 1 \and \inst{2} Institute 2}
\titlegraphic{\includegraphics[height=.25\textheight]{cathod}}
\begin{document}
\maketitle
\begin{frame}
Text here.
\end{frame}
\end{document}