> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/wen-da/22-how-do-i-add-additional-author-names-and-affiliations-to-my-paper.md).

# 如何在论文中添加额外的作者姓名和单位？

添加作者单位的一种方法是使用 [`authblk` 宏包](https://ctan.org/pkg/authblk?lang=en)。如果你添加

```latex
\usepackage{authblk}
```

到导言区，你就可以用所需的信息填写作者和单位命令。例如，对于一篇有两位作者的论文，你可以写：

```latex
\documentclass{article}
\usepackage{authblk}
\title{在 \LaTeX 中的随机漫步}
\author[1]{Alison Carefully}
\author[2]{Ivor Question}
\affil[1]{数学系，X大学}
\affil[2]{生物系，Y大学}
\begin{document}
\maketitle
\section{In the beginning...}
曾经有些东西……

\section{最后}
……可能什么也没有。
\end{document}
```

&#x20;[在 Overleaf 中打开此示例](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Multiple+authors\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bauthblk%7D%0A%5Ctitle%7BA+random+walk+in+%5CLaTeX%7D%0A%5Cauthor%5B1%5D%7BAlison+Carefully%7D%0A%5Cauthor%5B2%5D%7BIvor+Question%7D%0A%5Caffil%5B1%5D%7BDepartment+of+Mathematics%2C+University+X%7D%0A%5Caffil%5B2%5D%7BDepartment+of+Biology%2C+University+Y%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Csection%7BIn+the+beginning...%7D%0AThere+was+something...%0A%0A%5Csection%7BIn+the+end%7D%0A...+there+may+be+nothing.%0A%5Cend%7Bdocument%7D)

此示例生成以下输出：

![使用 authblk 宏包在 Overleaf 中生成的示例输出](/files/7c032df98c4687a6ca9e4c500ac68bae2dbf1738)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/wen-da/22-how-do-i-add-additional-author-names-and-affiliations-to-my-paper.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
