> 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/zhi-shi-ku/085-i-have-created-a-latex-document-elsewhere-can-i-import-it-into-overleaf.md).

# 我已经在其他地方创建了一个 LaTeX 文档——我可以把它导入 Overleaf 吗？

可以的。你可以创建一个新文档，并复制粘贴现有 tex 文件中的文本。如果你的文档包含多个文件，你可以将它们压缩成一个 zip 文件，然后通过你账户上的上传选项之一上传该 .zip 文件 [项目仪表板](https://www.overleaf.com/dash) （见下图）。

![通过上传 .zip 从仪表板创建新项目](/files/b298475d1b742009a4c9d4ffe5a7be0dbf9b8c5a)

或者，你可以先创建一个空白项目（或在 Gallery 中从模板创建一个）。当项目编辑器加载后，点击文件列表顶部的“上传”按钮。然后你可以从电脑中选择要上传的文件：可以先点击“从你的电脑中选择”按钮打开文件浏览器，也可以直接将文件从 Explorer/Finder 拖放到上传器上。这个动画 GIF 展示了如何操作：

![向项目上传多个文件](/files/b6d6872ae0c0bababc3ac437f6649d40391f82cb)

你可能还需要通过点击文件列表面板上方的 Overleaf 菜单图标来更改项目的主文档。

### 我可以使用 git 推送新项目吗？

如果你使用 git，你也可以 [通过 git push 推送你的文件](https://www.overleaf.com/help/230-how-do-i-push-a-new-project-to-overleaf-via-git) 到你的 Overleaf 项目中。

### 有没有用于加载新项目的 API？

你也可以使用我们 [开发者页面](https://www.overleaf.com/devs) 上提供的选项之一，直接从你的网站导入到 Overleaf。


---

# 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/zhi-shi-ku/085-i-have-created-a-latex-document-elsewhere-can-i-import-it-into-overleaf.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.
