Changes

Jump to navigation Jump to search
732 bytes added ,  18:14, 25 August 2022
no edit summary
)
</pre>
 
= Setting up Header Texts =
 
As already shown in the section about Nesting 1: Functions also setupheadertexts need to be called with functions. On top of this we need to know, that once setupheadertexts is executed it is not frozen. This makes it necessary, that we need to add "return true" inside eacht used function() call.
 
A complete setup of header texts in a double-sided ConTeXt Lua Document looks then like this
 
<pre>
context.setupheadertexts(
{function()
context.chapter()
return true
end
},
{function()
context.pagenumber()
return true
end
},
{function()
context.chpter()
return true
end
},
{function()
context.pagenumber()
return true
end
})
</pre>
 
[[Category:Programming and Databases]]
48

edits

Navigation menu