From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9170 Path: main.gmane.org!not-for-mail From: "Bruce D'Arcus" Newsgroups: gmane.comp.tex.context Subject: Re: defining a subtitle? Date: Tue, 10 Sep 2002 09:49:43 -0400 Sender: owner-ntg-context@let.uu.nl Message-ID: <28DF8CF1-C4C4-11D6-9BDF-0050E4258255@muohio.edu> References: <20020910102418.A7033689@aisa.fi.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (Apple Message framework v543) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399516 1108 80.91.224.250 (23 Oct 2002 18:58:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:58:36 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Antos In-Reply-To: <20020910102418.A7033689@aisa.fi.muni.cz> Xref: main.gmane.org gmane.comp.tex.context:9170 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9170 On Tuesday, September 10, 2002, at 04:24 AM, David Antos wrote: > On Mon, Sep 09, 2002 at 11:37:40PM -0400, Bruce D'Arcus wrote: >> >> Can someone please tell me how I ought to define a subtitle command? >> If I do this... >> >> \def\subtitle{\switchtobodyfont[14pt,ss]\it} >> >> and then invoke it with \subtitle{A Subtitle} >> >> ...I get all subsequent text with the font I've switched to... > > \def\subtitle#1{{\switchtobodyfont[14pt,ss] #1}} > > Think about \def that it eats the {}, the {} after \def just tell what > the definition is. You must also pass the argument of the macro to the > ``inner'' group. > Thank you! And what if I want to first define the command "subtitle" so that I can then use \setuphead{subtitle}. Is that the better approach? And if yes, how do I do that? Bruce