Loading...
Loading...
Compare original and translation side by side
templates/whitepaper.typfonts/fonts/templates/whitepaper.typfonts/fonts/| Element | Weight | Style |
|---|---|---|
| Headlines (H1) | Black (900) | Large, tight tracking |
| Section headlines (H2) | Bold (700) | Blue accent line |
| Subheads (H3, H4) | Bold (700) | Medium size |
| Body copy | Regular (400) | Justified, comfortable leading |
| Code | Source Code Pro | Monospace |
| 元素 | 字重 | 样式 |
|---|---|---|
| 主标题(H1) | Black(900) | 大字号,紧凑字距 |
| 章节标题(H2) | Bold(700) | 蓝色装饰线 |
| 子标题(H3、H4) | Bold(700) | 中等字号 |
| 正文 | Regular(400) | 两端对齐,舒适行高 |
| 代码 | Source Code Pro | 等宽字体 |
$ARGUMENTS.pdftitledate$ARGUMENTS.pdftitledateOS=$(uname -s)OS=$(uname -s)undefinedundefinedtemplates/fonts/PLUGIN_ROOT=$([ -d ".claude/plugins/project-management" ] && echo ".claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT")
echo "Using plugin root: $PLUGIN_ROOT"
ls "$PLUGIN_ROOT/templates/whitepaper.typ" || echo "ERROR: Template not found!".claude/plugins/project-managementtemplates/fonts/PLUGIN_ROOT=$([ -d ".claude/plugins/project-management" ] && echo ".claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT")
echo "Using plugin root: $PLUGIN_ROOT"
ls "$PLUGIN_ROOT/templates/whitepaper.typ" || echo "ERROR: Template not found!".claude/plugins/project-managementPLUGIN_ROOT=$([ -d ".claude/plugins/project-management" ] && echo ".claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT")
cp "$PLUGIN_ROOT/templates/whitepaper.typ" <output-directory>/whitepaper.typ<output-directory>project-guides/PLUGIN_ROOT=$([ -d ".claude/plugins/project-management" ] && echo ".claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT")
cp "$PLUGIN_ROOT/templates/whitepaper.typ" <output-directory>/whitepaper.typ<output-directory>project-guides/cd <output-directory> && \
PLUGIN_ROOT=$(if [ -d "../.claude/plugins/project-management" ]; then echo "../.claude/plugins/project-management"; elif [ -d ".claude/plugins/project-management" ]; then echo ".claude/plugins/project-management"; else echo "$CLAUDE_PLUGIN_ROOT"; fi) && \
TYPST_FONT_PATHS="$PLUGIN_ROOT/fonts" pandoc <input.md> \
-o <output.pdf> \
--pdf-engine=typst \
-V template="whitepaper.typ" \
-V mainfont="Source Sans 3" \
-V fontsize=10pt \
-V papersize=a4project-guides/ADMIN-GUIDE.mdcd content && \
PLUGIN_ROOT=$([ -d "../.claude/plugins/project-management" ] && echo "../.claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT") && \
TYPST_FONT_PATHS="$PLUGIN_ROOT/fonts" pandoc ADMIN-GUIDE.md -o ADMIN-GUIDE.pdf --pdf-engine=typst -V template="whitepaper.typ" -V mainfont="Source Sans 3" -V fontsize=10pt -V papersize=a4--toccd <output-directory> && \
PLUGIN_ROOT=$(if [ -d "../.claude/plugins/project-management" ]; then echo "../.claude/plugins/project-management"; elif [ -d ".claude/plugins/project-management" ]; then echo ".claude/plugins/project-management"; else echo "$CLAUDE_PLUGIN_ROOT"; fi) && \
TYPST_FONT_PATHS="$PLUGIN_ROOT/fonts" pandoc <input.md> \
-o <output.pdf> \
--pdf-engine=typst \
-V template="whitepaper.typ" \
-V mainfont="Source Sans 3" \
-V fontsize=10pt \
-V papersize=a4project-guides/ADMIN-GUIDE.mdcd content && \
PLUGIN_ROOT=$([ -d "../.claude/plugins/project-management" ] && echo "../.claude/plugins/project-management" || echo "$CLAUDE_PLUGIN_ROOT") && \
TYPST_FONT_PATHS="$PLUGIN_ROOT/fonts" pandoc ADMIN-GUIDE.md -o ADMIN-GUIDE.pdf --pdf-engine=typst -V template="whitepaper.typ" -V mainfont="Source Sans 3" -V fontsize=10pt -V papersize=a4--tocundefinedundefined
**Example cleanup for `project-guides/AUTHOR-GUIDE.md`:**
```bash
rm -f project-guides/whitepaper.typ project-guides/AUTHOR-GUIDE.md project-guides/AUTHOR-GUIDE.plain.html project-guides/AUTHOR-GUIDE.htmlproject-guides/AUTHOR-GUIDE.pdf
**针对`project-guides/AUTHOR-GUIDE.md`的清理示例:**
```bash
rm -f project-guides/whitepaper.typ project-guides/AUTHOR-GUIDE.md project-guides/AUTHOR-GUIDE.plain.html project-guides/AUTHOR-GUIDE.htmlproject-guides/AUTHOR-GUIDE.pdf"PDF created: [output.pdf]""PDF已创建:[output.pdf]"------| Field | Purpose | Example |
|---|---|---|
| Cover page headline, PDF metadata | |
| 字段 | 用途 | 示例 |
|---|---|---|
| 封面标题,PDF元数据 | |
| Field | Purpose | Example |
|---|---|---|
| Second line on cover, below the accent line | |
| Cover page and page footer | |
| 字段 | 用途 | 示例 |
|---|---|---|
| 封面第二行,位于装饰线下方 | |
| 封面和页脚显示 | |
| Field | Purpose | Example |
|---|---|---|
| Author list on cover page | See structured example below |
| 字段 | 用途 | 示例 |
|---|---|---|
| 封面作者列表 | 见下方结构化示例 |
---
title: "AEM Code Sync for Edge Delivery Services"
subtitle: "Technical Architecture and Security Documentation"
date: "January 29, 2026"
------
title: "AEM Code Sync for Edge Delivery Services"
subtitle: "Technical Architecture and Security Documentation"
date: "January 29, 2026"
------
title: "AEM Code Sync for Edge Delivery Services"
subtitle: "Technical Architecture and Security Documentation"
date: "January 29, 2026"
author:
- name: "Jane Smith"
affiliation: "Edge Delivery Services"
- name: "John Doe"
affiliation: "Security Engineering"
------
title: "AEM Code Sync for Edge Delivery Services"
subtitle: "Technical Architecture and Security Documentation"
date: "January 29, 2026"
author:
- name: "Jane Smith"
affiliation: "Edge Delivery Services"
- name: "John Doe"
affiliation: "Security Engineering"
---title: AEM: A Guidefontsizepapersize-Vtitle: AEM: A Guidefontsizepapersize-V| Feature | Description |
|---|---|
| Title page | Clean design with title, subtitle, date, authors |
| Table of contents | Auto-generated on page 2 |
| H1 headings | Black weight, page break before |
| H2 headings | Bold with blue accent line |
| Code blocks | Gray background, rounded corners |
| Blockquotes | Blue left border, light blue background |
| Tables | Light borders, bold header row |
| Links | Blue color (#0066cc) |
| 特性 | 描述 |
|---|---|
| 标题页 | 简洁设计,包含标题、副标题、日期、作者 |
| 目录 | 自动生成在第2页 |
| H1标题 | 黑粗体,前分页 |
| H2标题 | 粗体加蓝色装饰线 |
| 代码块 | 灰色背景,圆角 |
| 引用块 | 蓝色左侧边框,浅蓝色背景 |
| 表格 | 浅色边框,粗体表头行 |
| 链接 | 蓝色(#0066cc) |
-V key=value| Variable | Default | Description |
|---|---|---|
| | Page size ( |
| | Base font size |
| | Typst template file |
| | Main body font |
-V key=value| 变量 | 默认值 | 描述 |
|---|---|---|
| | 页面尺寸( |
| | 基础字号 |
| | Typst模板文件 |
| | 正文主字体 |
pandoctypstbrewpandocapt-gettypstfonts/pandoctypstbrewpandocapt-gettypstfonts/TYPST_FONT_PATHSexport TYPST_FONT_PATHS=${CLAUDE_PLUGIN_ROOT}/fonts| Issue | Solution |
|---|---|
| Font not found | Check TYPST_FONT_PATHS points to plugin's fonts/ directory |
| Template not found | Ensure whitepaper.typ was copied to output directory |
| Tables not breaking | Template handles this automatically |
| Missing title page | Check frontmatter has |
TYPST_FONT_PATHSexport TYPST_FONT_PATHS=${CLAUDE_PLUGIN_ROOT}/fonts| 问题 | 解决方案 |
|---|---|
| 字体未找到 | 检查TYPST_FONT_PATHS指向插件的fonts/目录 |
| 模板未找到 | 确保whitepaper.typ已复制到输出目录 |
| 表格未分页 | 模板会自动处理此问题 |
| 缺少标题页 | 检查前置内容是否包含 |