适合场景
学术 / 论文 / LaTeX
LaTeX Paper
给这个风格评分把 LaTeX 学术论文的排版语言搬到网页:Computer Modern 字感、居中标题与 Abstract、层级编号小节、定理环境、编号公式、booktabs 表格与悬挂缩进参考文献。适合研究主页、课程讲义与学术型作品集。
适合场景
学术 / 论文 / LaTeX
设计重点
全文使用衬线字体 font-serif,标题加 tracking-tight 模拟 Computer Modern 字感
注意事项
禁止表格出现竖线或斑马纹底色——booktabs 只允许横线
design.md
一份文档说明这套风格的配色职责、字体规则、间距与组件构造。复制或下载后直接交给 Claude Code 或 Codex。
Computer Modern 的比例、编号的层级、三线表的克制:一张纸。
Theme: light
论文排版风把 LaTeX 的排版语汇搬到网页:全文衬线并收紧字距以模拟 Computer Modern,标题用 1 与 1.1 的层级编号,摘要用两侧缩进的窄块加居中小标题,定理用浅底或 2px 左线加粗体标签配斜体正文,表格用 booktabs 三线表(上下粗线加表头细线,绝无竖线与斑马纹),链接统一 hyperref 蓝。它禁止彩色大按钮、渐变、无衬线正文、圆角、阴影与装饰图形——纸是平的,层次只靠横线与留白。
| Name | Value | Token | Role |
|---|---|---|---|
| Ink | #111111 | --color-ink | 正文、标题、三线表的粗线。印刷黑。 |
| White | #ffffff | --color-white | 纸面。纯白,不泛黄。 |
| Hyperref Blue | #0b5394 | --color-hyperref-blue | 链接与交叉引用,是唯一允许出现的彩色。 |
| Theorem Ground | #f5f5f0 | --color-theorem-ground | 定理环境与代码块的浅底。 |
| Muted Grey | #6b6b66 | --color-muted-grey | 图注、元数据与参考文献的补充信息。 |
| Rule Grey | #d4d4d0 | --color-rule-grey | 表头细线与极次级分隔。 |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | Latin Modern Roman | 700 | 34px | 1.2 | -0.01em | --text-display |
| heading | Latin Modern Roman | 700 | 26px | 1.25 | — | --text-heading |
| subheading | Latin Modern Roman | 700 | 20px | 1.3 | — | --text-subheading |
| body-lg | Latin Modern Roman | 400 | 17px | 1.55 | — | --text-body-lg |
| body | Latin Modern Roman | 400 | 14px | 1.55 | — | --text-body |
| label | Latin Modern Roman | 700 | 12px | 1.4 | 0.04em | --text-label |
Base unit: 4px Density: comfortable
| Name | Value | Token |
|---|---|---|
| 4 | 4px | --spacing-4 |
| 8 | 8px | --spacing-8 |
| 12 | 12px | --spacing-12 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| Element | Value |
|---|---|
| cards | 0 |
| buttons | 0 |
| inputs | 0 |
Role: 带编号的小节标题
格式为「1 引言」「1.1 背景」,编号与标题之间用 12px 空隙(不用制表符)。一级 26px/700,二级 20px/700,均为衬线并紧字距。编号不缩进,标题与编号左对齐。
Role: 定理环境
浅底 #f5f5f0(或白底配 2px 墨色左线)、零圆角、内边距 12px 16px,无阴影。标签用 12px/700 正体(如「定理 1」),正文用 14px 斜体衬线、行高 1.55,标签与正文之间一个空格。
Role: 三线表
顶部 2px 墨线、表头下 1px 墨线(或 #d4d4d0)、底部 2px 墨线,单元格 padding 4px 12px、14px 衬线,数值列右对齐。绝不允许竖线与斑马纹。表题在表上方,格式为「表 1:」。
Role: 摘要
最大宽度 36rem、左右各 32px 内边距、居中放置。上方一个 12px/700 居中小标题「摘要」,正文 14px 衬线、行高 1.6、两端对齐(text-align: justify)。
Role: 参考文献条目
14px 衬线、行高 1.5、悬挂缩进(padding-left: 1.5em 配 text-indent: -1.5em),条目编号用 [1] 方括号。条目之间 8px。作者与年份不加粗,保持平铺。
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | White | #ffffff | 纸面 |
| 1 | Theorem Ground | #f5f5f0 | 定理与代码块 |
none — paper is flat图形只能作为带编号图注的 Figure 出现:折线、柱状、示意图,黑白或低饱和。图注在图下方、14px 次灰、格式为「图 1:」。不使用装饰插画、emoji、彩色大图与任何无编号的图像。
版心 700px、居中、文字两端对齐。区块间距 48px,标题上方留 32px。单栏,页边距对称。所有分隔用横线,绝不用底色块或阴影分区。
QUICK COLOR REFERENCE:
#111111#ffffff#0b5394#f5f5f0#6b6b66#d4d4d0EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-ink: #111111;
--color-white: #ffffff;
--color-hyperref-blue: #0b5394;
--color-theorem-ground: #f5f5f0;
--color-muted-grey: #6b6b66;
--color-rule-grey: #d4d4d0;
/* Typography — Font Families */
--font-serif: 'Latin Modern Roman', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: 'Latin Modern Mono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 34px;
--leading-display: 1.2;
--tracking-display: -0.01em;
--text-heading: 26px;
--leading-heading: 1.25;
--text-subheading: 20px;
--leading-subheading: 1.3;
--text-body-lg: 17px;
--leading-body-lg: 1.55;
--text-body: 14px;
--leading-body: 1.55;
--text-label: 12px;
--leading-label: 1.4;
--tracking-label: 0.04em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-bold: 700;
/* Spacing */
--spacing-unit: 4px;
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
/* Layout */
--page-max-width: 700px;
--section-gap: 48px;
--card-padding: 16px;
--element-gap: 12px;
--density: comfortable;
/* Border Radius */
--radius-cards: 0;
--radius-buttons: 0;
--radius-inputs: 0;
/* Surfaces */
--surface-white: #ffffff;
--surface-theorem-ground: #f5f5f0;
}
组件模板
论文语境的操作元素:墨黑实底主按钮、细边框次按钮、hyperref 蓝引用式链接
常见问题
/* LaTeX Paper global styles */
:root {
--ltx-ink: #111111;
--ltx-paper: #FFFFFF;
--ltx-href: #0B5394;
--ltx-thm-bg: #F5F5F0;
--ltx-rule: #D4D4D0;
--ltx-muted: #6B6B66;
}
body {
font-family: "Computer Modern Serif", Georgia, Cambria, "Times New Roman", Times, serif;
background: var(--ltx-paper);
color: var(--ltx-ink);
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
font-family: inherit;
letter-spacing: -0.01em;
}
::selection {
background: var(--ltx-thm-bg);
color: var(--ltx-ink);
}
/* Theorem environment: bold label, italic body, light fill */
.ltx-theorem {
background: var(--ltx-thm-bg);
border-left: 2px solid var(--ltx-ink);
padding: 1.25rem 1.5rem;
}
.ltx-theorem .ltx-theorem-label {
font-weight: 700;
font-style: normal;
}
.ltx-theorem .ltx-theorem-body {
font-style: italic;
}
/* Display equation: centered formula, (n) tag on the right */
.ltx-equation {
display: flex;
align-items: baseline;
margin: 1.5rem 0;
}
.ltx-equation .ltx-equation-math {
flex: 1;
text-align: center;
font-style: italic;
}
.ltx-equation .ltx-equation-tag {
font-style: normal;
color: var(--ltx-ink);
}
/* booktabs table: heavy top/bottom rules, thin midrule, no vertical rules */
.ltx-booktabs {
width: 100%;
border-collapse: collapse;
border-top: 2px solid var(--ltx-ink);
border-bottom: 2px solid var(--ltx-ink);
}
.ltx-booktabs thead th {
border-bottom: 1px solid var(--ltx-ink);
font-weight: 400;
font-style: italic;
padding: 0.5rem 0.75rem;
}
.ltx-booktabs td {
padding: 0.45rem 0.75rem;
}
/* Hanging-indent reference list */
.ltx-refs {
list-style: none;
padding: 0;
}
.ltx-refs li {
padding-left: 2rem;
text-indent: -2rem;
margin-bottom: 0.5rem;
}
/* Small-caps label, e.g. for keywords line */
.ltx-smallcaps {
font-variant: small-caps;
letter-spacing: 0.05em;
}
@keyframes latex-paper-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.latex-paper-animate-in {
animation: latex-paper-fade-in 0.5s ease-out both;
}相关风格
探索这些风格获取现成的 tokens 和组件。
论文排版风 和 街机CRT 是最接近的两个方向。下表列出它们在配色、适用场景和标签上的实际差异,选之前先看这一栏。
| 维度 | 论文排版风 | 街机CRT |
|---|---|---|
| 主色 | #111111 | #39ff14 |
| 辅助色 | #FFFFFF | #050505 |
| 适合场景 | 学术 / 论文 / LaTeX | CRT / scanlines / retro gaming |
| 独有标签 | — | — |
LaTeX Paper(论文排版风)把学术论文的排版系统当作一种视觉语言:一切都有编号,一切都可引用。秩序感本身就是学术可信度的外观。