Add snippets for latex figures

This commit is contained in:
Thomas Dehaeze 2020-11-03 11:39:44 +01:00
parent bdebbb6342
commit dea6e8fbd1

View File

@ -270,6 +270,42 @@ $0
#+END_EXPORT #+END_EXPORT
#+end_src #+end_src
** Minipage Figures
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/minifig
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
#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 <dehaeze.thomas@gmail.com>
#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 ** Multicolumn
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/multicolumn #+begin_src conf :tangle ~/.config/doom/snippets/org-mode/multicolumn
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com> #contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>