CMD Markdown basic & Math Cheatsheet

CMD Markdown basic & Math Cheatsheet


I am using CMD Markdown both at work and for study.You can use it to take notes, store the output of your model, write down fantastics ideas anyttime.

It has a few advantages over word, notepad, Rmarkdown, etc:

  • It is auto-saved, you don't need to worry about losing file when your computer stuck.
  • All the file is stored online. You can access your account any where.
  • It interactives well with other formats. For example you can copy the output of Kable() in R directly to Markdown, becasue they share the same grammar.

So here I will go over some basic Markdown Grammar. It won't be thorough, but it will cover some frequectly used grammar.

Any feedback is welcomed.

Basic

1.Title

Subtitlle1

Subtitlle2

Add subtitle with more #

2. Text

  • this is italic and this is bold .
  • this is important text. and percentage signs : % and %

3. Indention & Quote Notes

Here goes your Quote

with more indentations

4. Bullet Point

  • bullets can be -, +, or *
    • 2nd Level subset: Use Tab to give you second level subset
      • 3rd Level subset

5. Code

You can speficy the lanuage you use, which will lead to differet highlight.

print("Hello World")

6. Table and Alignment

This can be very handy when you call the Markdown library like Knitr in R or markdown in python, you can simply use kable(dataframe) which will output following format. And you can then paste it in your markdown.

ListTag
1计划
2DeepLearning
3Leetcode

here is a link to my blog:小七的各种胡思乱想

8. Math Formula

  • $Formula$ gives you a formula in the line \(P(y=1|x)\)
  • $$Formula$$ starts a new line for formula \[P(y=1|x)\]

9.Page Split

Following is how you split the page by ---


Math

1. Greek Lettter

GrammarGreek
\alpha\(\alpha\)
\beta\(\beta\)
\gamma\(\gamma\)
\Gamma$ \Gamma\(| |\pi|\)\pi$
\Pi\(\Pi\)
\phi\(\phi\)
\Phi\(\Phi\)
\varphi$\varphi \(| |\mu|\)\mu$
\Delta$\Delta \(| |\theta |\) \theta$

2. Basic Operators

GrammarOperators
\lim\(\lim\)
\exp\(\exp\)
\to\(\to\)
\infty\(\infty\)
\equiv\(\equiv\)
\bmod\(\bmod\)
\pm$\pm \(| | \mp |\) \mp\(| |\leq |\) \leq\(| | \geq |\)\geq \(| |\times|\)\times\(| |\div|\)\div\(| | \sqrt{k}|\) \sqrt{k}\(| | \sum |\) \sum \(| | \prod |\)\prod \(| |\int |\)\int \(| |\iint |\)\iint \(| |\cos|\)\cos\(| |\sin|\)\sin$

3.Theory Deduction Operator

GrammarOperators
\forall$ \forall\(| |\in |\)\in \(| | \exists |\) \exists\(| |\epsilon |\) \epsilon \(| |\propto |\)\propto \(| | \neq |\) \neq\(| |\sim |\)\sim $

4 Upper and Lower Indices

GrammarIndices
k_{n+1}$k_{n+1} \(| |k^2 |\) k^2 \(| |k_n^2 |\)k_n^2 $

And by combining this indices with the above operator, you will have all that you need.

GrammarCombination
\sum_{i=1}^{10} t_i$\sum_{i=1}^{10} t_i $
\int\limits_a^b$\int\limits_a^b $
\sqrt[n]{k}$\sqrt[n]{k} $

5 Fraction

GrammarFraction
\frac{1}{x}\(\frac{1}{x}\)
\frac{\frac{x}{1}}{x - y}$ \frac{\frac{1}{x}}{x - y}\(| |^3/_7 |\)^3/_7 $

6. Bracket

\((a)\) \([a]\) \(|a|\) are the original one
|Grammar|Bracket|
|-------|-----|
|\langle f \rangle |$\langle f \rangle \(| |\lfloor f \rfloor |\)\lfloor f \rfloor \(| |\lceil f \rceil |\)\lceil f \rceil \(| | \| e \| |\) | e |$|

7. Set Operator

GrammarOperator
\bigcup$\bigcup \(| |\bigcap |\) \bigcap\(| |\bigvee |\)\bigvee \(| |\bigwedge |\)\bigwedge \(| | \subset |\) \subset$

8 Arrow

GrammarArrow
\implies$\implies \(| |\Rightarrow |\)\Rightarrow \(| |\rightarrow |\)\rightarrow \(| |\Uparrow |\) \Uparrow\(| |\Downarrow |\)\Downarrow \(| |\Leftnarrow |\)\Leftarrow \(| |\Leftrightarrow |\)\Leftrightarrow $

Reference

  1. Writing Mathematic Fomulars in Markdown - Very thorough math Cheatsheet
  2. LaTeX/Mathematics - Wiki
  3. Sublime Text 2/3 Markdown Preview - Very thorough cheatsheet for everything.

转载于:https://www.cnblogs.com/gogoSandy/p/8373849.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值