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. –  Jeel Shah 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. –  Jeel Shah 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

1 Answer 1

up vote 9 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 :) –  Jeel Shah Apr 30 '13 at 23:01
2  
@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

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.
http://tex.stackexchange.com/questions/111643/decrease-space-before-and-after-chapter-in-fncychap
tex.stackexchange.com
crawl=CC-MAIN-2015-27
77238
application/http; msgtype=response
sha1:MAEIX56G4UYGMELK5OTR5CSOHQGPL4HQ
<urn:uuid:4c15593a-1316-46cb-b726-dbbed1dc2402>
2015-07-06T22:14:05Z
104.16.12.13
sha1:K5IFTRYJNTZUYRQWYLOMIISVXAVASQ72
<urn:uuid:3cd12a69-a8f4-4410-89cd-100b73f70a97>
http://tex.stackexchange.com/questions/111643/decrease-space-before-and-after-chapter-in-fncychap
length
response
<urn:uuid:6e539aac-af5d-485c-8585-0c472d04ca08>
robots: classic
hostname: ip-10-179-60-89.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-27
operator: CommonCrawl Admin
description: Wide crawl of the web for June 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf