0%

Latex&mermaid(二)

1. Latex支持

1
2
3
4
5
6
$J^{wt}_{i}$ 

$$
{\mathbb R} = \sum_{t=0}^{n}{ {\mathbb R_t}\gamma^{t} }
$$

$J^{wt}_{i}$

$$
{\mathbb R} = \sum_{t=0}^{n}{ {\mathbb R_t}\gamma^{t} }
$$

$$
\begin{equation}min_{\phi}\sum_{i=1}^{|B|}(r_{t_{i} } + \gamma max_{\hat{a}\in\mathcal{A} }Q_{\phi^{target} }(s_{t_{i}+1},\hat{a}) - Q_{\phi}(s_{t_{i} },a_{t_{i} }))^2
\end{equation}
$$


2.流程图绘制

都不好看,没必要学,追求效果不如专业工具,追求方便不如纸上画图然后拍照

flow画流程图效果还不错

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//flow流程图
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e

mermaid画图语法简单

画流程图不好看

1
2
3
4
5
6
7
8
9
10
11
12
//mermaid
graph TD
B((开始)) -->C{判断}
C -- a=1 -->D[执行语句1]
C -- a=2 -->E[执行语句2]
C -- a=3 -->F[执行语句3]
C -- a=4 -->G[执行语句4]
D--> AA((结束))
E--> AA
F--> AA
G--> AA

graph TD
    B((开始)) -->C{判断}
    C --  a=1 -->D[执行语句1]
    C --  a=2  -->E[执行语句2]
    C --  a=3 -->F[执行语句3]
    C -- a=4  -->G[执行语句4]
    D--> AA((结束))
    E--> AA
    F--> AA
   G--> AA

甘特图

1
2
3
4
5
6
7
8
9
10
11
12
gantt 
dateFormat YYYY-MM-DD
title 甘特图名称

section 类别A
已经完成的任务 : done, des1, 2014-01-06, 2014-01-08
进行中的任务 : active, des2, 2014-01-09, 3d
未来的任务 : des3, after des2, 5d
section 类别B
完成的关键任务 :crit, done, 2014-01-06, 24h
进行中的关键任务 :crit, active, 3d
将来的关键任务 :crit, 5d
gantt 
    dateFormat YYYY-MM-DD 
    title 甘特图名称 
    
    section 类别A 
    已经完成的任务 : done, des1, 2014-01-06, 2014-01-08 
    进行中的任务 : active, des2, 2014-01-09, 3d 
    未来的任务 : des3, after des2, 5d 
    section 类别B 
    完成的关键任务 :crit, done, 2014-01-06, 24h 
    进行中的关键任务 :crit, active, 3d 
    将来的关键任务 :crit, 5d

mermaid饼图

1
2
3
4
5
6
7
pie
title Pie Chart
"Dogs" : 386
"cats" : 567
"rabbit" : 700
"pig":365
"tiger" : 15
pie
 title Pie Chart
 "Dogs" : 386
 "cats" : 567
 "rabbit" : 700
 "pig":365
 "tiger" : 15

回来的路->如何优雅的编写Markdown(Markdown&Blog笔记一)


本系列和所有相关文章目录

  1. 如何优雅的编写Markdown(Markdown&Blog笔记一)
  2. Latex&流程图(Markdown&Blog笔记二)
  3. Typora的设置(Markdown&Blog笔记三)
  4. Typora+PicGo+GitHub搭建云端图床(Markdown&Blog笔记四)
  5. Blog+Hexo搭建(Markdown&Blog笔记五)
  6. win快捷键

2022/3/21

欢迎关注我的其它发布渠道