Skip to content

Commit d6a613e

Browse files
committed
Update template.yml
1 parent 23b86d6 commit d6a613e

1 file changed

Lines changed: 12 additions & 22 deletions

File tree

scripts/template.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ plugins:
7070
katex_options:
7171
trust: true
7272
macros:
73+
# 下面是一些符号的兼容性定义
7374
"\\RR": "\\mathbb{R}"
7475
"\\i": "\\mathrm{i}"
7576
"\\d": "\\mathrm{d}"
@@ -80,29 +81,24 @@ plugins:
8081
"\\N": "\\mathbb{N}"
8182
"\\P": "\\mathbb{P}"
8283
"\\degree": "^\\circ"
84+
"\\rank": "\\operatorname{rank}" # 矩阵的秩
85+
# 下面是一些简写的定义
8386
"\\op": "\\operatorname"
84-
"\\la": "\\left\\langle"
85-
"\\ra": "\\right\\rangle"
86-
"\\lc": "\\left\\lceil"
87-
"\\rc": "\\right\\rceil"
88-
"\\lf": "\\left\\lfloor"
89-
"\\rf": "\\right\\rfloor"
90-
"\\lv": "\\left\\lvert"
91-
"\\rv": "\\right\\rvert"
9287
"\\paren": "\\left({#1}\\right)"
9388
"\\bracket": "\\left[{#1}\\right]"
9489
"\\brace": "\\left\\{{#1}\\right\\}"
9590
"\\ceil": "\\left\\lceil{#1}\\right\\rceil"
9691
"\\floor": "\\left\\lfloor{#1}\\right\\rfloor"
9792
"\\vert": "\\left\\lvert{#1}\\right\\rvert"
98-
"\\vec": "\\bm"
99-
"\\vecc": "\\overrightarrow"
100-
"\\mol": "\\operatorname{mol}"
101-
"\\thermo": "\\ce{#1};\\quad\\Delta H=\\pu{#2}"
102-
"\\cat": "\\ce{催化剂}"
103-
"\\heat": "\\triangle"
104-
"\\poly": "\\ce{-\\!\\!\\![ #1 ]_n\\!\\!\\!\\!\\!-}"
105-
"\\el": "#1\\mathrm{#2}^{#3}"
93+
"\\vec": "\\bm" # 默认使用粗体表示向量
94+
"\\vecc": "\\overrightarrow" # 默认使用上标箭头表示有向线段
95+
# 下面是一些文化课用的定义
96+
"\\poly": "\\ce{-\\!\\!\\![ #1 ]_n\\!\\!\\!\\!\\!-}" # 有机化学 聚合物
97+
"\\el": "#1\\mathrm{#2}^{#3}" # 结构化学 能级
98+
"\\pH": "p\\ce{H}"
99+
"\\pOH": "p\\ce{OH}"
100+
"\\con": "\\left[\\ce{#1}\\right]" # 化学计量 一般表示摩尔浓度
101+
# 下面都是一些不标准的 Unicode 转移
106102
"": "'"
107103
"": ","
108104
"": "."
@@ -120,12 +116,6 @@ plugins:
120116
"·": "\\cdot"
121117
"->": "\\to"
122118
"<-": "\\gets"
123-
"\\pH": "p\\ce{H}"
124-
"\\pOH": "p\\ce{OH}"
125-
"\\con": "\\left[\\ce{#1}\\right]"
126-
"\\rank": "\\operatorname{rank}"
127-
"\\trans": "^{\\mathrm{T}}"
128-
"\\sgn": "\\operatorname{sgn}"
129119
- document-dates:
130120
# https://jaywhj.netlify.app/document-dates-zh
131121
position: bottom

0 commit comments

Comments
 (0)