Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: chapter subtitle

4 views
Skip to first unread message
Message has been deleted

Morten Høgholm

unread,
Oct 14, 2005, 9:36:59 AM10/14/05
to
On Fri, 14 Oct 2005 15:07:31 +0200, TinTin™ <sidoj...@gmail.com> wrote:

> What I would like to do is the following;
>
> change the \chapter[short]{long} in such a way that the short is
> printed as the chapter maintitle and the long is printed as a subtitle.
> (short would still be printed in the toc)

Ah, then you're probably looking for something like
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epigraph>.

> I am using the book.cls

You might also want to look at
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=replstdcls>.
--
Morten

Message has been deleted
Message has been deleted

Lars Madsen

unread,
Oct 14, 2005, 11:03:16 AM10/14/05
to
[snip]

and you are aware that this breaks the normal functionality of the \chapter
command? where

\chapter[short]{long}

results in

short in the header and the toc and long as the chapter title.

and in memoir you could even do

\chapter[toc][header]{title}

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.

Message has been deleted

Michael

unread,
Oct 14, 2005, 12:02:48 PM10/14/05
to
Perhaps it would be easier to declare an own chapter command like:

\newcommand\mychapter[2]{ \chapter[#1]{#1, #2}}

"TinTinT" <sidoj...@gmail.com> schreef in bericht
news:1129302762.7...@g44g2000cwa.googlegroups.com...
>I am aware. I will use this class for personal use and I don't find it
> obtrusive. When I have time I will make the
> \chapter[toc][header]{title} work.
>
> Thank you,
> sido
>


Message has been deleted

Michael

unread,
Oct 17, 2005, 1:35:36 PM10/17/05
to
Maybe I'm missing something subtle, but whats the difference with:
\newcommand*{\chapSub}[1]{#1}
or
\newcommand*\chapSub[1][]{ \ifthenelse{\equal{#1}{}}{\relax}{#1}}}
?

"TinTinT" <sidoj...@gmail.com> schreef in bericht

news:1129496589.8...@g14g2000cwa.googlegroups.com...
> In order to make my class file usefull to friends and family in the
> future I decided to restore the chaptercommand and simply add a new
> command
>
> \newcommand*{\chapSub}[1]%
> {
> \ifthenelse{\equal{#1}{}}{\relax}{#1}}
> }
> Which I added to the chapterpage, this also gives me what I want.
>
> --
> sido
>


Donald Arseneau

unread,
Oct 18, 2005, 9:55:37 AM10/18/05
to
"Michael" <mischa.tbaINSERTATHERExs4all.nl> writes:

> Maybe I'm missing something subtle, but whats the difference with:
> \newcommand*{\chapSub}[1]{#1}
> or
> \newcommand*\chapSub[1][]{ \ifthenelse{\equal{#1}{}}{\relax}{#1}}}
> ?

The former requires the argument in braces, and the braces must be
provided even when the parameter is null.

The latter requires the argument in square brackets, and the brackets
may be omitted in the case of a null argument.


--
Donald Arseneau as...@triumf.ca

0 new messages