From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67172 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Macro for acronyms Date: Sat, 19 Mar 2011 10:22:52 +0100 Message-ID: <4B7ACF33-F49B-4849-8696-E6AE2263DAAD@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300526595 603 80.91.229.12 (19 Mar 2011 09:23:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 09:23:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 19 10:23:11 2011 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 1Q0sNL-0004Mt-A1 for gctc-ntg-context-518@m.gmane.org; Sat, 19 Mar 2011 10:23:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56120CAB36; Sat, 19 Mar 2011 10:23:05 +0100 (CET) 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 CRIKKUxgE6Vx; Sat, 19 Mar 2011 10:23:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CAA31CAB0C; Sat, 19 Mar 2011 10:23:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82921CAB0C for ; Sat, 19 Mar 2011 10:23:01 +0100 (CET) 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 U0wkc5B2ONCb for ; Sat, 19 Mar 2011 10:22:50 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 277A0CAB0A for ; Sat, 19 Mar 2011 10:22:50 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2J9Ms1c003374 for ; Sat, 19 Mar 2011 10:22:55 +0100 Original-Received: by fxm18 with SMTP id 18so5622437fxm.14 for ; Sat, 19 Mar 2011 02:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=s8qJ2lK0w4KbnoMThWLAfI+l21ttg777V/gnfR5yaw8=; b=uN/qu16FDFGq9cGiVjLcCwtdYxeWS8L9fvw+xkUzlP9qSd0WMw4u/43Vx/ymGEqWdy RjPQq9guuijwZULbMuvCCYQADVY+ovIaiw2NePtopBhpVTbSF0F9ze385pLoTcddhh5B 18FaMHnez6n7m3TWnBnGBVsHDCdwipnp4Xae0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=cCI3X/O96N9t2l0bcbQZgC01PDmQDqgePfPDSmkC4ikXauI1VQBumVCfuxGUsykUOT hmtGGa392ES5Tz9ticXrIHIcZbB+RD4DbBMATUqEWPq3d75AJRUrlNo8OFgZxS6HKmWG wWn1a9SL+p6uD47s6S5TfhuIIterTUXFfVYHA= Original-Received: by 10.223.148.147 with SMTP id p19mr1151088fav.140.1300526574398; Sat, 19 Mar 2011 02:22:54 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B296A3C.dip.t-dialin.net [91.41.106.60]) by mx.google.com with ESMTPS id 21sm1678215fav.41.2011.03.19.02.22.52 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Mar 2011 02:22:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0rEkVmSBu - 867bff58b741 - 20110319 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:67172 Archived-At: Am 19.03.2011 um 03:29 schrieb Cecil Westerhof: > At the moment I have I my document: > {\switchtobodyfont[1.25em]\bf M}ust > > {\switchtobodyfont[1.25em]\bf S}hould > > {\switchtobodyfont[1.25em]\bf C}ould > > {\switchtobodyfont[1.25em]\bf N}ot now > > But I like to have a macro for this, so I could just do: > \Acronym{Must Should Could Not~now} > > Is more readable and when I want a change (for example another color for the first letter), this is much easier to implement. How should I implement such a macro? \definestartstop[Acronym][style=\bfa] \starttext \starttabulate[|lh{\Acronym}|] \HC {M}ust \NC\NR \HC {S}hould \NC\NR \HC {C}ould \NC\NR \HC {N}ot now \NC\NR \stoptabulate \startlines \Acronym{M}ust \Acronym{S}hould \Acronym{C}ould \Acronym{N}ot now \stoplines \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________