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