![如何在 tikzposter 中的一行中保留多个 authblk 关联?](https://linux22.com/image/349055/%E5%A6%82%E4%BD%95%E5%9C%A8%20tikzposter%20%E4%B8%AD%E7%9A%84%E4%B8%80%E8%A1%8C%E4%B8%AD%E4%BF%9D%E7%95%99%E5%A4%9A%E4%B8%AA%20authblk%20%E5%85%B3%E8%81%94%EF%BC%9F.png)
我碰到这个例子显示了如何在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}