[NTG-context] footnote coloring

Pablo Rodriguez oinos at gmx.es
Sun Sep 6 12:29:12 CEST 2015


On 09/06/2015 11:11 AM, dr. Hans van der Meer wrote:
> I want to color all elements of a footnote, but I cannot find how to do
> this.
> Minimal example:
> 
> \def\rednumber#1{\color[red]{#1}}
> \starttext
> \setupfootnotes[textcolor=red,numbercommand=\rednumber,foregroundcolor=red]
> This text\footnote{the footnote} contains a footnote.
> \stoptext
> 
> The footnotenumber in the text is the only element that gets colored
> because of the [textcolor=red] parameter setting.
> 
> In the command reference it is [numbercommand=\rednumber]. Shouldn't
> that have made the color of the footnotenumber below?
> 
> Since \setupfootnotes inherits from setupframed I expected
> [foregroundcolor=red] to do the trick for the content of the footnote,
> but it doesn't.
> 
> How to?

Hi Hans,

this setup works fine in MkIV:

  \setupnote[footnote][textcolor=blue]

  \setupnotation[footnote][numbercommand={\color[red]}, color=green]


I hope it helps,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list