overleaf设置多个作者
时间: 2024-01-30 09:03:22 浏览: 1705
以下是在Overleaf中设置多个作者的方法:
```latex
\documentclass{article}
\usepackage{authblk}
\title{Title}
\author[1]{Author 1}
\author[2]{Author 2}
\author[3]{Author 3}
\author[4]{Author 4}
\affil[1]{Affiliation 1}
\affil[2]{Affiliation 2}
\affil[3]{Affiliation 3}
\affil[4]{Affiliation 4}
\renewcommand\Authands{ and }
\begin{document}
\maketitle
\end{document}
```
在这个例子中,我们使用了`authblk`宏包来设置多个作者。`\author`命令用于设置作者的姓名,方括号中的数字用于标识不同作者。`\affil`命令用于设置作者的机构,方括号中的数字与`\author`命令中的数字对应。`\renewcommand\Authands{ and }`命令用于将默认的“and”改为“和”。
如果你想要将四个作者排成2*4的八作者的排版方式,可以使用`\makebox`命令来控制每个作者的宽度。例如:
```latex
\documentclass{article}
\usepackage{authblk}
\title{Title}
\author[1]{\makebox[0.5\linewidth]{Author 1}\quad\makebox[0.5\linewidth]{Author 2}}
\author[3]{\makebox[0.5\linewidth]{Author 3}\quad\makebox[0.5\linewidth]{Author 4}}
\affil[1]{Affiliation 1}
\affil[3]{Affiliation 3}
\renewcommand\Authands{ and }
\begin{document}
\maketitle
\end{document}
```
在这个例子中,我们使用了`\makebox`命令来将每个作者的宽度限制为页面宽度的一半。`\quad`命令用于在两个作者之间添加一些空格。
阅读全文
相关推荐
















