forked from colonelpanic/dotfiles
Squashed 'dotfiles/emacs.d/snippets/org-mode/' content from commit 63d0bbd
git-subtree-dir: dotfiles/emacs.d/snippets/org-mode git-subtree-split: 63d0bbd9629b3a07a56c61dded5502484ee53d1a
This commit is contained in:
19
tikz-figure.yasnippet
Normal file
19
tikz-figure.yasnippet
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- 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
|
Reference in New Issue
Block a user