2title: Org-mode features and differences
3author: Albert Krewinkel
6Pandoc handles org files very similarly to Emacs org-mode.
7However, there are differences worth highlighting.
13Emacs org-mode lacks an official citation syntax, leading to
14multiple syntaxes coexisting. Pandoc recognizes four different
15syntaxes for citations.
17Berkeley-style citations
18------------------------
20The semi-offical Org-mode citation syntax is based on John
21MacFarlane's Pandoc syntax and org-oriented enhancements
22contributed by Richard Lawrence and others. It's dubbed Berkeley
23syntax due the place of activity of its main contributors.
28 [cite: See; @Mandelkern1981; and @Watson1953]
29 [(cite): See; @Mandelkern1981; and @Watson1953]
35The [org-ref] package is in wide use to handle citations and has
36excellent tooling support in Emacs. Its citation syntax is
37geared towards users in the natural sciences but still very
42 [[citep:Dominik201408][See page 20 of::, for example]]
45Pandoc-Markdown-like syntax
46---------------------------
48Historically, Markdown-style citations syntax was the first that
49was added to pandoc's org reader. It is almost identical to
50Markdown's citation syntax.
54 [prefix @citekey suffix]
55 [see @doe2000 p. 23-42]
61Use normal latex citation commands like `\cite{x}` or
64[org-ref]: https://github.com/jkitchin/org-ref
70Org-mode uses complex rules to decide whether a string
71represents emphasized text. In Emacs, this can be customized via
72the variable `org-emphasis-regexp-components`. A variable like
73this doesn't fit well with pandoc's model. Instead, it is
74possible to use special lines to change these values:
76 #+pandoc-emphasis-pre: "-\t ('\"{"
77 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
79The above describes the default values of these variables. The
80arguments must be valid (Haskell) strings. If interpretation of
81the argument as string fails, the default is restored.
83Changing emphasis rules only affect the part of the document
84following the special lines. They must be some of the first
85lines to alter parsing behavior for the whole document. It is
86also possible to change the values temporarily for selected
87sections only. The string `test` in the following snippet will
88be read as emphasized text, while the rest of the document will
89be parsed using default emphasis rules:
91 #+pandoc-emphasis-pre: "["
92 #+pandoc-emphasis-post: "]"
94 #+pandoc-emphasis-pre:
95 #+pandoc-emphasis-post:
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list