swair/prosophor/md2paper

Claude Code and agent skill by swair/prosophor

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Convert Markdown files to academic paper-style Word (.docx) and PDF documents. Dual format support: Chinese academic paper (paperol_cn_v2.0 template) and English arXiv-style.

Install

npx vskill@latest install swair/prosophor/md2paper

SKILL.md

Markdown to Academic Paper Converter

Convert Markdown files to properly formatted Word documents (and optionally PDF). Auto-detects language from filename (Chinese characters = CN format, otherwise EN/arXiv format).

When to Use

  • User asks to convert .md files to .docx / Word / paper / PDF format
  • User wants to generate academic papers, white papers, or theory documents from Markdown
  • User references paper formatting standards (Chinese academic / arXiv style)

Prerequisites

bash
pip install python-docx lxml docx2pdf

Usage

bash
# Word only
python .claude/skills/md2paper/md2docx.py <input.md> <output.docx>
# Word + PDF
python .claude/skills/md2paper/md2docx.py <input.md> <output.docx> --pdf

arXiv Format Reference (learned from 2604.21804v1.pdf)

Title & Author Block
Phenomenological Detector Design and Optimization in Vertically-Integrated...
(centered, normal weight, ~14-16pt)
Wonyong Chung (name)
Princeton University (affiliation)
Jadwin Hall, Washington Road, ... (address)
wonyongc@princeton.edu (email)
Qibin Liu (next author, same pattern)
SLAC National Accelerator Laboratory
...
Abstract Block
Abstract ("Abstract" title case, bold, standalone)
We present the first implementation... (flush-left, NO indent, single paragraph)
Body Text
1 Introduction (decimal section numbering)
High-energy physics (HEP) research... (first-line indent, justified)
2.1 Bilevel optimization... (hierarchical numbering)
Figure & Table Captions
Figure 1: Bilevel detector optimization... (full "Figure", bold colon separator, centered below)
Table 1: Optimization parameters... (full "Table", bold colon separator, centered above)

Format Specifications

Chinese Format (paperol_cn_v2.0)
ElementFontSizeStyle
TitleSimSun16ptBold, centered
AuthorSimSun12ptCentered, NO prefix
BodySimSun + TNR10.5pt (五号)Normal, first-line indent 0.74cm
Heading 1SimSun + TNR14pt (三号)Bold
Heading 2SimSun + TNR12pt (小三)Bold
Heading 3SimSun + TNR10.5pt (五号)Bold
AbstractSimSun + TNR10.5ptFlush-left, bold label ("摘要:" + content)
KeywordsSimSun + TNR10.5ptFlush-left, bold label ("关键词:" + keywords)
Table cellsSimSun + TNR9ptLight blue header bg
Code blocksConsolas9ptGray bg (#F5F5F5) + border
BlockquoteSimSun + TNR10.5ptItalic, blue left border
CaptionSimSun + TNR9ptCentered
English Format (arXiv-style, from 2604.21804v1.pdf)
ElementFontSizeStyle
TitleTimes New Roman16ptCentered, normal weight
AuthorTimes New Roman11ptCentered, NO prefix (name, affiliation, address, email stacked)
BodyTimes New Roman10ptNormal, first-line indent ~0.3cm, justified
Heading 1Times New Roman14ptBold, decimal numbering (1, 2, 3)
Heading 2Times New Roman12ptBold, hierarchical (2.1, 2.2)
Heading 3Times New Roman10ptBold, multi-level (2.1.1)
Abstract headerTimes New Roman10pt"Abstract" (title case), bold, standalone line
Abstract contentTimes New Roman10ptFlush-left (NO indent), single paragraph
Abstract labelsTimes New Roman10ptBold inline keywords: "Context.", "Aims.", "Methods.", "Results.", "Conclusions."
KeywordsTimes New Roman10pt"Key words." bold prefix, flush-left
Table cellsTimes New Roman9ptLight blue header bg
Table captionTimes New Roman10ptCentered, "Table N: " (full word, bold colon)
Figure captionTimes New Roman10ptCentered, "Figure N: " (full "Figure", bold colon)
Code blocksConsolas9ptGray bg + border
BlockquoteTimes New Roman10ptItalic, blue left border
Reference citationsTimes New Roman10ptSuperscript [1], [2], blue
AcknowledgmentsTimes New Roman10ptBold standalone heading

Page Layout

ChineseEnglish (arXiv)
MarginsT/B 2.54cm, L/R 3.17cm2.54cm all sides
Line spacing16pt14.5pt
First-line indent0.74cm~0.3cm (standard indent)
Abstract indentNO indent (flush-left)NO indent (flush-left)
Text alignmentBoth justifiedBoth justified

Abstract & Keywords Layout

Chinese
  • 摘要: (bold label) + content paragraph, flush-left
  • 关键词: (bold label) + keywords line, flush-left
English (arXiv)
  • Header: Abstract (title case, bold, standalone line)
  • Content: flush-left, NO left indentation, single paragraph
  • Structure: inline bold keywords + text → "Context. ... Aims. ... Methods. ... Results. ... Conclusions. ..."
  • Keywords: Key words. (bold) + keyword list, flush-left
Content parsing rules
  • Mixed text + markdown tables → text paragraphs + real Word tables
  • Empty lines separate text blocks
  • Horizontal rules (---) skipped

Table/Figure Captions

Tables — caption ABOVE table:

  • Chinese: 表1 名称
  • English: Table 1: Name (full word "Table", bold colon separator)

Figures — caption below figure:

  • Chinese: 图1 名称
  • English: Figure 1: Name (full "Figure" word, NOT abbreviated "Fig.", bold colon separator)

Reference Citations

Inline [1], [2] etc. → blue superscript, Times New Roman.

Page Numbers

Centered in footer, PAGE field only.

Auto-processing

  • YAML frontmatter: Parsed for author metadata, then stripped
  • Author rendering: Title → Author (centered, NO prefix label) → content
  • Author dedup: If plain-text author line matches YAML author, skipped
  • Author fallback: If no YAML author, first non-empty line after title extracted as author
  • Blockquote stripping: All > lines after title removed
  • Footer removal: ## Software Citation / ## 软件引用 section and *Version:* / *Date:* / *Author:* footer stripped
  • Language detection: Filename containing Chinese characters → CN format, else EN format

Supported Markdown

  • Headings (# through ######)
  • Fenced code blocks (```)
  • Tables with header separator → real Word tables
  • Unordered lists (-, *, +)
  • Ordered lists (1., 2., etc.)
  • Blockquotes (>)
  • Inline bold (**) and italic (*)
  • Images ([Image: alt])
  • Horizontal rules (---)
  • Reference citations ([1], [2])
  • YAML frontmatter (metadata extracted, block stripped)

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
54
Repository forks
19
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/swair/prosophor/md2paper/badge)](https://verified-skill.com/skills/swair/prosophor/md2paper)

Something wrong with this skill or its page? Tell us.