From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48013 Path: news.gmane.org!not-for-mail From: Michael Bynum Newsgroups: gmane.comp.tex.context Subject: Re: setupsynonym: 2 questions on width Date: Thu, 5 Mar 2009 10:19:46 -0500 Message-ID: References: <4CA80559-A8AB-49F1-984C-6BCF566C43C2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236266449 21832 80.91.229.12 (5 Mar 2009 15:20:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 15:20:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 16:22:04 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LfFOX-0006X8-3q for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 16:21:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC82A1FB74; Thu, 5 Mar 2009 16:20:33 +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 15728-01; Thu, 5 Mar 2009 16:20:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D04411FB1F; Thu, 5 Mar 2009 16:20:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AABC1FB1F for ; Thu, 5 Mar 2009 16:20:02 +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 15731-01 for ; Thu, 5 Mar 2009 16:19:55 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id BD6BE1FADC for ; Thu, 5 Mar 2009 16:19:55 +0100 (CET) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.154]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n25FJl6C008747 for ; Thu, 5 Mar 2009 16:19:48 +0100 Original-Received: by yx-out-1718.google.com with SMTP id 4so2302444yxp.74 for ; Thu, 05 Mar 2009 07:19:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+XxERTs3M8ksIJKl7YurP+Nt88uaOq5g/nyP3XY54LY=; b=EDkAdRWWqx4zEhAcf7McQBDGsBFieAE8so0jCt+cYwRlffAcAPTsErm0tyKg2TUFE0 nrfjZiRNDSt7pI2EGfc9JIOjEtAblpZzKVCHWjUARr3vt7Fu0QcQDeun1KYmpgsT2iON RaVds2DOIaQ3kzvcC8ccocXdcVDj8oXr9QBT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ozJzEWWusOCayTnCuVkNcP8ZhqntFO6VwDqH/rSTBNXueoadmWN4EECKLb4mEiqyAJ fjRpzNsHif19jkJ8Sw3M6Tmtiyxbv/TmSFRiz86kJ8bzoezUPC2iMYB6qtMSEmilYQsK BIB+pS7tjsC92xJh+qljjqfR8epnHOtu37MAk= Original-Received: by 10.220.98.202 with SMTP id r10mr332372vcn.67.1236266387055; Thu, 05 Mar 2009 07:19:47 -0800 (PST) In-Reply-To: <4CA80559-A8AB-49F1-984C-6BCF566C43C2@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.44.154; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189184616 - 8707aa855126 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48013 Archived-At: Right, that works for this example, but if I change what nomenclatures are in the list then I would have to go in and manually change the setwidthof{} command. Am I correct in thinking that? I guess ideally I wouldn't have to go in and change the spacing manually every time I update my nomenclatures list. Mike On Wed, Mar 4, 2009 at 7:05 PM, Wolfgang Schuster wrote: > > Am 04.03.2009 um 18:34 schrieb Michael Bynum: > >> 1.) I have a list of synonyms that I need to print in an aligned >> list. Is there a way to align the synonym definitions with the >> longest synonym entry (width=? option maybe)? Here is a small example >> where the entries do not align. >> >> \definesynonyms[nomenclature][nomenclatures][\infull] >> \setupsynonyms[nomenclature][criterium=all,width=broad] >> >> \nomenclature[a]{a}{This is the letter a} >> \nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet} >> \nomenclature[c]{c}{This is the letter c} > > \def\setwidthof#1\to#2% > {\bgroup > \setbox\scratchbox\hbox{#1}% > \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}} > > \setwidthof{abcdefghijklmnopqrstuvwxyz}\to\nomenclaturewidth > > \setupsynonyms[nomenclature][width=\nomenclaturewidth] > > Wolfgang > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________