mcpField
P
pandoc

pandoc

github.com/vamseeachanta文档处理1874 次安装今天更新
代码仓库

关于 pandoc

pandoc 是一项指导使用 Pandoc 转换文档并构建可复现流程的技能,适合制作格式化文档、管理引文的论文,或从纯文本自动转换文档。

主要功能

  1. 01Markdown 转换为 PDF 和 DOCX
  2. 02文档格式间转换
  3. 03BibTeX 与 CSL 引文流程
  4. 04自定义 LaTeX 模板
  5. 05交叉引用与 Lua 过滤器指导
  6. 06批处理脚本和构建流程配置

适用场景

  1. 01将 Markdown 制作为格式化 PDF 或 Word 文档
  2. 02制作带引文的学术论文
  3. 03批量转换多个文档
  4. 04使用 Makefile 或 GitHub Actions 自动构建文档

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/vamseeachanta/workspace-hub --skill pandoc

安装后在 Claude Code 中输入/pandoc确认已加载。

详细介绍

Pandoc

适用场景

适合使用
  • 使用专业排版将 Markdown 转换为 PDF
  • 根据 Markdown 源文件创建 Word 文档
  • 需要从纯文本生成可重现的文档
  • 管理带有引用(BibTeX/CSL)的学术论文
  • 批量转换多个文档
  • 需要自定义模板来保持品牌风格一致
  • 在多种文档格式之间转换
  • 根据 Markdown 创建 LaTeX 文档
  • 需要交叉引用(图、表、公式)
  • 构建自动化文档流水线
不适合使用
  • 构建文档网站(使用 MkDocs 或 Sphinx)
  • 需要交互式文档(使用 Web 框架)
  • 需要实时协作编辑(使用 Google Docs)
  • 构建幻灯片演示文稿(使用 Marp)
  • 需要所见即所得编辑(直接使用 Word)
  • 转换复杂的嵌套 HTML(可能会丢失格式)

前置条件

安装
# macOS (Homebrew)
brew install pandoc
brew install pandoc-crossref  # For cross-references
brew install basictex         # Minimal LaTeX for PDF
# Or full LaTeX: brew install --cask mactex

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install pandoc pandoc-citeproc

*See sub-skills for full details.*
### System Requirements

- Pandoc 2.19 or higher (3.x recommended)
- LaTeX distribution (for PDF output)
- Python 3.8+ (for pandoc-filters)

## Version History

### v1.0.0 (2026-01-17)

- Initial skill creation
- PDF, DOCX, HTML conversion workflows
- Custom LaTeX templates
- Citation management with BibTeX/CSL
- Cross-references with pandoc-crossref
- Lua filters documentation
- Batch conversion scripts
- Makefile integration
- GitHub Actions workflows

## Sub-Skills

- [1. Basic Format Conversion (+3)](1-basic-format-conversion/SKILL.md)
- [5. Custom LaTeX Templates (+1)](5-custom-latex-templates/SKILL.md)
- [7. Citations and Bibliography (+1)](7-citations-and-bibliography/SKILL.md)
- [9. Lua Filters](9-lua-filters/SKILL.md)
- [10. Batch Conversion Scripts](10-batch-conversion-scripts/SKILL.md)
- [11. Makefile for Document Projects (+1)](11-makefile-for-document-projects/SKILL.md)
- [Integration with Git Hooks (+1)](integration-with-git-hooks/SKILL.md)
- [1. Document Structure](1-document-structure/SKILL.md)
- [Common Issues (+1)](common-issues/SKILL.md)

## Sub-Skills

- [Background](background/SKILL.md)
- [Subsection](subsection/SKILL.md)
- [2. Image Management (+2)](2-image-management/SKILL.md)
- [Related Resources](related-resources/SKILL.md)

评论

支持 Markdown