emacs-orgmode
[Top][All Lists]
Advanced

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

Re: accounting


From: Eric S Fraga
Subject: Re: accounting
Date: Mon, 04 Jan 2021 14:00:12 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Monday,  4 Jan 2021 at 13:43, Uwe Brauer wrote:
> The example in this link is ok, also the output (the result of the
> ledger operation) is not very nicely formatted.

ledger does allow you to control, in detail, how the output should be
formatted.  The default output is suitable for a console display but you
can modify this through appropriate arguments to the ledger command line
via babel.  For instance, I have this line in my org file for generating
a balance of my assets:

,#+call: year2020[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()

where year2020 is a ledger src block which covers my 2020-21 tax year.

You will need to look at the ledger documentation, which is intensive,
for how to specify the format string.  Ledger does come with an Emacs
info file: (ledger3) Format Strings

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993



reply via email to

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