post template


链接

Pinterest

cold-pressed

列表

  • brunch
  • fixie
  • raybans
  • messenger bag

Check List

  • Brush Teeth
  • Put on socks
    • Put on left sock
    • Put on right sock
  • Go to school

分割线


引用

We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another. —Anais Nin

图像

水平排布

A simple, elegant caption looks good between image rows, after each row, or doesn't have to be there at all.

缩放

代码

markdown

```c++
code code code
```
int main(int argc, char const *argv[])
{
    string myString;

    cout << "input a string: ";
    getline(cin, myString);
    int length = myString.length();

    char charArray = new char * [length];

    charArray = myString;
    for(int i = 0; i < length; ++i){
        cout << charArray[i] << " ";
    }

    return 0;
}

liquid

{% highlight c++ linenos %}
code code code
{% endhighlight %}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int main(int argc, char const *argv[])
{
string myString;

    cout << "input a string: ";
    getline(cin, myString);
    int length = myString.length();

    char charArray = new char * [length];

    charArray = myString;
    for(int i = 0; i < length; ++i){
        cout << charArray[i] << " ";
    }

    return 0;

}

公式

行内

…\(E = mc^2\)…

独立

\(\sum_{k=1}^\infty |\langle x, e_k \rangle|^2 \leq \|x\|^2\)

引用

\begin{equation} \label{eq:cauchy-schwarz} \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \end{equation}

refer to the equation using \eqref{eq:cauchy-schwarz}.

mermaid

sequenceDiagram
    participant John
    participant Alice
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!

表格

markdown

Left aligned Center aligned Right aligned
Left 1 center 1 right 1
Left 2 center 2 right 2
Left 3 center 3 right 3

html

ID Item Name Item Price

bootstrap table

ID Item Name Item Price

视频

A simple, elegant caption looks good between video rows, after each row, or doesn't have to be there at all.

音频

A simple, elegant caption looks good between video rows, after each row, or doesn't have to be there at all.

定制化引用

TIP

A tip can be used when you want to give advice related to a certain content.

TIP

A tip can be used when you want to give advice related to a certain content.

WARNING

This is a warning, and thus should be used when you want to warn the user

DANGER

This is a danger zone, and thus should be used carefully

Jupyter Notebook

Twitter

An example of displaying a tweet:

An example of pulling from a timeline:

bibliography

(missing reference)

(Einstein & Taub, 1950)

(Einstein & Taub, 1950; Einstein, 1905)

Einstein, A. (1905). Un the movement of small particles suspended in statiunary liquids required by the molecular-kinetic theory 0f heat. Ann. Phys., 17, 549–560.

Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor.

Lorem ipsum dolor sit amet, consectetur adipisicing.

(Einstein, 1905)

distill style post

References

1950

  1. AJP
    The meaning of relativity
    Albert Einstein, and AH Taub
    American Journal of Physics, 1950

1905

  1. Ann. Phys.
    Un the movement of small particles suspended in statiunary liquids required by the molecular-kinetic theory 0f heat
    A. Einstein
    Ann. Phys., 1905
  2. On the electrodynamics of moving bodies
    A. Einstein
    1905



    Enjoy Reading This Article?

    Here are some more articles you might like to read next:

  • a post with tabs
  • a post with typograms
  • a post that can be cited
  • a post with pseudo code
  • a post with code diff