markdown编辑数学公式

用Markdown编辑数学公式看起来会很舒服,学一下; 希腊字母: 常见希腊字母: $\alpha$、$\beta$、$\chi$、$\Delta$、$\Gamma$、$\Theta$ $$ \alpha\beta\chi $$ 显示效果为: \alpha\beta\chi\Delta\Gamma\Theta 注:当希腊字母的LaTex语法首字母大写时,即输出大写的希腊字母;首字母小写时,输出小写的希腊字母。 数学结构: 分数: $\frac{abc}{xyz}$ 显示效果为: \frac{abc}{xyz} 根号: $$ \frac{\sqrt{1+abc}}{\sqrt{1-abc}} $$ 显示效果为: \frac{\sqrt{1+abc}}{\sqrt{1-abc}} 向量符号: $\overrightarrow{F}$ 显示效果为: \overrightarrow{F} 定界符: $|$、$\|$、$\Uparrow$ 显示效果为: |、|、\Uparrow 注:将上述定界符与\left和right组合使用可以使得定界符匹配其内容的高度。 比如要构建一个如下的矩阵的行列式。 $$ \left|\begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right| $$ 显示效果如下: \left|\begin{matrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \end{matrix} \right| ...

August 16, 2022 · 1 min · Rancho

markdown绘制简单流程图

Markdown绘制简单流程图; Typora流程图: mermaid效果(这个可以在Typora编辑器中显示,博客中渲染失败) 输入```,然后输入mermaid即可 ·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 如下图: 语法: 官网说明文档 Mermaid . flowchar效果(只有这个可以在博客中显示流程图) ···flow st=>start: 开始节点 in=>inputoutput: 输入 e=>end: 结束节点 op=>operation: 操作节点 cond=>condition: 条件节点 sub=>subroutine: 子例程 out=>inputoutput: 输出 st(right)->in->op->cond cond(yes,right)->out->e cond(no)->sub 实际例子1: ···flow st=>start: Start i=>inputoutput: 输入年份n cond1=>condition: n能否被4整除? cond2=>condition: n能否被100整除? cond3=>condition: n能否被400整除? o1=>inputoutput: 输出非闰年 o2=>inputoutput: 输出非闰年 o3=>inputoutput: 输出闰年 o4=>inputoutput: 输出闰年 e=>end st->i->cond1 cond1(no)->o1->e cond1(yes)->cond2 cond2(no)->o3->e cond2(yes)->cond3 cond3(yes)->o2->e cond3(no)->o4->e 实际例子2: ...

February 7, 2022 · 2 min · Rancho