emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [babel] ledger tutorial on Worg
Date: Wed, 01 Sep 2010 19:33:20 +0100	[thread overview]
Message-ID: <87mxs1co0f.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <87aao1bt8w.fsf@mundaneum.com>

[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]

On Wed, 01 Sep 2010 13:25:35 +0200, Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> 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... :-)


[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2010-09-01 22:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 23:06 [babel] ledger tutorial on Worg Eric S Fraga
2010-08-27 14:53 ` Carsten Dominik
2010-08-27 15:27   ` Eric Schulte
2010-08-27 19:33     ` Eric S Fraga
2010-09-01 11:25     ` Sébastien Vauban
2010-09-01 18:33       ` Eric S Fraga [this message]
2010-09-02  0:19         ` Eric Schulte
2010-09-02 12:43         ` Sébastien Vauban
2010-09-02 14:56           ` Eric Schulte
2010-09-03 20:53             ` Sébastien Vauban
2010-09-03 21:35               ` Eric Schulte
2010-09-05 20:49                 ` Sébastien Vauban
2010-09-07 23:03                   ` Eric Schulte
2010-09-08  8:21                     ` Sébastien Vauban
2010-09-08 17:53                       ` Eric Schulte
2010-09-08 21:40                         ` Sébastien Vauban
2010-09-08 22:46                           ` Eric Schulte
2010-09-09 12:14                           ` Sébastien Vauban
2010-09-09 15:29                             ` Eric Schulte
2010-09-09 19:59                               ` Sébastien Vauban
2010-09-09 21:15                                 ` Sébastien Vauban
2010-09-09 21:42                                   ` Dan Davison
2010-09-03  8:33           ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mxs1co0f.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).