ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: ntg-context@ntg.nl
Subject: Re: Turning off French character spacing
Date: Fri, 10 Apr 2015 12:49:01 +0200	[thread overview]
Message-ID: <87sic8xnqa.fsf@free.fr> (raw)
In-Reply-To: <55279f46.c14cb40a.53c8.ffffbe23@mx.google.com> (joasyannick@gmail.com's message of "Fri, 10 Apr 2015 09:51:03 +0000")

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2015-04-10 10:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10  9:51 joasyannick
2015-04-10 10:18 ` Wolfgang Schuster
2015-04-10 10:22 ` Otared Kavian
2015-04-10 10:31   ` Wolfgang Schuster
2015-04-10 10:49 ` Peter Münster [this message]
2015-04-10 13:39 joasyannick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sic8xnqa.fsf@free.fr \
    --to=pmlists@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).