emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: [babel] ledger tutorial on Worg


From: Eric S Fraga
Subject: Re: [Orgmode] Re: [babel] ledger tutorial on Worg
Date: Wed, 01 Sep 2010 19:33:20 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Wed, 01 Sep 2010 13:25:35 +0200, Sébastien Vauban <address@hidden> wrote:
> 
> Hi Eric,
> 
> >>> I have just placed on Worg [1] a short tutorial/example for using
> >>> ledger with babel.  Please have a look and comment etc!
> >
> > [1]  http://orgmode.org/worg/org-contrib/babel/languages.php#langs
> 
> Being interested a lot in Ledger integration with Org-Babel as well, I have a
> quick remark: instead of including (with explicit full path) the journal
> entries in every code block, can't we use the more natural (at least, to me)
> tangling provided by the Noweb syntax?
> 
> Something like:
> 
> --8<---------------cut here---------------start------------->8---
> * Journal data
> 
> #+src_name ledger-journal
> #+begin_src ledger :results silent
> 2008/01/03 * (SCORPIOS) SEB VAUBAN
>       Assets:Bank:Checking:799979450003                               550.00 
> EUR
>       Assets:Bank:Transferred
> 
> 2008/01/01 * ( ) UNKNOWN-PAYEE
>       Assets:Bank:Checking:799979450003                                21.91 
> EUR
>       Expenses:Unknown
> #+end_src
> 
> * Balance
> 
> Give me an overview...
> 
> #+srcname: ledger-balance
> #+begin_src ledger :cmdline "bal" :noweb
> <<ledger-journal>>
> #+end_src
> --8<---------------cut here---------------end--------------->8---
> 
> Though this should work as far as I understand, it does not yet...
> 
> Best regards,
>   Seb

Yes, I would have thought that this would work.  It doesn't fit in
naturally with how I would like to do things as I have many different
blocks of ledger entries spread around the file...  

In any case, I will try to see why this doesn't work as I have used
the :noweb approach for other babel codes successfully and cannot see
any reason why ledger would be different.  Added to my todo
list... :-)

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

reply via email to

[Prev in Thread] Current Thread [Next in Thread]