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

# I have created a LaTeX document elsewhere—can I import it into Overleaf?

Yes you can. You can create a new document and copy & paste the text from your existing tex file. If your document contains multiple files, you can zip them up, and upload the .zip file using one of the upload options on your [projects dashboard](https://www.overleaf.com/dash) (see picture below).

![Create new project from Dashboard by uploading a .zip](/files/JMC3tQjVciv4xfLgSh1S)

Alternatively, you can first create a blank project (or create one from a template in the Gallery). When the project editor loads, click on the “Upload” button at the top of the file list. You can then select the files you want to upload from your computer, either by first clicking on the "Select from your computer" button to open a file browser, or simply drag-and-drop files from your Explorer/Finder onto the uploader. This animated GIF shows how this can be done:

![Uploading multiple files to a project](/files/lyNjD3trNvVF5AFbYYMy)

You will probably also want to change the project's main document, by clicking on the Overleaf menu icon above the file list panel.

### Can I use git to push a new project?

If you use git, you can also [git push your files](https://www.overleaf.com/help/230-how-do-i-push-a-new-project-to-overleaf-via-git) to your Overleaf project.

### Is there an API for loading new projects?

You can also use one of the options given on our [developers page](https://www.overleaf.com/devs) to import directly from your website into 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/knowledge-base/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.
