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

# Criei um documento LaTeX noutro lugar—posso importá-lo para o Overleaf?

Sim, pode. Pode criar um novo documento e copiar e colar o texto do seu ficheiro tex existente. Se o seu documento contiver vários ficheiros, pode compactá-los num .zip e carregar o ficheiro .zip usando uma das opções de carregamento no seu [painel de projetos](https://www.overleaf.com/dash) (veja a imagem abaixo).

![Criar novo projeto a partir do painel ao carregar um .zip](/files/8c66d58198b8d8527e4e93d793db802258851152)

Em alternativa, pode primeiro criar um projeto em branco (ou criar um a partir de um modelo na Galeria). Quando o editor do projeto carregar, clique no botão “Carregar” no topo da lista de ficheiros. Depois, pode selecionar os ficheiros que pretende carregar a partir do seu computador, quer clicando primeiro no botão "Selecionar do seu computador" para abrir um explorador de ficheiros, quer simplesmente arrastando e largando ficheiros do seu Explorador/Finder para o carregador. Este GIF animado mostra como isso pode ser feito:

![Carregar vários ficheiros para um projeto](/files/8b70aea18d4158d4322a6ef0b448d78d405dd70f)

Provavelmente também vai querer alterar o documento principal do projeto, clicando no ícone do menu do Overleaf acima do painel da lista de ficheiros.

### Posso usar o git para fazer push de um novo projeto?

Se usar o git, também pode [fazer git push dos seus ficheiros](https://www.overleaf.com/help/230-how-do-i-push-a-new-project-to-overleaf-via-git) para o seu projeto Overleaf.

### Existe uma API para carregar novos projetos?

Também pode usar uma das opções indicadas na nossa [página de programadores](https://www.overleaf.com/devs) para importar diretamente do seu site para o 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/overleaf-learn-latex-pt/base-de-conhecimento/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.
