Hi!
I’m trying to create a header for a paper I’m working on. I’m using a transparent banner image with white text, which is impossible to read in my document. I want to set the background color behind the image to be a specific color, lets say gray. I couldn’t find any property in #image.This is what I have so far (not very much :)):
That sounds like a good solution, using rect or block to draw the background.
You can place things overlappingly or offset using the place function. The easiest way to draw on the whole page is using page.background, which gives you access to the page without margins already (so you don’t need to compensate for them in place’s dx and dy).
If you need to, you could also use a conditional like if here().page() == 1 or something similar to only draw this page background on a particular page.
Thank you!
I only saw counter(page).get().first(), which to me seemed a bit cumbersome. Appreciate the tip about here().page() == 1.
This is what I ended up doing:
Good. counter(page) is the page counter for display, which you can set and change as you want, and here().page() is a monotonic physical page counter, which is often used for even/odd page logic and so on, and it cannot be changed.