zcode-app-cli 3.3.5-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +642 -0
- package/bin/zcode.js +848 -0
- package/config.example.json +110 -0
- package/package.json +81 -0
- package/vendor/.node-bundle-meta.json +6 -0
- package/vendor/extraction.json +11 -0
- package/vendor/node_modules/@zcode/tui/dist/index.js +161875 -0
- package/vendor/node_modules/@zcode/tui/package.json +14 -0
- package/vendor/packages/android-emulator-plugin/.mcp.json +19 -0
- package/vendor/packages/android-emulator-plugin/.zcode-plugin/plugin.json +63 -0
- package/vendor/packages/android-emulator-plugin/README.md +134 -0
- package/vendor/packages/android-emulator-plugin/commands/android-dev.md +11 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/path.d.ts +4 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/path.js +17 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/result.d.ts +5 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/result.js +22 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/run.d.ts +18 -0
- package/vendor/packages/android-emulator-plugin/dist/lib/run.js +99 -0
- package/vendor/packages/android-emulator-plugin/dist/mcp/server.d.ts +3 -0
- package/vendor/packages/android-emulator-plugin/dist/mcp/server.js +47607 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/app.d.ts +39 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/app.js +50 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/avd.d.ts +37 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/avd.js +185 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/build.d.ts +68 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/build.js +131 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/config.d.ts +7 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/config.js +29 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/device.d.ts +20 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/device.js +91 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/logs.d.ts +15 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/logs.js +31 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/preflight.d.ts +15 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/preflight.js +123 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/project-template.d.ts +13 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/project-template.js +211 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/project.d.ts +33 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/project.js +195 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.d.ts +14 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.js +73 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/sdk.d.ts +14 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/sdk.js +185 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/ui.d.ts +92 -0
- package/vendor/packages/android-emulator-plugin/dist/providers/ui.js +146 -0
- package/vendor/packages/android-emulator-plugin/hooks/hooks.json +3 -0
- package/vendor/packages/android-emulator-plugin/package.json +35 -0
- package/vendor/packages/android-emulator-plugin/skills/android-dev/INSTALL_ENVIRONMENT.md +357 -0
- package/vendor/packages/android-emulator-plugin/skills/android-dev/SKILL.md +73 -0
- package/vendor/packages/android-emulator-plugin/templates/compose-app/README.md +5 -0
- package/vendor/packages/document-skills-plugin/.zcode-plugin/plugin.json +8 -0
- package/vendor/packages/document-skills-plugin/package.json +8 -0
- package/vendor/packages/document-skills-plugin/skills/docx/LICENSE.txt +13 -0
- package/vendor/packages/document-skills-plugin/skills/docx/SKILL.md +201 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/chart-templates.md +386 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/common-rules.md +419 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/decorations.md +537 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/design-system.md +1797 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-advanced.md +257 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-core.md +332 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/faq.md +323 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/math-formulas.md +276 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/ooxml.md +222 -0
- package/vendor/packages/document-skills-plugin/skills/docx/references/toc.md +264 -0
- package/vendor/packages/document-skills-plugin/skills/docx/routes/comment.md +88 -0
- package/vendor/packages/document-skills-plugin/skills/docx/routes/create.md +207 -0
- package/vendor/packages/document-skills-plugin/skills/docx/routes/edit.md +115 -0
- package/vendor/packages/document-skills-plugin/skills/docx/routes/format.md +120 -0
- package/vendor/packages/document-skills-plugin/skills/docx/routes/read.md +114 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/academic.md +783 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/contract.md +463 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/copywriting.md +139 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/exam.md +698 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/official-doc.md +411 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/report.md +340 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scenes/resume.md +534 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/__init__.py +1 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/add_toc_placeholders.py +749 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/document.py +1333 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/postcheck.py +807 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/comments.xml +3 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/people.xml +3 -0
- package/vendor/packages/document-skills-plugin/skills/docx/scripts/utilities.py +374 -0
- package/vendor/packages/document-skills-plugin/skills/docx/setup.sh +177 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/LICENSE.txt +13 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/SKILL.md +919 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/academic.md +1058 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/creative.md +770 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/poster.md +702 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process-advanced.md +284 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process.md +319 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/briefs/report.md +1659 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/configs/components.md +153 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/configs/fonts.md +93 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/configs/visual_framework.md +263 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-academic.tex +130 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-altacv.tex +190 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/cover_validate.js +367 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/design_engine.py +2816 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2pdf-next.js +754 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2poster.js +256 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf.py +2959 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf_qa.py +901 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/poster_validate.py +1337 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/setup.sh +269 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/scripts/toc_validate.py +2075 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/charts.md +320 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover-backgrounds.md +384 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover.md +1442 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/fill-engine.md +527 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/geometry.md +142 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/overflow.md +630 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/pagination.md +367 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/palette.md +217 -0
- package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/typography.md +20 -0
- package/vendor/packages/ios-simulator-plugin/.mcp.json +15 -0
- package/vendor/packages/ios-simulator-plugin/.zcode-plugin/plugin.json +34 -0
- package/vendor/packages/ios-simulator-plugin/README.md +111 -0
- package/vendor/packages/ios-simulator-plugin/commands/ios-dev.md +11 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/path.d.ts +4 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/path.js +18 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/result.d.ts +5 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/result.js +20 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/run.d.ts +17 -0
- package/vendor/packages/ios-simulator-plugin/dist/lib/run.js +83 -0
- package/vendor/packages/ios-simulator-plugin/dist/mcp/server.d.ts +3 -0
- package/vendor/packages/ios-simulator-plugin/dist/mcp/server.js +46833 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/build.d.ts +112 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/build.js +99 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/logs.d.ts +21 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/logs.js +26 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.d.ts +12 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.js +62 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/project.d.ts +35 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/project.js +288 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.d.ts +22 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.js +30 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/sim.d.ts +60 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/sim.js +116 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/ui.d.ts +57 -0
- package/vendor/packages/ios-simulator-plugin/dist/providers/ui.js +67 -0
- package/vendor/packages/ios-simulator-plugin/hooks/hooks.json +3 -0
- package/vendor/packages/ios-simulator-plugin/package.json +35 -0
- package/vendor/packages/ios-simulator-plugin/skills/ios-dev/SKILL.md +45 -0
- package/vendor/packages/ios-simulator-plugin/templates/swiftui-app/README.md +5 -0
- package/vendor/packages/restore-legacy-sessions-plugin/.zcode-plugin/plugin.json +9 -0
- package/vendor/packages/restore-legacy-sessions-plugin/README.md +35 -0
- package/vendor/packages/restore-legacy-sessions-plugin/commands/restore-legacy-sessions.md +11 -0
- package/vendor/packages/restore-legacy-sessions-plugin/package.json +8 -0
- package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/SKILL.md +92 -0
- package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/restore-conversation.mjs +648 -0
- package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/scan-legacy-sessions.mjs +422 -0
- package/vendor/packages/skill-creator-plugin/.zcode-plugin/plugin.json +8 -0
- package/vendor/packages/skill-creator-plugin/package.json +8 -0
- package/vendor/packages/skill-creator-plugin/skills/skill-creator/SKILL.md +159 -0
- package/vendor/packages/zcode-guide-plugin/.zcode-plugin/plugin.json +8 -0
- package/vendor/packages/zcode-guide-plugin/README.md +22 -0
- package/vendor/packages/zcode-guide-plugin/package.json +8 -0
- package/vendor/packages/zcode-guide-plugin/skills/diagnosing-commands/SKILL.md +66 -0
- package/vendor/packages/zcode-guide-plugin/skills/diagnosing-hooks/SKILL.md +66 -0
- package/vendor/packages/zcode-guide-plugin/skills/diagnosing-mcp/SKILL.md +97 -0
- package/vendor/packages/zcode-guide-plugin/skills/diagnosing-plugins/SKILL.md +59 -0
- package/vendor/packages/zcode-guide-plugin/skills/diagnosing-skills/SKILL.md +61 -0
- package/vendor/packages/zcode-guide-plugin/skills/zcode-configuration-guide/SKILL.md +99 -0
- package/vendor/zcode.cjs +2926 -0
- package/zcode-runtime.lock.json +8 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Components — Art Direction JSON Lexicon
|
|
2
|
+
|
|
3
|
+
This file defines the strict component vocabulary for the Creative pipeline.
|
|
4
|
+
|
|
5
|
+
**CRITICAL RULE: DO NOT OUTPUT HTML OR CSS.**
|
|
6
|
+
You are an Art Director. You only output JSON. To use these components, insert their corresponding JSON objects into the `components` array of your page blueprint. The `design_engine.py` will automatically compile them into gallery-grade visual assets.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Glass_Canvas
|
|
11
|
+
The primary container for readable body text. Simulates printed text on frosted acrylic.
|
|
12
|
+
|
|
13
|
+
**JSON Blueprint Structure:**
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"type": "Glass_Canvas",
|
|
17
|
+
"markdown_content": "### The Divide\nYour text goes here. Supports standard Markdown.",
|
|
18
|
+
"tension_score": 0.8
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
**Parameters:**
|
|
22
|
+
- `markdown_content`: (Required) The actual text. **Recommended under 150 words; absolute max 250 words.**
|
|
23
|
+
- `tension_score`: (Optional, 0.0 to 1.0) Semantic tension. Drives dynamic font weight (300 to 900). Use `0.1` for calm/light text, `0.9` for crisis/heavy text. Do NOT use on data-heavy pages.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Hero_Typography
|
|
28
|
+
Massive, page-dominating title text that physically interacts with the background via blend modes.
|
|
29
|
+
|
|
30
|
+
**JSON Blueprint Structure:**
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"type": "Hero_Typography",
|
|
34
|
+
"content": "THE WEIGHT<br>OF SILENCE",
|
|
35
|
+
"weight": "black",
|
|
36
|
+
"variant": "standard",
|
|
37
|
+
"scale": 6
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
**Parameters:**
|
|
41
|
+
- `content`: (Required) The text. Use `<br>` for deliberate typographic line breaks.
|
|
42
|
+
- `weight`: (Required) `"black"` (900 weight, dominating) or `"thin"` (100 weight, whisper-quiet/elegant).
|
|
43
|
+
- `variant`: (Optional) `"standard"` (default) only. ~~`"vertical_accent"`~~ is **NOT implemented** in `design_engine.py` — the engine silently ignores this parameter. Use `Floating_Meta` component instead for rotated/vertical decorative text.
|
|
44
|
+
- `scale`: (Optional, integer 1–6) Typographic scale level. The engine maps this to fluid CSS `clamp()` sizes:
|
|
45
|
+
- `6` → `clamp(64px, 12vw, 150px)` — Hero/Display, maximum impact
|
|
46
|
+
- `5` → `clamp(48px, 8vw, 96px)` — Primary Title
|
|
47
|
+
- `4` → `clamp(32px, 5vw, 56px)` — Subheadline
|
|
48
|
+
- `3` → `clamp(20px, 3vw, 32px)` — Lead Paragraph
|
|
49
|
+
- `2` → `16px` — Body
|
|
50
|
+
- `1` → `10px` — Meta/Caption
|
|
51
|
+
If omitted, the engine uses the default hero font size from CSS.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 3. Floating_Meta
|
|
56
|
+
Small-text metadata positioned vertically in corners, mimicking art monograph indexes.
|
|
57
|
+
|
|
58
|
+
**JSON Blueprint Structure:**
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"type": "Floating_Meta",
|
|
62
|
+
"position": "bottom-right",
|
|
63
|
+
"items": [
|
|
64
|
+
"CATALOG NO. 2026.031",
|
|
65
|
+
"EDITION 1/500"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
**Parameters:**
|
|
70
|
+
- `position`: (Required) `"top-left"`, `"top-right"`, `"bottom-left"`, or `"bottom-right"`.
|
|
71
|
+
- `items`: (Required) Array of short strings (dates, edition numbers, refs).
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 4. Stat_Block
|
|
76
|
+
Data sculpture. Transforms boring numbers into massive visual objects.
|
|
77
|
+
|
|
78
|
+
**JSON Blueprint Structure:**
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"type": "Stat_Block",
|
|
82
|
+
"number": "97.3",
|
|
83
|
+
"unit": "%",
|
|
84
|
+
"label": "COMPLETION RATE"
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
**Parameters:**
|
|
88
|
+
- `number`: The core massive digit.
|
|
89
|
+
- `unit`: Tiny unit attached to the number.
|
|
90
|
+
- `label`: Metadata label below the number.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 5. Hairline_Divider
|
|
95
|
+
Ultra-thin separator lines. Structural, like fold lines in print.
|
|
96
|
+
|
|
97
|
+
**JSON Blueprint Structure:**
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"type": "Hairline_Divider",
|
|
101
|
+
"style": "accent"
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
**Parameters:**
|
|
105
|
+
- `style`: `"bleed"` (full width edge-to-edge) or `"accent"` (short centered 30% line).
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 6. Page_Ghost_Number
|
|
110
|
+
Giant, 4% opacity watermark numbers that become part of the page's atmosphere.
|
|
111
|
+
|
|
112
|
+
**JSON Blueprint Structure:**
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"type": "Page_Ghost_Number",
|
|
116
|
+
"number": "03"
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 7. Shaped_Canvas (Advanced Semantic Shape-Wrapping)
|
|
123
|
+
A container where text flows around a non-rectangular shape. The empty space created by the shape IS the visual design.
|
|
124
|
+
|
|
125
|
+
**JSON Blueprint Structure:**
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"type": "Shaped_Canvas",
|
|
129
|
+
"shape_keyword": "wave",
|
|
130
|
+
"markdown_content": "The ocean stretched endlessly... (recommended under 150 words, absolute max 250)"
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
**Parameters & Shape Presets:**
|
|
134
|
+
- `shape_keyword`: MUST be one of the following:
|
|
135
|
+
- `"circle"`: Unity, spotlight, focus.
|
|
136
|
+
- `"wave"`: Ocean, flow, fluidity.
|
|
137
|
+
- `"diagonal_slash"`: Disruption, change, energy.
|
|
138
|
+
- `"diamond"`: Luxury, precision, crystalline.
|
|
139
|
+
- `"wedge_right"`: Direction, progress, forward motion.
|
|
140
|
+
- `markdown_content`: Text to wrap around the shape.
|
|
141
|
+
|
|
142
|
+
**CRITICAL Layout Constraint:**
|
|
143
|
+
If a page contains a `Shaped_Canvas`, that page's `archetype` MUST be set to `"shaped_editorial"` in the JSON. Never mix `Shaped_Canvas` and `Glass_Canvas` on the same page.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Blueprint Assembly Guidelines
|
|
148
|
+
|
|
149
|
+
When constructing the JSON `pages` array, keep these layering and composition rules in mind:
|
|
150
|
+
|
|
151
|
+
1. **Backgrounds**: Do NOT try to place background SVGs as components. Backgrounds are declared globally in the `art_direction.background_svg` field (`"flow"`, `"grid"`, `"noise"`, or `"continuous_flow"`).
|
|
152
|
+
2. **Layering**: The order of objects in the `components` array roughly dictates their top-to-bottom rendering.
|
|
153
|
+
3. **Breathing Room**: Less is more. A page with just one `Hero_Typography` and one `Floating_Meta` is highly sophisticated. Cramming 5 components on a page communicates desperation.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Font System
|
|
2
|
+
|
|
3
|
+
## Font Stacks (by pipeline)
|
|
4
|
+
|
|
5
|
+
### Creative Pipeline (Playwright / HTML)
|
|
6
|
+
|
|
7
|
+
Fonts are loaded via Google Fonts CDN in the HTML `<head>`:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap" rel="stylesheet">
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
#### Variable Font (for Tension Typesetting)
|
|
14
|
+
|
|
15
|
+
When `tension_score` is used on `Glass_Canvas`, the engine switches to **Inter Variable** for continuous weight interpolation (100–900):
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This enables `font-variation-settings: 'wght' <value>` for smooth, non-discrete weight transitions. The standard discrete-weight URL is still used when tension is not active.
|
|
22
|
+
|
|
23
|
+
| Variable | Stack | Usage |
|
|
24
|
+
|----------|-------|-------|
|
|
25
|
+
| `--font-sans` | Inter, Noto Sans SC, Helvetica Neue, Apple Color Emoji, Segoe UI Emoji, sans-serif | Body text, UI elements, stats |
|
|
26
|
+
| `--font-serif` | Playfair Display, Noto Serif SC, Cormorant Garamond, Apple Color Emoji, serif | Hero text, editorial headlines |
|
|
27
|
+
| `--font-mono` | SF Mono, Consolas, Apple Color Emoji, monospace | Floating meta, timestamps, codes |
|
|
28
|
+
|
|
29
|
+
### Report Pipeline (ReportLab)
|
|
30
|
+
|
|
31
|
+
ReportLab requires registered fonts. CJK support via `UniSong` / `UniHei` (built into reportlab.lib.fonts):
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from reportlab.pdfbase import pdfmetrics
|
|
35
|
+
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
|
|
36
|
+
pdfmetrics.registerFont(UnicodeCIDFont('STSong-Light')) # Song-ti (serif-like)
|
|
37
|
+
# Use 'STSong-Light' for body, headings
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
> **⚠️ ReportLab CANNOT render emoji.** If content has emoji, route to Creative pipeline.
|
|
41
|
+
|
|
42
|
+
### Academic Pipeline (Tectonic / LaTeX)
|
|
43
|
+
|
|
44
|
+
CJK support via `ctex` package:
|
|
45
|
+
```latex
|
|
46
|
+
\usepackage{ctex} % Auto-selects appropriate CJK fonts
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
For manual font selection:
|
|
50
|
+
```latex
|
|
51
|
+
\setCJKmainfont{Noto Serif CJK SC}
|
|
52
|
+
\setCJKsansfont{Noto Sans CJK SC}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
> **⚠️ LaTeX silently drops emoji characters.** If content has emoji, route to Creative pipeline.
|
|
56
|
+
|
|
57
|
+
## Emoji Font Fallback
|
|
58
|
+
|
|
59
|
+
All Creative pipeline font stacks include emoji fallback:
|
|
60
|
+
- **macOS**: `Apple Color Emoji` (system default, full color emoji)
|
|
61
|
+
- **Windows**: `Segoe UI Emoji`
|
|
62
|
+
- **Linux**: `Noto Color Emoji` (install: `apt install fonts-noto-color-emoji`)
|
|
63
|
+
|
|
64
|
+
Chromium (used by Playwright) on macOS renders emoji natively — no extra configuration needed.
|
|
65
|
+
|
|
66
|
+
## CJK Font Weight Guide
|
|
67
|
+
|
|
68
|
+
| Weight Value | Inter Equivalent | Noto Sans SC Name | Usage |
|
|
69
|
+
|-------------|------------------|-------------------|-------|
|
|
70
|
+
| 300 | Light | Light | Subtitles, captions, meta text |
|
|
71
|
+
| 400 | Regular | Regular | Body text |
|
|
72
|
+
| 500 | Medium | Medium | Semi-emphasis |
|
|
73
|
+
| 700 | Bold | Bold | Headlines, emphasis |
|
|
74
|
+
| 900 | Black | Black | Hero text, stat numbers |
|
|
75
|
+
|
|
76
|
+
> **Tip**: Noto Sans SC weights 300–900 cover most use cases. Always load at least 400 and 700 via Google Fonts.
|
|
77
|
+
|
|
78
|
+
## Font Size Scale
|
|
79
|
+
|
|
80
|
+
Recommended type scale (base: 16px body):
|
|
81
|
+
|
|
82
|
+
| Role | Size | Weight | Line-Height |
|
|
83
|
+
|------|------|--------|-------------|
|
|
84
|
+
| Page Ghost Number | 240px | 900 | 1.0 |
|
|
85
|
+
| Hero (large) | clamp(48px, 10vw, 110px) | 900 | 0.88 |
|
|
86
|
+
| Hero (serif thin) | clamp(48px, 10vw, 110px) | 100 | 0.88 |
|
|
87
|
+
| Stat Number | clamp(32px, 5vw, 56px) | 900 | 0.9 |
|
|
88
|
+
| Section Title | 24px | 800 | 1.2 |
|
|
89
|
+
| Subsection | 20px | 700 | 1.3 |
|
|
90
|
+
| Body | 16px | 400 | 1.6–1.7 |
|
|
91
|
+
| Caption | 14px | 400 | 1.5 |
|
|
92
|
+
| Floating Meta | 10px | 400 (mono) | 1.4 |
|
|
93
|
+
| Stat Label | 11px | 400 | 1.2 |
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Visual Framework — Aesthetic Axioms
|
|
2
|
+
|
|
3
|
+
Non-template design system. This file is the LLM's thinking framework — not a list of styles to pick from, but a set of immutable laws that govern every design decision.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## The Three Absolutes
|
|
8
|
+
|
|
9
|
+
1. **Restraint** — Remove until it hurts. Then remove one more thing.
|
|
10
|
+
2. **Contrast** — Hierarchy through scale and weight, never through color multiplication.
|
|
11
|
+
3. **Space Metaphor** — Every page has physical energy: gravity, tension, breathing.
|
|
12
|
+
|
|
13
|
+
### The Anti-Gaudy Imperative
|
|
14
|
+
|
|
15
|
+
> **When in doubt, remove. Never add.**
|
|
16
|
+
|
|
17
|
+
A document looks "cheap" or "土" when it has too many competing visual elements. The cure is always subtraction, never rearrangement.
|
|
18
|
+
|
|
19
|
+
**Red flags that a design is gaudy:**
|
|
20
|
+
- More than 3 decorative elements on a single body page
|
|
21
|
+
- Icons or emoji used as section header decoration (use typography instead)
|
|
22
|
+
- Decorative borders or frames around body content
|
|
23
|
+
- Pattern/texture backgrounds on body pages
|
|
24
|
+
- 3+ different hue families visible simultaneously
|
|
25
|
+
- Elements added "because there's empty space" rather than for function
|
|
26
|
+
|
|
27
|
+
**The fix is always:** Delete the decorative element. If the page still communicates its message clearly, it didn't need the decoration. If it doesn't, fix the typography hierarchy — not by adding more visual noise.
|
|
28
|
+
|
|
29
|
+
### 🚫 The Stock Image / Clipart / AI-Generated Decoration Ban
|
|
30
|
+
|
|
31
|
+
> **ABSOLUTE PROHIBITION: Do NOT embed stock photos, clipart, watercolor illustrations, AI-generated images (flowers, patterns, borders, frames, ornaments), or any decorative raster/vector artwork into PDF documents.**
|
|
32
|
+
|
|
33
|
+
This is the #1 source of "cheap" / "土" / "婚庆风" design. Examples of what is BANNED:
|
|
34
|
+
- ✘ Watercolor flowers / roses / floral corners / vine borders
|
|
35
|
+
- ✘ Gold/metallic decorative frames or borders
|
|
36
|
+
- ✘ Stock photo backgrounds (landscapes, textures, marble)
|
|
37
|
+
- ✘ Clipart illustrations (ribbons, bows, hearts, stars)
|
|
38
|
+
- ✘ AI-generated decorative artwork (DALL-E flowers, Midjourney patterns)
|
|
39
|
+
- ✘ Any `<img>` tag used for purely decorative (non-informational) purposes
|
|
40
|
+
- ✘ Unsplash/Pexels/Pixabay stock photos used as background or decoration
|
|
41
|
+
|
|
42
|
+
**What IS allowed:**
|
|
43
|
+
- ✔ Geometric shapes rendered in CSS/SVG (circles, lines, rectangles — from `geometry.md`)
|
|
44
|
+
- ✔ Typography-based decoration (oversized letters, watermark text, letter-spacing effects)
|
|
45
|
+
- ✔ Color blocks and gradients (within palette rules)
|
|
46
|
+
- ✔ User-provided photos/logos that are CONTENT (not decoration)
|
|
47
|
+
- ✔ Charts and data visualizations
|
|
48
|
+
- ✔ Diagrams that convey information
|
|
49
|
+
|
|
50
|
+
**The principle:** If removing an image doesn't reduce the information content of the document, that image is decoration and should be replaced with typography or geometric elements.
|
|
51
|
+
|
|
52
|
+
**Wedding invitations, event cards, certificates:** Use elegant typography + geometric accents (thin lines, minimal shapes) + generous whitespace. A beautifully typeset name in 48pt serif with 6pt letter-spacing is infinitely more elegant than watercolor roses.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Color Axioms
|
|
57
|
+
|
|
58
|
+
### The 60-30-10 Law
|
|
59
|
+
|
|
60
|
+
Every design consists of exactly three tonal zones:
|
|
61
|
+
|
|
62
|
+
| Zone | Coverage | Role | Generated by |
|
|
63
|
+
|------|----------|------|-------------|
|
|
64
|
+
| **60% — Ground** | Background, margins, empty space | Sets mood; the viewer doesn't "see" it consciously | `--c-bg` from `design_engine.py` |
|
|
65
|
+
| **30% — Structure** | Cards, dividers, secondary areas | Provides architecture; same hue family as ground, different lightness | `--c-mid` |
|
|
66
|
+
| **10% — Emphasis** | Headlines, key numbers, one accent element | Draws the eye; the only place "color" lives | `--c-accent` |
|
|
67
|
+
|
|
68
|
+
### Saturation Discipline (HARD RULE)
|
|
69
|
+
|
|
70
|
+
All colors pass through `design_engine.py` which enforces:
|
|
71
|
+
- **Saturation range**: 0.05 – 0.25 (HSL). This is non-negotiable.
|
|
72
|
+
- **No pure primaries**: Pure red (#ff0000), blue (#0000ff), yellow (#ffff00) are forbidden.
|
|
73
|
+
- **Max 3 hues** in the entire document. Variations in lightness/saturation don't count as separate hues.
|
|
74
|
+
|
|
75
|
+
### Lightness Polarity
|
|
76
|
+
|
|
77
|
+
Only two lightness regimes exist. The middle is forbidden.
|
|
78
|
+
|
|
79
|
+
| Mode | Background L | Text L | Forbidden Zone |
|
|
80
|
+
|------|-------------|--------|----------------|
|
|
81
|
+
| **Dark** (Cinematic) | < 0.10 | > 0.85 | L between 0.30–0.70 for backgrounds |
|
|
82
|
+
| **Light** (Editorial) | > 0.95 | < 0.15 | L between 0.30–0.70 for backgrounds |
|
|
83
|
+
|
|
84
|
+
Muddy mid-tones (L 0.30–0.70) for backgrounds produce the "cheap web app" look. Never.
|
|
85
|
+
|
|
86
|
+
### What Color is NOT For
|
|
87
|
+
|
|
88
|
+
Color does not create hierarchy. Size and weight do.
|
|
89
|
+
|
|
90
|
+
| ❌ Wrong | ✅ Right |
|
|
91
|
+
|----------|---------|
|
|
92
|
+
| Blue heading, grey subheading, black body | All same hue; heading 900 weight 48px, sub 600 36px, body 400 16px |
|
|
93
|
+
| Colored tags/badges for categories | Monochrome tags with border weight variation |
|
|
94
|
+
| Gradient text on everything | Gradient text on exactly ONE hero element, nowhere else |
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Typography Axioms
|
|
99
|
+
|
|
100
|
+
### Weight is the New Color
|
|
101
|
+
|
|
102
|
+
Hierarchy comes from the contrast between extremes of weight:
|
|
103
|
+
|
|
104
|
+
| Element | Weight | Size Relative to Body |
|
|
105
|
+
|---------|--------|----------------------|
|
|
106
|
+
| Hero title | 100 (Thin) OR 900 (Black) | 4–6× body |
|
|
107
|
+
| Section heading | 700 | 2× body |
|
|
108
|
+
| Body | 400 | 1× (baseline) |
|
|
109
|
+
| Caption / metadata | 300 | 0.7× body |
|
|
110
|
+
|
|
111
|
+
The gap between hero and body must be **dramatic** — at least 4× size ratio. Anything less feels timid.
|
|
112
|
+
|
|
113
|
+
### Font Rules
|
|
114
|
+
|
|
115
|
+
- **Max 2 families per page**. One serif, one sans (or one display, one text). Never three.
|
|
116
|
+
- **Every `font-family` must end with a generic**: `sans-serif`, `serif`, or `monospace`.
|
|
117
|
+
- **For physical print (>500mm)**: Use `pt`/`mm` for font sizes, never `px`.
|
|
118
|
+
|
|
119
|
+
### Line-Height by Density
|
|
120
|
+
|
|
121
|
+
| Content Type | Line-Height | Why |
|
|
122
|
+
|-------------|------------|-----|
|
|
123
|
+
| Body text, paragraphs | 1.6–1.8 | Comfortable reading |
|
|
124
|
+
| Headings | 0.85–1.0 | Tight, sculptural — headings are visual objects, not sentences |
|
|
125
|
+
| Captions, metadata | 1.4 | Compact but readable |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Space Axioms
|
|
130
|
+
|
|
131
|
+
### The Breathing Margin Rule (MANDATORY)
|
|
132
|
+
|
|
133
|
+
Every page must have **10–12% clear margin** on all edges. Nothing — no text, no decoration, no card — may enter this zone.
|
|
134
|
+
|
|
135
|
+
The exact percentage depends on content density:
|
|
136
|
+
- **Sparse content** (hero pages, covers): 15% is fine — lots of air
|
|
137
|
+
- **Standard content** (editorial, data): **12%** is the sweet spot
|
|
138
|
+
- **Dense content** (tables, stat grids): 10% minimum — tighter but still breathable
|
|
139
|
+
|
|
140
|
+
Default in `design_engine.py`: `inset: 10% 12%` (vertical 10%, horizontal 12%).
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
┌──────────────────────────────┐
|
|
144
|
+
│ 10-12% margin (breathing) │
|
|
145
|
+
│ ┌────────────────────────┐ │
|
|
146
|
+
│ │ │ │
|
|
147
|
+
│ │ Content lives here │ │
|
|
148
|
+
│ │ (76-80% of canvas) │ │
|
|
149
|
+
│ │ │ │
|
|
150
|
+
│ └────────────────────────┘ │
|
|
151
|
+
│ 10-12% margin (breathing) │
|
|
152
|
+
└──────────────────────────────┘
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Decorative SVG backgrounds may extend into the margin zone (they're atmospheric, not content). But all readable elements respect it.
|
|
156
|
+
|
|
157
|
+
### Negative Space is Content
|
|
158
|
+
|
|
159
|
+
Empty space is not "wasted space." It's a compositional element:
|
|
160
|
+
- A poster with 50% whitespace communicates **confidence**
|
|
161
|
+
- A poster crammed to 90% communicates **desperation**
|
|
162
|
+
- The ratio of content to void sets the emotional tone
|
|
163
|
+
|
|
164
|
+
### Proximity Rule
|
|
165
|
+
|
|
166
|
+
Related items are close. Unrelated items are far. The gap between unrelated elements should be **at least 3× the gap between related ones**.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Intent → Visual Translation
|
|
171
|
+
|
|
172
|
+
Five design intents. Each describes an **atmosphere** — the emotional field the viewer should feel. Intents do NOT prescribe specific parameters (font weight, line-height, SVG type, etc.). All concrete parameter mappings live in `briefs/creative.md` § Intent Mapping Table and `design_engine.py` INTENT_HUES/INTENT_HARMONY_MAP.
|
|
173
|
+
|
|
174
|
+
### Calm
|
|
175
|
+
Stillness. The viewer’s breathing slows. Vast open space, restrained palette, nothing competes for attention. Covers healthcare, wellness, meditation, and minimalist aesthetics. The design communicates through what it *removes*.
|
|
176
|
+
|
|
177
|
+
### Tension
|
|
178
|
+
Conflict. Sharp angles, dramatic contrast, elements that push against each other. Urgency, crisis, disruption. The page has physical energy — something is about to break or has already broken.
|
|
179
|
+
|
|
180
|
+
### Energy
|
|
181
|
+
Motion. Dense composition, slight rotations, warmth. Marketing, launches, social campaigns. The design vibrates — it wants to move off the page. Nothing is perfectly centered.
|
|
182
|
+
|
|
183
|
+
### Authority
|
|
184
|
+
Gravitas. Formal, deliberate, symmetrical. Government, finance, luxury, high-end corporate. Every element is placed with surgical precision. The design commands respect through restraint and weight.
|
|
185
|
+
|
|
186
|
+
### Warmth
|
|
187
|
+
Comfort. Rounded edges, generous spacing, earth tones. Food, lifestyle, home. The design feels like a warm room — inviting, soft, human.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
> **Legacy mapping:** Serenity → Calm, Minimalism → Calm, Elegance → Authority. Old intent names are accepted as aliases in `design_engine.py` for backward compatibility.
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Advanced Visual Techniques
|
|
196
|
+
|
|
197
|
+
### Semantic-Topological Typesetting (Tension Score)
|
|
198
|
+
|
|
199
|
+
Text is not visually flat — its "weight" should mirror its emotional intensity. When a document has narrative arc (calm introduction → crisis → resolution), font weight should breathe with it.
|
|
200
|
+
|
|
201
|
+
**The Principle**: Assign a `tension_score` (0.0–1.0) to `Glass_Canvas` components. The engine maps this to a continuous font weight via Inter Variable font (300–900 axis).
|
|
202
|
+
|
|
203
|
+
**When it matters**:
|
|
204
|
+
- Documents with 3+ pages and clear emotional shifts
|
|
205
|
+
- Storytelling: case studies, pitch decks, manifestos
|
|
206
|
+
- The reader may not consciously notice, but the subconscious weight variation creates "texture" in the reading experience — the same way a film score operates below awareness
|
|
207
|
+
|
|
208
|
+
**When to skip**:
|
|
209
|
+
- Single-page posters (no arc to express)
|
|
210
|
+
- Data-heavy reports (numbers don't have "feelings")
|
|
211
|
+
- Short documents where all paragraphs share the same tone
|
|
212
|
+
|
|
213
|
+
### Cross-Page Visual Continuity (Continuous Flow)
|
|
214
|
+
|
|
215
|
+
Multi-page documents are not a collection of isolated posters — they're a journey. The background should reflect this.
|
|
216
|
+
|
|
217
|
+
**The Principle**: Instead of generating independent SVGs per page, generate ONE continuous bezier curve spanning the entire document height, then slice it per-page via SVG `viewBox`. The result: curves that exit one page's bottom edge seamlessly enter the next page's top.
|
|
218
|
+
|
|
219
|
+
**When to use `continuous_flow`**:
|
|
220
|
+
- Multi-page (2+) documents with narrative structure
|
|
221
|
+
- Journey/timeline documents
|
|
222
|
+
- Brand pieces where seamless sophistication matters
|
|
223
|
+
- Best paired with: `Warmth`, `Elegance`, `Serenity` intents
|
|
224
|
+
|
|
225
|
+
**When to use regular `flow` instead**:
|
|
226
|
+
- Single-page documents (continuous has no meaning)
|
|
227
|
+
- Each page is conceptually independent (not a story)
|
|
228
|
+
|
|
229
|
+
### Semantic Shape-Wrapping (Shaped_Canvas)
|
|
230
|
+
|
|
231
|
+
The most dramatic of the three techniques. Text wraps around invisible geometric shapes, and the negative space itself becomes the illustration.
|
|
232
|
+
|
|
233
|
+
**The Principle**: A floating `<div>` with CSS `shape-outside` creates a non-rectangular boundary for text flow. The empty void left by the shape is the design element.
|
|
234
|
+
|
|
235
|
+
**The key insight**: We're not adding an image — we're sculpting the TEXT into a shape. This is extreme minimalism: zero visual assets, maximum visual impact.
|
|
236
|
+
|
|
237
|
+
**When to use**:
|
|
238
|
+
- Pages that need a "wow" without images
|
|
239
|
+
- Section openers, cover alternatives
|
|
240
|
+
- Content that thematically connects to a shape (ocean → wave, progress → wedge)
|
|
241
|
+
- Pages with moderate text density (100–200 words) — the shape needs room
|
|
242
|
+
|
|
243
|
+
**When NOT to use**:
|
|
244
|
+
- Dense content pages (shape eats 30–40% of text area → overflow risk)
|
|
245
|
+
- Together with `Glass_Canvas` on the same page (backdrop-filter conflicts)
|
|
246
|
+
- More than one per page (visual chaos)
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Quality Litmus Tests
|
|
251
|
+
|
|
252
|
+
Before delivering, every page must pass these:
|
|
253
|
+
|
|
254
|
+
| Test | Method |
|
|
255
|
+
|------|--------|
|
|
256
|
+
| **3-meter test** | Can you read the headline from 3 meters away? (size hierarchy) |
|
|
257
|
+
| **Squint test** | Squint at the page — do you see clear dark/light zones? (contrast) |
|
|
258
|
+
| **Magazine test** | Could this be a page in Monocle, Kinfolk, or Cereal magazine? (taste) |
|
|
259
|
+
| **Removal test** | Can you remove any element without losing meaning? If not, you have too little. If yes, remove it. |
|
|
260
|
+
| **Color count** | Count distinct hues. If > 3, you've failed the color axiom. |
|
|
261
|
+
| **Saturation check** | Run `design_engine.py audit` — any S > 0.25 on non-accent = violation |
|
|
262
|
+
| **Breathing check** | Is there 15% clear margin on all edges? |
|
|
263
|
+
| **Consistency** | Do all pages share the same font pairing, color tokens, line thickness, and corner radius? |
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
% ═══════════════════════════════════════════════════════════
|
|
2
|
+
% Academic CV Template
|
|
3
|
+
% Single-column, multi-page, with bibliography support
|
|
4
|
+
% ═══════════════════════════════════════════════════════════
|
|
5
|
+
\documentclass[11pt,a4paper]{article}
|
|
6
|
+
|
|
7
|
+
\usepackage[top=2cm,bottom=2cm,left=2.5cm,right=2.5cm]{geometry}
|
|
8
|
+
\usepackage{enumitem}
|
|
9
|
+
\usepackage{titlesec}
|
|
10
|
+
\usepackage{fancyhdr}
|
|
11
|
+
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
|
|
12
|
+
\usepackage{xcolor}
|
|
13
|
+
\usepackage[numbers,sort&compress]{natbib}
|
|
14
|
+
|
|
15
|
+
% ── Fonts ──
|
|
16
|
+
\usepackage[rm]{roboto}
|
|
17
|
+
\renewcommand{\familydefault}{\rmdefault}
|
|
18
|
+
|
|
19
|
+
% ── Section Formatting ──
|
|
20
|
+
\definecolor{accent}{HTML}{1F4E79}
|
|
21
|
+
\titleformat{\section}
|
|
22
|
+
{\Large\bfseries\color{accent}} % format
|
|
23
|
+
{} % label (no number)
|
|
24
|
+
{0em} % sep
|
|
25
|
+
{\MakeUppercase} % before-code
|
|
26
|
+
[\vspace{-0.8em}\color{accent}\rule{\linewidth}{0.8pt}] % after-code (rule)
|
|
27
|
+
|
|
28
|
+
\titleformat{\subsection}
|
|
29
|
+
{\large\bfseries}
|
|
30
|
+
{}
|
|
31
|
+
{0em}
|
|
32
|
+
{}
|
|
33
|
+
|
|
34
|
+
% ── Header/Footer ──
|
|
35
|
+
\pagestyle{fancy}
|
|
36
|
+
\fancyhf{}
|
|
37
|
+
\fancyhead[L]{\small\textcolor{gray}{Curriculum Vitae — Your Name}}
|
|
38
|
+
\fancyhead[R]{\small\textcolor{gray}{\thepage}}
|
|
39
|
+
\renewcommand{\headrulewidth}{0.4pt}
|
|
40
|
+
\fancyfoot{}
|
|
41
|
+
|
|
42
|
+
\setlength{\parindent}{0pt}
|
|
43
|
+
\setlist{nosep,leftmargin=1.5em}
|
|
44
|
+
|
|
45
|
+
% ── CV Entry command ──
|
|
46
|
+
\newcommand{\cventry}[4]{%
|
|
47
|
+
\textbf{#1}\hfill\textit{#2}\\
|
|
48
|
+
#3\hfill#4\par\smallskip
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
\begin{document}
|
|
52
|
+
|
|
53
|
+
% ── Header ──
|
|
54
|
+
\begin{center}
|
|
55
|
+
{\LARGE\bfseries Your Full Name, Ph.D.}\par\smallskip
|
|
56
|
+
{\small
|
|
57
|
+
Department of Computer Science, Tsinghua University\\
|
|
58
|
+
Beijing, China 100084\\
|
|
59
|
+
\href{mailto:name@tsinghua.edu.cn}{name@tsinghua.edu.cn}
|
|
60
|
+
\quad|\quad
|
|
61
|
+
\href{https://yoursite.com}{yoursite.com}
|
|
62
|
+
\quad|\quad
|
|
63
|
+
ORCID: \href{https://orcid.org/0000-0000-0000-0000}{0000-0000-0000-0000}
|
|
64
|
+
}\par
|
|
65
|
+
\end{center}
|
|
66
|
+
|
|
67
|
+
\section{Research Interests}
|
|
68
|
+
Large-scale distributed systems, graph neural networks, efficient inference for large language models, and privacy-preserving machine learning.
|
|
69
|
+
|
|
70
|
+
\section{Education}
|
|
71
|
+
\cventry{Ph.D. in Computer Science}{2017 -- 2022}{Stanford University}{Stanford, CA}
|
|
72
|
+
Advisor: Prof.\ Jane Smith\\
|
|
73
|
+
Dissertation: \textit{Scalable Graph Processing in Heterogeneous Computing Environments}
|
|
74
|
+
|
|
75
|
+
\smallskip
|
|
76
|
+
\cventry{B.Eng. in Software Engineering}{2013 -- 2017}{Zhejiang University}{Hangzhou, China}
|
|
77
|
+
First Class Honours, GPA: 3.9/4.0
|
|
78
|
+
|
|
79
|
+
\section{Academic Appointments}
|
|
80
|
+
\cventry{Assistant Professor}{2022 -- Present}{Tsinghua University, Dept.\ of CS}{Beijing}
|
|
81
|
+
\cventry{Postdoctoral Researcher}{2022}{Stanford University, InfoLab}{Stanford, CA}
|
|
82
|
+
|
|
83
|
+
\section{Selected Publications}
|
|
84
|
+
|
|
85
|
+
\subsection{Journal Articles}
|
|
86
|
+
\begin{enumerate}[label={[J\arabic*]}]
|
|
87
|
+
\item \textbf{Your Name}, A.\ Coauthor, and B.\ Coauthor. ``Title of journal paper.'' \textit{IEEE Transactions on Knowledge and Data Engineering}, vol.\ 35, no.\ 4, pp.\ 1234--1248, 2023.
|
|
88
|
+
\item C.\ Coauthor and \textbf{Your Name}. ``Another journal paper.'' \textit{ACM Computing Surveys}, vol.\ 55, no.\ 2, pp.\ 1--35, 2023.
|
|
89
|
+
\end{enumerate}
|
|
90
|
+
|
|
91
|
+
\subsection{Conference Papers}
|
|
92
|
+
\begin{enumerate}[label={[C\arabic*]}]
|
|
93
|
+
\item \textbf{Your Name} and D.\ Coauthor. ``Title of conference paper.'' In \textit{Proc.\ NeurIPS 2023}, pp.\ 5678--5690.
|
|
94
|
+
\item \textbf{Your Name}, E.\ Coauthor, and F.\ Coauthor. ``Another conference paper.'' In \textit{Proc.\ ICML 2022}, pp.\ 3456--3468.
|
|
95
|
+
\end{enumerate}
|
|
96
|
+
|
|
97
|
+
\section{Grants \& Funding}
|
|
98
|
+
\cventry{NSFC Young Scientist Fund}{2023 -- 2025}{Principal Investigator}{¥300,000}
|
|
99
|
+
Project: Efficient Graph Neural Network Training on Heterogeneous Hardware
|
|
100
|
+
|
|
101
|
+
\section{Teaching}
|
|
102
|
+
\cventry{CS101: Introduction to Programming}{Fall 2022, 2023}{Tsinghua University}{120 students}
|
|
103
|
+
\cventry{CS502: Advanced Distributed Systems}{Spring 2023}{Tsinghua University}{45 students}
|
|
104
|
+
|
|
105
|
+
\section{Professional Service}
|
|
106
|
+
\begin{itemize}
|
|
107
|
+
\item \textbf{Program Committee}: NeurIPS 2023, ICML 2023, KDD 2022--2023
|
|
108
|
+
\item \textbf{Reviewer}: IEEE TKDE, ACM TODS, VLDB Journal
|
|
109
|
+
\item \textbf{Session Chair}: SIGMOD 2023 (Graph Processing)
|
|
110
|
+
\end{itemize}
|
|
111
|
+
|
|
112
|
+
\section{Awards \& Honours}
|
|
113
|
+
\begin{itemize}
|
|
114
|
+
\item Best Paper Award, KDD 2022
|
|
115
|
+
\item Stanford Graduate Fellowship, 2017--2019
|
|
116
|
+
\item National Scholarship, Ministry of Education, China, 2016
|
|
117
|
+
\end{itemize}
|
|
118
|
+
|
|
119
|
+
\section{Skills}
|
|
120
|
+
\textbf{Programming:} Python, C++, Rust, CUDA\\
|
|
121
|
+
\textbf{Frameworks:} PyTorch, TensorFlow, Apache Spark, DGL\\
|
|
122
|
+
\textbf{Languages:} Chinese (native), English (fluent), Japanese (basic)
|
|
123
|
+
|
|
124
|
+
\hypersetup{
|
|
125
|
+
pdftitle={CV - Your Name},
|
|
126
|
+
pdfauthor={Z.ai},
|
|
127
|
+
pdfsubject={Academic Curriculum Vitae},
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
\end{document}
|