markdown技巧

markdown支持的latex

markdown书写辅助工具

markdown_tables自动生成工具
文本格式markdown格式化工具

md中输入空格

\  \  \ 

表格行代码使用双层`` 1 ``

命令含义
export CUDA_VISIBLE_DEVICES=0,1设置GPU可见设备
dos2unix demo.txt将window换行符切换到linux格式
wc -l `find . -name "key_groupby.txt"`查找文件,统计每个文件行数
wc -l `find . -name *text_seg_check.txt`查找文件,统计每个文件行数
wc -l `find . -name .*pred.txt`查找文件,统计每个文件行数

在表格中 可以用 左右两个``将其中的双引号 或者 其中的`给转移直接显示

在这里插入图片描述

word中alt+\后mathtype转latex后需要特殊处理

将word中的表格转换为markdown 表格方法,复制到notepad++中替换
其中align替换为aligned, array替换为matrix
{ b 1 = y ˉ 1 − std ⁡ ( y 1 ) ( x ˉ 1 std ⁡ ( x 1 )   x ˉ 2 std ⁡ ( x 2 )   ⋯   x ˉ p std ⁡ ( x p ) ) ( ∗ 35 l b 11 b 12 ⋮ b 1 p ) b 2 = y ˉ 2 − std ⁡ ( y 2 ) ( x ˉ 1 std ⁡ ( x 1 )   x ˉ 2 std ⁡ ( x 2 )   ⋯   x ˉ p std ⁡ ( x p ) ) ( ∗ 35 l b 21 b 22 ⋮ b 2 p ) \left\{ \begin{aligned} & {{b}_{1}}={{{\bar{y}}}_{1}}-\operatorname{std}({{y}_{1}})\left( \frac{{{{\bar{x}}}_{1}}}{\operatorname{std}({{x}_{1}})}\ \frac{{{{\bar{x}}}_{2}}}{\operatorname{std}({{x}_{2}})}\ \cdots \ \frac{{{{\bar{x}}}_{p}}}{\operatorname{std}({{x}_{p}})} \right)\left( \begin{matrix}{*{35}{l}} {{b}_{11}} \\ {{b}_{12}} \\ \vdots \\ {{b}_{1p}} \\ \end{matrix} \right) \\ & {{b}_{2}}={{{\bar{y}}}_{2}}-\operatorname{std}({{y}_{2}})\left( \frac{{{{\bar{x}}}_{1}}}{\operatorname{std}({{x}_{1}})}\ \frac{{{{\bar{x}}}_{2}}}{\operatorname{std}({{x}_{2}})}\ \cdots \ \frac{{{{\bar{x}}}_{p}}}{\operatorname{std}({{x}_{p}})} \right)\left( \begin{matrix}{*{35}{l}} {{b}_{21}} \\ {{b}_{22}} \\ \vdots \\ {{b}_{2p}} \\ \end{matrix} \right) \\ \end{aligned} \right. b1=yˉ1std(y1)(std(x1)xˉ1 std(x2)xˉ2  std(xp)xˉp)35lb11b12b1pb2=yˉ2std(y2)(std(x1)xˉ1 std(x2)xˉ2  std(xp)xˉp)35lb21b22b2p

画图技巧(可用于排序演示)

Mermaid流程图github帮助文档
Markdown里面使用mermaid画流程图(基础)

text
text2
text2
20
30
15
20
23
Start
Stop
three
two
one
c2
c1
b2
b1
a2
a1
d1
d2
A double quote:"
A dec char:♥

md中字体和latex颜色

** color=**00ffff **
<font color=#FF0000>** color=**00ffff **</font>

公式对齐 和 颜色
E n t r o p y ( S s u n n y ) = − 2 5 l o g 2 2 5 − 3 5 l o g 2 3 5 = 0.971 = − 2 5 ( l o g 2 2 − l o g 2 5 ) − 3 5 ( l o g 2 3 − l o g 2 5 ) = − 2 5 ( l o g e 2 l o g e 2 − l o g e 5 l o g e 2 ) − 3 5 ( l o g e 3 l o g e 2 − l o g e 5 l o g e 2 ) 【 这 里 推 到 是 为 编 程 方 便 】 \begin{aligned} Entropy\left( {{S}_{sunny}} \right)&=-\frac{2}{5}lo{{g}_{2}}\frac{2}{5}-\frac{3}{5}lo{{g}_{2}}\frac{3}{5}=0.971\\ &=-\frac{2}{5}\left( lo{{g}_{2}}2-lo{{g}_{2}}5 \right)-\frac{3}{5}\left( lo{{g}_{2}}3-lo{{g}_{2}}5 \right) \\ &=-\frac{2}{5}\left( \frac{lo{{g}_{e}}2}{lo{{g}_{e}}2}-\frac{lo{{g}_{e}}5}{lo{{g}_{e}}2} \right)-\frac{3}{5}\left( \frac{lo{{g}_{e}}3}{lo{{g}_{e}}2}-\frac{lo{{g}_{e}}5}{lo{{g}_{e}}2} \right) \end{aligned} \\ {\color{red}{【这里推到是为编程方便】}} Entropy(Ssunny)=52log25253log253=0.971=52(log22log25)53(log23log25)=52(loge2loge2loge2loge5)53(loge2loge3loge2loge5)便

md中公司字母加粗

$\pmb{\text{phone[hmm-state->hmm-state] \quad \text{transition-id}}}$

phone[hmm-state->hmm-state]  transition-id \pmb{\text{phone[hmm-state->hmm-state] \quad \text{transition-id}}} phone[hmm-state->hmm-state] transition-idphone[hmm-state->hmm-state] transition-idphone[hmm-state->hmm-state] transition-id

Reference

做表格、排版公众号……这 7 个工具让 Markdown 写作更容易

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值