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 would like to decrease the space before and after the chapter name due to space constraints. I am using the fncychap. Here is the MWE:

\documentclass{report}
\usepackage[Glenn]{fncychap}
\usepackage{lipsum} % filler text

\begin{document}
    \chapter{Amazing}
    \lipsum[1-5] % filler text
\end{document}
share|improve this question
    
Are you sure you want to use the Glenn style? In my opinion, long titles look specially ugly (not that short ones are pretty). –  Gonzalo Medina Apr 30 '13 at 22:34
    
@GonzaloMedina What do you recommend? I am writing a report and I don't want to use the ugly default one. –  gekkostate Apr 30 '13 at 22:39
1  
If you want a framed title, I would suggest you to use the titlesec package. Let me provide an answer with both options. –  Gonzalo Medina Apr 30 '13 at 22:46
    
@GonzaloMedina Okay great. I would like to have a professional looking report as much as possible. –  gekkostate Apr 30 '13 at 22:47
    
I have provided an example of a framed title using titlesec. However, if you are looking for a professional report, I would suggest you not to use frames at all. The documentation for the memoir document class has several chapter styles that might give you some good ideas for your titles. –  Gonzalo Medina Apr 30 '13 at 23:00
show 2 more comments

1 Answer

up vote 6 down vote accepted

The quickest way is to patch the appropriate commands. To change the spacing before the titles, you need to patch \@makechapterhead (for numbered chapters) and \@makeschapterhead (for unnumbered chapters); to change the spacing after the tiles, you need to patch \DOTI (for numbered chapters) and \DOTIS (for unnumbered chapters). A little example (the second argument for \patchcmd contains the default values; the third argument, the modified values):

\documentclass{report}
\usepackage[Glenn]{fncychap}
\usepackage{lipsum} % filler text
\usepackage{etoolbox}

\makeatletter
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{\vspace*{-20\p@}}{}{}
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{\vspace*{-20\p@}}{}{}
\patchcmd{\DOTI}{\vskip 80\p@}{\vskip 40\p@}{}{}
\patchcmd{\DOTIS}{\vskip 40\p@}{\vskip 0\p@}{}{}
\makeatother

\begin{document}
    \chapter{Amazing}
    \lipsum[1-5] % filler text
\end{document}

enter image description here

However, I would suggest you not to use this style; long titles won't look good, You could consider using a framed title built with the help of the titlesec package; here's a simple example (the vertical spacing before and after the title is set using the second and third arguments for \titlespacing*):

\documentclass{report}
\usepackage{titlesec}
\usepackage{lipsum} % filler text

\makeatletter
\titleformat{\chapter}[frame]
  {\normalfont}{\filright\enspace \@chapapp~\thechapter\enspace}
  {8pt}{\LARGE\bfseries\filcenter}
\titlespacing*{\chapter}
  {0pt}{0pt}{20pt}

\makeatother

\begin{document}
    \chapter{Amazing}
    \lipsum[1-5] % filler text
\end{document}

enter image description here

share|improve this answer
2  
+1 for the advice not to use fncychap :) –  egreg Apr 30 '13 at 22:56
    
Is it possible to decrease the size from the top? The report I am writing has specific page constraints and the space that is left at the top can be used for information :) –  gekkostate Apr 30 '13 at 23:01
    
@gekkostate Sure; you can use a negative value for the length in the second argument for \titlespacing*. –  Gonzalo Medina Apr 30 '13 at 23:02
add comment

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.