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.
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
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
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 ___________________________________________________________________________________
participants (3)
-
Malte Stien
-
Philipp Gesang
-
Thomas A. Schmitz