ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter <peter@orgelvlaardingen.nl>
Subject: Re: prevent hyphenation
Date: Fri, 20 May 2005 18:08:01 +0200	[thread overview]
Message-ID: <428E0B61.6080608@orgelvlaardingen.nl> (raw)
In-Reply-To: <428DF257.8090407@elvenkind.com>

Taco Hoekwater wrote:
> What will work, is setting the TeX primitive \language to a value
> that does not have associated patterns (-1 is a possibility, but
> usually 255 also works). In the next bit of context code, there
> will be no hyphenation:
> 
>   \starttext
>   \normallanguage -1 \hsize = 0pt \input zapf \language[en]
>   \stoptext
> 
> (babel has a language definition 'nohyph', precisely for this)
> 
> Hope this helps,

I now have:

\definieer\stophyph{\bgroup\normallanguage-1}
\definieer\starthyph{\egroup}

Now I say \stophyph right before a citation and \starthyph right after 
it. This seems to work. Maybe not an elegant solution, but I'm happy. Tanks!

Peter.

> Taco
> 
> 
> 
> 
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

  reply	other threads:[~2005-05-20 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20  3:32 Idris Samawi Hamid
2005-05-20  7:25 ` Hans Hagen
2005-05-20 11:35 ` Peter
2005-05-20 12:50   ` Hans Hagen
2005-05-20 14:21     ` Taco Hoekwater
2005-05-20 16:08       ` Peter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-20  1:09 Peter

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=428E0B61.6080608@orgelvlaardingen.nl \
    --to=peter@orgelvlaardingen.nl \
    --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).