Excerpts: Here is excerpts. text text text text text text text text text text text text text text text text text text text text

blod text

italic text

code text

underline text

delete text text text text text text

text text text text text text text text text text text text text text text text text text text text text text text text text text

2 Table

Table 1: a simple table
Name Phone Age
Peter 1234 17
Anna 4321 25

Table 2: a simple table with a very very very long name
Sede Max cites H-index
Chile 257.72 21.39
Leeds 165.77 19.68
Sao Paolo 71.00 11.50
Stockholm 134.19 14.33
Morelia 257.56 17.67

3 Block quotes

Great clouds overhead
Tiny black birds rise and fall
Snow covers Emacs

– AlexSchroeder

Everything should be made as simple as possible, but not any simpler – Albert Einstein

4 Code

4.1 code surround by ‘#+BEGIN_EXAMPLE’

def show
  @widget = Widget(params[:id])
  respond_to do |format|
    format.html # show.html.erb
    format.json { render json: @widget }
  end
end

4.2 code surround by ‘#+BEGIN_SRC’

def show
  @widget = Widget(params[:id])
  respond_to do |format|
    format.html # show.html.erb
    format.json { render json: @widget }
  end
end

4.3 code surround by ‘#+BEGIN_SRC’, enable number line and inner reference

1
2
(save-excursion
   (goto-char (point-min))

In line 1 we remember the current position. Line 2 jumps to point-min.

4.4 code highlight by pygments

4.4.1 syntax by backtick

```ruby def show @widget = Widget(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @widget } end end ```

4.4.2 syntax by ‘codeblock’

{% codeblock lang:ruby %} def show @widget = Widget(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @widget } end end {% endcodeblock %}

4.4.3 syntax by ‘highlight’

{% highlight ruby linenos %} def show @widget = Widget(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @widget } end end {% endhighlight %}

5 Footnote and reference

thie is a reference1

this is another reference2

link to another post

7 Image

7.1 independent image

demo image cowfish

demo image cowfish

demo image cowfish

text text text text text text text text text text text text text

7.2 image surround by text

demo image cowfish

demo image cowfish

demo image cowfish

text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

8 Attachment

download demo attachment

9 Math

If \(a^2=b\) and \( b=2 \), then the solution must be either \[ a=+\sqrt{2} \] or \[ a=-\sqrt{2} \]

LaTeX formatted equation: \[ E = -J \sum_{i=1}^N s_i s_{i+1} \]

9.1 latex fragment

\begin{equation} \Pr(X_t=j|X_{t-1}=i) = \frac{j(j-1)}{2}\Big(\frac{i}{N}\Big)^j\Big(\frac{N-i}{N}\Big)^{n-j} \end{equation}

9.2 latex source code

\begin{equation} \Pr(X_t=j|X_{t-1}=i) = \frac{j(j-1)}{2}\Big(\frac{i}{N}\Big)^j\Big(\frac{N-i}{N}\Big)^{n-j} \end{equation}

10 Auto generated image

10.1 latex result to image file

image background will be effect by your emacs environtment

10.2 ditaa

10.3 dot

10.4 plantuml

10.5 asymptote

10.6 r language

10.7 octave


  1. http://www.footnote.com ↩︎

  2. http://www.footnote2.com, this is a long description for the footnote ↩︎