* How to do coloured heads
@ 2011-12-07 10:03 Malte Stien
2011-12-07 10:16 ` Philipp Gesang
0 siblings, 1 reply; 4+ messages in thread
From: Malte Stien @ 2011-12-07 10:03 UTC (permalink / raw)
To: ntg-context
Hello,
I am new to all of this. First of all, thank you to everyone involved for such an awesome software package. I have been looking for something like this for a while for technical documentation for software projects and had no idea this even existed until... well, yesterday. So, I spent most of the day playing with it.
However, I have not managed to work out how to get coloured heads. I am trying to have my section heads in darkgray. So I tried
\setuphead[section][style=\tfb\ss\color[darkgray]]
which results in a processing error and
\setuphead[section][style=\tfb\ss{\color[darkgray]}]
which seems to process, but does just not do anything (I did not actually expect that last one to work, but I got a bit desperate). While the manual is well written and certain well laid out, it does not quite work for me as a reference guide in that it does not seem to be complete. So a little help would be much appreciated.
Thank you,
Malte.
___________________________________________________________________________________
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] 4+ messages in thread
* Re: How to do coloured heads
2011-12-07 10:03 How to do coloured heads Malte Stien
@ 2011-12-07 10:16 ` Philipp Gesang
2011-12-07 10:31 ` Thomas A. Schmitz
0 siblings, 1 reply; 4+ messages in thread
From: Philipp Gesang @ 2011-12-07 10:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2555 bytes --]
On 2011-12-07 21:03, Malte Stien wrote:
> Hello,
>
> I am new to all of this. First of all, thank you to everyone involved for such an awesome software package. I have been looking for something like this for a while for technical documentation for software projects and had no idea this even existed until... well, yesterday. So, I spent most of the day playing with it.
>
> However, I have not managed to work out how to get coloured heads. I am trying to have my section heads in darkgray. So I tried
>
> \setuphead[section][style=\tfb\ss\color[darkgray]]
Better group the arguments of the “style” key as a whole:
·································································
\definehead[colorsection][section]
\setuphead [colorsection][
style={\tfb\ss\color[darkgray]},
]
\starttext
\startcolorsection[title={This should be colored}]
\input knuth
\stopcolorsection
\stoptext \endinput
·································································
> While the manual is well written and certain well
> laid out, it does not quite work for me as a reference guide in
> that it does not seem to be complete. So a little help would be
> much appreciated.
That’s what this list is for. And the wiki …
Regards,
Philipp
>
> which results in a processing error and
>
> \setuphead[section][style=\tfb\ss{\color[darkgray]}]
>
> which seems to process, but does just not do anything (I did
> not actually expect that last one to work, but I got a bit
> desperate). While the manual is well written and certain well
> laid out, it does not quite work for me as a reference guide in
> that it does not seem to be complete. So a little help would be
> much appreciated.
>
> Thank you,
> Malte.
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
[-- Attachment #1.2: 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] 4+ messages in thread
* Re: How to do coloured heads
2011-12-07 10:16 ` Philipp Gesang
@ 2011-12-07 10:31 ` Thomas A. Schmitz
2011-12-07 10:47 ` Malte Stien
0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2011-12-07 10:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 12/07/2011 11:16 AM, Philipp Gesang wrote:
> Better group the arguments of the “style” key as a whole:
>
> ·································································
>
> \definehead[colorsection][section]
> \setuphead [colorsection][
> style={\tfb\ss\color[darkgray]},
> ]
or, more ConTeXt-like:
\definehead[colorsection][section]
\setuphead [colorsection][
style=\ssbf,
color=red,
]
Thomas
___________________________________________________________________________________
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] 4+ messages in thread
* Re: How to do coloured heads
2011-12-07 10:31 ` Thomas A. Schmitz
@ 2011-12-07 10:47 ` Malte Stien
0 siblings, 0 replies; 4+ messages in thread
From: Malte Stien @ 2011-12-07 10:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thank you. Either of those solutions work fine.
Malte.
On 07/12/2011, at 21:31, Thomas A. Schmitz wrote:
> On 12/07/2011 11:16 AM, Philipp Gesang wrote:
>> Better group the arguments of the “style” key as a whole:
>>
>> ·································································
>>
>> \definehead[colorsection][section]
>> \setuphead [colorsection][
>> style={\tfb\ss\color[darkgray]},
>> ]
>
> or, more ConTeXt-like:
>
> \definehead[colorsection][section]
> \setuphead [colorsection][
> style=\ssbf,
> color=red,
> ]
>
> Thomas
> ___________________________________________________________________________________
> 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] 4+ messages in thread
end of thread, other threads:[~2011-12-07 10:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 10:03 How to do coloured heads Malte Stien
2011-12-07 10:16 ` Philipp Gesang
2011-12-07 10:31 ` Thomas A. Schmitz
2011-12-07 10:47 ` Malte Stien
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).