Install
npx skills add https://skillhub.nuwaos.com/bitmanalan/skills/alanpdf-skillMarkdown-to-PDF skill for proposals, pricing memos, quotations, and research reports
npx skills add https://skillhub.nuwaos.com/bitmanalan/skills/alanpdf-skillUse alanpdf for business documents where structure matters as much as color. This skill is optimized for Markdown-to-PDF workflows that need integrated cover blocks, restrained corporate styling, strong section hierarchy, scenario-specific content blocks, and tables that need numeric alignment and semantic emphasis.
Read references/blueprints.md and references/styles.md before collecting options or mapping the document.
proposal: for策划方案,方案书,白皮书,项目说明, long-form business narratives, comparison-heavy docs.pricing-memo: for费用说明,报价单,成本拆解,服务方案报价, contract-adjacent financial summaries.equity-report: for证券研究报告,投顾快评,行业/个股跟踪, investment-advisory writeups.Then choose the style:
navy-consultingemerald-executivecharcoal-minimalwarm-whitepaperbroker-classicsellside-slateir-cleanThen choose density when needed:
brief: higher whitespace, faster executive readingstandarddetailed: tighter typesetting for denser reportsCollect only the fields needed for the chosen blueprint:
titlesubtitledoc labelauthordateversionmeta labelconfidentiality# as a continuous section heading, not a forced chapter divider.## as a subsection.blueprint, style, density, ticker, rating, target_price, price_upside, or analyst.Insert a comment immediately above a table:
<!-- alanpdf: table=pricing -->
| 项目 | 方案A | 方案B |
| --- | ---: | ---: |
| ... | ... | ... |
Supported roles:
pricing: fee tables,报价表, totals rows, package-price rowscomparison: side-by-side comparisons, feature matrices,方案对比valuation: valuation summary tablesforecast: financial forecast / estimate tablespeer-comparison: peer benchmark tables with target row emphasisrating-history: historical rating/action tables<!-- alanpdf: block=thesis -->
1. 海外渠道修复带动硬件收入恢复。
2. SaaS 与运维服务占比上升,毛利率中枢改善。
<!-- alanpdf: block=risk-disclosure -->
- 海外业务恢复慢于预期
- 汇率波动影响利润兑现
Supported roles:
key-takeawaythesisrating-boxrisk-disclosuredisclaimerrating-box can also be authored as key-value bullets for KPI-style cards:
<!-- alanpdf: block=rating-box -->
- 评级:增持
- 目标价:18.50元
- 收盘价:14.92元
- 预期空间:+24%
<!-- alanpdf: figure path="figures/revenue-outlook.png" caption="图1:收入与利润预测" source="公司公告,AlanPDF整理" fit=wide -->
Rules:
path may be relative to the Markdown file location.fit=full|wide|standard|narrow when needed.For integrated blueprints that need navigation on page 1 instead of a separate TOC page, enable toc: true in frontmatter and optionally add:
summary_points:
- 第一条高层判断
- 第二条高层判断
summary_note: 可选说明
This creates a compact executive-summary / content-navigation panel ahead of the body rather than a standalone TOC page.
Run:
python3 scripts/alanpdf.py \
--input input.md \
--output output.pdf \
--blueprint proposal \
--style navy-consulting \
--title "HarborGrid Operations Cloud" \
--subtitle "港口与仓储一体化运营中台" \
--doc-label "产品策划方案 · 实现思路 · 预算规划" \
--meta-label "产品策划方案" \
--version "V1.0" \
--date "2026年4月" \
--confidentiality "公开演示版"
For pricing memos:
python3 scripts/alanpdf.py \
--input fee.md \
--output fee.pdf \
--blueprint pricing-memo \
--style emerald-executive \
--title "Astera Logistics" \
--subtitle "AI 运营与决策赋能项目" \
--doc-label "项目费用构成说明" \
--meta-label "Astera Logistics AI 运营与决策赋能项目 · 项目费用说明" \
--author "AlanPDF Demo Team" \
--date "2026年4月"
For research reports:
python3 scripts/alanpdf.py \
--input equity.md \
--output equity.pdf \
--blueprint equity-report \
--style broker-classic \
--density brief \
--title "NovaForge Robotics" \
--subtitle "首次覆盖报告" \
--doc-label "智能制造行业 · 个股深度研究" \
--meta-label "证券研究报告" \
--ticker "NFRG.US" \
--industry "工业机器人与智能制造" \
--rating "增持" \
--target-price "18.50元" \
--price-upside "+24%" \
--analyst "AlanPDF Research" \
--date "2026年4月"
--toc false for these business blueprints unless the document is long enough that a TOC adds real value.reportlab, install it before rendering:python3 -m pip install -r requirements.txt
scripts/alanpdf.py: deterministic renderer based on lovstudio/md2pdf, adapted for business document blueprints.