From dea6e8fbd1120bec0c2a82dec8fa7b2b96dc82c9 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 3 Nov 2020 11:39:44 +0100 Subject: [PATCH] Add snippets for latex figures --- dotfiles/emacs-snippets.org | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/dotfiles/emacs-snippets.org b/dotfiles/emacs-snippets.org index 0e611fc..9a8441f 100644 --- a/dotfiles/emacs-snippets.org +++ b/dotfiles/emacs-snippets.org @@ -270,6 +270,42 @@ $0 #+END_EXPORT #+end_src +** Minipage Figures +#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/minifig +#contributor : Thomas Dehaeze +#name :Minipage with Figures +# -- +#+attr_latex: :options [t]{${3:0.5\linewidth}} +#+begin_minipage +#+name: fig:$1 +#+caption: ${2:Caption} +#+attr_latex: ${4::width \linewidth} :float nil +[[file:figs/${1:figure_name}.pdf]] +#+end_minipage +\hfill +#+attr_latex: :options [t]{${7:0.5\linewidth}} +#+begin_minipage +#+name: fig:$5 +#+caption: ${6:Caption} +#+attr_latex: ${8::width \linewidth} :float nil +[[file:figs/${5:figure_name}.pdf]] +#+end_minipage +$0 +#+end_src + +** Wrap Figure +#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/wrapfig + #contributor : Thomas Dehaeze + #name :Wrap Figure + # -- + ,#+attr_latex: :options {${1:rl}}{${2:0.45\textwidth}} + ,#+begin_wrapfigure + ,#+attr_latex: :${3:width \linewidth} + [[file:figs/${4:figure_name.pdf}]] + ,#+end_wrapfigure + $0 +#+end_src + ** Multicolumn #+begin_src conf :tangle ~/.config/doom/snippets/org-mode/multicolumn #contributor : Thomas Dehaeze