[NTG-context] Colored horizontal line

2013-07-15 Thread H. Özoguz

Hello there,

after long time I have a question again :)

I use \setupheader[text][after=\hrule] to get a horizontal line below 
the header. How can I color this line? The direct attempt 
\color[r=0.4,g=0.4,b=0.4]{\hrule} fails.


Thank you.
Huseyin

___
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
___



Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 H. Özoguz wrote:

 \setupheader[text][after=\hrule]

\setupheader[text][after=\blue\hrule]

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Peter Münster
On Mon, Jul 15 2013, H. Özoguz wrote:

 The direct attempt \color[r=0.4,g=0.4,b=0.4]{\hrule} fails.

\definecolor[my hrule color][r=0.4,g=0.4,b=0.4]
\starttext
bla
\color[my hrule color]{\hrule}
bla
\stoptext

-- 
   Peter
___
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
___

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 H. Özoguz wrote:

 \color[r=0.4,g=0.4,b=0.4]{\hrule} fails.

This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color
expects a previously defined colour.

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Hans Hagen

On 7/15/2013 2:53 PM, Marco Patzer wrote:

On 2013–07–15 H. Özoguz wrote:


\color[r=0.4,g=0.4,b=0.4]{\hrule} fails.


This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color
expects a previously defined colour.


\blackrule[width=10cm,height=1mm,color=red]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Wolfgang Schuster

Am 15.07.2013 um 17:33 schrieb Hans Hagen pra...@wxs.nl:

 On 7/15/2013 2:53 PM, Marco Patzer wrote:
 On 2013–07–15 H. Özoguz wrote:
 
 \color[r=0.4,g=0.4,b=0.4]{\hrule} fails.
 
 This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color
 expects a previously defined colour.
 
 \blackrule[width=10cm,height=1mm,color=red]

Can the \blackrule command be change to let it use also a \hrule, e.g.

- \blackrule[alternative=horizontal] - \hrule
- \blackrule[alternative=vertical]   - \vrule

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
___