Re: [NTG-context] Hairline in header
\setupheader[text][after=\thinrule] \setuplayout[header=1cm,headerdistance=1cm] \starttext \dorecurse{12}{\input knuth\par} \stoptext
Hi, how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this: \setupheader[text][after=\hrule] Florian
2011/1/11 Florian Wobbe
\setupheader[text][after=\thinrule] \setuplayout[header=1cm,headerdistance=1cm] \starttext \dorecurse{12}{\input knuth\par} \stoptext
Hi,
how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this:
\setupheader[text][after=\hrule]
Hi Florian, Maybe this can help you. \setuplayout[header=1cm,headerdistance=1cm] \setupheader[text][after=\vskip-0.8em\thinrule] \starttext \dorecurse{12}{\input knuth\par} \stoptext -- Best regards, Li Yanrui (李延瑞)
how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this:
\setupheader[text][after=\hrule]
Hi Florian,
Maybe this can help you.
\setuplayout[header=1cm,headerdistance=1cm] \setupheader[text][after=\vskip-0.8em\thinrule] \starttext \dorecurse{12}{\input knuth\par} \stoptext
Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work. Florian
2011/1/11 Florian Wobbe
how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this:
\setupheader[text][after=\hrule]
Hi Florian,
Maybe this can help you.
\setuplayout[header=1cm,headerdistance=1cm] \setupheader[text][after=\vskip-0.8em\thinrule] \starttext \dorecurse{12}{\input knuth\par} \stoptext
Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work.
Hm, if you use: \setupthinrules[n=1, before=\vskip-0.8em] \setupheader[text][after=\thinrules] it can work. However ConTeXt advises to use \blank instead of \vskip, for example: \setupthinrules[n=1, before={\blank[-0.8em]}] \setupheader[text][after=\thinrules] -- Best regards, Li Yanrui (李延瑞)
Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work.
Hm, if you use: \setupthinrules[n=1, before=\vskip-0.8em] \setupheader[text][after=\thinrules]
it can work.
However ConTeXt advises to use \blank instead of \vskip, for example:
\setupthinrules[n=1, before={\blank[-0.8em]}] \setupheader[text][after=\thinrules]
This works, thank you! Florian
participants (2)
-
Florian Wobbe
-
Li Yanrui (李延瑞)