同一行中有三位作者姓名和所属机构

同一行中有三位作者姓名和所属机构

我希望在第一个演示页的同一行中有三位作者。

如何才能做到这一点?

我尝试重现例子:

\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}

但是,我可以为三位作者重现它,但要在同一行吗?

答案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{.3\linewidth}
            \centering
            \RBox{Subham Soni S.\\
            \href{mailto:[email protected]}{\tiny [email protected]}}
            \column{.3\linewidth}
            \centering
            \RBox{Mithun C.K.\\
            \href{mailto:[email protected]}{\tiny [email protected]}}
            \column{.3\linewidth}
            \centering
            \RBox{Karthikeyan\\
            \href{mailto:[email protected]}{\tiny [email protected]}}
        \end{columns}
        \vspace{-0.3cm}
        \begin{columns}
          \column{0.3\linewidth}
          \raggedleft
            \includegraphics[width=0.7cm]{example-image-duck}
            \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}

在此处输入图片描述

答案2

\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{\centering
    \RBox{Subham Soni S.\\
        \href{mailto:[email protected]}{\tiny [email protected]}}
\qquad
    \RBox{Mithun C.K.\\
        \href{mailto:[email protected]}{\tiny [email protected]}}
\qquad
    \RBox{Karthikeyan\\
        \href{mailto:[email protected]}{\tiny [email protected]}}\\
\vspace{1.5cm}
\parbox{0.3\linewidth}{\raggedleft
    \includegraphics[width=0.7cm]{example-image-duck}}
\qquad
\parbox{0.6\linewidth}{\today\\%
            Department of CSE\\[1.1ex]
            PEC}%
    }{John Doe \& Jane Doe}%
}
\date[\today]{}
\title{Work Culture}
\begin{document}
    \begin{frame}
    \titlepage
\end{frame}
\end{document}

在此处输入图片描述

答案3

替代:

  • 只使用了三位作者:-)
  • 用于放置作者的tabularx环境有三列
  • 作者的字体大小(\footnotesize)由 RBox 的定义决定

    \documentclass{beamer}
    \usetheme{CambridgeUS}
    \useoutertheme{infolines}
    \usepackage{tikz}
    \usepackage{tabularx}
    
    \newcommand\RBox[1]{%
      \tikz\node[draw,rounded corners,align=center,font=\footnotesize] {#1};%
    }
    \author[Subham Soni S. \& Mithun C.K. \& Karthikeyan]
    {\texorpdfstring{\centering
        \begin{tabularx}{\linewidth}{*{3}{>{\centering\arraybackslash}X}}
        \RBox{Subham Soni S.\\
        \href{mailto:[email protected]}{[email protected]}}
        &
        \RBox{Mithun C.K.\\
        \href{mailto:[email protected]}{[email protected]}}
        &
        \RBox{Karthikeyan\\
        \href{mailto:[email protected]}{[email protected]}}
                    \end{tabularx}\\[5ex]
        \centering
                    \begin{tabular}{c @{\qquad} m{22ex}}
        \includegraphics[width=1cm]{example-image-duck}
        &
        \today\newline
        Department of CSE\medskip\newline
        PEC\newline
                    \end{tabular}
    }{}
    }
    \date[\today]{}
    \title{Work Culture}
    \begin{document}
    \begin{frame}
    \titlepage
    \end{frame}
    \end{document}
    

在此处输入图片描述

相关内容