Skip to content

Instantly share code, notes, and snippets.

@AirManH
Last active March 24, 2021 08:36
Show Gist options
  • Save AirManH/64ae32c94b06b8311eb879c66b05d85a to your computer and use it in GitHub Desktop.
Save AirManH/64ae32c94b06b8311eb879c66b05d85a to your computer and use it in GitHub Desktop.
org-mode cheat sheet

org-mode cheat sheet

Document Structure

Visibility Cycling

KeyShort NameDescription
<TAB>Subtree cycling-> FOLDED -> CHILDREN -> SUBTREE->

Motion

KeyShort NameDescription
C-c C-nNext heading
C-c C-pPrevious heading
C-c C-fNext heading same level
C-c C-bPrevious heading same level
C-c C-uBackward to higher level heading

Structure Editing

KeyShort NameDescription
M-<RET>add new heading
M-<LEFT>, M-<RIGHT>-1/+1 heading level
M-<UP>, M-<DOWN>move subtree up/down

Tables

KeyShort NameDescription
C-c C-cRe-align current table

`TODO’ Items

KeyShort NameDescription
S-<LEFT>, S-<RIGHT>Change TODO status

Rich Contents

Code

KeyShort NameDescription
<s <RET>add code blockorg-insert-structure-template
/C-c C-,/

Bib

org-ref

Include a .bib file:

bibliography:*.bib

Add a paper to the bib file:

  1. M-x crossref-add-bibtex-entry
  2. M-x doi-add-bibtex-entry

Cite a paper:

M-x org-ref-insert-link

LaTeX

TikZ

#+LATEX_HEADER: \usepackage{tikz}


\begin{figure}[htbp]
\centering
\begin{tikzpicture}
  \draw[line width=1pt,->]
    (0,0) node[draw,left,rectangle]{$A_1$}
       -- node[above]{$\lambda \frac{N_{1}(t)-N_{2}(t)}{d_{1,2}}$}
          node[below]{$d_{1,2}$}
    (4,0) node[draw,right,rectangle]{$A_2$};
\end{tikzpicture}
\end{figure}

Miscellaneous

Escape Character

Use zero width space:

C-x 8 <RET> zero width space <RET>
C-x 8 <RET> 200B <RET>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment