ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Text Colour
@ 2011-08-31  1:57 Kip Warner
  2011-08-31  2:16 ` Alasdair McAndrew
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kip Warner @ 2011-08-31  1:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hey folks,

How do I set the body text foreground colour? I tried the following, but
it just ignored it:

\definecolor[colour_text][r=0.754,g=0.516,b=0.324]

\setupbodyfontenvironment
  [default]
  [em=italic,
   color=colour_text]

I don't want to have to use \startcolor and \stopcolor every time I wish
this default to be applied.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  1:57 Text Colour Kip Warner
@ 2011-08-31  2:16 ` Alasdair McAndrew
  2011-08-31  4:18   ` Kip Warner
  2011-08-31  3:24 ` Wolfgang Schuster
  2011-08-31  4:19 ` Aditya Mahajan
  2 siblings, 1 reply; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-31  2:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Have you included

\setupcolors[state=start]

somewhere?

-Alasdair

On Wed, Aug 31, 2011 at 11:57 AM, Kip Warner <kip@thevertigo.com> wrote:

> Hey folks,
>
> How do I set the body text foreground colour? I tried the following, but
> it just ignored it:
>
> \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
>
> \setupbodyfontenvironment
>  [default]
>  [em=italic,
>   color=colour_text]
>
> I don't want to have to use \startcolor and \stopcolor every time I wish
> this default to be applied.
>
> --
> Kip Warner -- Software Engineer
> OpenPGP encrypted/signed mail preferred
> http://www.thevertigo.com
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew

[-- Attachment #1.2: Type: text/html, Size: 2212 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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  1:57 Text Colour Kip Warner
  2011-08-31  2:16 ` Alasdair McAndrew
@ 2011-08-31  3:24 ` Wolfgang Schuster
  2011-08-31  6:05   ` Kip Warner
  2011-08-31  4:19 ` Aditya Mahajan
  2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-08-31  3:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 31.08.2011 um 03:57 schrieb Kip Warner:

> Hey folks,
> 
> How do I set the body text foreground colour? I tried the following, but
> it just ignored it:
> 
> \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
> 
> \setupbodyfontenvironment
>  [default]
>  [em=italic,
>   color=colour_text]
> 
> I don't want to have to use \startcolor and \stopcolor every time I wish
> this default to be applied.

\setupcolors[textcolor=...]

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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  2:16 ` Alasdair McAndrew
@ 2011-08-31  4:18   ` Kip Warner
  0 siblings, 0 replies; 8+ messages in thread
From: Kip Warner @ 2011-08-31  4:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Wed, 2011-08-31 at 12:16 +1000, Alasdair McAndrew wrote:
> Have you included
> 
> \setupcolors[state=start]
> 
> somewhere?
> 
> -Alasdair

Hey Alasdair. Sorry, I should have mentioned that I already have that
too.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  1:57 Text Colour Kip Warner
  2011-08-31  2:16 ` Alasdair McAndrew
  2011-08-31  3:24 ` Wolfgang Schuster
@ 2011-08-31  4:19 ` Aditya Mahajan
  2011-08-31  5:04   ` Alasdair McAndrew
  2 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-08-31  4:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 30 Aug 2011, Kip Warner wrote:

> Hey folks,
>
> How do I set the body text foreground colour? I tried the following, but
> it just ignored it:
>
> \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
>
> \setupbodyfontenvironment
>  [default]
>  [em=italic,
>   color=colour_text]
>
> I don't want to have to use \startcolor and \stopcolor every time I wish
> this default to be applied.

\definehighlight[emph][style=em,color=red]

\emph{...}

Aditya
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  4:19 ` Aditya Mahajan
@ 2011-08-31  5:04   ` Alasdair McAndrew
  2011-08-31 13:00     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-31  5:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

This brings up a question I have - how do I obtain, say, all {\tt  } text in
blue and all {\em } text in red?  I seem to be using MkII, and I don't have
access to the \definehighlight command.

Thanks,
Alasdair

On Wed, Aug 31, 2011 at 2:19 PM, Aditya Mahajan <adityam@umich.edu> wrote:

> On Tue, 30 Aug 2011, Kip Warner wrote:
>
>  Hey folks,
>>
>> How do I set the body text foreground colour? I tried the following, but
>> it just ignored it:
>>
>> \definecolor[colour_text][r=0.**754,g=0.516,b=0.324]
>>
>> \setupbodyfontenvironment
>>  [default]
>>  [em=italic,
>>  color=colour_text]
>>
>> I don't want to have to use \startcolor and \stopcolor every time I wish
>> this default to be applied.
>>
>
> \definehighlight[emph][style=**em,color=red]
>
> \emph{...}
>
> Aditya
>
> ______________________________**______________________________**
> _______________________
> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki     : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew

[-- Attachment #1.2: Type: text/html, Size: 2594 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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  3:24 ` Wolfgang Schuster
@ 2011-08-31  6:05   ` Kip Warner
  0 siblings, 0 replies; 8+ messages in thread
From: Kip Warner @ 2011-08-31  6:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Wed, 2011-08-31 at 05:24 +0200, Wolfgang Schuster wrote:
> \setupcolors[textcolor=...]
> 
> Wolfgang

Thanks Wolfgang, that did it.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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] 8+ messages in thread

* Re: Text Colour
  2011-08-31  5:04   ` Alasdair McAndrew
@ 2011-08-31 13:00     ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-08-31 13:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 31.08.2011 um 07:04 schrieb Alasdair McAndrew:

> This brings up a question I have - how do I obtain, say, all {\tt  } text in blue and all {\em } text in red?  I seem to be using MkII, and I don't have access to the \definehighlight command.

\definestartstop[emph][style=italic,color=red]
\definestartstop[mono][style=mono,color=blue]

\setupbodyfontenvironment[default][em=emph]

\starttext

text {\em text} text {\emph text} text \emph{text} text

text {\mono text} text \mono{text} text

\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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-08-31 13:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-31  1:57 Text Colour Kip Warner
2011-08-31  2:16 ` Alasdair McAndrew
2011-08-31  4:18   ` Kip Warner
2011-08-31  3:24 ` Wolfgang Schuster
2011-08-31  6:05   ` Kip Warner
2011-08-31  4:19 ` Aditya Mahajan
2011-08-31  5:04   ` Alasdair McAndrew
2011-08-31 13:00     ` 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).