[NTG-context] Hyphenatedurl: custom line-break symbol, disable stretching

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Jul 31 06:42:54 CEST 2014


Am 30.07.2014 um 23:02 schrieb Joshua Krämer <joshua.kraemer at gmail.com>:

> Dear list,
> 
> I typeset URLs with \hyphenatedurl, and have two questions.
> 
> (1) Is there a feature available to insert a custom symbol when a
> line-break occurs, e.g. \hookleftarrow?

\setuplayout[width=4cm]

\starttext

\hyphenatedurl{http://optimist.optimist/optimist/optimist.optimist#optimist}

\def\hyphenatedurlseparator{→}

\hyphenatedurl{http://optimist.optimist/optimist/optimist.optimist#optimist}

\stoptext

> (2) How can I disable the stretching between characters?  I've tried
> the following without success:
> 
>  \setupurl [space=no]
> 
>  \setupurl [urlspace=no]
> 
>  \unprotect
>  \def\lang_url_space{}
>  \protect

Wolfgang


More information about the ntg-context mailing list