跳到正文
cccskills
免费在 GitHub 公开中文介绍

nature-paper2word

将学术论文的 Markdown 稿件转换为符合期刊或学校格式要求的 Word 文档,整理公式、表格、题注和参考文献,并在导出前后检查结构、编号与格式。

原文查看原文说明

Compile an academic Markdown manuscript into a journal- or school-compliant Word (.docx): declared typography, native OMML equations, three-line tables, cross-references, per-section page numbers, CSL bibliographies (GB/T 7714, APA, Nature, IEEE), and pre/post-export quality gates. 把学术论文的 Markdown 稿件导出为符合期刊或学位论文规范的 Word:摘要、公式编号、三线表、题注、交叉引用、目录域、参考文献。

Use when the user wants a submission-ready .docx — 论文转 Word、学位论文排版、期刊投稿排版、prepare submission docx — or a readable copy of a manuscript. Not for PDF, HTML or LaTeX output, and not for slide decks or grant forms.

Yuan1z0825/nature-skills星标 51,364(GitHub 51,364 + cccskills 0)
集成工具Word

实测评分 未实测

查看安装方法

适用场景

  • 制作符合期刊格式的 Word 稿件
  • 按学校格式排版学位论文
  • 把 Markdown 论文整理成易读文档

中文介绍

功能

nature-paper2word可将学术论文的 Markdown 稿件转换为符合指定格式要求的 Word(.docx)文档。有格式要求时,可根据模板或书面规范准备格式文件;没有指定要求时,则按稿件语言选择预设格式。它支持标题、段落样式、公式编号、三线表、图表题注、目录、分节页码、交叉引用和 CSL 格式的参考文献。转换前会检查稿件,导出后还会核对编号和格式。处理前需要先按 Markdown 输入规范整理稿件。

适用场景

适合制作期刊投稿稿件或学位论文、将 Markdown 论文整理成易读的 Word 文档,以及按实验室、学校或期刊的格式要求排版。它可在保留稿件结构和参考文献的基础上,协助整理提交用文档。

使用示例

  • “请按我们学校的格式把这份 Markdown 稿件转换成 Word。”
  • “请按 Nature 投稿格式导出。”
  • “请把这篇稿件转换为 Word 格式。”

注意事项

需要安装 md-to-word 命令;如果尚未安装,请安装 md-to-word-docx。稿件包含引用时,还需要 .bib 文件。不支持导出 PDF、HTML、LaTeX、幻灯片或资助申请书;不支持合并表格单元格、多栏排版和自定义封面。导出后请在 Word 中检查版面。本技能采用 MIT 许可证。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好说明不会原位修改原稿,并列出检查环节和不支持的输出类型。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要 `md-to-word`,有引用时还需 `.bib`;命令的安装方式已说明。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月28日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(6)

  • SKILL.md10.8 KB
  • agents/openai.yaml241 B
  • manifest.yaml390 B
  • README_EN.md3.7 KB
  • README.md3.3 KB
  • UPSTREAM-LICENSE.txt1.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Markdown → compliant Word

This file is the router. The engine is deterministic: the same manuscript and the same format requirements always produce a byte-identical .docx. Do not substitute a hand-written python-docx script; run the installed pipeline.

Before the first export in a session, confirm the engine is available: md-to-word --version must print a version. This skill ships documentation only; if the command is missing, install it with pip install md-to-word-docx, then run the check again.

The full vocabulary lives in the manual inside the package, not here. md-to-word --contract prints its absolute path (Chinese or English, following the manuscript). Everything below is order of work; every spelling is looked up in the manual.

1. Decide the scenario first

ScenarioWhat the user saysWhat to do
Journal or school compliance"format it for Nature / my university"Get a target .docx template or a written spec, then build a requirements file.
Existing requirements"use our lab's spec file"Pass it with -r.
Baseline export (no explicit spec)"turn this into a Word file"Normalize the manuscript to the contract, then export with the built-in preset. The preset is a complete, valid format, not a provisional default.

State the chosen preset or requirements path in one line, then proceed. Without -r the only file picked up is one named exactly format.txt beside the manuscript; no other .txt is guessed at (if one is there, the run names it in a reminder). With no format.txt, the preset follows the manuscript's language: zh-academic for Chinese, en-nature for everything else. The run reports which one it used.

No path accepts arbitrary Markdown and returns a finished document: a preset supplies formatting, not missing structure. When the manuscript violates the contract, pre-flight stops with a line number rather than emitting a document that looks acceptable while its formatting was never mapped.

