From: David Antos <xantos@informatics.muni.cz>
Subject: Re: defining a subtitle?
Date: Tue, 10 Sep 2002 10:24:18 +0200 [thread overview]
Message-ID: <20020910102418.A7033689@aisa.fi.muni.cz> (raw)
In-Reply-To: <A87C7A9D-C46E-11D6-9BDF-0050E4258255@muohio.edu>; from darcusb@muohio.edu on Mon, Sep 09, 2002 at 11:37:40PM -0400
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.
D.A.
next prev parent reply other threads:[~2002-09-10 8:24 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 [this message]
2002-09-10 13:49 ` Bruce D'Arcus
2002-09-11 17:18 ` Hans Hagen
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=20020910102418.A7033689@aisa.fi.muni.cz \
--to=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).