> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/021-can-multiple-authors-edit-the-same-file-at-the-same-time.md).

# 多个作者可以同时编辑同一个文件吗？

是的！就像 Google Docs 一样，Overleaf 支持同时协作编辑。

Overleaf 也借鉴了 [版本控制系统](https://en.wikipedia.org/wiki/Version_control)中的一些理念，例如 [git](https://git-scm.com/)：你可以保存“带标签的版本”，它们类似于提交（commit），这样即使其他人编辑了你的文档，你也始终可以返回到 [并与之比较](https://www.overleaf.com/blog/154-a-first-look-at-the-new-version-comparison-feature) 重要版本，比如“初稿”或已提交用于评分或发表的版本。你也可以 [通过 git 访问你的项目](https://www.overleaf.com/blog/195)，让离线工作更加方便。

支撑我们协作编辑的技术叫做 [操作转换](https://en.wikipedia.org/wiki/Operational_transformation)，简称 OT。你在 Overleaf 上的编辑会每隔几秒发送回服务器并保存。如果两个人或更多人在同一时间编辑文件，服务器能够在另一个更改的基础上对每个更改进行“重基”，从而使所有客户端最终都处于同一个版本。为了将其他客户端所做的更改通知给客户端，我们使用 [WebSocket](https://en.wikipedia.org/wiki/WebSocket)，这是一种允许服务器向已连接客户端推送更新的技术。


---

# 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://ayakaleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/021-can-multiple-authors-edit-the-same-file-at-the-same-time.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.
