Open main menu

Changes

** the key <code>state</code> determines when the page background is recalculated.
***<code>state=repeat</code> ensures that the page background is always recalculated (useful if you want to use a variable that depends on the current page, such as its number with {{cmd|realpageno}}).
*** <code>state=start</code> recalculatesthe page background, and stops the its automatic recalculation,*** <code>state=stop</code> doesn't recalculatethe page background, and stops the its automatic recalculation.
Because {{cmd|showframe}} and {{cmd|setupbackgrounds}} both draw frameboxes over parts of the page, the order in which they are invoked matters. In most cases, {{cmd|setupbackgrounds}} should come last.
999

edits