Changes

Jump to navigation Jump to search
543 bytes added ,  15:30, 29 April 2020
→‎Use dynamic content: Added information about a common pitfall for the uninitiated when using setups that include custom spacing.
</texcode>
[[Setups]], by design, ignore the spaces inside them, so use {{cmd|space}}, {{cmd|crlf}}, {{cmd|par}}, etc., to request spaces, or use {{cmd|startrawsetups}}.
<texcode>\definelayer [pagenumber] [width=\paperwidth, height=\paperheight, preset=middle] \startsetups layer \setlayerframed[pagenumber][align=middle]{Page Number: \par \pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background=pagenumber] \starttext\dorecurse{4}{\page[empty]} % You get "Page 1, Page 2" etc.\stoptext</texcode> Another solution for dynamic content was given by Wolfgang on the mailing list on February 21, 2012. He writes: ''Here is a slightly different version which is better when you need more dynamic layers.''
<texcode>
3

edits

Navigation menu