Academic Ref Inserter
Insert, format, and cross-reference academic citations in Word documents. Supports Chinese (GB/T 7714-2015) and international (IEEE, APA 7th, Chicago, MLA, Harvard) standards.
Install
pip install python-docxInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Academic Reference Inserter
Insert, format, and cross-reference academic citations in Word documents.
Supports Chinese (GB/T 7714-2015) and international (IEEE, APA 7th, Chicago, MLA, Harvard) standards.
Features
- Format detection - Auto-detects citation style from existing references
- Multi-format support - GB/T 7714-2015 (Chinese), IEEE, APA 7th, Chicago, MLA, Harvard
- DOI auto-fetch - Generate formatted references from DOI via CrossRef API
- BibTeX import/export - Convert between .docx references and .bib files
- Interactive console - Interactive CLI mode for quick operations
- Cross-reference hyperlinks - All
[N]citations become clickable links to bibliography - Validation - Checks orphan/missing refs, sequential ordering, recency, duplicates
- Full pipeline - One command to analyze, reformat, reorder, hyperlink, and validate
- Safe - Automatic backup before any modification
Supported Formats
| Format | Region | Common In | Citation Style | Ordering |
|---|---|---|---|---|
| GB/T 7714-2015 | China | 计算机工程与应用, 自动化学报 | [1] |
Sequential |
| IEEE | International | Engineering, CS journals | [1] |
Sequential |
| APA 7th | International | Psychology, Education, Business | (Author, Year) |
Alphabetical |
| Chicago 17th | International | Humanities, History | Footnotes/Bib | Alphabetical |
| MLA 9th | International | Literature, Arts | (Author Pg) |
Alphabetical |
| Harvard | International | UK/Australia, Social Sci | (Author, Year) |
Alphabetical |
Installation
# Clone the repository
git clone https://github.com/linfewngfeng/academic-ref-inserter.git
cd academic-ref-inserter
# Install dependencies
pip install python-docx
Usage
Quick Start (Full Pipeline)
# One command to do everything
python scripts/insert_refs.py fix --input paper.docx --format gbt7714
Step-by-Step
# 1. Analyze current state
python scripts/insert_refs.py analyze --input paper.docx
# 2. Reformat to target style
python scripts/insert_refs.py reformat --input paper.docx --format ieee
# 3. Reorder references to match citation order
python scripts/insert_refs.py reorder --input paper.docx
# 4. Add cross-reference hyperlinks (Ctrl+Click to jump)
python scripts/insert_refs.py hyperlink --input paper.docx
# 5. Validate
python scripts/insert_refs.py validate --input paper.docx --format gbt7714
Format Options
# Chinese national standard
python scripts/insert_refs.py fix --input paper.docx --format gbt7714
# IEEE (engineering / CS)
python scripts/insert_refs.py fix --input paper.docx --format ieee
# APA 7th (social sciences)
python scripts/insert_refs.py fix --input paper.docx --format apa7
Example
Before (raw docx with unformatted citations):
PM2.5 has been studied extensively [4]. Recent work [1][2] shows...
After (GB/T 7714 formatted with hyperlinks):
PM2.5 has been studied extensively [4]. Recent work [1][2] shows...
References:
[1] Wang Y, Wu H, Dong J, et al. TimeXer: Empowering transformers...[J]. NeurIPS, 2024.
[2] Liu Y, Hu T, Zhang H, et al. iTransformer: Inverted transformers...[J]. arXiv, 2023.
...
Each [N] in the text becomes a superscript black hyperlink that jumps to the bibliography entry (Ctrl+Click in Word).
Project Structure
Similar plugs
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
Production-grade engineering skills for AI coding agents.