5

I am trying to make my thesis satisfy my grad school's requirement. The titles of my chapters are long. What they suggest and I quote is "Entire chapter titles must be single spaced. For example, on page 6 the line Between “Chapter 2” and “A loooooooong” should have the same single line spacing as between the lines “A loooooooong” and “multi-line title that I have”."

I have tried titlesec. But it keeps putting "nin]0.0.0.0.0.0 5.87494pt" on my first page. So it would be great if this problem can be fixed in some other way.

Here is my MWE

    \documentclass[12pt]{report}
    \usepackage{amsmath,amsthm,amssymb,latexsym,amscd}
    \usepackage{setspace}
    \usepackage{titlesec}

    \begin{document}

    \chapter{A loooooooooooooooong multi-lines title that I have}

    \end{document}
  • 2
    ! LaTeX Error: File thesis.sty' not found.` – David Carlisle Jul 9 '13 at 23:36
6

report class uses the macro \@makechapterhead to set chapter heads, so you can just copy its definition and comment out the space:

enter image description here

 \documentclass[12pt]{report}
    \usepackage{amsmath,amsthm,amssymb,latexsym,amscd}
    \usepackage{setspace}
   \makeatletter
\def\@makechapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter
        \par\nobreak
%        \vskip 20\p@
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  }}

   \makeatother

    \begin{document}

    \chapter{A loooooooooooooooong multi-lines title that I have}

    \end{document}
6

Since you are using titlesec, simply change the fourth mandatory argument for \titleformat for chapters from 20pt to 0pt:

\documentclass[12pt]{report}
\usepackage{titlesec}

\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{0pt}{\Huge}

\begin{document}

\chapter{A really really really long multi-lines title that I have}

\end{document}

enter image description here

  • Thanks Gonzalo! But I can't use \titlesec. I guess it conflict with my obsolete "thesis.sty". – Xuanye Jul 10 '13 at 5:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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