ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Denis B. Roegel" <Denis.Roegel@loria.fr>
Cc: ntg-context@ntg.nl, "Denis B. Roegel" <roegel@lorraine.loria.fr>
Subject: Re: blocking hyphenation
Date: Fri, 21 Jun 2002 05:18:14 +0200	[thread overview]
Message-ID: <20020621051814.A18307@bar.loria.fr> (raw)
In-Reply-To: <200206201406.00435.ishamid@attbi.com>; from ishamid@attbi.com on Thu, Jun 20, 2002 at 02:06:00PM -0600

On Thu, Jun 20, 2002 at 02:06:00PM -0600, Idris S Hamid wrote:
> [Sorry I left out the subject before]
> 
> Dear gang,
> 
> What is the best way in ConTeXt to define a word so that is does not 
> hyphenate. E.g., 
> 
> \def\SAN{\hbox{{A\d{s}-\d{S}an\={a}`ah}}}
> 
> \SAN{} this is a test
> 
> \bye
> 
> does not work; it creates an unwanted line break (anyone know why?)
> 

That's because you stay in vertical mode. Your paragraph only starts
with `this is a test.' You need to esplicitely enter horizontal mode:

\def\SAN{\leavevmode\hbox{{A\d{s}-\d{S}an\={a}`ah}}}

Denis


  reply	other threads:[~2002-06-21  3:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20 20:06 Idris S Hamid
2002-06-21  3:18 ` Denis B. Roegel [this message]
2002-06-21  3:26   ` Idris S Hamid

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=20020621051814.A18307@bar.loria.fr \
    --to=denis.roegel@loria.fr \
    --cc=ntg-context@ntg.nl \
    --cc=roegel@lorraine.loria.fr \
    /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).