Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am writing a paper for my candidacy exam. I am using book class, but I want my name and the title to appear on the first page with the Table of Contents instead of appearing in a sepearte page. How can I do that?

Any help is appreciated.

share|improve this question

1 Answer 1

there are several possible solutions:

  • Use a different class. article or scrartcl would be good place to start. Can not remember if a report class would do what you want.

  • Redefine \maketitle

    \makeatletter
    \renewcommand{\maketitle}{%
      \begin{center}
        \vspace{2em}
        \sffamily\LARGE \@author \              \vspace{1em}
        \Huge \@title \              \vspace{1em}
        \normalfont \@date \              \vspace{2em}
        %include any more variables, which are needed for a title page.
      \end{center}
    }
    \makeatother
    

    This should redefine \maketitle, so that it would be possible to put \tableofcontents on the same page. You should play a bit more to get the spacings right. On how to create custom title pages you should read the LaTeX Wikibook

    EDIT: I edited it to fix some silly typos, but It did not achieve what was wanted. the command Table of Contents is clearing a double page, which is making everything worse.

    Take a glimpse to the KOMA Script document classes, the scrbook class is much more flexible and it might be possible to customize it to fit your requirements without implementing any ugly hacks.

share|improve this answer
    
Thanks! But it didn't work out! It shows " undefined control sequence" Is there any changes I have to do in titlepage environment? BTW, I have chapters so I should use book class. –  yaa09d Feb 10 '12 at 2:26
    
The reason of the undefined control sequence is the \HUGE command. Change it to regular latex command \Huge –  Al_th Mar 4 at 9:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.