Gnucash Styles

Having created a custom report, you may still be disappointed with the output.

This can be improved by creating a custom style with which to control font, size, colour, etc.

What follows is based on the content of this page from the Gnucash on-line manual.


The default Invoice style is fairly barren. It leaves the top part of the form blank, so you can print on company letterhead paper. There are quite a few things you can do to change invoice appearance.

Use FileProperties to enter your Company informations in the Business tab of the Book Options window:

Some of the entered information is used to generate invoices.

To add a customized background, heading banner or logo to invoices, modify the invoice style sheets. To do this, go to EditStyle Sheets and select the New button in the Select HTML Style Sheet window that will appear. You will then see a window like this:

The New Style Sheet window.

Give a Name to the new style sheet (e.g. Custom Invoice) and select the Fancy Template. When you click the OK button, the HTML Style Sheet Properties window is displayed. This window presents you five sections listed in the left pane: Colors, Fonts, General, Images, and Tables. The Colors section allows you to change the colors of various items of the invoice. The Fonts section lets you set fonts type and dimensions. The General section allows you to set the Preparer and Prepared for information, and to Enable Links. The Images section allows you to import graphics into the style sheet. The Tables section allows you to adjust the spacing around the tables which make up the invoice.

To include a company logo, banner heading and background image, use your favorite graphics application such as The Gimp or OpenOffice Draw to save the images in either GIF or PNG format. Then import them into the style sheet using the Images section described above.

Below is an example that imports all three types of images.

HTML Style Sheets example

The HTML Style Sheets window with an example Background Tile, Heading Banner, and Logo.


The images are placed in the invoice as follows. The Background Tile is tiled to become the background image, the Heading Banner goes to above the invoice text, and the Logo is placed in the upper left corner of the invoice to the left of the Heading Banner. You will probably have to try a few different sized images until you get the invoices to print nicely. Some sizing suggestions are that the Logo should be 1 square cm (~0.5 inch), and the Heading Banner should be 15 cm (~6 inches) wide and 1 cm (~0.5 inch) tall.

With the style sheet configured, when you print the invoice, you select the style sheet to use from the Options menu. Below is the resultant invoice after applying the style sheet demonstrated above.

HTML Style Sheets example

The hideous invoice which results from the graphics selected in the example style sheet - you will do much better than this!