I am trying to produce a LaTeX template for a document format that was originally created in a WYSIWYG publishing program.
Part of the template requires some block colour background elements that span the full paperwidth.
There are two types of full width, block colour elements required:
- A fixed one in the header and footer
- A dynamically/positioned block that contains text. (Used for the abstract)
The crucial requirement is that these boxes have to fill the paper to both edges and also the top and bottom edges for those in the header/footer.
I cannot seem to replicate in LaTeX having tried various recipes with the tcolorbox and eso-pic packages.
Can this be done in LaTeX?
I have illustrated what I mean in
Best regards,
Alastair
Best Answer
I introduce
\aty{y-location}{Text}
for the headers and footers, which will be repeated on every page. Then I have\movingbox}{left text}{right text}
for the box that can be placed where you want it.\inset
is a length that defines the left/right indents of the colored boxes. Obviously, you can change the colors. They
location of the\aty
box that you specify will depend on the height of the content you place in the box.You will have to be careful that your header/footers do not overlap the text body.