ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Colored horizontal line
@ 2013-07-15 11:59 "H. Özoguz"
  2013-07-15 12:13 ` Marco Patzer
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: "H. Özoguz" @ 2013-07-15 11:59 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Colored horizontal line
  2013-07-15 11:59 Colored horizontal line "H. Özoguz"
@ 2013-07-15 12:13 ` Marco Patzer
  2013-07-15 12:48 ` Peter Münster
  2013-07-15 12:53 ` Marco Patzer
  2 siblings, 0 replies; 6+ messages in thread
From: Marco Patzer @ 2013-07-15 12:13 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 127 bytes --]

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

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

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

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: Colored horizontal line
  2013-07-15 11:59 Colored horizontal line "H. Özoguz"
  2013-07-15 12:13 ` Marco Patzer
@ 2013-07-15 12:48 ` Peter Münster
  2013-07-15 12:53 ` Marco Patzer
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Münster @ 2013-07-15 12:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Colored horizontal line
  2013-07-15 11:59 Colored horizontal line "H. Özoguz"
  2013-07-15 12:13 ` Marco Patzer
  2013-07-15 12:48 ` Peter Münster
@ 2013-07-15 12:53 ` Marco Patzer
  2013-07-15 15:33   ` Hans Hagen
  2 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-07-15 12:53 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 202 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: Colored horizontal line
  2013-07-15 12:53 ` Marco Patzer
@ 2013-07-15 15:33   ` Hans Hagen
  2013-07-15 15:48     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2013-07-15 15:33 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Colored horizontal line
  2013-07-15 15:33   ` Hans Hagen
@ 2013-07-15 15:48     ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2013-07-15 15:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 15.07.2013 um 17:33 schrieb Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-15 15:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 11:59 Colored horizontal line "H. Özoguz"
2013-07-15 12:13 ` Marco Patzer
2013-07-15 12:48 ` Peter Münster
2013-07-15 12:53 ` Marco Patzer
2013-07-15 15:33   ` Hans Hagen
2013-07-15 15:48     ` Wolfgang Schuster

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).