π Feature Request
Background
PaperBell provides a complete Obsidian academic vault template, enabling researchers to manage literature, notes, and projects within Obsidian. However, the final output of academic writing inevitably requires exporting to a deliverable document format. In the vast majority of use cases, Word (.docx) is more universal than PDF β collaborative editing, advisor annotations, and journal submissions almost exclusively rely on Word.
Currently, PaperBell does not include a built-in Markdown β Word export solution. Users must independently configure Pandoc and the related toolchain, which presents a high barrier to entry.
Pain Points
When using Pandoc to convert Markdown to Word, numerous formatting issues arise in Chinese-English mixed typesetting scenarios:
- Misplaced bilingual table captions β English captions appear below tables instead of above, violating academic conventions
- Non-breaking spaces (NBSP) inserted by pandoc-crossref β affecting layout and searchability
- Mixed Chinese-English punctuation β half-width commas and periods appearing in Chinese contexts
- Extra spaces between Chinese/English text and Chinese/numeral combinations β degrading readability
- Cluttered table borders β not formatted as academic three-line tables
- Inconsistent image styles β quotation mark fonts differ from body text
Proposed Solution
It is recommended to integrate a Pandoc-based Markdown β Word export functionality into PaperBell, referencing the approach of the companion sub-project PaperBell-md-2-word. The proposed architecture uses a dual-layer approach: Lua filters (automatic processing during export) + VBA macros (one-click post-export fixes).
Layer 1: Lua Filters (Automatically Executed During Pandoc Export)
| Filter |
Problem Solved |
pandoc-crossref |
Cross-reference resolution (Fig. 1 / Table 1 / Eq. 1) |
zotero.lua |
[@citekey] β Refreshable Zotero fields in Word |
move-tbl-caption-en.lua |
Move English table captions from below to above the table |
replace-nbsp.lua |
Remove non-breaking spaces inserted by pandoc-crossref |
bib-style.lua |
Apply hanging indent style to bibliography entries |
word-template.docx |
Word style inheritance (body text, headings, images, bibliography, etc.) |
Layer 2: VBA Macros (One-Click Post-Export Fixes in Word)
7-in-1 toolbox PaperBell_MD2Word_VBA β enter 0 to execute all fixes at once:
- Smart bracket and citation repair
- Punctuation standardization
- Deep space cleanup
- Image style unification
- Zotero citation highlighting (blue)
- One-click MD table formatting to academic three-line tables
- Precise spacing and quotation mark font fixes
Complete Workflow
Obsidian + PaperBell (Markdown writing)
β pandoc-live-preview real-time preview
β Export (Obsidian Enhancing Export)
Pandoc + Lua filter chain (automatic formatting)
β Output .docx
VBA Macros (Alt+F8 one-click fix)
β
β
Deliverable Word document
Integration Recommendations
- Bundle Lua filters and Word templates into the PaperBell vault β no extra download or configuration needed for users
- Pre-configure Obsidian Enhancing Export settings β out-of-the-box experience, avoiding manual Extra arguments setup
- Add an export guide to PaperBell documentation β explaining the complete workflow
- Integrate with the pandoc-live-preview plugin β enabling write-and-preview functionality
Related Projects
- PaperBell-md-2-word β Companion MD-to-Word sub-project for PaperBell (Lua filters + VBA macros + Word template)
- pandoc-live-preview β Obsidian plugin for real-time Pandoc cross-reference preview
Note: The PaperBell-md-2-word project is still under active development and optimization, but its core functionality is already usable. Community testing and contributions are welcome.
π Feature Request
Background
PaperBell provides a complete Obsidian academic vault template, enabling researchers to manage literature, notes, and projects within Obsidian. However, the final output of academic writing inevitably requires exporting to a deliverable document format. In the vast majority of use cases, Word (.docx) is more universal than PDF β collaborative editing, advisor annotations, and journal submissions almost exclusively rely on Word.
Currently, PaperBell does not include a built-in Markdown β Word export solution. Users must independently configure Pandoc and the related toolchain, which presents a high barrier to entry.
Pain Points
When using Pandoc to convert Markdown to Word, numerous formatting issues arise in Chinese-English mixed typesetting scenarios:
Proposed Solution
It is recommended to integrate a Pandoc-based Markdown β Word export functionality into PaperBell, referencing the approach of the companion sub-project PaperBell-md-2-word. The proposed architecture uses a dual-layer approach: Lua filters (automatic processing during export) + VBA macros (one-click post-export fixes).
Layer 1: Lua Filters (Automatically Executed During Pandoc Export)
pandoc-crossrefzotero.lua[@citekey]β Refreshable Zotero fields in Wordmove-tbl-caption-en.luareplace-nbsp.luabib-style.luaword-template.docxLayer 2: VBA Macros (One-Click Post-Export Fixes in Word)
7-in-1 toolbox
PaperBell_MD2Word_VBAβ enter0to execute all fixes at once:Complete Workflow
Integration Recommendations
Related Projects