From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9177 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: defining a subtitle? Date: Wed, 11 Sep 2002 22:48:29 +0530 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020911224324.029d5d80@remote-1> References: <20020910102418.A7033689@aisa.fi.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399522 1152 80.91.224.250 (23 Oct 2002 18:58:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:58:42 +0000 (UTC) Cc: David Antos , ntg-context@ntg.nl Original-To: "Bruce D'Arcus" In-Reply-To: <28DF8CF1-C4C4-11D6-9BDF-0050E4258255@muohio.edu> Xref: main.gmane.org gmane.comp.tex.context:9177 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9177 At 09:49 AM 9/10/2002 -0400, Bruce D'Arcus wrote: >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? \definehead[subtitle][subject] % subject being a head lower than title \setuphead[subtitle][style={\switchtobodyfont[14pt,ss]\it}] [this also give you better breaking etc] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------