how to change the colour of the footnote marker
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
Today I wanted to print an entire document not in standard black, but in blue. I added (Mk II) – \setupcolors [state=start] \define\kleur{blue} % so I can change the colour uniformly everywhere through this variable \startcolor [\kleur] \setupnote[footnote][before={\color[\kleur]}] \setupfooter [color=\kleur] – and everything becomes blue, but NOT the footnote number before the footnote itself at the bottom of the page (the marker in the main text is coloured the way I want). Can anyone tell me how to change the colour of the footnote number in the note? Robert
![](https://secure.gravatar.com/avatar/9c54554cf31b1a1894f2a3420f0ebbc1.jpg?s=120&d=mm&r=g)
Hi Robert, I don't understand if you need solution for MkII, or if you tried something from MkII. For MkIV you can use this: \def\mycmd#1{\startcolor[\kleur]#1\stopcolor} \setupnotation[footnote][numbercommand=\mycmd] (But I don't know whether it will work witk MkII.) The best, Tomáš Sun, Apr 08, 2018 ve 01:02:45PM +0200 Robert Zydenbos napsal(a): # Today I wanted to print an entire document not in standard black, # but in blue. I added (Mk II) – # # \setupcolors [state=start] # \define\kleur{blue} % so I can change the colour uniformly # everywhere through this variable # \startcolor [\kleur] # \setupnote[footnote][before={\color[\kleur]}] # \setupfooter [color=\kleur] # # – and everything becomes blue, but NOT the footnote number before # the footnote itself at the bottom of the page (the marker in the # main text is coloured the way I want). # # Can anyone tell me how to change the colour of the footnote number # in the note? # # Robert # # ___________________________________________________________________________________ # 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://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
Greetings, Tomáš, On 08.04.2018 17:41, Tomas Hala wrote:
Hi Robert,
I don't understand if you need solution for MkII, or if you tried something from MkII.
For MkIV you can use this:
defmycmd#1{startcolor[kleur]#1stopcolor} setupnotation[footnote][numbercommand=mycmd]
(But I don't know whether it will work witk MkII.)
Thank you for the proffered help – but I found a very similar snippet of code in a message to this list from 2015 and tried it. Mk II does not have \setupnotation[footnote] yet, and when I 'translated' it to \setupfootnotes (which ordinarily ought to work in Mk II), it unfortunately did not work. (I need to use Mk II because I need the functionality of XeTeX.) However, Wolfgang gave the solution! I do not know why that is the solution :-), but it works.
The best,
Robert -- Prof. Dr. Robert J. Zydenbos Institute of Indology and Tibetology Department of Asian Studies Ludwig-Maximilians-Universität München (University of Munich – LMU) Germany
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Robert Zydenbos mailto:context@zydenbos.net 9. April 2018 um 00:33 Greetings, Tomáš,
On 08.04.2018 17:41, Tomas Hala wrote:
Hi Robert,
I don't understand if you need solution for MkII, or if you tried something from MkII.
For MkIV you can use this:
defmycmd#1{startcolor[kleur]#1stopcolor} setupnotation[footnote][numbercommand=mycmd]
(But I don't know whether it will work witk MkII.)
Thank you for the proffered help – but I found a very similar snippet of code in a message to this list from 2015 and tried it.
Mk II does not have \setupnotation[footnote] yet, and when I 'translated' it to \setupfootnotes (which ordinarily ought to work in Mk II), it unfortunately did not work. (I need to use Mk II because I need the functionality of XeTeX.)
1. \setupnotation is the new command name for \setupnotedefinition 2. Which language do you use in your document? Wolfgang
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
On 09.04.2018 00:49, Wolfgang Schuster wrote:
Mk II does not have setupnotation[footnote] yet, and when I 'translated' it to setupfootnotes (which ordinarily ought to work in Mk II), it unfortunately did not work. (I need to use Mk II because I need the functionality of XeTeX.)
1. setupnotation is the new command name for setupnotedefinition
2. Which language do you use in your document?
Kannada. This is one of the world's larger languages, belonging to the Dravidian language family, spoken in the southern Indian state of Karnataka (its capital city Bangalore / Bengaluru is known outside India mainly as the centre of India's IT industry). I am about to finish writing the first comprehensive modern teaching manual of the language for non-Indian learners, and this is the kind of book that one can hardly leave to typesetters. First I was thinking of producing the ready-to-print PDF in XeLaTeX, but… oh, well, we're among ourselves here, so I think I need not go into the details of why I prefer to do it in ConTeXt. :-) Robert -- Prof. Dr. Robert J. Zydenbos Institute of Indology and Tibetology Department of Asian Studies Ludwig-Maximilians-Universität München (University of Munich – LMU) Germany
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/9/2018 12:33 AM, Robert Zydenbos wrote:
Greetings, Tomáš,
On 08.04.2018 17:41, Tomas Hala wrote:
Hi Robert,
I don't understand if you need solution for MkII, or if you tried something from MkII.
For MkIV you can use this:
defmycmd#1{startcolor[kleur]#1stopcolor} setupnotation[footnote][numbercommand=mycmd]
(But I don't know whether it will work witk MkII.)
Thank you for the proffered help – but I found a very similar snippet of code in a message to this list from 2015 and tried it.
Mk II does not have \setupnotation[footnote] yet, and when I 'translated' it to \setupfootnotes (which ordinarily ought to work in Mk II), it unfortunately did not work. (I need to use Mk II because I need the functionality of XeTeX.)
just curious: what do you mis in mkiv / luatex
However, Wolfgang gave the solution! I do not know why that is the solution :-), but it works.
The best,
Robert
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
On 09.04.2018 09:45, Hans Hagen wrote:
On 4/9/2018 12:33 AM, Robert Zydenbos wrote: […] (I need to use Mk II because I need the functionality of XeTeX.)
just curious: what do you mis in mkiv / luatex
Support for Indic scripts / fonts. (I think we had a little bit of correspondence on this mailing list three or four years ago about this, and we were not able to convert and use the TrueType fonts I required.) Robert
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/9/2018 12:18 PM, Robert Zydenbos wrote:
On 09.04.2018 09:45, Hans Hagen wrote:
On 4/9/2018 12:33 AM, Robert Zydenbos wrote: […] (I need to use Mk II because I need the functionality of XeTeX.)
just curious: what do you mis in mkiv / luatex
Support for Indic scripts / fonts. (I think we had a little bit of correspondence on this mailing list three or four years ago about this, and we were not able to convert and use the TrueType fonts I required.) Which specific indic scripts?
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
On 09.04.18 14:14, Hans Hagen wrote:
On 4/9/2018 12:18 PM, Robert Zydenbos wrote:
just curious: what do you mis in mkiv / luatex
Support for Indic scripts / fonts. (I think we had a little bit of correspondence on this mailing list three or four years ago about this, and we were not able to convert and use the TrueType fonts I required.) Which specific indic scripts?
Kannada, and soon I will also need Nagari (also known as Devanagari). Robert
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
\definecolor[kleur][blue] \setupcolors[state=start,textcolor=kleur] \setupnotedefinition[footnote][color=kleur] \setupnote [footnote][rulecolor=kleur] \starttext \input knuth \footnote{\input ward } \stoptext Wolfgang
Robert Zydenbos mailto:context@zydenbos.net 8. April 2018 um 13:02 Today I wanted to print an entire document not in standard black, but in blue. I added (Mk II) –
\setupcolors [state=start] \define\kleur{blue} % so I can change the colour uniformly everywhere through this variable \startcolor [\kleur] \setupnote[footnote][before={\color[\kleur]}] \setupfooter [color=\kleur]
– and everything becomes blue, but NOT the footnote number before the footnote itself at the bottom of the page (the marker in the main text is coloured the way I want).
Can anyone tell me how to change the colour of the footnote number in the note?
Robert
___________________________________________________________________________________
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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/42dd7dfbe784fdc74010c75ac7a3d12d.jpg?s=120&d=mm&r=g)
Greetings, Wolfgang, On 08.04.2018 17:46, Wolfgang Schuster wrote:
definecolor[kleur][blue]
setupcolors[state=start,textcolor=kleur]
setupnotedefinition[footnote][color=kleur] setupnote [footnote][rulecolor=kleur]
…etc…
It works! Thank you for the solution. One thing that puzzles me, however, is that you (Wolfgang) are able to produce solutions using (so it seems) undocumented commands and parameters. How did you hit upon the idea to use 'rulecolor' here? I rely on the ConTeXt manual (2013 version), and there is nothing there to suggest that 'rulecolor' determines the colour of the text of footnotes. Neither did the Wiki help me. Is there some hidden documentation I do not know about? Robert
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Robert Zydenbos mailto:context@zydenbos.net 9. April 2018 um 00:40 Greetings, Wolfgang,
On 08.04.2018 17:46, Wolfgang Schuster wrote:
definecolor[kleur][blue]
setupcolors[state=start,textcolor=kleur]
setupnotedefinition[footnote][color=kleur] setupnote [footnote][rulecolor=kleur]
…etc…
It works! Thank you for the solution.
One thing that puzzles me, however, is that you (Wolfgang) are able to produce solutions using (so it seems) undocumented commands and parameters. How did you hit upon the idea to use 'rulecolor' here? I rely on the ConTeXt manual (2013 version), and there is nothing there to suggest that 'rulecolor' determines the colour of the text of footnotes. Neither did the Wiki help me.
Is there some hidden documentation I do not know about? You can look them up in the command reference which exists since a very long time (the current version is MkIV/LuaTeX only):
http://pragma-ade.com/show-man-5.htm Wolfgang
participants (4)
-
Hans Hagen
-
Robert Zydenbos
-
Tomas Hala
-
Wolfgang Schuster