> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/managing-projects-and-files/adding-files-to-a-project/sharing-files-across-projects.md).

# Sharing files across projects

You may share files across projects using the **From Another Project** option located within the **Add Files** pop-up window:

<figure><img src="/files/xJLpCtTYlS5vqU4fcP1K" alt="Adding a file from another project" width="563"><figcaption></figcaption></figure>

If you'd like to (regularly) use the same files across multiple projects then it may be convenient to use the following arrangement:

1. Create a “parent” project containing your reusable files, e.g., `.bib`, `.cls`, `.sty`, graphics, etc.
2. Within a “child” project, in which you want to reuse a file, follow this procedure:

* Click the **Upload files** button at the top of the file list panel, or go to the **File menu** and select **Upload file**. Overleaf displays the **Add Files** pop-up window. Here, you need to do the following:
  * Select **From Another Project.**
  * Under **Select a Project**, choose the “parent” project containing the reusable files.
  * Under **Select a File**, choose the file that you need.

<figure><img src="/files/YBiQKiuiChT3Uq4JgA6M" alt=""><figcaption></figcaption></figure>

You will now be able to *use* the linked file within your “child” project, but you will *not be able to edit it*. Although linked files in “child” projects cannot be edited, they can be updated (refreshed) if you’ve modified the original copy of the file(s) in the parent project:

* Click on the linked file in the “child” project.
* Select **Refresh** to pull in the changes.

{% hint style="info" %}
Any `.tex` files imported using **From Another Project** cannot be set as the main file for compiling the “child” project.
{% endhint %}


---

# 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://docs.overleaf.com/managing-projects-and-files/adding-files-to-a-project/sharing-files-across-projects.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.
