
Beamer의 제목 페이지 제목 앞에 견인 그림을 아래와 같이 추가하고 싶습니다.
이 명령을 사용했지만 \titlegraphic{\includegraphics[height=4cm]{Picture}}
목표에 도달하지 못했습니다.
\documentclass{beamer}
\titlegraphic{\includegraphics[height=4cm]{picture1}}
\titlegraphic{\includegraphics[height=4cm]{picture2}}
\title{TITLE}
\subtitle{\textbf{Subtitle}}
\author{Author}
\institute{University }
\setbeamercolor{title}{bg=orange,fg=white}
\begin{document}
\maketitle
\end{document}
답변1
빠른 oneliner 솔루션은 다음을 사용하는 것입니다.
\addtobeamertemplate{title page}{\includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion}}{}
그래서 당신은 다음과 같은 것을 갖게 될 것입니다 :
\documentclass{beamer}
\addtobeamertemplate{title page}{\includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion}}{}
\title{TITLE}
\subtitle{subtitle}
\author{Author}
\institute{University}
\setbeamercolor{title}{bg=orange,fg=white}
\begin{document}
\maketitle
\end{document}
매크로 를 통해 얻을 수 없는 추가 사용자 정의가 필요한 경우 addtobeamertemplate
사용자 정의 템플릿을 만들어야 합니다 title page
. 템플릿 default
은 에서 찾을 수 beamerinnerthemedefault.sty
있으며 요청된 수정 사항은 다음과 같습니다.
\makeatletter
\setbeamertemplate{title page}
{
\includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion} % new code
\vbox{}
\vfill
\begingroup
\centering
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\endgroup
\vfill
}
\makeatother
적절하게 변경하면 수직 공간을 추가하거나 사진 위치를 변경하거나 원하는 대로 변경할 수 있습니다.
답변2
나도 종종 이런 일을 해야 한다. 를 사용하는 대신 \titlegraphic
일반적으로 다음 접근 방식을 사용합니다.
\begin{frame}
\begin{columns}
\column{0.5\textwidth}
\flushleft
\includegraphics{leftpicture}
\column{0.5\textwidth}
\flushright
\includegraphics{rightpicture}
\end{columns}
\titlepage
\end{frame}
또는
\begin{frame}
\hbox to \textwidth{
\includegraphics{leftpicture}
\hfill
\includegraphics{rightpicture}
}
\titlepage
\end{frame}