On 22-3-2010 22:04, Mojca Miklavec wrote:
On Mon, Mar 22, 2010 at 12:58, luigi scarso wrote:
On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec wrote:
I would like to set a different header on left and right page, but I would like it to be centered on page. How do I do that?
I am now hacking with \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}] \def\myheaderright{\hbox to "textwidth+10mm"{...}} but that's a bit ugly.
Mojca
Why don't you use setups ?
I do use setups on the outer level (not on the inner), but that hardly makes a difference (\setups{Header:Left} and \myleftheader are almost equal).
\startsetups[header with logo] \doifmodeelse {twosided} {\setupheadertexts [\hbox{\kern-5mm\myheaderright}][] [][\hbox{\myheaderleft\kern-5mm}]} {\setupheadertexts[\myheaderright]} \stopsetups
and then another structure full of hboxes, struts& kerns ... but I find it ugly to use explicit kerning just to get the header alignment right.
But apparently everyone is hacking with boxes here. That's also OK if there's no better option.
\kern0pt should work or else \kern0pt\strut ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------