Open main menu

Changes

* The first parameter sets the main layout area;
* the optional second one specifies the linked subarea(s) of the prior. Not all main areas have such subareas.
* about the third parameter, the key <ttcode>state</ttcode> determines when the page background is recalculated. <tt>state=repeat</tt> 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}}). <tt>state=stop</tt> and <tt>state=start</tt> stop and start recalculations.
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