> 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/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://ayakaleaf-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.
