* Re: Hairline in header
@ 2011-01-10 21:20 Florian Wobbe
2011-01-11 0:22 ` Li Yanrui (李延瑞)
0 siblings, 1 reply; 10+ messages in thread
From: Florian Wobbe @ 2011-01-10 21:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
> \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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2011-01-10 21:20 Hairline in header Florian Wobbe
@ 2011-01-11 0:22 ` Li Yanrui (李延瑞)
2011-01-11 8:06 ` Florian Wobbe
0 siblings, 1 reply; 10+ messages in thread
From: Li Yanrui (李延瑞) @ 2011-01-11 0:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
2011/1/11 Florian Wobbe <Florian.Wobbe@awi.de>:
>> \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 (李延瑞)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2011-01-11 0:22 ` Li Yanrui (李延瑞)
@ 2011-01-11 8:06 ` Florian Wobbe
2011-01-11 11:49 ` Li Yanrui (李延瑞)
0 siblings, 1 reply; 10+ messages in thread
From: Florian Wobbe @ 2011-01-11 8:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2011-01-11 8:06 ` Florian Wobbe
@ 2011-01-11 11:49 ` Li Yanrui (李延瑞)
2011-01-11 12:54 ` Florian Wobbe
0 siblings, 1 reply; 10+ messages in thread
From: Li Yanrui (李延瑞) @ 2011-01-11 11:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
2011/1/11 Florian Wobbe <Florian.Wobbe@awi.de>:
>>> 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 (李延瑞)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2011-01-11 11:49 ` Li Yanrui (李延瑞)
@ 2011-01-11 12:54 ` Florian Wobbe
0 siblings, 0 replies; 10+ messages in thread
From: Florian Wobbe @ 2011-01-11 12:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2011-03-03 15:39 ` Wolfgang Schuster
@ 2011-03-03 16:36 ` Willi Egger
0 siblings, 0 replies; 10+ messages in thread
From: Willi Egger @ 2011-03-03 16:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
Of course this is a very elaborate solution which comes in handy, if you want special effects. however for the simple case of a rule you could also use just:
\setupbackgrounds[header][text][frame=off, bottomframe=on,rulethickness=1pt]
Willi
On 3 Mar 2011, at 16:39, Wolfgang Schuster wrote:
>
> Am 02.03.2011 um 22:12 schrieb Dr. David Endler:
>
>> Hi Wolfgang,
>>
>> Is there also a possibility to have 2 lines below the header with different color and different thickness?
>
> You can use TeX’s own mechanism to draw the rules or use MetaPost.
>
> % solution 1:
>
> %\startsetups headerrules
> % \blackrule[width=\hsize,color=yellow,height=3pt]
> % \blackrule[width=\hsize,color=orange,height=3pt]
> %\stopsetups
> %
> %\setupheader[text][after=\setups{headerrules}]
>
> % solution 2:
>
> \startuseMPgraphic{headerrules}
> draw origin--(OverlayWidth,0) withcolor red withpen pencircle scaled 4 ;
> draw origin--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4 shifted (0,4) ;
> clip currentpicture to OverlayBox ;
> setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
>
> \defineoverlay[headerrules][\useMPgraphic{headerrules}]
>
> \setupbackgrounds[header][text][background=headerrules]
>
> \starttext
> \input knuth
> \stoptext
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
[not found] <013101cbd91e$8cdf45c0$a69dd140$@davidendler.de>
@ 2011-03-03 15:39 ` Wolfgang Schuster
2011-03-03 16:36 ` Willi Egger
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2011-03-03 15:39 UTC (permalink / raw)
To: Dr. David Endler; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 959 bytes --]
Am 02.03.2011 um 22:12 schrieb Dr. David Endler:
> Hi Wolfgang,
>
> Is there also a possibility to have 2 lines below the header with different color and different thickness?
You can use TeX’s own mechanism to draw the rules or use MetaPost.
% solution 1:
%\startsetups headerrules
% \blackrule[width=\hsize,color=yellow,height=3pt]
% \blackrule[width=\hsize,color=orange,height=3pt]
%\stopsetups
%
%\setupheader[text][after=\setups{headerrules}]
% solution 2:
\startuseMPgraphic{headerrules}
draw origin--(OverlayWidth,0) withcolor red withpen pencircle scaled 4 ;
draw origin--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4 shifted (0,4) ;
clip currentpicture to OverlayBox ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[headerrules][\useMPgraphic{headerrules}]
\setupbackgrounds[header][text][background=headerrules]
\starttext
\input knuth
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2640 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2010-11-04 9:01 ` Wolfgang Schuster
@ 2010-11-04 9:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 10+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-11-04 9:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks, that's it.
Cheers,
Lukas
On Thu, 04 Nov 2010 10:01:18 +0100, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> \setupheader[text][after=\thinrule]
> \setuplayout[header=1cm,headerdistance=1cm]
> \starttext
> \dorecurse{12}{\input knuth\par}
> \stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Hairline in header
2010-11-04 8:07 Procházka Lukáš Ing. - Pontex s. r. o.
@ 2010-11-04 9:01 ` Wolfgang Schuster
2010-11-04 9:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2010-11-04 9:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 491 bytes --]
Am 04.11.2010 um 09:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> Hello,
>
> how to add the hairline (or a kind of the horizontal rule) under the header area?
\setupbackgrounds[header][text][bottomframe=on]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext
or
\setupheader[text][after=\thinrule]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 3605 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Hairline in header
@ 2010-11-04 8:07 Procházka Lukáš Ing. - Pontex s. r. o.
2010-11-04 9:01 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-11-04 8:07 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
Hello,
how to add the hairline (or a kind of the horizontal rule) under the header area?
I'd like to achieve something like in the 1.pdf (attached; created by LaTeX).
My code till now:
---
\setuppagenumbering[location=footer,middle]
\setupheader[][style=small]
\setupheadertexts[LLL][RRR]
\starttext
AAA
\stoptext
---
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
[-- Attachment #2: t-HeadFoot.mkiv --]
[-- Type: application/octet-stream, Size: 137 bytes --]
\setuppagenumbering[location=footer,middle]
\setupheader[][style=small]
\setupheadertexts[LLL][RRR]
\starttext
AAA
\stoptext
[-- Attachment #3: 1.png --]
[-- Type: image/png, Size: 22243 bytes --]
[-- Attachment #4: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-03-03 16:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10 21:20 Hairline in header Florian Wobbe
2011-01-11 0:22 ` Li Yanrui (李延瑞)
2011-01-11 8:06 ` Florian Wobbe
2011-01-11 11:49 ` Li Yanrui (李延瑞)
2011-01-11 12:54 ` Florian Wobbe
[not found] <013101cbd91e$8cdf45c0$a69dd140$@davidendler.de>
2011-03-03 15:39 ` Wolfgang Schuster
2011-03-03 16:36 ` Willi Egger
-- strict thread matches above, loose matches on Subject: below --
2010-11-04 8:07 Procházka Lukáš Ing. - Pontex s. r. o.
2010-11-04 9:01 ` Wolfgang Schuster
2010-11-04 9:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).