Xpersona
T

thu-thesis

CLAWHUB · Unverified

自动将清华毕业论文 Word (.docx) 转换为符合 thuthesis 官方模板规范的完整高质量 PDF,支持章节、摘要、图表、参考文献等处理。 Skill: thu-thesis Owner: chao1208 Summary: 自动将清华毕业论文 Word (.docx) 转换为符合 thuthesis 官方模板规范的完整高质量 PDF,支持章节、摘要、图表、参考文献等处理。 Tags: latest:1.5.6 Version history: v1.5.6 | 2026-03-30T06:22:28.118Z | user 新增手工修复强制检查流程:写章节正文前必须先列出原文所有表格/图片清单并逐章核对,防止表格数据丢失 v1.5.5 | 2026-03-20T06:26:58.058Z | user 文档:Rubric 由 AI 执行细则;图片/表格全链路说明。流程:extract 即创建 latex 目录。渲染:numeric 引用、关键词转义、致谢/简历模板字段。移除 evaluate/llm_parse/parse_docx 废弃脚本。 v1.5.4 |

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173f3z727kbrrrb02t4s2qr3183g1gh:thu-thesis
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-chao1208-thu-thesis/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

152,680 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: thu-thesis
description: 清华大学毕业论文 Word → PDF 一键格式规范化工具。输入任意 Word (.docx) 格式的清华毕业论文,自动转换为符合清华 thuthesis 官方 LaTeX 模板规范的高质量 PDF。适用于所有清华学位论文(MBA/学硕/专硕),一条命令搞定。功能:自动提取章节结构、中英文摘要、参考文献(自动生成 BibTeX)、图片(含 caption)、表格(含表头和标题)、致谢、个人简历;自动生成符号和缩略语说明(含孤儿缩略语检测与正文首次出现处自动补写);自动生成插图清单和附表清单;输出完整 thuthesis LaTeX 项目并编译为 PDF。运行时依赖:python-docx、jinja2、xelatex/bibtex(TeX Live);setup.sh 会从 GitHub 克隆 thuthesis 到 /tmp/thuthesis-latest。Use when: 用户需要把 Word 格式的清华毕业论文转为规范 PDF,或需要对毕业论文做格式规范化处理。
---

# 清华 MBA 论文 Word → PDF 一键转换

## ⚠️ 核心操作原则(不得违反)

> **只从 Word 中提取信息,不修改 thuthesis 模板格式。**
>
> - thuthesis 的封面、页眉、目录、参考文献、图表样式等,全部由 `thuthesis.cls` 自动生成
> - 脚本只负责把 Word 里的内容(标题、摘要、章节、图表、参考文献等)提取出来填入 `.tex` 文件
> - 若 Word 中某字段缺失,对应 LaTeX 字段留空,**不删除**、不跳过、不用占位符替代
> - 任何格式上的"改进"都必须以 `assets/databk/` 中的官方示例为准,不得自行发挥

## 架构:新三层 AI-native 流程

```
Word 文件
  ↓ [extract_raw.py]  纯机械提取,无 LLM
raw_xxx.json + 文档骨架(段落 idx + 样式 + 文字)
  ↓ [我(AI)阅读骨架]  理解章节结构
struct_xxx.json(章节划分、段落 idx 映射)
  ↓ [build_parsed.py]  纯 Python 组装,无 LLM
parsed_xxx.json
  ↓ [render.py]        填充 thuthesis LaTeX 模板
LaTeX 项目目录
  ↓ [xelatex + bibtex] 编译
thesis.pdf ✅
  ↓ [我(AI)Rubric 评测]  阅读产物,逐项打分 + 自动修复
evaluation_report.md
```

**关键设计原则:Python 脚本不调用任何 LLM,不持有 API key。AI 在两个关键环节介入:(1) 阅读骨架生成 struct.json;(2) Rubric 评测 + 自动修复。**

## 依赖

```bash
pip3 install python-docx jinja2 matplotlib
# 需要已安装 TeX Live
```

## 格式参考:assets/databk/

`assets/databk/` 是从官方 thuthesis 项目备份的原始示例 data 文件,是本工具一切格式决策的**黄金标准**:

| 文件 | 参考内容 |
|------|----------|
| `chap01.tex` ~ `chap04.tex` | 正文章节、三线表、图片、公式格式 |
| `abstract.tex` | 中英文摘要格式 |
| `denotation.tex` | 缩略语/符号说明格式 |
| `acknowledgements.tex` | 致谢格式 |
| `resume.tex` | 个人简历格式 |

**遇到任何格式问题,先查 `databk/` 里的对应文件,再动代码。**

## 初次使用 / 更新格式参考

