From: Hans Hagen <pragma@wxs.nl>
Cc: David Antos <xantos@informatics.muni.cz>, ntg-context@ntg.nl
Subject: Re: defining a subtitle?
Date: Wed, 11 Sep 2002 22:48:29 +0530 [thread overview]
Message-ID: <5.1.0.14.1.20020911224324.029d5d80@remote-1> (raw)
In-Reply-To: <28DF8CF1-C4C4-11D6-9BDF-0050E4258255@muohio.edu>
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2002-09-11 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 3:37 Bruce D'Arcus
2002-09-10 8:24 ` David Antos
2002-09-10 13:49 ` Bruce D'Arcus
2002-09-11 17:18 ` Hans Hagen [this message]
2002-09-12 11:36 ` John Culleton
2002-09-12 17:14 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20020911224324.029d5d80@remote-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=xantos@informatics.muni.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).