From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31526 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: character width Date: Tue, 24 Oct 2006 22:01:23 +0200 Message-ID: <20061024220123.bcfe17b3.schuster.wolfgang@googlemail.com> References: <2C25F9DC-49B1-4E1F-9892-B54C6E5626CC@st.estfiles.de> <453E0D2D.9030205@elvenkind.com> <85FDEEB1-451F-4435-87DE-F3E9CAF2E028@st.estfiles.de> <20061024204557.0a06517b.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1161720171 5961 80.91.229.2 (24 Oct 2006 20:02:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 20:02:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 24 22:02:45 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcSTQ-00033L-8w for gctc-ntg-context-518@m.gmane.org; Tue, 24 Oct 2006 22:02:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B04BA1FEAD; Tue, 24 Oct 2006 22:02:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00355-04; Tue, 24 Oct 2006 22:01:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 275EB1FE8D; Tue, 24 Oct 2006 22:01:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BC791FE95 for ; Tue, 24 Oct 2006 22:01:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00533-02-2 for ; Tue, 24 Oct 2006 22:01:38 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by ronja.ntg.nl (Postfix) with SMTP id 2148B1FA45 for ; Tue, 24 Oct 2006 22:01:37 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id d4so293202nfe for ; Tue, 24 Oct 2006 13:01:36 -0700 (PDT) Original-Received: by 10.49.93.13 with SMTP id v13mr1842899nfl; Tue, 24 Oct 2006 13:01:36 -0700 (PDT) Original-Received: from unknown ( [194.94.240.124]) by mx.google.com with ESMTP id x27sm1896163nfb.2006.10.24.13.01.35; Tue, 24 Oct 2006 13:01:36 -0700 (PDT) Original-To: ntg-context@ntg.nl In-Reply-To: X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.10; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31526 Archived-At: On Tue, 24 Oct 2006 21:31:29 +0200 (CEST) Peter M=FCnster wrote: > On Tue, 24 Oct 2006, Wolfgang Schuster wrote: > = > > \def\MySpace > > {\dosingleempty\doMySpace} > > = > > \def\doMySpace[#1]% > > {\setbox\scratchbox=3D\hbox{#1}% > > \unskip\hskip \the\wd \scratchbox} > = > Or perhaps just: > = > \starttext > Text\hphantom{999}Text > \stoptext > = > ? > = > Cheers, Peter > = Hi Peter, right this also works but we wont care about spaces in the souce. Look: \starttext Text\hphantom{999}Text Text\hphantom{999} Text Text \hphantom{999} Text \stoptext Antoher solution for the spacemacro: \def\MySpace {\dosingleempty\doMySpace} \def\doMySpace[#1]% {\unskip\hphantom{#1}\ignorespaces} \starttext Text\hphantom{999}Text Text\hphantom{999} Text Text \hphantom{999} Text \stoptext and we have always the same gap. Wolfgang