如果不加载 authblk 包,如果文档有 2 位作者,他们会在标题页上并排放置(除非很宽)。加载 authblk 包后,这 2 位作者会彼此相邻。有没有办法在加载 authblk 包后仍保持并排排列?
\documentclass[a4paper,11pt]{article}
%\usepackage{authblk}
\title{title}%
\date{\today}%
\author{%
author 1 \\ author 1 university%
\and
author 2 \\ author 2 university}%
\date{ ~ \\ \today }%
\begin{document}
\maketitle%
\end{document}
谢谢
答案1
根据authblk
文档,您必须使用\author{...}\affil{...}
符号,并设置noblocks
包选项。这将为您提供脚注样式的从属符号,这与原始符号不太一样,但这是我能看到的唯一将它们保持在一行上的方法。
\documentclass[a4paper,11pt]{article}
\usepackage[noblocks]{authblk}
\title{title}%
\date{\today}%
\author{%
author 1}
\affil{author 1 university}%
\author{author 2}
\affil{author 2 university}%
\date{ ~ \\ \today }%
\begin{document}
\maketitle%
\end{document}