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