> 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/zh-cn/zhi-shi-ku/009-can-i-share-files-e.g.-.bib-and-some-graphics-across-my-projects.md).

# 我可以在我的项目之间共享文件（例如 .bib 和一些图形）吗？

可以，您可以使用 **来自另一个项目** 选项，该选项位于 **添加文件** 弹出窗口中：

![从其他项目添加文件](/files/39c8d7c9925beab7d3d7eb346710e97da6b534d3)

如果您想在多个项目中（经常）使用相同的文件，那么采用以下安排可能会更方便：

1. 创建一个包含可重复使用文件的“父”项目；例如， `.bib`, `.cls`, `.sty`、图形等。
2. 在您想要重复使用文件的“子”项目中，请按以下步骤操作：

* 点击“上传文件”按钮（![UploadIcon.png](/files/b873bc48a4c147f9f71d6245052c189d4842df06)），位于文件列表面板顶部。Overleaf 会显示 **添加文件** 弹出窗口。在这里，您需要执行以下操作：

  * 选择 **来自另一个项目**;
  * 在……下 **选择一个项目**，选择包含可重复使用文件的“父”项目；
  * 在……下 **选择一个文件**，选择您需要的文件。

  ![Uploading a file from another Overleaf project](/files/8fffab597a7a8d7dd3a527521b6e2b6236c7b457).

现在，您将能够 *使用* 在您的“子”项目中使用该链接文件，但您将 *无法编辑它*。尽管“子”项目中的链接文件无法编辑，但如果您修改了父项目中原始文件的副本，它们可以更新（刷新）：

* 在“子”项目中点击链接文件；
* 选择 **刷新** 以获取更改。

**注意**：任何 `.tex` 使用 **来自另一个项目** 导入的文件都不能设置为编译“子”项目的主文件。


---

# 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/zh-cn/zhi-shi-ku/009-can-i-share-files-e.g.-.bib-and-some-graphics-across-my-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.
