zoukankan      html  css  js  c++  java
  • 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.

    List Tag
    1 计划
    2 DeepLearning
    3 Leetcode

    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

    Grammar Greek
    alpha (alpha)
    eta (eta)
    gamma (gamma)
    Gamma $ Gamma$
    pi (pi)
    Pi (Pi)
    phi (phi)
    Phi (Phi)
    varphi $varphi $
    mu (mu)
    Delta $Delta $
    heta $ heta$

    2. Basic Operators

    Grammar Operators
    lim (lim)
    exp (exp)
    o ( o)
    infty (infty)
    equiv (equiv)
    mod (mod)
    pm $pm $
    mp $ mp$
    leq $ leq$
    geq $geq $
    imes ( imes)
    div (div)
    sqrt{k} $ sqrt{k}$
    sum $ sum $
    prod $prod $
    int $int $
    iint $iint $
    cos (cos)
    sin (sin)

    3.Theory Deduction Operator

    Grammar Operators
    forall $ forall$
    in $in $
    exists $ exists$
    epsilon $ epsilon $
    propto $propto $
    eq $ eq$
    sim $sim $

    4 Upper and Lower Indices

    Grammar Indices
    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.

    Grammar Combination
    sum_{i=1}^{10} t_i $sum_{i=1}^{10} t_i $
    intlimits_a^b $intlimits_a^b $
    sqrt[n]{k} $sqrt[n]{k} $

    5 Fraction

    Grammar Fraction
    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 angle $langle f angle $
    lfloor f floor $lfloor f floor $
    lceil f ceil $lceil f ceil $
    | e | $ | e |$

    7. Set Operator

    Grammar Operator
    igcup $igcup $
    igcap $ igcap$
    igvee $igvee $
    igwedge $igwedge $
    subset $ subset$

    8 Arrow

    Grammar Arrow
    implies $implies $
    Rightarrow $Rightarrow $
    ightarrow $ ightarrow $
    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.
  • 相关阅读:
    mysql联合主键,也就是两个数据字段一起做主键的情况
    PHP细节,empty,is_null,isset,if()
    PHP细节,PHP手册中常见的一句话:该函数是二进制安全的
    git和github的学习
    用WPS查看两篇word文档异同之处
    js全角字符转为半角字符
    坑(十七)—— Linux无法挂载NTFS格式的U盘
    subprocess模块
    吴裕雄--天生自然--Go 语言学习笔记--Go 语言数组
    吴裕雄--天生自然--Go 语言学习笔记--Go 语言变量作用域
  • 原文地址:https://www.cnblogs.com/gogoSandy/p/8373849.html
Copyright © 2011-2022 走看看