From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Re: [Babel] Macro for begin_src? Date: Sat, 17 Apr 2010 08:38:01 -0500 Message-ID: References: <4BC91BA7.6050904@ccbr.umn.edu> <87ljcm75gv.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1386401032==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O38Dn-0000kG-M4 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 09:38:07 -0400 Received: from [140.186.70.92] (port=33913 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O38Dl-0000k8-31 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 09:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O38Dj-0002Ys-A2 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 09:38:04 -0400 Received: from mail-pz0-f198.google.com ([209.85.222.198]:60476) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O38Dj-0002YE-4z for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 09:38:03 -0400 Received: by pzk36 with SMTP id 36so2891506pzk.24 for ; Sat, 17 Apr 2010 06:38:02 -0700 (PDT) In-Reply-To: <87ljcm75gv.wl%ucecesf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org --===============1386401032== Content-Type: multipart/alternative; boundary=00504502ad2c2d44d304846ed6e8 --00504502ad2c2d44d304846ed6e8 Content-Type: text/plain; charset=ISO-8859-1 What do you guys use for ditaa diagrams? Just copy/paste? Seems like it'd be a bit tedious to draw those boxes. --Nate On Sat, Apr 17, 2010 at 5:12 AM, Eric S Fraga wrote: > On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson > wrote: > > > http://doc.norang.ca/org-mode.html#Yasnippets > > > > > > If anyone else has a different macro set up, I'm still interested in > > > hearing your solutions. > > > > > > > Nope, yasnippet is the way to go I think! > > +1 > > it might be nice to have a worg page on snippets for org-mode? I'm > happy to contribute a few. The ones I use the most are these two: > > block: > --8<---------------cut here---------------start------------->8--- > #name : #+begin_...#+end_ > # -- > #+begin_$1 $2 > $0 > #+end_$1 > --8<---------------cut here---------------end--------------->8--- > > and > > figure: > --8<---------------cut here---------------start------------->8--- > #name : figure > # -- > #+attr_latex: width=$1\textwidth > [[file:$2.pdf]] > $0 > --8<---------------cut here---------------end--------------->8--- > > --00504502ad2c2d44d304846ed6e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What do you guys use for ditaa diagrams?

Just copy/paste?=A0 Seems l= ike it'd be a bit tedious to draw those boxes.

--Nate

On Sat, Apr 17, 2010 at 5:12 AM, Eric S Fraga <ucecesf@ucl.ac.uk= > wrote:
<= div class=3D"h5">On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson <eriki@ccbr.umn.edu> wrote:
> > http://doc.norang.ca/org-mode.html#Yasnippets
> >
> > If anyone else has a different macro set up, I'm still intere= sted in
> > hearing your solutions.
> >
>
> Nope, yasnippet is the way to go I think!

+1

it might be nice to have a worg page on snippets for org-mode? =A0I'm happy to contribute a few. =A0The ones I use the most are these two:

block:
--8<---------------cut here---------------start------------->8---
#name : #+begin_...#+end_
# --
#+begin_$1 $2
$0
#+end_$1
--8<---------------cut here---------------end--------------->8---

and

figure:
--8<---------------cut here---------------start------------->8---
#name : figure
# --
#+attr_latex: width=3D$1\textwidth
[[file:$2.pdf]]
$0
--8<---------------cut here---------------end--------------->8---


--00504502ad2c2d44d304846ed6e8-- --===============1386401032== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1386401032==--