From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47284 Path: news.gmane.org!not-for-mail From: Michael Bynum Newsgroups: gmane.comp.tex.context Subject: Re: Section format using /def Date: Thu, 5 Feb 2009 13:45:59 -0500 Message-ID: References: <0E733E69-AD62-4DFC-BD9E-B415B4EF9C65@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 1233859702 20781 80.91.229.12 (5 Feb 2009 18:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 18:48:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 05 19:49:36 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 1LV9Hl-0005Jg-UK for gctc-ntg-context-518@m.gmane.org; Thu, 05 Feb 2009 19:49:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE6071FBB8; Thu, 5 Feb 2009 19:47:52 +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 21908-01; Thu, 5 Feb 2009 19:46:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0C2A91FB89; Thu, 5 Feb 2009 19:46:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 589531FB89 for ; Thu, 5 Feb 2009 19:46:39 +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 12060-07 for ; Thu, 5 Feb 2009 19:46:02 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 871311FB7F for ; Thu, 5 Feb 2009 19:46:02 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.242]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n15Ik0RB015440 for ; Thu, 5 Feb 2009 19:46:00 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so371601rvb.14 for ; Thu, 05 Feb 2009 10:45:59 -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=I2VOUKmMqi1F1LNdgOM7NiMoDx+5Aaw+NaGv08i5zSc=; b=MfcK3P7zSxPWkoNggE6eKRt/F839MvXwHlpDkNaA3T0Sc4Ysub7Dunu/tS/MQ9xeBo Q/AzA0jX2w5vhWtzvDJo9+EsgakQtPPId/liCqGVsczF7CBZnYLJcaUuUl+9gxJj7O04 qxsl0zF+jVfF/SEK//5bXOv7UasAzwTY//F9A= 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=njl/+1tbfZ6tQk9fKUkIBbwCnAm+teCw3yej83YcEOeTENjax0Ko03ucEduZTJbpr1 uyePXDJiXQ4hnZE9Cv4DAXImV04N5XYWVfbRwu2vZTmKnlXrZ6SzZ3yjzuc71SmrtvvZ rsKzjTaiChZup7lQTWfDYFFXv5gp5TpDWiq6A= Original-Received: by 10.141.48.10 with SMTP id a10mr589853rvk.22.1233859559596; Thu, 05 Feb 2009 10:45:59 -0800 (PST) In-Reply-To: <0E733E69-AD62-4DFC-BD9E-B415B4EF9C65@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.242; 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: 175728757 - e3b324b4143d X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:47284 Archived-At: Ah, I think I see. So "\define[1]\mysectionhead{\bfa \WORD{\underbar{#1}}}" would also be valid. Is \define a context equivalent to the \def command for tex? I couldn't find much documentation on it. Mike On Thu, Feb 5, 2009 at 12:55 PM, Wolfgang Schuster wrote: > > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________