我有 4 位作者参与了 beamer 演示。我尝试将他们放在一起,但对齐不正确。以下是快照:
以下是 MWE:
\documentclass{beamer}
\usetheme{CambridgeUS}
\useoutertheme{infolines}
\author[Subham Soni S. \& Mithun C.K. \& Karthikeyan \& Shantikumar L.]
{%
\texorpdfstring{
\begin{columns}
\column{.45\linewidth}
\centering
Subham Soni S.\\
\href{mailto:[email protected]}{[email protected]}
\column{.45\linewidth}
\centering
Mithun C.K.\\
\href{mailto:[email protected]}{[email protected]}
\column{.45\linewidth}
\centering
Karthikeyan\\
\href{mailto:[email protected]}{[email protected]}
\column{.45\linewidth}
\centering
Shantikumar L.\\
\href{mailto:[email protected]}{[email protected]}
\end{columns}
}
{John Doe \& Jane Doe}
}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}
如果作者可以垂直排列,我觉得会更好,在 pdf 下面的 3 个框中,作者姓名在第一个框中连接在一起,我在 beam ppts 中看到作者在另一行中分开。如何做到这一点?
答案1
这是另一种可能的布局:
\documentclass{beamer}
\usetheme{CambridgeUS}
\useoutertheme{infolines}
\usepackage{tikz}
\newcommand\RBox[1]{%
\tikz\node[draw,rounded corners,align=center,] {#1};%
}
\author[Subham Soni S. \& Mithun C.K. \& Karthikeyan \& Shantikumar L.]
{%
\texorpdfstring{
\begin{columns}
\column{.45\linewidth}
\centering
\RBox{Subham Soni S.\\
\href{mailto:[email protected]}{[email protected]}}
\column{.45\linewidth}
\centering
\RBox{Mithun C.K.\\
\href{mailto:[email protected]}{[email protected]}}
\end{columns}
\vspace{0.5cm}
\begin{columns}
\column{.45\linewidth}
\centering
\RBox{Karthikeyan\\
\href{mailto:[email protected]}{[email protected]}}
\column{.45\linewidth}
\centering
\RBox{Shantikumar L.\\
\href{mailto:[email protected]}{[email protected]}}
\end{columns}
\vspace{-0.3cm}
\begin{columns}
\column{0.3\linewidth}
\raggedleft
\includegraphics[width=0.7cm]{pecemblem}
\vspace{-4.8cm}
\column{0.6\linewidth}
\raggedright
Department of CSE\\[1.1ex]
PEC\\
\vspace{-4.8cm}
\end{columns}
}
{John Doe \& Jane Doe}
}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}
将这些行添加到定义中\RBox
\usetikzlibrary{shadows}
\newcommand\RBox[1]{%
\tikz\node[draw,rounded corners,align=center,double copy shadow={opacity=0.3,shadow xshift=1ex,shadow yshift=-0.5ex,left color = brown!40,right color = magenta!80},left color=blue!50,right color=green!50 ] {#1};%
给出
我的颜色选择也很差 :(
答案2
您可以只使用两列而不是四列;最左边的列将包含作者,最右边的列将包含徽标:
\documentclass{beamer}
\usetheme{CambridgeUS}
\useoutertheme{infolines}
\usepackage{tikz}
\newcommand\RBox[1]{%
\tikz\node[draw,rounded corners,align=center,] {#1};%
}
\setbeamerfont{author in head/foot}{size={\fontsize{3pt}{4pt}\selectfont}}
\author[Subham \& Mithun \& Karthikeyan \& Shantikumar]
{%
\texorpdfstring{
\begin{columns}
\column{.45\linewidth}
\centering
\includegraphics[width=\linewidth]{ctanlion}
\column{.45\linewidth}
\centering
\RBox{Subham Soni S.\\
\href{mailto:[email protected]}{[email protected]}}\\[0.5ex]
\RBox{Karthikeyan\\
\href{mailto:[email protected]}{[email protected]}}\\[0.5ex]
\RBox{Mithun C.K.\\
\href{mailto:[email protected]}{[email protected]}}\\[0.5ex]
\RBox{Shantikumar L.\\
\href{mailto:[email protected]}{[email protected]}}
\end{columns}
}
{Subham Soni S., Karthikeyanm, Shantikumar L., Mithun C.K.}
}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}
还要注意
\setbeamerfont{author in head/foot}{size={\fontsize{3pt}{4pt}\selectfont}}
减小脚注中作者的字体,以便它们适合可用空间。
CTAN 狮子绘画由 Duane Bibby 绘制。