I'm using the background package. Is there any option to remove the background from the ToC and from the first page of each chapter?
Besides, is it possible to override the background on some pages and then getting back to the globally set one?
backgrounds
I'm using the background package. Is there any option to remove the background from the ToC and from the first page of each chapter?
Besides, is it possible to override the background on some pages and then getting back to the globally set one?
Best Answer
The
background
package offers commands\BgThispage
and\NoBgThispage
which were intended to allow activation/deactivation of the background material on selected pages; however, I've discovered that they are not behaving exactly as they were meant to, so I'll have to review the code.In the meantime I can offer a possibility through two commands
\DeactivateBG
,\ActivateBG
; the first one sets the contents to be empty; the second one, sets the contents to the desired background material. Use\DecativateBG
immediately after\chapter
and\ActivateBG
in any place on the second page of each chapter:To answer your second question, you can have as many backgrounds as you want; the idea is to define a command for each different kind and switch between them by issuing the commands somewhere in the page where the change should happen; a little example:
The class option
openany
and the settings forgeometry
were used just for the example.