From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47282 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Section format using /def Date: Thu, 5 Feb 2009 18:55:10 +0100 Message-ID: <0E733E69-AD62-4DFC-BD9E-B415B4EF9C65@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233856677 8998 80.91.229.12 (5 Feb 2009 17:57:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 17:57:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 05 18:59:10 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 1LV8V8-0000Hy-9Z for gctc-ntg-context-518@m.gmane.org; Thu, 05 Feb 2009 18:58:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75F131FBF9; Thu, 5 Feb 2009 18:57:37 +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 07863-06; Thu, 5 Feb 2009 18:56:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 662FD1FBAA; Thu, 5 Feb 2009 18:56:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0D3B11FBAA for ; Thu, 5 Feb 2009 18:56:35 +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 13091-02 for ; Thu, 5 Feb 2009 18:55:57 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 8015E1FB89 for ; Thu, 5 Feb 2009 18:55:57 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n15HtusA024365 for ; Thu, 5 Feb 2009 18:55:57 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so249318fga.8 for ; Thu, 05 Feb 2009 09:55:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=s+SEdZhbxbQAtKy+nmZ+KnD/b+mtOicOCWL9RyHHA7Y=; b=Pjl6JifySa2s4ahv82BfP6HhLvdi/SZvJX7YUW9UnvVPo3xxKjCnjSmCUk9AwWCkZq 77MPmHhI1uprwlEg2RkHD850h0yK824n+NhP3QPAw02WNu/ymWJrJae2W+evYtYj7hOf 0wTJH2fLxMxf4lOH8joOIl4uoQU7eELjTWOj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=FwwnHXUXeCBQbTaYY2aLFoHaGuA19lwO9AXnWvM8iHwmOM2jNOI1A3bLvZ5DXwx8Gq C1nL2lDlqeXrlAD7dql/5Bj19AWWlx68zrd8wZWi9p6IgLfiai96oXGYFvi2SVL3eBmI HNbUmNZoQK2g4bChlz/DCt+0cVsTa6Ii8z9Xk= Original-Received: by 10.181.49.3 with SMTP id b3mr252861bkk.21.1233856556441; Thu, 05 Feb 2009 09:55:56 -0800 (PST) Original-Received: from ?10.40.69.177? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id l12sm780872fgb.31.2009.02.05.09.55.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Feb 2009 09:55:55 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.158; 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: 175710901 - 2e391b962c61 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:47282 Archived-At: Am 05.02.2009 um 18:37 schrieb Michael Bynum: > I, apparently, do not understand the syntax and/or uses of /def. I am > trying to make section heads appear in all caps and underlined. I > originally tried to just use \setuphead, but found that I using the > "textcommand" option I could only either capitalize or underline and > not both. I then figured that using a macro was my next best option. > Below is what I tried and it does not work. Can someone tell me what > I am doing wrong? Both commands take parameter and in your example you pass \underbar as argument to \WORD. Two solution are possible for your problem. 1. You define a command with one argument and use both commands nested, it is important to use deeptextcommand for the \WORD style. \define[1]\mysectionhead{\underbar{\WORD{#1}}} \setuphead [section] [number=no, deeptextcommand=\mysectionhead, style={\tfa\bf}] 2. You ca use both text commands and pass one with textcommand and another one with deeptextcommand. \setuphead [section] [number=no, textcommand=\underbar, deeptextcommand=\WORD, style={\tfa\bf}] 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 ___________________________________________________________________________________