pandoc-bilingual-build
Skill0 starsChanged 7 months agoMITView on GitHub
Pandoc + XeTeX로 한/영 동시 책/매뉴얼/논문 빌드 파이프라인을 기존 프로젝트에 추가. 사용 시점 — "Pandoc 빌드 파이프라인", "한영 책 빌드 추가", "IEEEtran 논문 템플릿", "KCI 논문", "Mermaid SVG 빌드", "한글 PDF 안 됨", "xeCJK 셋업". 책/논문/매뉴얼 4 포맷(PDF/DOCX/TEX/MD) × 6 타겟. project-bootstrap의 빌드 부분만 분리해 기존 프로젝트에 부착 가능.
- Installs packages
In this repository61 other files it gives its agents.
- api-contract-testing-patternSkill
- api-key-lifecycle-patternSkill
- api-route-consistency-patternSkill
- bash-cli-best-practicesSkill
- bilingual-book-authoringSkill
- blue-green-deployment-patternSkill
- book-builderSkill
- bulk-user-onboarding-patternSkill
- cicd-github-actions-patternSkill
- claude-code-skill-authoringSkill
- cloudflare-tunnel-setupSkill
- cloudflare-tunnel-ssh-access-patternSkill
- concurrent-load-testing-patternSkill
- coverage-instrumentation-patternSkill
- dependency-vulnerability-fixSkill
- deployment-checklistSkill
- developer-onboarding-doc-patternSkill
- env-isolation-patternSkill
- exam-systemSkill
- fastapi-async-patternsSkill
- fastapi-gateway-patternSkill
- gem-llm-admin-cliSkill
- gem-llm-build-docsSkill
- gem-llm-cli-clientSkill
- gem-llm-cloudflare-tunnelSkill
- gem-llm-debug-mcpSkill
- gem-llm-deploy-vllmSkill
- gem-llm-gateway-debugSkill
- gem-llm-load-testSkill
- gem-llm-overviewSkill
- gem-llm-review-promptSkill
- gem-llm-supervisorSkill
- gem-llm-test-inferenceSkill
- gem-llm-troubleshootingSkill
- gem-llm-vllm-debugSkill
- html-static-dashboard-patternSkill
- k8s-cron-alternativesSkill
- k8s-pod-autostartSkill
- korean-tech-blog-authoringSkill
- llm-eval-multi-modelSkill
- llm-serving-performance-tuningSkill
- md-raid-deadlock-recoverySkill
- mermaid-diagram-authoringSkill
- multi-agent-autonomous-loop-patternSkill
- multi-agent-git-collaboration-patternSkill
- multi-agent-orchestratorSkill
- multi-llm-routing-patternSkill
- observability-bundleSkill
- playbook-authoring-patternSkill
- pod-process-autostart-patternSkill
- postgres-migration-from-sqliteSkill
- production-postmortem-patternSkill
- project-bootstrapSkill
- prometheus-fastapi-metricsSkill
- pytest-fastapi-patternSkill
- quota-rate-limit-patternSkill
- shell-cli-dispatch-patternSkill
- sqlite-wal-safe-opsSkill
- subagent-prompt-engineering-patternSkill
- vllm-bootstrapSkill
- The first 60 shown.
The file
Files
pandoc-bilingual-build
project-bootstrap의 빌드 파이프라인만 분리한 skill. 이미 디렉토리 구조가 있는 프로젝트에 한/영 빌드 추가.
사용 시점
- "Pandoc 빌드 한영 추가"
- "기존 repo에 책/논문 빌드 붙이기"
- "Mermaid SVG → PDF 자동화"
- "IEEEtran 학회 논문 형식"
- "KCI 한국 학회 논문 템플릿"
- "xeCJK 한글 PDF 안 됨"
한 줄 사용
bash ~/.claude/skills/pandoc-bilingual-build/scripts/install-into.sh /path/to/your-project자동:
Makefile6개 타겟 (book-ko/en, manual-ko/en, paper-ko/en) +make allscripts/build-docs.sh,build-diagrams.sh,extract-mmd.shscripts/pandoc-filters/(diagram-insert.lua, citation-fix.lua, code-block-listing.lua)docs/build/templates/(book-{ko,en}.tex, paper-ko-kci.tex, paper-en-{ieee,acmart}.tex)docs/build/metadata-{ko,en}.yamldocs/{book,manual,paper}-{ko,en}/OUTLINE.md(없으면 stub)docs/diagrams/CATALOG.md+ 40 mermaid stub
빌드 명령 (설치 후)
make book-ko book-en # 한/영 책 (PDF + DOCX + TEX + MD 각)
make manual-ko manual-en # 한/영 매뉴얼
make paper-ko paper-en # 한/영 논문 (KCI + IEEE)
make all # 6 targets × 4 formats = 24 산출물
make diagrams # 40 Mermaid → SVG
make clean # docs/build/out → _trash/시스템 의존성 (한 번만)
sudo apt install -y \
texlive-xetex texlive-publishers texlive-lang-cjk \
texlive-fonts-recommended fonts-noto-cjk fonts-noto-cjk-extra \
librsvg2-bin
# Mermaid SVG (chromium 의존)
sudo apt install -y \
libatk-bridge2.0-0 libatk1.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 \
libnspr4 libnss3 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 \
libxrandr2 libpango-1.0-0 libcairo2 libasound2t64 libxshmfence1 \
fonts-liberation
# nvm npm 사용 시
npm install -g @mermaid-js/mermaid-cli본문 디렉토리 구조 (이 skill이 다루는 부분)
your-project/
├── Makefile # ← 이 skill이 추가
├── scripts/
│ ├── build-docs.sh # ← 추가
│ ├── build-diagrams.sh # ← 추가
│ ├── extract-mmd.sh # ← 추가
│ └── pandoc-filters/ # ← 추가
│ ├── diagram-insert.lua
│ ├── citation-fix.lua
│ └── code-block-listing.lua
└── docs/
├── book-ko/{OUTLINE.md, parts/} # ← OUTLINE만 stub 추가
├── book-en/ # mirror
├── manual-{ko,en}/
├── paper-{ko,en}/{OUTLINE.md, sections/, references.bib}
├── diagrams/{CATALOG.md, mmd/, svg/}
└── build/
├── metadata-{ko,en}.yaml # ← 추가
├── templates/ # ← 추가
│ ├── book-{ko,en}.tex
│ ├── paper-ko-kci.tex
│ ├── paper-en-ieee.tex
│ └── paper-en-acmart.tex
└── out/ # ← 빌드 산출물Mermaid 다이어그램 워크플로
docs/diagrams/CATALOG.md에 다이어그램 정의 (frontmatter +```mermaid코드블럭)bash scripts/extract-mmd.sh→docs/diagrams/mmd/diagram-NN.mmd추출bash scripts/build-diagrams.sh→docs/diagrams/svg/diagram-NN.svg빌드- 본문에서
로 참조 - Pandoc Lua filter
diagram-insert.lua가 빌드 시 자동 인라인
한글 PDF 핵심 옵션
# docs/build/metadata-ko.yaml
mainfont: "Noto Sans KR"
monofont: "DejaVu Sans Mono"
documentclass: book
geometry: a4paper, margin=2.5cm% docs/build/templates/book-ko.tex
\usepackage{xeCJK}
\setCJKmainfont{Noto Sans KR}
\XeTeXlinebreaklocale "ko"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1ptxeCJK 미설치 시 fontspec만으로도 작동 (단, 한글 줄바꿈 품질이 약간 떨어짐).
학회 템플릿
KCI (한국정보과학회)
docs/build/templates/paper-ko-kci.tex — 일반 article + xeCJK + 2단 조판.
IEEE Conference
docs/build/templates/paper-en-ieee.tex — \documentclass[conference]{IEEEtran} + IEEEkeywords.
texlive-publishers 패키지에 IEEEtran.cls 포함.
ACM SIGCONF
docs/build/templates/paper-en-acmart.tex — \documentclass[sigconf]{acmart}.
흔한 에러
| 증상 | 해결 |
! LaTeX Error: File 'IEEEtran.cls' not found | sudo apt install texlive-publishers |
! Package xeCJK Error: Cannot define encoding "UTF8" | sudo apt install texlive-lang-cjk |
Missing character: There is no 한 (U+...) in font DejaVu Sans Mono | 코드블럭 안 한글 — \setmonofont 변경 또는 무시 |
mmdc: command not found | npm install -g @mermaid-js/mermaid-cli (nvm 권장) |
chromium-browser requires snap | snap 없는 환경 → puppeteer 자체 Chrome (puppeteer browsers install chrome) |
libatk-1.0.so.0: cannot open | Chrome libs 설치 (위 의존성 섹션) |
| 한글 폰트 없음 | sudo apt install fonts-noto-cjk fonts-noto-cjk-extra |
librsvg2-bin 부재 → cairosvg | sudo apt install librsvg2-bin 또는 cairosvg 시멘틱 wrapper |
검증
# 빌드 dry-run
DRY_RUN=1 bash scripts/build-docs.sh book-ko pdf
# 다이어그램 SVG 빌드
bash scripts/build-diagrams.sh
ls docs/diagrams/svg/ # 40개 SVG
# 실제 빌드
make book-ko
ls -lh docs/build/out/book-ko.pdf # ~1.5M for ~500p관련 skill
project-bootstrap— 빈 프로젝트에서 시작 시 (이 skill의 상위)gem-llm-build-docs— GEM-LLM 운영 환경 특화 (이미 설치된 환경)
참조
- Pandoc 매뉴얼: https://pandoc.org/MANUAL.html
- IEEEtran: https://ctan.org/pkg/ieeetran
- acmart: https://ctan.org/pkg/acmart
- xeCJK: https://ctan.org/pkg/xecjk
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

