* Concerning text backgrounds (and further tuning) in references
@ 2020-10-23 23:45 Jairo A. del Rio
2020-10-24 18:20 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Jairo A. del Rio @ 2020-10-23 23:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1049 bytes --]
Hi, list! I've seen the following question in TeX.SE.
My attempt of solving was:
https://tex.stackexchange.com/questions/567655/change-background-color-of-hyperlinks/567719?noredirect=1#comment1431936_567719
\setupinteraction [state=start]\definetextbackground[MyUrl]
[
location=text,
background=color,
backgroundcolor=yellow,
frame=off,
]\def\myfootnote#1{\MyUrl{\high{#1}}}
\setupfootnotes[textcommand=\myfootnote]
\definepapersize[default][A8,portrait]\setuppapersize
[default]\useURL[aurl] [https://wiki.contextgarden.net] []
[\MyUrl{ConTeXt Garden}]\starttext
Testing links to same page\footnote{This should create links to same
page} and an external link: \from[aurl].\stoptext
When one tries to use `\setupinteraction[...style=\MyUrl...]` either
it doesn't work or displays a background which doesn't break well
across lines.
Is there a workaround or another method? Maybe a feature request for a
more customizable setup for references? I had the same problem some
time ago and I guess some others too.
Thank you in advance,
Jairo :)
[-- Attachment #1.2: Type: text/html, Size: 3563 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Concerning text backgrounds (and further tuning) in references
2020-10-23 23:45 Concerning text backgrounds (and further tuning) in references Jairo A. del Rio
@ 2020-10-24 18:20 ` Wolfgang Schuster
2020-10-24 22:23 ` Jairo A. del Rio
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-10-24 18:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jairo A. del Rio schrieb am 24.10.2020 um 01:45:
> |Hi, list! I've seen the following question in TeX.SE.
> |
>
> |My attempt of solving was:
> |
>
> |
> https://tex.stackexchange.com/questions/567655/change-background-color-of-hyperlinks/567719?noredirect=1#comment1431936_567719
>
> \setupinteraction [state=start] \definetextbackground[MyUrl] [
> location=text, background=color,backgroundcolor=yellow, frame=off,
> ]\def\myfootnote#1{\MyUrl{\high{#1}}}
> \setupfootnotes[textcommand=\myfootnote]
> \definepapersize[default][A8,portrait] \setuppapersize [default]
> \useURL[aurl] [https://wiki.contextgarden.net] [] [\MyUrl{ConTeXt
> Garden}] \starttext Testing links to same page\footnote{This should
> create links to same page} and an external link: \from[aurl]. \stoptext
>
> |
>
> |When one tries to use `\setupinteraction[...style=\MyUrl...]` either it
> doesn't work or displays a background which doesn't break well across
> lines.
> |
>
> |Is there a workaround or another method? Maybe a feature request for a
> more customizable setup for references? I had the same problem some time
> ago and I guess some others too.
\definebar
[urlbackground]
[color=yellow,
order=background,
continue=yes,
rulethickness=2.8,
offset=1.4]
\setupinteraction
[state=start,
style={\setbar[urlbackground]}]
\starttext
\unknown\ \goto{ConTeXt
garden}[url(https://wiki.contextgarden.net/Main_Page)] \unknown
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Concerning text backgrounds (and further tuning) in references
2020-10-24 18:20 ` Wolfgang Schuster
@ 2020-10-24 22:23 ` Jairo A. del Rio
0 siblings, 0 replies; 3+ messages in thread
From: Jairo A. del Rio @ 2020-10-24 22:23 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1795 bytes --]
Oh, I didn't know about bars. Thank you very much, Wolfgang.
Jairo :)
El sáb., 24 de oct. de 2020 a la(s) 13:20, Wolfgang Schuster (
wolfgang.schuster.lists@gmail.com) escribió:
> Jairo A. del Rio schrieb am 24.10.2020 um 01:45:
> > |Hi, list! I've seen the following question in TeX.SE.
> > |
> >
> > |My attempt of solving was:
> > |
> >
> > |
> >
> https://tex.stackexchange.com/questions/567655/change-background-color-of-hyperlinks/567719?noredirect=1#comment1431936_567719
> >
> > \setupinteraction [state=start] \definetextbackground[MyUrl] [
> > location=text, background=color,backgroundcolor=yellow, frame=off,
> > ]\def\myfootnote#1{\MyUrl{\high{#1}}}
> > \setupfootnotes[textcommand=\myfootnote]
> > \definepapersize[default][A8,portrait] \setuppapersize [default]
> > \useURL[aurl] [https://wiki.contextgarden.net] [] [\MyUrl{ConTeXt
> > Garden}] \starttext Testing links to same page\footnote{This should
> > create links to same page} and an external link: \from[aurl]. \stoptext
> >
> > |
> >
> > |When one tries to use `\setupinteraction[...style=\MyUrl...]` either it
> > doesn't work or displays a background which doesn't break well across
> > lines.
> > |
> >
> > |Is there a workaround or another method? Maybe a feature request for a
> > more customizable setup for references? I had the same problem some time
> > ago and I guess some others too.
>
> \definebar
> [urlbackground]
> [color=yellow,
> order=background,
> continue=yes,
> rulethickness=2.8,
> offset=1.4]
>
> \setupinteraction
> [state=start,
> style={\setbar[urlbackground]}]
>
> \starttext
>
> \unknown\ \goto{ConTeXt
> garden}[url(https://wiki.contextgarden.net/Main_Page)] \unknown
>
> \stoptext
>
> Wolfgang
>
[-- Attachment #1.2: Type: text/html, Size: 2669 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-24 22:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23 23:45 Concerning text backgrounds (and further tuning) in references Jairo A. del Rio
2020-10-24 18:20 ` Wolfgang Schuster
2020-10-24 22:23 ` Jairo A. del Rio
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).