change font

This commit is contained in:
Youmu Liu
2026-09-04 16:08:38 +08:00
parent ac9628d2b7
commit 9dc8732614
8 changed files with 1203 additions and 1368 deletions
Binary file not shown.
+2 -62
View File
@@ -1,68 +1,8 @@
#import "../NLI-doc-template.typ": cover, conf
#import "NITRAC-doc-template.typ": nitrac-cover, conf
#let mark-unit = 1.2cm
#let mark-blue = rgb("#4FC3F7")
#let mark-font = "SimHei"
// 大号 ITRAC:横向填满标识右侧至页面右缘,纵向精确拉伸至 6 格高。
// 顶部对齐,第 7 行(三角形收尾行)保持留白。
#let nitrac-mark = context {
let mark-x = 3.3 * mark-unit
let mark-width = 21cm - mark-x - 0.3 * mark-unit
let mark-height = 6 * mark-unit
let i-left-indent = 0.1 * mark-unit
let i-right-indent = 0.15 * mark-unit
let i-width = 1.2 * mark-unit - i-left-indent - i-right-indent
let trac-width = mark-width - 1.2 * mark-unit
let trac-offset = 1.2 * mark-unit
let probe-size = 100pt
let i = text(font: mark-font, weight: "bold", size: probe-size, fill: mark-blue)[I]
let trac = text(font: mark-font, weight: "bold", size: probe-size, fill: mark-blue)[TRAC]
let i-size = probe-size * (i-width / measure(i).width)
let trac-size = probe-size * (trac-width / measure(trac).width)
let i-mark = text(
font: mark-font,
weight: "bold",
size: i-size,
fill: mark-blue,
stroke: (paint: mark-blue, thickness: 1pt),
)[I]
let trac-mark = text(
font: mark-font,
weight: "bold",
size: trac-size,
fill: mark-blue,
)[TRAC]
let i-stretch-y = mark-height / measure(i-mark).height * 100%
let trac-stretch-y = mark-height / measure(trac-mark).height * 100%
place(
top + left,
dx: mark-x,
dy: 0pt,
box(
width: mark-width,
height: mark-height,
inset: 0pt,
scale(x: 100%, y: 100%, reflow: false, {
place(top + left, dx: i-left-indent, dy: 0pt, box(
width: i-width,
height: mark-height,
align(center + horizon, scale(x: 300%, y: i-stretch-y, reflow: false, i-mark)),
))
place(top + left, dx: trac-offset, dy: 0pt, box(
width: trac-width,
height: mark-height,
align(center + horizon, scale(x: 100%, y: trac-stretch-y, reflow: false, trac-mark)),
))
}),
),
)
}
#cover(
#nitrac-cover(
title: "确定性自动化 实时与集成",
title-en: "Deterministic Automation Real-time and Integration",
logo: nitrac-mark,
number: "NITRAC-DOC-1",
author: "Nitload Industry",
classification: "MID[中秘]SEC",
+2 -62
View File
@@ -1,68 +1,8 @@
#import "../NLI-doc-template.typ": cover, conf
#import "NITRAC-doc-template.typ": nitrac-cover, conf
#let mark-unit = 1.2cm
#let mark-blue = rgb("#4FC3F7")
#let mark-font = "SimHei"
// 大号 ITRAC:横向填满标识右侧至页面右缘,纵向精确拉伸至 6 格高。
// 顶部对齐,第 7 行(三角形收尾行)保持留白。
#let nitrac-mark = context {
let mark-x = 3.3 * mark-unit
let mark-width = 21cm - mark-x - 0.3 * mark-unit
let mark-height = 6 * mark-unit
let i-left-indent = 0.1 * mark-unit
let i-right-indent = 0.15 * mark-unit
let i-width = 1.2 * mark-unit - i-left-indent - i-right-indent
let trac-width = mark-width - 1.2 * mark-unit
let trac-offset = 1.2 * mark-unit
let probe-size = 100pt
let i = text(font: mark-font, weight: "bold", size: probe-size, fill: mark-blue)[I]
let trac = text(font: mark-font, weight: "bold", size: probe-size, fill: mark-blue)[TRAC]
let i-size = probe-size * (i-width / measure(i).width)
let trac-size = probe-size * (trac-width / measure(trac).width)
let i-mark = text(
font: mark-font,
weight: "bold",
size: i-size,
fill: mark-blue,
stroke: (paint: mark-blue, thickness: 1pt),
)[I]
let trac-mark = text(
font: mark-font,
weight: "bold",
size: trac-size,
fill: mark-blue,
)[TRAC]
let i-stretch-y = mark-height / measure(i-mark).height * 100%
let trac-stretch-y = mark-height / measure(trac-mark).height * 100%
place(
top + left,
dx: mark-x,
dy: 0pt,
box(
width: mark-width,
height: mark-height,
inset: 0pt,
scale(x: 100%, y: 100%, reflow: false, {
place(top + left, dx: i-left-indent, dy: 0pt, box(
width: i-width,
height: mark-height,
align(center + horizon, scale(x: 300%, y: i-stretch-y, reflow: false, i-mark)),
))
place(top + left, dx: trac-offset, dy: 0pt, box(
width: trac-width,
height: mark-height,
align(center + horizon, scale(x: 100%, y: trac-stretch-y, reflow: false, trac-mark)),
))
}),
),
)
}
#cover(
#nitrac-cover(
title: "确定性自动化 实时与集成",
title-en: "Deterministic Automation Real-time and Integration",
logo: nitrac-mark,
number: "NITRAC-DOC-1",
author: "Nitload Industry",
classification: "MID[中秘]SEC",
@@ -0,0 +1,44 @@
// NITRAC document-group template.
// Provides the standardized mark, cover wrapper, and body configuration.
#import "../NLI-doc-template.typ": cover, conf as base-conf
#let conf = base-conf
#let mark-unit = 1.2cm
#let mark-blue = rgb("#4FC3F7")
#let mark-font = "Bahnschrift"
// Standard NITRAC mark. The top offset is intentionally configurable here
// because the mark is positioned independently from the cover grid.
#let nitrac-mark = context {
let mark-x = 3.3 * mark-unit
let mark-width = 21cm - mark-x - 0.3 * mark-unit
let mark-height = 6 * mark-unit
let mark-padding = 1 * mark-unit
let mark-safe-height = mark-height - 0 * mark-padding
let probe-size = 100pt
let mark = text(
font: mark-font,
weight: "bold",
size: probe-size,
fill: mark-blue,
)[ITRAC]
let mark-size = probe-size * (mark-width / measure(mark).width)
let mark-text = text(font: mark-font, weight: "bold", size: mark-size, fill: mark-blue)[ITRAC]
let mark-stretch-y = mark-safe-height / measure(mark-text).height * 100%
place(
top + left,
dx: mark-x,
dy: mark-padding,
box(
width: mark-width,
height: mark-safe-height,
inset: 0pt,
scale(x: 100%, y: 100%, reflow: false, {
align(center + horizon, scale(x: 100%, y: mark-stretch-y, reflow: false, mark-text))
}),
),
)
}
#let nitrac-cover(..args) = cover(logo: nitrac-mark, ..args)