forked from colonelpanic/dotfiles
Ivan Malison
a3cd73bbea
git-subtree-dir: dotfiles/emacs.d/snippets/org-mode git-subtree-split: 63d0bbd9629b3a07a56c61dded5502484ee53d1a
20 lines
639 B
Plaintext
20 lines
639 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: tikz-figure
|
|
# binding: C-c y z
|
|
# condition: (or (= (current-column) 3) (= (current-column) 0))
|
|
# contributor: Rafael Villarroel <rvf0068@gmail.com>
|
|
# key: tkz
|
|
# --
|
|
#+CAPTION: $1
|
|
#+LABEL: ${2:"waiting"$(unless yas/modified-p (reftex-label "figure" 'dont-insert))}
|
|
#+ATTR_HTML: alt="$1" width="$3%"
|
|
#+ATTR_LATEX: width=0.$3\textwidth
|
|
#+ATTR_ODT: (:scale 0.$3)
|
|
#+HEADERS: :imagemagick yes :iminoptions -density 300 -resize 400
|
|
#+HEADERS: :packages '(("" "tikz") ("" "tkz-berge")) :border 1pt
|
|
#+BEGIN_SRC latex :file ${2:$(substring yas/text 4)}.png
|
|
\begin{tikzpicture}
|
|
${0}
|
|
\end{tikzpicture}
|
|
#+END_SRC
|