![如何在投影機的標題頁中包含兩名團隊成員的照片?](https://rvso.com/image/370330/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%8A%95%E5%BD%B1%E6%A9%9F%E7%9A%84%E6%A8%99%E9%A1%8C%E9%A0%81%E4%B8%AD%E5%8C%85%E5%90%AB%E5%85%A9%E5%90%8D%E5%9C%98%E9%9A%8A%E6%88%90%E5%93%A1%E7%9A%84%E7%85%A7%E7%89%87%EF%BC%9F.png)
這個問題是一個擴展版本如何在投影機的標題頁中對齊多個作者的姓名、職位、機構?。圓圈裡的照片是從如何在投影機幻燈片中顯示影像的圓圈部分?
我想製作一張包含兩位作者姓名、卷名和照片的幻燈片。我可以輕鬆添加作者姓名並滾動,但是當我添加他們的照片時,幻燈片的內容就消失了。
我嘗試的源代碼在這裡 -
\documentclass{beamer}
\usepackage{tikz}
\usetheme{Madrid}
\logo{%
\includegraphics[width=1cm,height=1.5cm,keepaspectratio]{example-image-a}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image-b}%
}
\begin{document}
\title{Cross-Layer Resource Allocation with elastic service scaling in Cloud Radio access network}
\author{
\parbox{2.5cm}{
\begin{overlayarea}{\textwidth}{\textheight}
\begin{tikzpicture}
\clip (0,0) circle (1);
\node at (0.62,-3) {\includegraphics{example-image-a}}; %<-you'll need to adjust these
% coordinates, I do not have your original picture
\end{tikzpicture}
\end{overlayarea}
\centering Md.Al-Helal\\Roll:SH-51}\hspace{1cm}
}
\parbox{2.5cm}{
\begin{overlayarea}{\textwidth}{\textheight}
\begin{tikzpicture}
\clip (0,0) circle (1);
\node at (0.62,-3) {\includegraphics{example-image-a}}; %<-you'll need to adjust these
% coordinates, I do not have your original picture
\end{tikzpicture}
\end{overlayarea}
{\centering Jobayed Ullah\\Roll:EK-107}}
\institute{Computer Science \& Engineering\\CSEDU}
\begin{frame}
\maketitle
\end{frame}
\title{Cross-Layer Resource Allocation with elastic service scaling in Cloud Radio access network}
\author{Jianhua Tang\\ Wee Pen Tay\\ Tony Q. S. Quek}
\institute{IEEE Transactions on Wireless Communications, vol 14, no. 9}
\date{September 2015}
\begin{frame}
\maketitle
\end{frame}
\end{document}
答案1
這是各種問題的組合:
括號遺失或放錯位置會導致文字超出框架環境。 Beamer 嘗試透過插入額外的框架來挽救這種情況
正如 @marmot 在他的評論中已經解釋的那樣,
overlayarea
將與疊加層結合使用如果您弄亂了作者定義而不是重新定義標題頁模板,則相同的定義也將用於腳行中的作者,從而導致框架底部出現額外的圖像。您可以透過提供簡短的作者姓名來解決此問題,但恕我直言,最好重新定義標題頁。
您的標題和機構對於頁腳來說太長,您應該提供一個簡短的替代方案
\documentclass{beamer}
\usepackage{tikz}
\usetheme{Madrid}
\begin{document}
\title[short title]{Cross-Layer Resource Allocation with elastic service scaling in Cloud Radio access network}
\author[author names]{%
\parbox{2.5cm}{%
\begin{tikzpicture}
\clip (0,0) circle (1);
\node at (0.62,-3) {\includegraphics{example-image-a}};
\end{tikzpicture}
\centering Md.Al-Helal\\Roll:SH-51
}%
\hspace{1cm}
\parbox{2.5cm}{%
\begin{tikzpicture}
\clip (0,0) circle (1);
\node at (0.62,-3) {\includegraphics{example-image-a}};
\end{tikzpicture}
\centering Jobayed Ullah\\Roll:EK-107
}
}
\institute[short inst.]{Computer Science \& Engineering\\CSEDU}
\begin{frame}
\maketitle
\end{frame}
\end{document}