一键导入
pandoc-citeproc-export
LaTeX 工程通过 pandoc + citeproc 导出为 Word (.docx),保留 GB/T 7714-2015 引用格式并区分中英文。触发词:/pandoc-export、pandoc导出、LaTeX转Word、导出docx引用
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
LaTeX 工程通过 pandoc + citeproc 导出为 Word (.docx),保留 GB/T 7714-2015 引用格式并区分中英文。触发词:/pandoc-export、pandoc导出、LaTeX转Word、导出docx引用
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Technology scouting and evaluation for tools, frameworks, libraries, and technical approaches. Use when users need to evaluate technology options, compare frameworks, assess technical feasibility, scout emerging technologies, or make build-vs-buy decisions. Produces structured comparison matrices with objective criteria scoring.
使用 Semantic Scholar API 检索和验证学术论文。支持并发多关键词搜索、批量 ID/DOI 查询、引用分析、批量补全摘要、统一 Markdown 导出。覆盖 2.14 亿+ 学术论文,无需 API Key 即可使用。触发词:论文检索、论文验证、Semantic Scholar、S2 搜索、查论文、补全摘要、导出MD
中文/英文写作风格迁移与错误记忆工作流。适用于论文、学位论文、报告等场景,提供 style profile、error log、长期记忆与多智能体写作闭环。
Use when user sends /skill复盘 or /迭代清单, or asks to review skill usage and iteration suggestions from the current conversation.
汇总所有 Claude Code Skills 的目录与使用指南,支持检查 GitHub 更新。触发词:/skills、技能目录、skill列表、有哪些技能、检查更新
[由 collaborating-hub 路由] Codex CLI 后端实现。直接使用请通过 /collab 或 /codex 触发 collaborating-hub。
| name | pandoc-citeproc-export |
| description | LaTeX 工程通过 pandoc + citeproc 导出为 Word (.docx),保留 GB/T 7714-2015 引用格式并区分中英文。触发词:/pandoc-export、pandoc导出、LaTeX转Word、导出docx引用 |
将 biblatex LaTeX 工程导出为带正确引用格式的 Word 文档。
/pandoc-export导出前必须逐项验证:
| 检查项 | 命令 | 通过条件 |
|---|---|---|
| CSL 文件存在 | ls *.csl | 存在 gb7714-2015-numeric.csl |
| bib 文件存在 | ls *.bib | 存在且非空 |
| 引用键匹配 | 见下方脚本 | tex 中所有 \cite{} 键在 bib 中有定义 |
| bib 条目类型 | 见下方脚本 | 有 booktitle 的条目应为 @inproceedings |
| 模板文件 | ls *.dotx | reference-doc 模板存在 |
| 模板标题样式 | 见下方审计 | 确认模板中 heading 1/2 是否存在 |
bash ~/.claude/skills/pandoc-citeproc-export/scripts/check_refs.sh
许多中文 .dotx 模板不定义标准 heading 1 / heading 2,而使用自定义样式名(如「一级标题」「二级标题」)。pandoc 写入的 Heading1/Heading2 在模板中找不到定义时,Word 会回退为 Normal 外观。
审计方法:用 fix_docx_styles.py 的 audit_template_styles() 函数扫描模板:
from fix_docx_styles import audit_template_styles
print(audit_template_styles("template.dotx"))
# 输出示例: {'一级标题': 'af9', '二级标题': 'afb', '三级标题': 'afd', 'heading 3': '3'}
若模板缺少 heading 1 / heading 2,则必须配置样式映射(见步骤 2)。
bash ~/.claude/skills/pandoc-citeproc-export/scripts/export.sh \
--tex main.tex \
--bib refs.bib \
--csl gb7714-2015-numeric.csl \
--ref-doc template.dotx \
--output main_pandoc.docx
export.sh 内部自动执行步骤 2-4,也可手动分步执行:
将 pandoc 写入的标准 Heading 样式 ID 替换为模板的自定义样式 ID。
python3 ~/.claude/skills/pandoc-citeproc-export/scripts/fix_docx_styles.py main_pandoc.docx
默认映射表(适用于常见中文学术模板):
| pandoc 写入 | 映射到 | 模板样式名 |
|---|---|---|
Heading1 | af9 | 一级标题 |
Heading2 | afb | 二级标题 |
Heading3 / 3 | afd | 三级标题 |
AbstractTitle | af9 | 一级标题 |
自定义映射(当模板样式 ID 不同时):
python3 fix_docx_styles.py main_pandoc.docx '{"Heading1":"custom1","Heading2":"custom2"}'
python3 ~/.claude/skills/pandoc-citeproc-export/scripts/fix_cn_refs.py main_pandoc.docx
用 pandoc 提取纯文本,检查引用格式:
pandoc main_pandoc.docx -t plain 2>/dev/null | grep -E '^\[[0-9]+\]'
GB/T 7714-2015 顺序编码制的 CSL 需要以下定制(相对于官方版本):
| 规则 | CSL 属性/位置 | 值 |
|---|---|---|
| 作者缩写加句点 | initialize-with | "." |
| 标题与类型标识间加空格 | type-id group prefix | " [" |
| 出处项无空格分隔 | container-periodical delimiter | "," |
| 页码前无空格 | page delimiter | ":" |
| 卷号与期号间加空格 | issue prefix | " (" |
| 不输出 DOI/URL | access macro | 清空 |
| 不输出 /OL 后缀 | medium-id macro | 仅保留 medium 变量 |
| 结尾全角句点 | layout suffix | "." |
| et al. 术语 | locale terms | et al. |
| 项目 | 英文 | 中文 |
|---|---|---|
| 截断术语 | et al. | 等 |
| 作者分隔 | KUMAR S., LI G. | 肖恒辉,李炯城 |
| 类型标识前 | security [J] | 研究[J] |
| 类型标识后 | [J]. IEEE | [J].电信科学 |
| 卷期间距 | 35 (4) | 29(01) |
| 结尾标点 | .(全角) | .(半角) |