From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59762 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Omitting hyphenation Date: Mon, 21 Jun 2010 22:04:27 +0200 Message-ID: <4C1FC5CB.5010906@wxs.nl> References: <201006211832.06435.matija@suklje.name> <4C1FA59C.3060502@googlemail.com> <201006211950.08490.matija@suklje.name> <4C1FA96A.5030505@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277150709 3387 80.91.229.12 (21 Jun 2010 20:05:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2010 20:05:09 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 21 22:05:07 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OQnEx-0005pr-BJ for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jun 2010 22:05:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2A7FC9C82; Mon, 21 Jun 2010 22:05:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M23Q2q20rqIK; Mon, 21 Jun 2010 22:05:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F09AC9C50; Mon, 21 Jun 2010 22:05:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 303FDC9C50 for ; Mon, 21 Jun 2010 22:04:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7yakJAY59Voq for ; Mon, 21 Jun 2010 22:04:56 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 09533C9C35 for ; Mon, 21 Jun 2010 22:04:55 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.196; Original-Received: from [10.100.1.196] (unverified [10.100.1.196]) by controller-9 (SurgeMail 4.3e) with ESMTP id 2844-1713362 for multiple; Mon, 21 Jun 2010 22:04:04 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5 In-Reply-To: <4C1FA96A.5030505@googlemail.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59762 Archived-At: On 21-6-2010 8:03, Wolfgang Schuster wrote: > Am 21.06.10 19:50, schrieb Matija =8Auklje: >> Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster >> napisal(a): >>> Am 21.06.10 18:53, schrieb Yury G. Kudryashov: >>>> Try \hbox{word} (AFAIR, this is a plain TeX command) >>> If you want a context command then use \mbox ;) >> Is there any practical difference? > > No but i wish there is one, e.g. the following example shows a problem > with \hbox. > > \starttext > \hbox{test} text text > \blank > \dontleavehmode\hbox{test} text text > \stoptext > > As you can see in the output the first 'test' starts 'text text' on a > new line and i forced \hbox > to appear in horizontal mode with \dontleavehmode and this can't be > changed because \hbox is a TeX > primitive and you have to rely on this behaviour. The \mbox command > isn't a primitive and i would > be so easy to add \dontleavehmode to it's definition to make sure the > text after \mbox won't appear > on a new line, this means in this example both lines result in the same > output. > > \starttext > \dontleavehmode\hbox{test} text text > \blank > \mbox{test} text text > \stoptext we can have \unexpanded\def\mbox {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi} as i never use this command it won't break my documents -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________