Skip to content

Latest commit

 

History

History
178 lines (141 loc) · 5.49 KB

examples.org

File metadata and controls

178 lines (141 loc) · 5.49 KB

Org Mode Examples

Introduction

This page shows some examples. The org source document is here.

VERSE

VERSE is used to keep the line breaks in a reagin. This is a VERSE:

Notice: As you can see, the starting whitespaces counts.

This is a quote

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

Just like a normal paragraph but it is quoted.

QUOTE Quoted level

This level is quoted

EXAMPLE

An EXAMPLE is used to include literal examples.

This is an EXAMPLE:

Some example from a text file.

You can also start the example lines with a colon followed by a space:

Some example started with a colon followed by a space.

If example is source code, you can use BEGIN_SRC block instead.

Source code

You can always use M-x org-edit-src-code to edit the code block in another buffer.

Print hello world in C:

#include <stdio.h>

int main(int argc, char *argv[])
{
     printf("hello this world\n");
     return 0;
}

Markups

  • This is italic
  • This is bold
  • This is underlined
  • This is a variable, verbatim
  • this is deleted

This is a horizontal line


Drawers

This is a drawer

Footnots

The Org homepage[fn:orglink: org mode homepage] now looks a lot better than it used to.

Inline definition [fn:: This is the inline definition of this footnote].

Org homepage again [fn:orglink]. Don’t tell others that the link is: http://orgmode.org

An issue about the footnote [fn:issue: The definition is wrapped in a paragraph (<p>) hence a new line].

Links

This is a link do you like it?

Lists

  • plus
  • second plus
    • star
    • second star
      1. number
      2. second number
        1. number again
        2. second number again
    • third star
  • third plus

Math formula

The formula:

$$ f(x) = x^2 + 2 $$

where $x$ is some value and $f(x)$ returns the result.

Buy a car

It’s just an example :)

Upload this file

  • [x] add more examples
  • [ ] push to GitHub

Top level headline

The quick brown fox jumps over the lazy dog. Foxy parsons quiz and cajole the lovably dim wiki-girl. Watch “Jeopardy!”, Alex Trebek’s fun TV quiz game. How razorback-jumping frogs can level six piqued gymnasts! All questions asked by five watched experts — amaze the judge.

Two stars

The quick brown fox jumps over the lazy dog. Foxy parsons quiz and cajole the lovably dim wiki-girl. Watch “Jeopardy!”, Alex Trebek’s fun TV quiz game. How razorback-jumping frogs can level six piqued gymnasts! All questions asked by five watched experts — amaze the judge.

Three stars

The quick brown fox jumps over the lazy dog. Foxy parsons quiz and cajole the lovably dim wiki-girl. Watch “Jeopardy!”, Alex Trebek’s fun TV quiz game. How razorback-jumping frogs can level six piqued gymnasts! All questions asked by five watched experts — amaze the judge.

Four stars

The quick brown fox jumps over the lazy dog. Foxy parsons quiz and cajole the lovably dim wiki-girl. Watch “Jeopardy!”, Alex Trebek’s fun TV quiz game. How razorback-jumping frogs can level six piqued gymnasts! All questions asked by five watched experts — amaze the judge.

Five stars

The quick brown fox jumps over the lazy dog. Foxy parsons quiz and cajole the lovably dim wiki-girl. Watch “Jeopardy!”, Alex Trebek’s fun TV quiz game. How razorback-jumping frogs can level six piqued gymnasts! All questions asked by five watched experts — amaze the judge.

Table

<sec:table>

MondayTuesdayWesdayThursdayFridayThis is a long weekend
workplaystudyworkpartyI have nothing to do
playstudy and work and play and partyworkpartyworkI sing and dance and the quick brown fox jumps over the lazy dog.

Image

<sec:image>

https://c1.staticflickr.com/5/4105/5080934352_5e8e76b7f4_b.jpg

Internal links

  • one item
  • <<target>>another item

    Here we refer to item target.

    Please check the table tab:plan at section sec:table, and image fig:tree at section sec:image.

Special symbols

The mass of the sun is M_sun = 1.989 x 10^30 kg. The radius of the sun is Rsun = 6.96 x 10^8 m.

Angles are written as Greek letters α, β and γ.