Dear everyone, 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. Many thanks, Joas
Am 10.04.2015 um 11:51 schrieb
: Dear everyone,
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}
You can use the \resetcharacterspacing command to disable the spacing. \setcharacterspacing[frenchpunctuation] \definestartstop [EnglishTitle] [commands=\resetcharacterspacing, style=italic] \starttext text: «text» \EnglishTitle{text: «text»} \stoptext
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 http://www.example.com/” neither.
The \url and \hyphenatedurl need to be fixed. Wolfgang
Hi, You can use: \setcharacterspacing[reset] when you don’t want the French character spacing, and \setcharacterspacing[frenchpunctuation] when you want it. For instance for the interaction you would say: \setupinteraction[color=darkgreen,style={\setcharacterspacing[reset]\tt}] \setupinteraction [state=start] and for setting up the typing \setuptype[style={\setcharacterspacing[reset]\tt}] \setuptyping[style={\setcharacterspacing[reset]\tt}] Best regards: OK
On 10 Apr 2015, at 11:51, joasyannick@gmail.com wrote:
Dear everyone,
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 http://www.example.com/” neither.
Many thanks, Joas
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://tex.aanhet.net http://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net http://contextgarden.net/ ___________________________________________________________________________________
Am 10.04.2015 um 12:22 schrieb Otared Kavian
: Hi,
You can use: \setcharacterspacing[reset] when you don’t want the French character spacing, and \setcharacterspacing[frenchpunctuation] when you want it.
For instance for the interaction you would say: \setupinteraction[color=darkgreen,style={\setcharacterspacing[reset]\tt}] \setupinteraction [state=start]
and for setting up the typing \setuptype[style={\setcharacterspacing[reset]\tt}] \setuptyping[style={\setcharacterspacing[reset]\tt}]
Not needed for verbatim mode which already disables the mechanism. Wolfgang
On Fri, Apr 10 2015, joasyannick@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
participants (4)
-
joasyannick@gmail.com
-
Otared Kavian
-
Peter Münster
-
Wolfgang Schuster