From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31517 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: character width Date: Tue, 24 Oct 2006 18:39:22 +0200 Message-ID: <85FDEEB1-451F-4435-87DE-F3E9CAF2E028@st.estfiles.de> References: <2C25F9DC-49B1-4E1F-9892-B54C6E5626CC@st.estfiles.de> <453E0D2D.9030205@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161708065 18322 80.91.229.2 (24 Oct 2006 16:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 16:41:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 24 18:40:56 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 1GcPJa-0005Sx-8u for gctc-ntg-context-518@m.gmane.org; Tue, 24 Oct 2006 18:39:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7ED071FE27; Tue, 24 Oct 2006 18:39:45 +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 28057-03; Tue, 24 Oct 2006 18:39:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F8C11FE17; Tue, 24 Oct 2006 18:39:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BBB061FE27 for ; Tue, 24 Oct 2006 18:39:35 +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 28038-02 for ; Tue, 24 Oct 2006 18:39:31 +0200 (CEST) Original-Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by ronja.ntg.nl (Postfix) with SMTP id 58CD51FE06 for ; Tue, 24 Oct 2006 18:39:31 +0200 (CEST) Original-Received: (qmail 14374 invoked from network); 24 Oct 2006 16:39:30 -0000 Original-Received: from unknown (HELO [89.50.68.90]) (698580@[89.50.68.90]) (envelope-sender ) by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 24 Oct 2006 16:39:30 -0000 In-Reply-To: <453E0D2D.9030205@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) 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:31517 Archived-At: Yes, that's it. Thank you! But can it also be defined in a more handy \MySpace[999] ? Sorry, I tried some \def ... but didn't succeed. Steffen Am 24.10.2006 um 14:55 schrieb Taco Hoekwater: > > > Steffen Wolfrum wrote: >> Hi, >> >> for fine-adjusting I need to have a variable horizontal space >> sometimes the width of "999" sometimes of "1", for example. >> Is there a command that reads the width of a character so it can be >> used in some kind of horizontal space? > > There is a \fontcharwd primitive to measure the width of a single > character is a specific font: > > \hskip \the\fontcharwd \font `1 > > but it may be easier to put the number(s) in a box and measure the > width of that: > > \setbox\scratchbox=\hbox{999}% > \hskip \the\wd \scratchbox > > Greetings, Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >