專業 DOCX 市場報告
精選

專業 DOCX 市場報告

建立並儲存精美的 Word 市場研究報告,包含封面頁、自動目錄、樣式化章節、表格、結論與頁碼。

1 技能 2 安裝次數
docxmarket-researchbusiness-reportdocument-generation
今天更新

安裝

執行此指令以安裝此技能包中的所有技能:

npx skillstore add @professional-docx-market-report

CLI 會自動偵測 Codex 與 Claude Code 資料夾;如果兩者都可用,會同時安裝。

總覽

使用指南

由 AI 強化

快速開始

  1. 1
    安裝並 Import Plugin

    確保 plugin 已安裝在你的專案中。Import 主要函式。

    const { createMarketReport } = require('professional-docx-market-report');
  2. 2
    定義你的報告資料

    建立一個包含 title、author、date、sections 與 conclusion 的物件。每個 section 都可以包含 tables。

    const reportData = {
      title: "Global EV Market Report 2025",
      author: "Research Team",
      date: "January 2025",
      sections: [
        {
          heading: "Executive Summary",
          content: "The electric vehicle market is expanding rapidly.",
          tables: [
            { rows: [
              { cells: ["Year", "Sales", "Growth"] },
              { cells: ["2023", "10M", "25%"] },
              { cells: ["2024", "13M", "30%"] }
            ]}
          ]
        }
      ],
      conclusion: "The market is expected to continue its upward trajectory."
    };
  3. 3
    產生報告

    使用你的資料呼叫 createMarketReport function。它會回傳 DOCX file 的 Buffer。

    const reportBuffer = await createMarketReport(reportData);
  4. 4
    儲存文件

    使用 Node.js fs module 將 buffer 寫入檔案。

    const fs = require('fs');
    fs.writeFileSync('market_report.docx', reportBuffer);

詳細指南

# 使用指南

## 概覽

專業 DOCX 市場報告是一款功能強大的 plugin,可自動建立精美的 Word 市場研究報告。它會產生一份完整文件,包含專業封面頁、自動產生的目錄、結構清晰的章節、格式化表格、結論與頁碼 — 全部都可直接用於簡報或進一步編輯。

## 主要功能

- **封面頁**:自動產生包含報告標題、副標題、日期與作者的封面頁。
- **目錄 (TOC)**:插入可自動更新的 TOC,反映所有標題。
- **樣式化章節**:套用一致的標題樣式(Heading 1、Heading 2 等),呈現專業外觀。
- **表格**:建立乾淨且具樣式的表格,用於資料呈現。
- **結論**:新增包含摘要文字的結論章節。
- **頁碼**:在頁尾包含頁碼。

## 使用方式

1. **安裝 Plugin**
   - 確保你可以存取 `docx-official` skill(已隨 plugin 包含)。
   - 在你的環境中載入 plugin(例如透過 package manager 或直接 import)。

2. **基本報告產生**
   使用必要參數呼叫主要函式:
   - `title` (string):報告標題(例如 "Global EV Market Analysis 2025")
   - `author` (string):作者名稱
   - `date` (string):日期字串(例如 "January 2025")
   - `sections` (array):章節物件清單,每個物件包含:
       - `heading`:章節標題
       - `content`:段落文字(支援類似 markdown 的格式,例如 **bold**)
       - `tables`(選用):表格陣列,每個表格都是一個物件,包含 `rows`(列物件陣列,每列有 `cells` 陣列)。
   - `conclusion` (string):結論章節的文字。

   範例:
   ```javascript
   const report = await createMarketReport({
     title: "Q4 Market Trends",
     author: "Jane Doe",
     date: "October 2024",
     sections: [{
       heading: "Market Overview",
       content: "The market grew by **12%** this quarter.",
       tables: [
         {
           rows: [
             { cells: ["Region", "Revenue", "Growth"] },
             { cells: ["North America", "$5B", "10%"] },
             { cells: ["Europe", "$3B", "8%"] }
           ]
         }
       ]
     }],
     conclusion: "Overall, the market shows strong momentum."
   });
   // report is a buffer or file path to the generated .docx
   ```

3. **自訂**
   你也可以傳入選用參數來修改輸出:
   - `filename` (string):自訂輸出檔案名稱。
   - `coverPageImage` (string):封面頁圖片的路徑。
   - `tocSettings` (object):控制 TOC 深度、格式等。

4. **儲存報告**
   輸出是一個 DOCX 檔案。使用標準 file I/O 儲存:
   ```javascript
   const fs = require('fs');
   fs.writeFileSync('market_report.docx', report);
   ```

## 最佳實務

- 保持章節精簡。每個章節對應一個主要標題。
- 使用章節內的 `tables` 陣列呈現比較資料。
- 在定稿前,先使用 placeholder data 產生範例來測試你的報告。
- 對於大型報告,建議將資料拆分到多個章節中。

## 疑難排解

- **TOC 沒有更新?** 在 Word 中,右鍵點選 TOC 並選擇 "Update Field"。
- **樣式化標題沒有出現?** 確保你使用正確的標題層級(章節標題使用 Heading 1)。
- **表格未對齊?** 檢查每列是否都有相同數量的儲存格。

## 結論

專業 DOCX 市場報告能簡化專業市場研究文件的建立流程,節省時間並確保一致性。透過其簡單的 API,你可以用程式化方式產生精美報告,並準備好供利害關係人審閱或發布。

技能

1