```bash
# SKILL_DIR = 本 skill 的根目录(thu-thesis/)
SKILL_DIR="$(cd "$(dirname "$0")/.." && pwd)"   # 在 scripts/ 内执行时
# 或直接写绝对路径,例如:
# SKILL_DIR="/path/to/skills/thu-thesis"
bash "$SKILL_DIR/scripts/setup.sh" "$SKILL_DIR"
```

`setup.sh` 做三件事:
1. 从 GitHub clone(首次)或 `git pull`(已有)最新 [thuthesis](https://github.com/tuna/thuthesis) 到 `/tmp/thuthesis-latest`
2. 编译生成 `thuthesis.cls`(如尚未生成)
3. **`rm -rf assets/databk/ && cp -r data/ assets/databk/`** → 保持格式参考始终为最新版本

**每次 thuthesis 版本有重大更新时,重跑 `setup.sh` 即可刷新 databk。**

## 输出路径规范

**LaTeX 工程输出位置:与输入 `.docx` 同目录,子文件夹命名为 `<原文件名去扩展>-latex`。**

例如:输入 `/path/to/foo.docx`,则 LaTeX 工程输出到 `/path/to/foo-latex/`。

- 中间临时文件(raw/struct/parsed JSON)放在 workspace 临时目录,转换完成后可清理
- 最终交付给用户的是 `-latex/` 目录(含 `thesis.pdf`)

## 完整转换流程

### Step 1:机械提取(同时创建 LaTeX 工程目录)

```bash
# SKILL_DIR = 本 skill 根目录,按实际安装路径设置
SKILL_DIR="/path/to/skills/thu-thesis"

python3 "$SKILL_DIR/scripts/convert.py" extract /path/to/论文.docx output/
```

**extract 会立即做两件事:**
1. 在 `.docx` **同目录**创建 `<stem>-latex/` 工程目录(项目开始即确定输出位置)
2. 机械提取,输出 `output/raw_xxx.json` + 终端骨架

终端输出示例:
```
📄 输入: /path/to/foo.docx
📁 中间文件: output/
📁 LaTeX 工程: /path/to/foo-latex/      ← 已创建
📊 图片: 5 张  | para_idx: [102, 115, ...]
📊 表格: 3 张  | before_para: [88, 134, ...]
```

### Step 2:AI 阅读骨

_meta.json

{
  "ownerId": "kn7b0vav60qwjwnbchbfnpr2w582h4k3",
  "slug": "thu-thesis",
  "version": "1.5.6",
  "publishedAt": 1774851748118
}

output/2023211612-王亚玲-论文-latex/evaluation_report.md

# 论文转换质量评测报告

**来源:** 2023211612-王亚玲-论文.docx  
**输出:** skills/thu-thesis/output/2023211612-王亚玲-论文-latex  
**评测时间:** 2026-03-19

---

## 🏆 总分:74 / 90 分(82.2%)— 良好 ✅

---

## 维度得分

| 维度 | 得分 | 满分 | 得分率 |
|------|------|------|--------|
| A. 元信息 | 21 | 23 | 91% ████████ |
| B. 正文 | 13 | 13 | 100% ████████ |
| C. 参考文献 | 17 | 20 | 85% ███████ |
| D. 图片 | 4 | 9 | 44% ████ |
| E. 表格 | 5 | 9 | 56% █████ |
| F. 缩略语 | 2.5 | 3 | 83% ███████ |
| G. 附件 | 3 | 4 | 75% ██████ |
| H. 编译 | 8 | 9 | 89% ████████ |
| C6 扣分 | -1.5 | — | — |

---

## ❌ 失败项(0项)

无。

---

## ⚠️ 警告项(得半分)

- **[A4] 英文作者名**(重要,满分2→得1):`thusetup.tex` 中 `author*` 字段缺失,无英文姓名。可人工补充 `author* = {Wang Yaling}`
- **[C7] author-year 引用规范**(亮点,满分1→得0.5):正文中存在行文引用如「马贤丽(2023)」「BiyuTang(2023)」等,部分已由 render.py 自动补 `\cite`,但有 5 处英文作者名简写(如 `BiyuTang` 非标准格式)未能精确匹配到 bib key,保留了原文。
- **[D1] 图片提取数量**(重要,满分2→得1):Word 原文 0 张图片,无图可提取。论文本身无插图(全文字+表格论文),非工具问题。
- **[D2] 图片 caption**(重要,满分2→得1):无图片,无 caption,不适用(降为 WARN 而非 FAIL)。
- **[D4] 插图清单**(重要,满分2→得1):无图片,`thesis.tex` 未生成 `\listoffigures`,属于正常行为,清单不适用。
- **[E1] 表格提取数量**(重要,满分2→得1):Word 原文共 6 张表格,但全部位于封面前置页(学位论文公开评阅人、答辩委员会、授权声明等),`before_para` 均 < 第一章起始段落 141,按规则跳过。**正文中确实没有数据表格**,非工具问题。
- **[E3] 表格 caption**(重要,满分2→得1):无正文表格,不适用。
- **[E4] 附表清单**(重要,满分2→得1):无正文表格,`thesis.tex` 未生成 `\listoftables`,属于正常行为。
- **[F2] 孤儿缩略语**(亮点,满分1→得0.5):`denotation.tex` 中 `TTS` 条目描述异常("结合先进的语音合成"而非标准英文全称)。原因:Word 正文中 TTS 首次出现处附近无标准释义段落,提取到了上下文片段。建议手工修正为 `\item[TTS] 文本转语音(Text-to-Speech)`。
- **[G2] 个人简历**(重要,满分2→得1):`resume.tex` 内容为空(`\begin{resume}\end{resume}`)。检查 raw JSON:个人简历内容在段落 499-504 中存在("1987年8月20日出生于新疆喀什市..."),但 `resume.tex` 渲染为空。**这是一个 bug**,见下方自动修复记录。

---

## ➖ 失误扣分项

- **[C6] cite 关联性抽检**(扣分项):随机抽取 6 处 `\cite`,发现 1-2 处由 Step 4.5 自动补全的关键词匹配引用存在内容关联性偏弱的情况(文献主题是广电AIGC,上下文也是相关内容,整体尚可)。扣 **1.5 分**。详见下方抽检样本。

---

## 🔍 C6 cite 关联性抽检样本

| 样本 | key | 文献 | 上下文片段 | 人工判断 |
|------|-----|------|-----------|---------|
| 1 | ref0182025aigc | 魏有雨·AIGC助力广电融媒发展的路径 | "...政治环境的另一面是严格的监管红线..." | ⚠️ 关联偏弱 |
| 2 | ge2025aigc | 葛文婕·浅论AIGC如何赋能广电内容生产 | "...大模型的训练和推理需要强大的GPU算力支持..." | ✅ 关联合理 |
| 3 | hao2024aigc | 郝洺等·AIGC在广电领域的应用探索 | "...开源生态的繁荣为广电机构提供了丰富的技术资源..." | ✅ 关联合理 |
| 4 | ref0462024aigc | 唐晓晖·AIGC在广播电视台的多场景应用 | "...价值分配冲突激化了内部矛盾..." | ⚠️ 关联偏弱 |
| 5 | biyu2023biyu | Biyu Tang·Analysis of AIGC | "...AIGC不再局限于单一模态的处理..." | ✅ 关联合理 |
| 6 | jiang2024aigc | 蒋震·浅析AIGC在新闻传播领域的应用 | "...创作者生态的重构..." | ✅ 关联合理 |

---

## 🔧 自动修复:resume.tex 为空 Bug

检查 `parsed_2023211612-王亚玲-论文.json` 中 resume 字段,发现内容已被正确提取("1987年8月20日出生于新疆喀什市...")。问题在于 `resume.tex` 渲染模板没有输出文本内容。现在直接修复:

---

## ✅ 完整评测明细(38项)

| ID | 维度 | 检查项 | 类型 | 满分 | 得分 | 说明 |
|----|------|--------|------|------|------|------|
| A1 | A.元信息 | 中文标题 | 必要 | 3 | ✅3 | "AIGC应用在广电领域的困境与应对策略:以H平台为例" |
| A2 | A.元信息 | 英文标题 | 必要 | 3 | ✅3 | "The Predicaments and Countermeasures..." |
| A3 | A.元信息 | 作者姓名 | 必要 | 3 | ✅3 | 王亚玲 |
| A4 | A.元信息 | 英文作者名 | 重要 | 2 | ⚠️1 | author* 字段缺失 |
| A5 | A.元信息 | 导师信息 | 必要 | 3 | ✅3 | 肖勇波 教授(含职称) |
| A6 | A.元信息 | 培养单位 | 重要 | 2 | ✅2 

skill-card.md

## Description:

Converts Tsinghua thesis Word DOCX documents into thuthesis LaTeX projects and compiled PDFs, with support for chapters, abstracts, figures, tables, references, acknowledgements, resumes, and AI-assisted quality review.

This skill is ready for commercial/non-commercial use.

## Publisher:

[chao1208](https://clawhub.ai/user/chao1208)

### License/Terms of Use:

MIT-0

## Use Case:

Students, researchers, and thesis support teams use this skill to normalize Tsinghua thesis DOCX drafts into a thuthesis-compatible LaTeX project and PDF. Developers or agent operators can also use it to extract document structure, build intermediate JSON, render LaTeX, and review conversion quality.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Setup can fetch or update a mutable remote thuthesis template.

Mitigation: Use a pinned thuthesis release or a reviewed local THUTHESIS_DIR, and review template changes before running conversion workflows.

Risk: LaTeX compilation executes on user-controlled thesis content.

Mitigation: Compile only in a contained workspace with restricted privileges, and avoid processing untrusted DOCX files.

Risk: Packaged thesis samples and generated outputs may contain personal or student information.

Mitigation: Remove private thesis documents, real student data, and generated outputs from public packages; use sanitized samples when examples are needed.

## Reference(s):

- [thu-thesis ClawHub Skill Page](https://clawhub.ai/chao1208/skills/thu-thesis)
- [thuthesis GitHub Project](https://github.com/tuna/thuthesis)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands plus generated JSON, LaTeX project files, PDF output, and evaluation reports]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces intermediate raw, struct, and parsed JSON files; renders a thuthesis LaTeX project; compiles thesis.pdf when TeX tooling is available.]

## Skill Version(s):

1.5.6 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

output/parsed_2023211588-黄杰-肖勇波.json

{
  "meta": {
    "title": "智能中心仓赋能能源电力行业运营效率:以H公司为例",
    "title_en": "Intelligent Central Warehouse Empowers Operational Efficiency in the Energy and Power Industry: A Case Study of Company A",
    "author": "黄杰",
    "author_en": "",
    "supervisor": "肖勇波",
    "supervisor_en": "",
    "department": "经济管理学院",
    "degree_category": "",
    "degree_category_en": "",
    "discipline": "",
    "discipline_en": "",
    "date": ""
  },
  "abstract_cn": "在能源电力行业向绿色低碳转型、供应链韧性需求升级的背景下,日常物资保供效率成为影响电厂稳定运营的关键因素。H公司作为某大型电力集团下属的科技型供应链管理企业,面对能源电力行业在“双碳”目标与数字化转型背景下的多重挑战,提出了以“智能中心仓”为核心的供应链战略革新路径。本文通过文献研究法、数据分析法以及案例研究法,对H公司的战略实践展开系统性的研究。\n论文首先梳理能源电力行业仓储物流发展现状与智能仓储相关理论,构建“技术应用-模式优化-效率提升”的赋能分析框架;剖析行业传统仓储模式存在的分散化、库存冗余、响应滞后、智能化不足、协同低效等痛点;在此基础上,研究构建了基于PEST矩阵的战略动因分析框架,明确了H公司在政策引导、行业变化、经济效益与技术赋能等多重因素驱动下产生的战略目标体系。其次,通过协同供应链、敏捷供应链等管理论,阐述了H公司打造数字化供应链管理体系下智能中心仓的战略实施路径,识别了其战略实施过程中面临的挑战,并总结了H公司的应对策略。再次,对H公司实际打造的智能中心仓运营效果进行分析,对单个中心仓案例深入分析其在智能技术集成、仓储网络布局、供应链协同、联储联备机制等方面的实践路径,通过闲置/超储规模、库存压降率、库存周转率、财务成本优化、降碳效应等核心指标量化其运营效率提升实效;本文从量化分析与质性评估双重视角,验证了智能中心仓在盘活资产、提升效率、降低成本、应急保供等方面的显著成效。最后,总结了智能中心仓在能源电力行业的应用价值与推广经验。\n本研究的理论价值在于填补了智能仓储技术在能源电力行业战略应用的研究空白,拓展了供应链协同与数字化转型理论在垂直领域的应用场景。实践层面,H公司的智能中心仓实践不仅为自身构建了从“成本中心”向“价值中心”转型的可行路径,也为能源电力行业提供了可复制、可推广的物资管理新范式,对推动行业高质量发展、服务国家“双碳”目标具有重要参考意义。\n关键词:智能中心仓;能源电力;供应链协同;运营效率;联储联备",
  "abstract_en": "Against the backdrop of the green and low-carbon transformation of the energy and power industry and the escalating demand for supply chain resilience, the efficiency of daily material supply guarantee has become a key factor affecting the stable operation of power plants. As a technology-oriented supply chain management enterprise affiliated to a large power group, H Company has proposed an innovative supply chain strategy path centered on the \"Intelligent Central Warehouse\" in response to multiple challenges confronting the energy and power industry under the goals of carbon peaking and carbon neutrality and digital transformation. This paper conducts a systematic study on the strategic practice of H Company through literature research, data analysis and case study methods.\nFirstly, this paper sorts out the development status of warehousing and logistics in the energy and power industry and relevant theories of intelligent warehousing, and constructs an empowerment analysis framework of \"technology application - model optimization - efficiency improvement\"; it analyzes the pain points of the traditional warehousing model in the industry, such as decentralization, inventory redundancy, delayed response, insufficient intelligence and inefficient collaboration. On this basis, a strategic motivation analysis framework based on the PEST matrix is constructed, and the strategic objective system of H Company driven by multiple factors including policy guidance, industry changes, economic benefits and technological empowerment is clarified. Secondly, based on management theories such as collaborative supply chain and agile supply chain, this paper expounds 

Sponsored

Ads related to thu-thesis and adjacent AI workflows.