小蜗熊的蜂蜜罐
编辑技巧备忘
发布于: 2017-02-09 更新于: 2020-04-29 分类于: 备忘 阅读次数: 

参见左侧目录或使用Ctrl+F进行搜索

Latex

Mathjax公式标号与引用

MathJax的公式语法与LaTex相同,使用\tag{yourtag}给公式添加编号,使用\label{somelabel}添加引用标签。

代码:

1
$$ a = x^2-y^3 \tag{eq1} \label{eq1} $$

其中\label仅对Mathjax有效,对于Katex无效

结果:

$$ a = x^2-y^3 \tag{eq1} \label{eq1} $$

引用时使用\eqref{somelabel}引用公式,代码:

1
$$ a+y^3 \stackrel{\eqref{eq1}}= x^2 $$

效果:

$$
a+y^3 \stackrel{\eqref{eq1}}= x^2
$$

或是使用\ref{somelabel},结果:

$$ a+y^3 \stackrel{\ref{eq1}}= x^2 $$

Mathjax公式等号对齐(带编号)

代码:

1
2
3
4
5
6
7
$$
\begin{align}
x+1 &= y+2 \\\\
&= z+3 \\\\
&= w+4
\end{align}
$$

效果:
$$
\begin{align}
x+1 &= y+2 \\
&= z+3 \\
&= w+4
\end{align}
$$

Mathjax公式等号对齐(无编号)

代码:

1
2
3
4
5
6
7
$$
\begin{split}
x+1 &= y+2 \\\\
&= z+3 \\\\
&= w+4
\end{split}
$$

效果:
$$
\begin{split}
x+1 &= y+2 \\
&= z+3 \\
&= w+4
\end{split}
$$

Katex方程组左对齐

代码:

1
2
3
4
5
6
7
8
9
$$
\begin{cases}
x=\dfrac{3\pi}{2}(1+2t)\cos(\dfrac{3\pi}{2}(1+2t)),
\\\\
y=s, & 0\leq s\leq L,|t|\leq1.
\\\\
z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), &
\end{cases}
$$

在Hexo中由于MarkDown渲染的原因\\会转义成\,最简单的解决方式是使用四个斜杠\\\\来表达\\

结果:

$$
\begin{cases}
x=\dfrac{3\pi}{2}(1+2t)\cos(\dfrac{3\pi}{2}(1+2t)),
\\
y=s, & 0\leq s\leq L,|t|\leq1.
\\
z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), &
\end{cases}
$$

Mathjax 矩阵表示

矩阵起始标记\begin{matrix},结束标记\end{matrix},每一行末尾标记\\,行间元素之间以&分隔,如:

1
2
3
4
5
6
7
$$
\begin{matrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \\
\end{matrix}
$$

结果:

$$
\begin{matrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \\
\end{matrix}
$$

使用以下指令,配合横省略号\cdots、竖省略号\vdots、斜省略号\ddots可以改变矩阵形式

标记 样式
pmatrix 小括号边框
bmatrix 中括号边框
Bmatrix 大括号边框
vmatrix 单竖线边框
Vmatrix 双竖线边框

例如:

1
2
3
4
5
6
7
8
$$
\begin{bmatrix}
{a_{11}} & {a_{12}} & {\cdots} & {a_{1n}} \\
{a_{21}} & {a_{22}} & {\cdots} & {a_{2n}} \\
{\vdots} & {\vdots} & {\ddots} & {\vdots} \\
{a_{m1}} & {a_{m2}} & {\cdots} & {a_{mn}} \\
\end{bmatrix}
$$

结果:

$$
\begin{bmatrix}
{a_{11}} & {a_{12}} & {\cdots} & {a_{1n}} \\
{a_{21}} & {a_{22}} & {\cdots} & {a_{2n}} \\
{\vdots} & {\vdots} & {\ddots} & {\vdots} \\
{a_{m1}} & {a_{m2}} & {\cdots} & {a_{mn}} \\
\end{bmatrix}
$$

MarkDown

MarkDown表格

代码:

1
2
3
4
name | 111 | 222 | 333 | 444
:-: | :-: | :-: | :-: | :-:
aaa | bbb | ccc | ddd | eee|
fff | ggg| hhh | iii | 000|

结果:

name 111 222 333 444
aaa bbb ccc ddd eee
fff ggg hhh iii 000

MarkDown插入Base64图片

代码

1
2
3
![title][link]

[link]:data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2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Edsixkq2Oxp4oNc4qMcIueVRI+yfStdsxktYXY5Zo1JPqcVs86JgquRFvF8RNu3w8HdnvnyxUsVk16iYIZNW4rKE2swbPteS1tPNYrBpxm8EQr+KzNJlSAFUDGPWpbxvCc5Iz2r3lWF7CnFnJKsGs+dYPc0w3Z4g1TGniFNlo5t1LM7BBnJPnzV0DOK0zytEwC45HnSaySUmuj/9k=

效果

title

使用HTML标签进行段落折叠

代码

1
2
3
4
<details>
<summary><mark><font color=darkred>点击查看详细内容</font></mark></summary>
隐藏内容
</details>

效果

点击查看详细内容 隐藏内容

Mermaid

Mermaid在IE及Edge浏览器下显示效果不佳,建议使用Chrome或其他Chromium内核的浏览器。

流程图(Flow)

代码:

1
2
3
4
5
6
7
<div class="mermaid">
graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
</div>

效果:

graph TD A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2]

时序图(Sequence)

代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="mermaid">
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
</div>

效果:

sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts
prevail... John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

甘特图(Gantt)

代码:

1
2
3
4
5
6
7
8
9
10
<div class="mermaid">
gantt
section Section
Completed :done, des1, 2014-01-06,2014-01-08
Active :active, des2, 2014-01-07, 3d
Parallel 1 : des3, after des1, 1d
Parallel 2 : des4, after des1, 1d
Parallel 3 : des5, after des3, 1d
Parallel 4 : des6, after des4, 1d
</div>

效果:

gantt section Section Completed :done, des1, 2014-01-06,2014-01-08 Active :active, des2, 2014-01-07, 3d Parallel 1 : des3, after des1, 1d Parallel 2 : des4, after des1, 1d Parallel 3 : des5, after des3, 1d Parallel 4 : des6, after des4, 1d

类图(Class)

代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="mermaid">
classDiagram
Class01 <|-- AveryLongClass : Cool
&lt;&lt;interface>> Class01
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
class Class10 {
&lt;&lt;service>>
int id
size()
}
</div>

效果:

classDiagram Class01 <|-- AveryLongClass : Cool <<interface>> Class01 Class09 --> C2 : Where am i? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla class Class10 { <<service>> int id size() }

状态图(State)

代码:

1
2
3
4
5
6
7
8
9
<div class="mermaid">
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
</div>

效果:

stateDiagram [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]

饼形图(Pie)

代码:

1
2
3
4
pie
"Dogs" : 386
"Cats" : 85
"Rats" : 15

效果:

pie "Dogs" : 386 "Cats" : 85 "Rats" : 15

杂项

正则表达式清除空行

VSCode替换时选取正则表达式:

1
^\s*(?=\r?$)\n

结构式在线编辑网站

Integle

PubChem

iChemistry

Molview

--- 本文结束 The End ---