> 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
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.
\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
>
"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
>
> 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