Op zondag 2 juli 2023 21:54:00 CEST schreef Robert Heller:
> At Sat,  1 Jul 2023 11:03:14 -0400 (EDT) Robert Heller <hel...@deepsoft.com> 
> wrote:
> > At Sat, 1 Jul 2023 09:36:19 -0500 adrien.montele...@lusfiber.net wrote:
> > > Ah, you want TWO images. (Your own logo, plus the PayPal logo)
> > > 
> > > My guess would be a custom report (via Scheme) or maybe via CSS as I
> > > mentioned with a :before or :after pseudo class that inserts the image
> > > somewhere but I haven't tested that approach with GnuCash. (I can't see
> > > why it wouldn't work though)
> > 
> > There is the Wiki page on custom reports, but I'll have to check it out. 
> > I
> > did this once before back in the days of 1.x and/or 2.x (don't remember
> > when exactly).  I have the old code lying around -- guessing I can
> > probably adapt/update it.
> 
> OK, I have created a new stylesheet renderer, but how to I get it into the
> menus?
> 
> I have this in ~/.local/share/gnucash/config.user:
> 
> ;; Hacked from:
> /usr/local/share/guile/site/3.0/gnucash/report/stylesheets/footer.scm (load
> "/home/heller/gnucash/dws-stylesheet.scm")
> 
> ;; copied and hacked from ~/.local/share/gnucash/stylesheets-2.0
> (let ((template (gnc:html-style-sheet-template-find "DWS")))
>   (if template
>     (let ((options ((gnc:html-style-sheet-template-options-generator
> template))))
> 
>  (gnc:restore-html-style-sheet "Deepwoods Software Stylesheet" "DWS"
> options))))
> 
> But my stylesheet is not showing up anywhere... not getting any errors or
> messages (other then telling me about finding Finance::Quote version 1.51).
> 
> (Is ~/.local/share/gnucash/config.user the correct file to put the load in?)

No, you would want this file path:
~/.config/gnucash/config-user.scm

This changed somewhere around gnucash 3.0. More details on which file goes 
where can be 
found on https://wiki.gnucash.org/wiki/Configuration_Locations[1]

Regards,

Geert

> > > You won't find instructions anywhere in the GnuCash documentation for
> > > this, you'll just need to tinker and do studying outside a la Scheme and
> > > CSS/HTML.
> > 
> > Not really a problem for me.  I am proficent in Lisp (Scheme is just a
> > Lisp
> > variant).  I know HTML and CSS as well.
> > 
> > > An alternative might be to make a logo image that has both yours and the
> > > PayPal logo in it with a white or transparent background so they appear
> > > as separate images - maybe one to the left, the other to the right, for
> > > example, and then place and size the image so it looks reasonable in the
> > > header.
> > 
> > My "header" image is the full width of the page (this is working
> > properly).
> > The other is a "button" image that goes somewhere below the invoice
> > content
> > (exactly where depends on how much space the invoice content takes up --
> > eg
> > how many line items are in the invoice).
> > 
> > > Regards,
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
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.

Reply via email to