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

# Jeg har oprettet et LaTeX-dokument et andet sted — kan jeg importere det til Overleaf?

Ja, det kan du. Du kan oprette et nyt dokument og kopiere og indsætte teksten fra din eksisterende tex-fil. Hvis dit dokument indeholder flere filer, kan du pakke dem i en zip-fil og uploade .zip-filen ved hjælp af en af uploadmulighederne på din [projektdashboard](https://www.overleaf.com/dash) (se billedet nedenfor).

![Opret nyt projekt fra Dashboard ved at uploade en .zip-fil](/files/c2724cd77c87e2ee14a9b90bad75248cbddc3c8d)

Alternativt kan du først oprette et tomt projekt (eller oprette et ud fra en skabelon i Galleriet). Når projekteditoren indlæses, skal du klikke på knappen “Upload” øverst i fillisten. Derefter kan du vælge de filer, du vil uploade fra din computer, enten ved først at klikke på knappen "Vælg fra din computer" for at åbne en filbrowser eller blot trække og slippe filer fra din Explorer/Finder over på uploaderen. Denne animerede GIF viser, hvordan det kan gøres:

![Upload af flere filer til et projekt](/files/612de1e27477431884cb40654fc3e183f034ae7a)

Du vil sandsynligvis også ville ændre projektets hoveddokument ved at klikke på Overleaf-menuikonet over filoversigtspanelet.

### Kan jeg bruge git til at pushe et nyt projekt?

Hvis du bruger git, kan du også [git-pushe dine filer](https://www.overleaf.com/help/230-how-do-i-push-a-new-project-to-overleaf-via-git) til dit Overleaf-projekt.

### Findes der et API til at indlæse nye projekter?

Du kan også bruge en af de muligheder, der er angivet på vores [udviklerside](https://www.overleaf.com/devs) til at importere direkte fra din hjemmeside til 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/da/vidensbase/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.
