> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Word 匯入與匯出

> 將 Word 或 Markdown 文件轉換為 LaTeX 專案，並將專案匯出為 Word、Markdown 或 HTML。

> [!NOTE]
>
> 如果你看不到這些選項，請要求管理員開啟 [Pandoc Import and Export](https://ayakaleaf-pro.mintlify.site/zh-TW/on-premises/configuration/overleaf-toolkit/pandoc-import-and-export.md)。

## 匯入文件

此操作會從 Word 文件（`.docx`）或 Markdown 檔案（`.md`）建立新的 LaTeX 專案。專案名稱取自檔案名稱。

**1. 開啟匯入對話方塊**

在專案頁面上，按一下 **New project**。在 **Import** 下，按一下 **Word document** 或 **Markdown document**。

![New project 選單，Import 下有 Word document 和 Markdown document](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-import-menu.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=12769b856a9f5d23a1d992f7af8dab89)

New project 選單

**2. 選擇檔案**

按一下 **Select .docx file**，或將檔案拖曳到對話方塊中。若是 Markdown，按鈕為 **Select .md file**。匯入會立即開始。

![帶有 Select .docx file 按鈕的 Choose Word document 對話方塊](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-import-dialog.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=e89cecc87f88642c44458ee3a074bbd0)

選擇 Word 文件

**3. 開始編輯**

新專案開啟時會顯示訊息 **Document ready for editing**。按一下 **Start editing**。

![帶有 Start editing 按鈕的 Document ready for editing 對話方塊](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-import-ready.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=192d417ae4188a72f675f40eb8a48fee)

匯入已完成

**4. 檢查結果**

文件現在位於 `main.tex` 中，其標題會顯示在檔案大綱中。按一下 **Recompile** 查看 PDF。請檢查樣式，尤其是表格、圖片和引用，這些可能需要編輯。

![編輯器中匯入的專案，包含 main.tex、檔案大綱和編譯後的 PDF](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-import-project.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=0ef0bc49c90f25df7c5b4daf05d6acc0)

匯入的專案

### 如果匯入失敗

如果檔案無法轉換，對話方塊會顯示 **Your document couldn't be imported**。展開 **Conversion error details** 查看原因。不會建立專案。

![帶有錯誤訊息和 Conversion error details 的匯入對話方塊](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-import-error.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=fa68e3597eaa9ad25c44893845fc6c5a)

無法匯入的文件

對話方塊只接受你所選的類型。在 Word 對話方塊中選擇 `.md` 檔案會顯示 **You can only upload: .docx**。

## 匯出專案

開啟專案，然後按一下編輯器頂端的專案名稱。按一下下列其中一個選項：

| 選項 | 你會得到 |
| - | - |
| **Export as Word document (.docx)** | 以專案命名的 `.docx` 檔案 |
| **Export as Markdown (.md)** | 包含 `main.md` 的 `.zip` 檔案 |
| **Export as HTML (.html)** | 包含 `main.html` 的 `.zip` 檔案 |

下載會自動開始。轉換無法重現所有 LaTeX 格式，因此請檢查結果。

![專案名稱下的選單，包含三個 Export 選項](https://mintcdn.com/ayakaleaf-pro/Obqf0nQWnHIHMjO7/images/on-premises/word-export-menu.png?fit=max\&auto=format\&n=Obqf0nQWnHIHMjO7\&q=85\&s=46b94616369ede9fcc5091c7048df2d3)

匯出選項


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.