2. Bring the manuscript to the input contract

The source may be pasted text, .txt, .md, an old .docx, or a PDF. Normalize it to Markdown first; never edit the user's original file in place.

  • Headings: #, ##, ###, consecutive and unskipped; a heading that carries its own number (1., 2.1) needs as many # as its number has levels.
  • Paragraph styles: a line starting with %% sets that paragraph's style — %% Abstract …, %% Table Caption **Table 1** …, %% Image Caption Figure 1 …. One line is one paragraph, ended by a blank line, with no closing fence. Style names come from a closed list (manual §3.4) in either language; heading levels are set by # only.
  • Title, author, abstract, keywords are style lines in the body, never YAML — their position on the page is the author's decision, and YAML has no position. Pre-flight blocks those keys with the exact line to write instead.
  • Paragraphs: one line is one paragraph; consecutive lines are never joined, so a file of short one-sentence paragraphs is already correct. For a break inside one paragraph (an address, verse, a long title), end the line with a backslash or two spaces — it becomes a line break within the same paragraph. Suspected wrapping is reported as a grouped warning with the line numbers.
  • YAML holds only position-independent configuration: bibliography:, csl:, crossref:, link-citations:.
  • Equations: $$...$$ {#eq-name} on its own line, referenced as @eq-name. Chinese manuscripts get 「式/图/表」 prefixes and (1)numbering, English ones get Equation/Figure/Table and (1). Add crossref: chapters: true for per-chapter numbering. \tag{} is blocked.
  • Citations: [@key] parenthetical, @key narrative, from bibliography: + csl:. A .bib is mandatory once the manuscript cites: handwritten reference lists are not supported, and [@key] without bibliography: would be printed literally.
  • Figures and tables: ![](path/img.png){width=13cm} with the caption in its own %% Image Caption / %% 图片题注 paragraph; table caption above, note below. Do not put {#fig-...} labels on images. Column widths follow the separator row's dash lengths.
  • Block markers (three, each on its own line with blank lines around): {{< pagebreak >}}, {{< toc >}}, {{< section page_number=lowerRoman start=1 >}} (Chinese parameters 页码= 起始= also work). The section marker closes the section above it; never add a page break next to it.
  • Unsupported Markdown is blocked with a replacement, never printed literally: HTML tags, --- rules, ==== headings, definition lists, - [ ] boxes, tables without outer pipes, nested block quotes, full-width %%, four-space code blocks, a second paragraph inside a list item, ==highlight==, [text]{.class} (except .underline), \(...\) inline math, and a percentage image width ({width=60%} — write an absolute length).

3. Choose or build the format requirements

  1. Starting from nothing — md-to-word init writes a complete preset copy plus a one-page manuscript that exports as-is.
  2. Built-in preset — zh-academic or en-nature. Use as-is when the user gave no detailed spec.
  3. Copy and edit a preset — change only the lines the user mentioned. Field order is fixed: font, size, bold, italic, alignment, line spacing, space before, space after, indent. Every style line must be complete; missing fields are errors.
  4. Reverse-engineer a target .docx — md-to-word-template target.docx -o format.txt, then review the "to confirm" list at the end of the draft.

Each property has exactly one accepted spelling (two in total: the canonical Chinese and English forms); anything else is a hard error with a line number. Full table: manual §3.1. Style names: §3.4. Presets are the reference examples — md-to-word --contract prints their paths.

Throughout this file, format.txt means the format requirements file — any path works, -r takes it.

Citation style comes from csl: with a bundled file name (manual §7) or a path to the user's own CSL. Without csl:, Chinese manuscripts get GB/T 7714 numeric, others APA 7th. A user-supplied CSL is normalized on export so that one requirements file always produces one layout.

4. Export

Run the installed command from the manuscript's directory:

md-to-word manuscript.md -o manuscript.docx
md-to-word manuscript.md -r format.txt -o manuscript.docx
md-to-word --contract          # contract + paths to the manual and presets

The pipeline runs: pre-flight validation → style template generation → manuscript model → OOXML writing → number-integrity check → line-by-line audit against the requirements file.

5. How to read the gates

Two levels, split by "would the mistake be visible afterwards":

  • Blocking — silently wrong later: dropped content, syntax printed literally, formatting never mapped, a title in YAML, a caption inside an image's brackets. Fix the reported line; do not reach for --no-check, which turns off the blocking gates too.
  • Warning — visible but non-compliant: an image wider than the text block (it gets clamped), a caption far from its figure, a skipped heading level, a page break after a section marker, suspected line wrapping. Warnings of one kind arrive as a single line (up to eight line numbers, then a count).

Add --json when the result has to be read back programmatically: stdout then carries one JSON object — ok, returncode, input, output, pdf, lang, messages, errors — with progress and reminders on stderr. The keys are fixed; the sentences inside them follow the manuscript's language, and the reminders are in messages.

Exit codes: 0 every gate passed; 1 manuscript, gate or dependency problem; 2 a usage error (bad flags or a missing argument); 3 the .docx was written but the optional --pdf proof was skipped (non-macOS). Messages follow the manuscript's language. Add --verbose when a format does not seem to take effect.

6. Verify before delivery

  • Confirm the .docx exists and the command exited 0.
  • Report the applied preset or requirements file, the citation style, and anything the run warned about.
  • Say plainly that the layout still needs a manual check in Word. The engine verifies text and structure; row heights, column widths and where equations and captions settle are only visible in a real renderer.
  • When the document has a TOC, {style-title} headers or per-section page numbers, run once with --pdf (macOS with Word) — that is the only way fields are expanded — and spot-check the first page, the widest table, an equation-heavy page and the references.

7. Boundaries

  • No custom cover pages, merged cells, multi-column text, inline text colour, or text-wrapped figures. Export the body, then complete those in Word.
  • Only equation cross-references are supported ({#eq-x} + @eq-x); figure and table numbers are typed into the caption.
  • Sum and integral limits stay on the right of the symbol in numbered equations (Word stacks limits only in display math). Content and symbols are correct; only the arrangement differs.
  • TOC page numbers and chapter headers are Word fields; Word asks once whether to update them. Full statements: manual §6 (limits) and §8 (symptom → fix).

8. Related skills

This skill compiles the manuscript; these cover the steps around it. Hand off rather than re-implement:

SkillWhat it covers
nature-writingDrafting the manuscript and its section-level argument (input to this one)
nature-polishingLanguage polishing and academic phrasing (input to this one)
nature-citationSearching for and exporting reference entries (RIS / ENW / Zotero RDF); export BibTeX from the reference manager for the .bib this skill consumes
nature-ref-verifierCross-checking reference metadata before submission
nature-paper2pptTurning the same manuscript into a presentation deck

Upstream engine, the general-purpose pip package, and the changelog: md-to-word.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

nature-academic-search

免费有简介

跨多个来源检索学术文献、核对引文并转换参考文献文件;可使用MeSH设计PubMed检索式,也可区分独立他引与自引,整理引用者及引用语境。

  • 跨多个来源检索文献
  • 核对文档中的引文信息
  • 用MeSH设计PubMed检索式
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

nature-citation

免费有简介

在指定的Nature系列或CNS相关期刊范围内查找论文,核对摘要或出版社页面,将文献对应到稿件中的具体论点,并导出经核实、可导入文献管理软件的参考信息。

  • 为稿件补充Nature系列引文
  • 逐段整理论点与依据文献
  • 核实候选论文是否支持论点
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

nature-data

免费有简介

起草或检查论文的数据与代码可用性声明,整理数据来源、存储位置、访问限制、标识符和正式引用,并核对有助于发现与复用数据的元数据。

  • 撰写数据或代码可用性声明
  • 整理研究数据的存储位置与获取方式
  • 检查数据集引用和元数据
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

nature-downloader

免费有简介

通过开放获取、出版社 API 或机构授权渠道获取学术论文全文和补充材料。它会为每篇文献选择获取途径,并记录文件格式、来源和下载结果。

  • 批量获取 DOI 列表中的论文
  • 查找论文的开放版本
  • 通过机构 CNKI 获取中文论文
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

nature-experiment-log

免费有简介

把实验照片、音频和文字整理成带结构化元数据的 Markdown 日志,分配实验编号和样品批次编号,并归档原始附件;还可选接入飞书群消息或 Obsidian。

  • 根据照片和音频整理实验日志
  • 追踪同一批样品的多次实验
  • 将实验记录与原始附件一起保存
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

nature-figure

免费有简介

使用Python或R创建、修改并导出论文科学图,检查多面板对齐、文字和元素重叠。也可制作可编辑的矢量示意图,以及经明确要求生成的图形摘要。

  • 制作论文科学图
  • 检查多面板图的布局
  • 制作可编辑示意图
Yuan1z0825/nature-skills5.1万2026年10月28日 更新

查看 Yuan1z0825 的全部技能

报告此技能的问题