我正在使用命令创建我正在处理的文章的首页\maketitle
。到目前为止,我拥有以下内容:
\documentclass[a4paper,11pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{latexsym}
\usepackage{blindtext}
\usepackage{authblk}
\title{\textbf{Some title}}
\author{John Doe \\ University of Arizona \\ and
\and John Doe \\ University of Arizona \\ and
\and John Doe \\ University of Arizona}
\begin{document}
\maketitle
\end{document}
但是 Latex 在作者和大学之间以及作者之间留了很多空白。我想减少这些空白,但我不知道如何更改它。
答案1
手动添加一些负空间:
\documentclass[a4paper,11pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{latexsym}
\usepackage{blindtext}
\usepackage{authblk}
\title{\textbf{Some title}}
\author{John Doe \\\vspace{-1em} University of Arizona \\
\and John Doe \\\vspace{-1em} University of Arizona \\
\and John Doe \\\vspace{-1em} University of Arizona}
\begin{document}
\maketitle
\end{document}
答案2
另一种方法是使用authblk
,它有一个针对此的设置(\affilsep
)
\documentclass{article}
\usepackage{authblk}
\title{A Multiauthor Work}
\author{John Doe\\University of Life\and
Richard Roe\\School of Hard Knocks\and
Zoe Zoe\\Insitution of Institutional Thought}
\setlength{\affilsep}{2pt}%<- this affects spacing
\renewcommand{\Affilfont}{\itshape}%<-or whatever
\begin{document}
\maketitle
\end{document}