如何在 tikzposter 中的一行中保留多个 authblk 关联?

如何在 tikzposter 中的一行中保留多个 authblk 关联?

我碰到这个例子显示了如何在tikzposter使用authblk包中使用关联关系。

我想做一些类似的事情,但是由于有几个机构的名称相对较短,我想节省海报顶部的空间并将它们保持在一行上。

如何才能实现这一点呢?

答案1

加载包后添加以下几行authblk

\usepackage{authblk} % improved author and affiliation design
\makeatletter
\renewcommand\maketitle{\AB@maketitle} % revert \maketitle to its old definition
\renewcommand\AB@affilsepx{\quad\protect\Affilfont} % put affiliations into one line
\makeatother
\renewcommand\Affilfont{\Large} % set font for affiliations

在此处输入图片描述

\documentclass[25pt]{tikzposter}
\usepackage{authblk} % improved author and affiliation design
\makeatletter
\renewcommand\maketitle{\AB@maketitle} % revert \maketitle to its old definition
\renewcommand\AB@affilsepx{\quad\protect\Affilfont} % put affiliations into one line
\makeatother
\renewcommand\Affilfont{\Large} % set font for affiliations

\usetheme{Desert}

%Set title authors and institute
\title{\parbox{\linewidth}{\centering ULTRA LONG TITLE NO ONE BOTHERS   TO    READ}}
\institute{Alpha University}

\author[1,2]{John Doe}
\author[2]{Jane Doe}
\author[2]{Jennifer Doe}
\author[3,4]{James Doe}
\author[3]{Jenna Smith}
\author[2]{John Smith}
\author[1]{Jennifer Smith}

\affil[1]{Dept. of Alpha Research}
\affil[2]{Beta corporation}
\affil[3]{Gamma university}
\affil[4]{Delta Research group}

\begin{document}
\maketitle
\block{Abstract}%
  {This is an abstract to fill the MWE.}
\end{document}

相关内容