emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: accounting
Date: Mon, 04 Jan 2021 14:00:12 +0000	[thread overview]
Message-ID: <87k0ssls43.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87eej06ff0.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 04 Jan 2021 13:43:31 +0100")

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	other threads:[~2021-01-04 14:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-04  8:54 accounting Uwe Brauer
2021-01-04  9:31 ` accounting Eric S Fraga
2021-01-04 10:19 ` accounting Dr. Arne Babenhauserheide
2021-01-04 12:43   ` accounting Uwe Brauer
2021-01-04 14:00     ` Eric S Fraga [this message]
2021-01-04 20:01       ` accounting Uwe Brauer
     [not found]         ` <87r1mzkb7u.fsf@disroot.org>
2021-01-05 15:35           ` accounting Uwe Brauer
2021-01-05 16:02             ` [A solution of sorts] (was: accounting) Uwe Brauer
2021-01-05 16:09               ` [A solution of sorts] Eric S Fraga
2021-01-06 17:02                 ` Uwe Brauer
2021-01-05 16:03             ` accounting Eric S Fraga
2021-01-06  2:49               ` accounting Ihor Radchenko
2021-01-04 11:13 ` accounting Daniele Nicolodi
2021-01-04 20:04   ` accounting Uwe Brauer
2021-01-04 21:17     ` accounting Samuel Wales
2021-01-05  0:08     ` accounting Daniele Nicolodi
2021-01-05  7:50       ` accounting Uwe Brauer
2021-01-04 12:52 ` accounting Charles Millar
2021-01-05 15:44   ` accounting Uwe Brauer

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=87k0ssls43.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=oub@mat.ucm.es \
    /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).