[NTG-context] Turning off French character spacing

Peter Münster pmlists at free.fr
Fri Apr 10 12:49:01 CEST 2015


On Fri, Apr 10 2015, joasyannick at gmail.com wrote:

> I am writting a French document.
> I would like to turn off the French character spacing temporarily in order to
> typeset English document title or URL. For instance, I would like to define
> the commands
>
> \def\englishtitle#1{\turnofffrenchcharacterspacing{\em
> #1}\turnonfrenchcharacterspacing}
> \def\url#1{\turnofffrenchcharacterspacing{\em
> #1}\turnonfrenchcharacterspacing}
>
> so that a title link “Example: English Title” will be italicised and will not
> have a space before “:”;
> and a URL like “http://www.example.com” neither.

\usemodule[french]
\setupurl[style=\tt\en]
\def\EnglishTitle#1{\start\en\em#1\stop}
\useURL[myURL][http://website/]
\starttext
Voilà: \EnglishTitle{Voilà: Voilà?} URL: \url[myURL]
\stoptext

-- 
           Peter


More information about the ntg-context mailing list