
我試圖在簡報首頁的左側添加一個圖形,其中有名稱、機構、日期和圖塊。我嘗試使用以下內容但沒有成功
\documentclass{beamer}
\usepackage{tikz}
\usetheme{Warsaw}
\title{Fooing the Bar}
\author{A.~Thor}
\institute{MWE Lmt.}
\titlegraphic{\vspace{8cm}}% to push the other text to the top
\date{\today}
\begin{document}
\begin{frame}
\tikz [remember picture,overlay]
\node at
([yshift=3cm]current page.south)
%or: (current page.center)
{\includegraphics[width=\textwidth,height=.5\textheight]{photo1.jpg}};
\titlepage
\end{frame}
\end{document}
答案1
目前尚不清楚,你的問題是什麼。你的mwe工作正常。它將圖像放置在框架的下半部。但是,從您的問題標題可以假設您喜歡在左側顯示圖像。請澄清你的問題!
以下是如何將圖像放在扉頁上的兩個範例:
\documentclass[demo]{beamer}% in real document delete option "demo"
\usepackage{tikz}
\usetheme{Warsaw}
\title{Fooing the Bar}
\author{A.~Thor}
\institute{MWE Lmt.}
%\titlegraphic{\vspace{8cm}}% to push the other text to the top
\date{\today}
\begin{document}
\begin{frame}[plain]
\begin{columns}
\column[c]{.5\linewidth}
\tikz [remember picture,overlay]
\node[right] at (current page.west)
{\includegraphics[width=\linewidth, height=\textheight]{photo1}};
\column[c]{.5\linewidth}
\vfil
\titlepage
\end{columns}
\end{frame}
\begin{frame}[plain]
\titlepage
\tikz [remember picture,overlay]
\node[above] at (current page.south) % <---
{\includegraphics[width=\linewidth, height=0.5\textheight]{photo1}};
\end{frame}
\end{document}
正如您所看到的,標題頁的第二種情況的代碼與您的代碼之間的差異姆韋都比較小,第一種情況是使用columns
環境。