Page LayoutRemoving the space between CHAPTER and top border of page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
saalar
Posts: 2
Joined: Sun Aug 02, 2009 1:39 am

Removing the space between CHAPTER and top border of page

Post by saalar »

Hello,

I have a tried several different codes from this forum to remove the vertical space between the CHAPTER header and the top of the page border. Also I like to remove the space between CHAPTER and the first line from the paragraph following. But because I am using special code for a custom Chapter style I cannot remove this particular space waste. Can someone assist? Thank you very much. Here is the code.

Code: Select all

\documentclass[11pt,oneside,a4paper]{report}
\usepackage{amsmath,amsthm,amssymb,amsfonts,appendix,booktabs, courier, caption, float, glossary, graphicx, hyperref}
\usepackage{listings, longtable, lscape, mdwlist, multicol, multirow, natbib, pdfpages, rotating, setspace, tabulary, titletoc, url, verbatim}
\usepackage[Glenn]{fncychap}

%\usepackage[left=2.5cm,top=2cm,right=2cm]{geometry}
\usepackage[lmargin=1in, rmargin=1in,tmargin=3cm,bmargin=3cm]{geometry}

\onehalfspacing
\lstset{language=C}
%\makeglossary

\setlength{\parindent}{0pt}
%\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\contentsname}{\vspace*{-.5in}Table of Contents}

%\ChNumVar{\fontsize{62}{65}\usefont{OT1}{pzc}{m}{n}\selectfont}
\ChNumVar{\fontsize{62}{65}\selectfont}
\ChNameVar{\centering\Huge\rm\bfseries}
\ChTitleVar{\bfseries\Large\rm}
\ChNameAsIs

\begin{document}
\tableofcontents
\chapter{One}
Text
\chapter{Two}
Glossary and Facts:
\end{document} 
Last edited by saalar on Sun Aug 02, 2009 4:34 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing the space between CHAPTER and top border of page

Post by localghost »

First of all you should clean up your preamble thoroughly. Some packages are loaded twice, others are obsolete like epsfig and subfigure. Moreover you shouldn't use packages like subfig and subfigure in one document. The same is true for titlesec and fncychap.


Best regards and welcome to the board
Thorsten
saalar
Posts: 2
Joined: Sun Aug 02, 2009 1:39 am

Re: Removing the space between CHAPTER and top border of page

Post by saalar »

Ok cleaned up a bit. Still not able to remove the spacing though :(
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing the space between CHAPTER and top border of page

Post by localghost »

Build a minimal working example (MWE) reduced to the necessary packages. I suggest to try the examples from the titlesec manual for fancy chapter headings.
Post Reply