# Combining multiple hledger reports into a printed document on 8-1/2 x 11 inch paper

**URL:** <https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520>\
**Category:** General\
**Created:** [March 20, 2025, 12:22pm UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520 "2025-03-20T12:22:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![csgagnon](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@csgagnon](https://forum.plaintextaccounting.org/u/csgagnon)\
**Post date:** [March 20, 2025, 12:22pm UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/1 "2025-03-20T12:22:24Z")

</div>

I completed my first year of bookkeeping for both business and personal expenses with hledger last year. I can honestly say that I observed zero bugs with the software. It has worked seamlessly.

I am wondering what tools exist for printing output in plain text format. For instance, I was able to generate printed documents on 8-1/2 x 11 paper by first creating a markdown file, saving relevant hledger output as code blocks within the markdown file, converting the markdown file to html using `pandoc`, and printing the html output from my browser. Pandoc can also convert the document to a Microsoft Word or Libreoffice format, but there was a lot of formatting that needed to take place in order to make the tables legible.

Although this approach worked, it left me wondering whether or not there is a better toolset for printing to 8-1/2 x 11 paper (or a PDF with same aspect ratio), that perhaps works with the monospaced plaintext font directly and uses font sizes and whitespace to format the document.

It seems to me that markdown is the most reasonable and widely adopted plaintext markdown format for providing a hierarchical structure to plain text documents within a text editor. The weakness that I see in markdown is tables. It can handle tables, but there are losses to efficiency when compared to combining spreadsheets with traditional word processing software.

Any thoughts on generating long form reports on paper that include hledger tables?

---

<div class="post-metadata">

**Author:** ![35VLG84](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.plaintextaccounting.org/35vlg84/32/131_2.png) [@35VLG84](https://forum.plaintextaccounting.org/u/35VLG84)\
**Post date:** [March 20, 2025, 5:00pm UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/2 "2025-03-20T17:00:25Z")

</div>

One option could be Typst and it's data loading functionality:

> Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use. Typst has:
> 
> - Built-in markup for the most common formatting tasks
> - Flexible functions for everything else
> - A tightly integrated scripting system
> - Math typesetting, bibliography management, and more
> - Fast compile times thanks to incremental compilation
> - Friendly error messages in case something goes wrong

> **[GitHub - typst/typst: A new markup-based typesetting system that is...](https://github.com/typst/typst)**
>
> A new markup-based typesetting system that is powerful and easy to learn.

> **[Table Function – Typst Documentation](https://typst.app/docs/reference/model/table/)**
>
> Documentation for the \`table\` function.

> **[Data Loading – Typst Documentation](https://typst.app/docs/reference/data-loading/)**
>
> Documentation for functions related to Data Loading in Typst.

---

<div class="post-metadata">

**Author:** ![csgagnon](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@csgagnon](https://forum.plaintextaccounting.org/u/csgagnon)\
**Post date:** [March 21, 2025, 10:47am UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/3 "2025-03-21T10:47:19Z")

</div>

Thank you for recommendation! Another CLI tool that might be a good fit is groff.

---

<div class="post-metadata">

**Author:** ![shlewislee](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@shlewislee](https://forum.plaintextaccounting.org/u/shlewislee)\
**Post date:** [March 22, 2025, 5:14am UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/4 "2025-03-22T05:14:23Z")

</div>

This is seriously cool.

edit: I tinkered with it for few hours and I see some real potential here. Clean, easy-to-read, automated report..

---

<div class="post-metadata">

**Author:** ![simonmic](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.plaintextaccounting.org/simonmic/32/1_2.png) [@simonmic](https://forum.plaintextaccounting.org/u/simonmic)\
**Post date:** [March 26, 2025, 9:07pm UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/5 "2025-03-26T21:07:24Z")

</div>

> [@csgagnon](#):
>
> I completed my first year of bookkeeping for both business and personal expenses with hledger last year. I can honestly say that I observed zero bugs with the software. It has worked seamlessly.

This is our goal. Congrats and thanks for sharing that @csgagnon !

---

<div class="post-metadata">

**Author:** ![simonmic](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.plaintextaccounting.org/simonmic/32/1_2.png) [@simonmic](https://forum.plaintextaccounting.org/u/simonmic)\
**Post date:** [March 27, 2025, 8:53pm UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/6 "2025-03-27T20:53:17Z")

</div>

PS I'm sure we'd all love to see any example scripts and output for PTA + typst reports.

---

<div class="post-metadata">

**Author:** ![35VLG84](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.plaintextaccounting.org/35vlg84/32/131_2.png) [@35VLG84](https://forum.plaintextaccounting.org/u/35VLG84)\
**Post date:** [March 28, 2025, 4:44am UTC](https://forum.plaintextaccounting.org/t/combining-multiple-hledger-reports-into-a-printed-document-on-8-1-2-x-11-inch-paper/520/7 "2025-03-28T04:44:17Z")

</div>

Indeed, that would be really cool,

Here is an invoice example from [Awesome Typst](https://github.com/qjcg/awesome-typst) list:

> **[GitHub - erictapen/typst-invoice: Typst template for generating invoices](https://github.com/erictapen/typst-invoice)**
>
> Typst template for generating invoices

The repository has example input and output and it's really close what PTA report could be. It showcases potential nicely.

The example invoice also has an QR code, which could be used to encode metadata of PTA report into printed report:

> <https://github.com/erictapen/typst-invoice/blob/dc779bc07e0b37391474a846a6d27386f9c77eb9/lib.typ#L138>
