Can yasnippet be used to insert an org subtree of the same level as the last? For example, if one often writes
***** $1
#+BEGIN_SRC latex
\paragraph{$1.}
$0
#+END_SRC
how might one avoid having to adjust the number of stars manually?
You can determine the current level within embedded Emacs-lisp code.
# -*- mode: snippet -*-
# name: org subtree
# key: ost
# --
`(make-string (org-current-level) ?*)` $1
#+BEGIN_SRC latex
\paragraph{$1.}
$0
#+END_SRC