From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31641 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: character width Date: Mon, 30 Oct 2006 19:56:32 +0100 Message-ID: <20061030195632.e3219183.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> <5563F339-1A68-487E-83B3-3AC43EB8076B@st.estfiles.de> 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 1162235736 23917 80.91.229.2 (30 Oct 2006 19:15:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 19:15:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 30 20:15:31 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 1GecKA-0002l8-Cs for gctc-ntg-context-518@m.gmane.org; Mon, 30 Oct 2006 19:57:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15F151FB62; Mon, 30 Oct 2006 19:57:28 +0100 (CET) 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 12880-03-2; Mon, 30 Oct 2006 19:57:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FBBE1FB0B; Mon, 30 Oct 2006 19:57:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D062A1FAAB for ; Mon, 30 Oct 2006 19:57:04 +0100 (CET) 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 12883-03 for ; Mon, 30 Oct 2006 19:56:57 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by ronja.ntg.nl (Postfix) with SMTP id 03E4D1FE14 for ; Mon, 30 Oct 2006 19:56:56 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id d4so964389nfe for ; Mon, 30 Oct 2006 10:56:56 -0800 (PST) Original-Received: by 10.49.10.3 with SMTP id n3mr6206820nfi; Mon, 30 Oct 2006 10:56:56 -0800 (PST) Original-Received: from unknown ( [194.94.240.124]) by mx.google.com with ESMTP id y23sm8480904nfb.2006.10.30.10.56.54; Mon, 30 Oct 2006 10:56:55 -0800 (PST) Original-To: ntg-context@ntg.nl In-Reply-To: <5563F339-1A68-487E-83B3-3AC43EB8076B@st.estfiles.de> 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:31641 Archived-At: On Wed, 25 Oct 2006 11:02:15 +0200 Steffen Wolfrum wrote: > " \hphantom " ! What a promising word for exactly what I needed! > Again and again I am surprised how many (strange) commands there = > exist. Where does \hphantom come frome? Where is it documented? > = > Thank you for your replies! But it could be even better: > = > As I need, finally, a construct like ... > \writetolist[Test]{}{{\hphantom{999}}{\hfill}\bf{Nicely centers TOC = > entry}{\hfill}\it 999} > ... I would like to make sure that both manually entered numbers are = > the same (I don't want to risk a typo!). > = > So I'd like to use something like \def\FakePageNumber{999}, using = > \FakePageNumber at the beginning and the end of the above line. > = > The following worked ... > \expanded{\writetolist[Test]{}{\hfill {\bf Nicely centers TOC entry} = > \hfill \FakePageNumber}} > ... but not in combination with \MySpace or \hphantom anymore: > \expanded{\writetolist[Test]{}{???\hfill {\bf Nicely centers TOC = > entry} \hfill \FakePageNumber}} > = > Could someone please help me over this "expanded/argument/ = > whateveristheproblem" gap? > = > = > Thank you very much, > Steffen > = > = > = > = > Am 24.10.2006 um 21:31 schrieb Peter M=FCnster: > = > > 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 Steffen, I presnt you a few solution to your problem, I don't how it = should look to you. = \def\FakePageNumber{999} \starttext \placecontent \section{Knuth} \input knuth % your solution \expanded{\writetolist[section]{}{\hfill{\bf Nicely centers TOC entry} \hfill\FakePageNumber}} % solution 1 \writetolist[section]{}{\hfill {\bf Nicely centers TOC entry} \hfill \llap{= \FakePageNumber}} % solution 2 \writetolist[section]{}{\hfilll bla \hfilll \llap{\FakePageNumber}} % solution 3 \writebetweenlist[section]{\hfilll bla \hfilll \llap{\FakePageNumber}} \section{Knuth} \input knuth \stoptext Wolfgang