From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: [Babel] Macro for begin_src? Date: Sun, 18 Apr 2010 11:41:15 +0100 Message-ID: <877ho5jb5g.wl%ucecesf@ucl.ac.uk> References: <4BC91BA7.6050904@ccbr.umn.edu> <87eiieuilx.fsf@fastmail.fm> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3RwW-00071g-9M for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 06:41:36 -0400 Received: from [140.186.70.92] (port=38904 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3RwT-00071X-Pa for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 06:41:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3RwR-0003lF-He for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 06:41:33 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:46639) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3RwR-0003kN-D0 for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 06:41:31 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Bernt Hansen , Matt Lundin , emacs-orgmode@gnu.org On Sat, 17 Apr 2010 15:55:51 -1000, "Thomas S. Dye" wrote: > On Apr 17, 2010, at 6:52 AM, Matt Lundin wrote: > > 1. The first and simplest option is built into org-mode. Simply type: > > > > Neat. What would you use yasnippets for, if anything? > > All the best, > Tom Good question! One case I would still use yasnippets for is more complex constructions. For instance, I use tikz a lot for creating drawings for teaching. For a given course, many of these drawings are similar. One snippet I have is: --8<---------------cut here---------------start------------->8--- #name : tikz # -- #+begin_latex \tikzstyle{unit}=[rectangle, draw=blue!80!black, fill=black!5!white] \tikzstyle{stream}=[rectangle, draw=white, fill=yellow!50!white] \begin{tikzpicture}[node distance=2cm] \node[stream] (feed) {Feed}; \node[unit] (reactor) [right of=feed] {Reactor} edge [<-] (feed); \node[unit] (separator) [right of=reactor] {Separation} edge [<-] (reactor); $0 \end{tikzpicture} #+end_latex --8<---------------cut here---------------end--------------->8--- Before Carsten implemented the beamer option in org-mode, I also had a snippet for setting up columns with blocks in org-mode for my custom beamer setup I used to have.