Concerning text backgrounds (and further tuning) in references
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-hy... \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 :)
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-hy...
\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
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-hy...
\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
participants (2)
-
Jairo A. del Rio
-
Wolfgang Schuster