custom reports - negative numbers in red

Carsten Rinke carsten.rinke at gmx.de
Wed Apr 3 01:09:33 EDT 2013


Hi Gus,

for text I would start playing around with something like this:

          (gnc:make-html-text
	   (gnc:html-markup "color=red" "negative amount")
	 )

or similar (not sure about the font color commands in HTML).

If this works for tables I don't know.

What is the HTML code that you want to achieve?

Kind regards,
Carsten


On 04/02/2013 06:06 PM, Lt. Goose wrote:
> Hi all,
> I've been using gnucash for some months and lately I've been trying to
> create my own reports (learning a bit of scheme in the meantime). I've
> managed to render a table with the data I need (some kind of cash-flow
> report that reports several accounts in columns, sorted by the date where
> at least one transaction took place - so that you know your total balance
> change everyday any transaction happened). I've got it running now after
> some investigation.
>
> Anyhow, what I'm trying to do now is to format the output in a fancier way,
> but I cannot find the way to format a html-cell with a negative number
> (using the option to display negative numbers in red). For instance, I'm
> writing this and I'm getting a normal cell:
>
>       (total-value (gnc:make-html-table-cell/markup "total-number-cell" (car
> value)))
>
> I've tried other markup texts like "neg-total-number-cell" or simply "neg"
> but to no avail. Does anybody know how to format this?
>
> And it'd be fantastic to have a reference of predefined markup texts that
> are configured in the style sheets.
>
> Thanks in advance.
>
> Gus.
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>



More information about the gnucash-user mailing list