![](https://secure.gravatar.com/avatar/a5cd60098cd767332ac751c0ccd8091e.jpg?s=120&d=mm&r=g)
How do I turn off interaction when using \startunderline... \stopunderline. Currently the underlining shows in blue, but I need it in the same color as the typeface (black). Is there something equivalent to \setupunderlining[interaction=off]? Thanks for any tips or clues. Alan
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
Quoting Alan Bowen
How do I turn off interaction when using \startunderline... \stopunderline. Currently the underlining shows in blue, but I need it in the same color as the typeface (black). Is there something equivalent to \setupunderlining[interaction=off]?
Depends on how you define \startunderline. The usual way is to \definetextbackground[underline] [location=text,alternative=1,background=,frame=off] \definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground] which does not introduce any interaction (interaction means that something should happen when you click the screen). It does have a blue underline, because of framecolor=blue in \setuptextbackgrounds. To have black color you can add framecolor=black, if you want typeface color (which can be different from black) add framecolor=\maintextcolor, to either \definetextbackground or to \setuptexttextbackground. Aditya
![](https://secure.gravatar.com/avatar/a5cd60098cd767332ac751c0ccd8091e.jpg?s=120&d=mm&r=g)
Thanks, Aditya, for making sense of my query and answering it. \setuptextbackground[framecolor=black] did the trick. All best, Alan On Jun 6, 2007, at 2:22 PM, Aditya Mahajan wrote:
Quoting Alan Bowen
: How do I turn off interaction when using \startunderline... \stopunderline. Currently the underlining shows in blue, but I need it in the same color as the typeface (black). Is there something equivalent to \setupunderlining[interaction=off]?
Depends on how you define \startunderline. The usual way is to
\definetextbackground[underline] [location=text,alternative=1,background=,frame=off]
\definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground]
which does not introduce any interaction (interaction means that something should happen when you click the screen). It does have a blue underline, because of framecolor=blue in \setuptextbackgrounds. To have black color you can add framecolor=black, if you want typeface color (which can be different from black) add framecolor=\maintextcolor, to either \definetextbackground or to \setuptexttextbackground.
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
participants (2)
-
Aditya Mahajan
-
Alan Bowen