跳轉到主要內容
將 Mendeley 文獻庫以 .bib 檔案的形式匯入專案,然後像平常一樣從中引用。這個檔案是一份副本:只有在你點擊 Refresh 時才會變更。
如果你在 Account settings 中看不到 Mendeley 選項,請管理員開啟 Mendeley 整合。
此操作只需做一次。
1

開啟帳號設定

點擊 Account,然後點擊 Account settings。在 Reference managers 下找到 Mendeley,點擊 Link to Mendeley。
帳號設定中的 Mendeley 區段,帶有 Link to Mendeley 按鈕

帳號設定中的 Mendeley

編輯器 Integrations 面板中的 Mendeley 卡片會在同一分頁中帶你到相同位置。
帶有 Mendeley 卡片的 Integrations 面板

Integrations 面板

2

在 Mendeley 上授權

Mendeley 頁面會開啟。如有提示請先登入,然後授權該應用程式。
3

檢查連結

你會回到帳號設定。一則綠色訊息顯示 Reference manager linked,按鈕變為 Unlink。
帳號設定中的 Mendeley 區段,帶有綠色訊息與 Unlink 按鈕

你的 Mendeley 帳號已連結

如果你沒有在 Mendeley 上允許存取,同一區段會顯示 Sorry, something went wrong。點擊 Link to Mendeley 重試。

從文獻庫建立檔案

1

開啟 Add files 對話框

開啟一個專案。在檔案樹中點擊 New file,然後點擊 From Mendeley。只有在帳號連結後才會出現此項目。
2

選擇檔案名稱與文獻庫

File Name 預設為 mendeley.bib。請保留 .bib 副檔名:否則你將看不到預覽,\cite 與 \bibliography 也都找不到其中的條目。Library 預設為 My Library,同時也會列出你的群組。一個檔案對應一個文獻庫。
Add files 對話框的 From Mendeley 分頁,顯示 mendeley.bib 與 My Library

來自個人文獻庫的檔案

3

點擊 Create

對話框關閉,檔案出現在檔案樹中。點擊它:會顯示匯入時間及其條目。你無法在編輯器中編輯它。
在編輯器中開啟的已匯入 mendeley.bib,帶有 Refresh 按鈕

匯入的檔案

如果點擊 Create 似乎沒有反應,表示已有同名檔案。請換一個名稱。

匯入群組

再操作一次,使用另一個檔案名稱,並在 Library 下選擇該群組。一個專案可以有多個這樣的檔案。
From Mendeley 分頁,檔案名稱為 journal-club.bib,文獻庫為 Journal club

來自群組的檔案

從檔案中引用

1

開始引用

在 .tex 檔案中輸入 \cite{。清單會顯示專案中所有 .bib 檔案的條目。點擊其中一筆即可插入。
編輯器在引用下方列出引用鍵

已匯入檔案的條目

2

或依標題或作者搜尋

點擊清單下方的 Search,或在大括號內按 Ctrl+Space。輸入內容進行篩選,點擊一或多筆條目,然後點擊 Insert。
Search the .bib files in this project 對話框,已選取一筆條目

文獻搜尋

3

加入參考文獻列表

在 \end{document} 之前加入以下幾行,使用不含 .bib 的檔案名稱。若有多個檔案,請以逗號分隔名稱。
點擊 Recompile。參考文獻會出現在 PDF 中。
帶有引用與參考文獻列表的編輯器,以及包含一筆參考文獻的已編譯 PDF

編譯後的參考文獻

匯入的檔案不會出現在 Settings 的 References、Main bibliography file for this project 中,因此如果專案沒有其他 .bib 檔案,該清單會保持空白。你仍然可以從中引用。
專案設定的 References 分頁,清單空白且已停用

清單空白是正常的

重新整理檔案

Mendeley 文獻庫中的變更不會自動進入專案。
1

開啟檔案

在檔案樹中點擊已匯入的檔案。
2

點擊 Refresh

整個檔案會從你建立時選擇的文獻庫重新匯入:新條目出現,已刪除的條目消失。頂部的時間會隨之改變。
重新整理後的 mendeley.bib,帶有一筆新條目與新的匯入時間

重新整理後的檔案

3

重新編譯

點擊 Recompile 更新 PDF。
每個檔案各自重新整理:請另外重新整理群組的檔案。關於在共用專案中誰可以重新整理檔案,請參閱管理員說明。 在 Account settings 的 Mendeley 下點擊 Unlink,然後在對話框中再次點擊 Unlink。按鈕會重新顯示 Link to Mendeley。
Unlink Mendeley Account 對話框

取消連結帳號

你匯入的檔案會保留在專案中,並且仍可編譯。From Mendeley 會從 Add files 對話框中消失,在你重新連結帳號之前,Refresh 會顯示錯誤。
已匯入的檔案顯示錯誤 Could not load references from Mendeley, please re-link your account and try again

未連結帳號時重新整理

重新連結後,Refresh 可在相同的檔案上正常運作。

如果發生問題

在 Add files 對話框中出現 Could not load references from Mendeley, please re-link your account and try again 或 There was an error accessing your Mendeley data:Overleaf 無法再讀取你的文獻庫,例如你在 Mendeley 上撤銷了它的存取權。在 Account settings 中點擊 Unlink,然後點擊 Link to Mendeley。在此之前,Create 也會失敗,並顯示 The project that contains this file is not shared with you,即使是在你自己的專案中。
From Mendeley 分頁,顯示兩則錯誤訊息

Overleaf 無法再讀取你的文獻庫

點擊 Refresh 時出現 The remote service produced an error:對 Mendeley 的請求失敗。檔案內容保持不變。請稍後再次點擊 Refresh。
最後修改於 2026年11月20日