org notes
Org-mode Notes
C-RET
S-left : todo
Code
C-c ' : edit
Template
C-c C-e t : insert template
Easy Templates
<s : src
<e : example
<q : #+begin_quote ... #+end_quote
<v :#+begin_verse ... #+end_verse
<c :#+begin_center ... #+end_center
<l :#+begin_latex ... #+end_latex
<L ;#+latex:
<h :#+begin_html ... #+end_html
<H :#+html:
<a :#+begin_ascii ... #+end_ascii
<A :#+ascii:
<i :#+index: line
<I :#+include: lineIiAaHhLlcvq
yasnippet
#name : #+begin_...#+end_
# --
#+begin_$1 $2
$0
#+end_$1
Image in org
M-x iimage-mode
C-l
Mathjax
font
\small
\tiny
Org LaTeX
Header
#+LATEX_HEADER: \usepackage[option]{}
Table
#+CAPTION: TABLE
#+ATTR_LaTeX: longtable align=l|lp{3cm}r|l width=..
|...|..|
|...|..|
Group
|---+----+-----+-----+-----+---------+------------|
| / | <> | < | | > | < | > |
| # | 1 | 1 | 1 | 1 | 1 | 1 |
insert
M-S-<right> : column
M-S-<down> : row
Image
[[img.jpg] ]
#+CAPTION:
#+ATTR_LaTeX: width=...
Html export
Javascript support / folding toc
http://www.gnu.org/software/emacs/manual/html_node/org/JavaScript-support.html
#+INFOJS_OPT: view:info toc:nil
then press ?
for help
Images
http://orgmode.org/worg/org-tutorials/images-and-xhtml-export.html
Image html
Inside a paragraph
fsdafs
[[[file:test.png] ]]
fsaf
Attributes
#+ATTR_HTML: alt="" width="" style="border:2px solid black;"
a full list of attributes can be found here
-
align
style="float:left;" (right) style="float:left; margin:20px 20px 20px 0px;" #+ATTR_HTML: hspace="" align="right"
-
image in a row
style="display:inline; margin:10px;"
-
caption
\#+CAPTION: Test \#+ATTR_HTML: width="200" title="Hello" alt="" align="" border=pixels your image here
In a Row with Table##
#+attr_html: style="float:left;width:40%;margin:3ex"
[[test.png ] ]
#+attr_html: style="float:left;width:40%;margin:3ex"
[[test.png ] ]
#+html: <br style="clear:both;" />
Comments
C-c ;
or begin with #
Math in Html
\begin{equation}
x= \alpha
\end{equation
$\alpha$
$$\alpha$$
Preview:
C-c C-x C-l
unPreview:
C-c C-c
Code block under list bug:
indent code by 8 spaces
Version/Emacs
Check org mode version
M-x org-version RET
Reload
M-x org-reload RET
Install the latest
-
add to
.emacs
(require 'package) (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
1.M-x list-packages RET
- search org and install
- reload emacs
M-x locate-library RET org
to see if it is the latest.
Gist
#+begin_html
<script src="https://gist.github.com/3976574.js"> </script>
#+end_html
Published
17 June 2012