GeneralFormatting the Chapter Page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

Formatting the Chapter Page

Post by yaami »

Hi all,

I would like to change the space that is highlighted (oval shaped) in the attached figure. Please let me know if it is possible, if so how to do it.

I tried changing the \headsep and \headheight but it does not change. yeah changing them changes the header separation and height in the rest of the pages. But the separation in between the chapter and the page number does not change. This is a sample that produced the above doc.

Code: Select all

\documentclass{report}
\usepackage{setspace}
\raggedright
	\setlength{\topmargin}{0.0in}
%	\setlength{\topmargin}{0.0in}
	\setlength{\headheight}{0.25in}
	\setlength{\headsep}{0.25in}
%	\setlength{\topskip}{0.25in}	% first line, down from page number
	\setlength{\textheight}{8.5in}	
	\setlength{\footskip}{0.5in}
	\setlength{\oddsidemargin}{0.5in}  % adds to default 1.0in
	\setlength{\evensidemargin}{0.5in} % ditto
	\setlength{\parindent}{30pt}	% somewhere between 0.3" and 0.5"
	\setlength{\textwidth}{6in}
	\setlength{\leftmargini}{3.5em}
	\setlength{\leftmarginii}{2.2em}
	\setlength{\leftmarginiii}{2.2em}
	\setlength{\leftmarginiv}{2.2em}
	\setlength{\leftmarginv}{2.2em}
	\setlength{\leftmarginvi}{2.2em}
	\setlength{\leftmargin}{\leftmargini}
	\setlength{\labelsep}{.5em}
	\setlength{\labelwidth}{ 1.5em}
	\pagenumbering{arabic}
	\pagestyle{myheadings}
	\markboth{}{}
	\if@draftVersion
	   \markboth{\th@draftVersionStash}{\th@draftVersionStash}
	\fi
	\onecolumn
	\raggedbottom
	\normalsize
	\normalfont
\doublespace

\title{Some Title}
\author{Yaami}
\begin{document}
\maketitle
\tableofcontents
\chapter{First Chapter}
\thispagestyle{headings}
LaTeX has a very distinct style that is somewhat different from what your professors expect and want their student's papers to look like. Some professors will not accept papers without ragged right text, 12 pt font, and 1 inch margins. I recommend asking your professor for their guidelines before you write your first paper. Once you have their guidelines, the options below will help you make your paper's format exactly what they want.

LaTeX uses its professional typesetting engine to perfectly justify your text, just like professionally published books and journals. However, many professors prefer unjustified text that is aligned with the left edge and the right edge ragged, commonly known as ragged right or left-aligned text. To give your paper a ragged right edge, use the raggedright environment.
\newpage
This is new page.

LaTeX uses its professional typesetting engine to perfectly justify your text, just like professionally published books and journals. However, many professors prefer unjustified text that is aligned with the left edge and the right edge ragged, commonly known as ragged right or left-aligned text. To give your paper a ragged right edge, use the raggedright environment.

\end{document}

Please let me know how to do it.
Thanks.
Attachments
ChapterPage
ChapterPage
chapterPage.png (66.54 KiB) Viewed 3573 times
Last edited by yaami on Thu Dec 30, 2010 4:17 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Formatting the Chapter Page

Post by frabjous »

You could do it with the \titlespacing command provided by the titlesec package. See its documentation. An alternative might be to load the savetrees package.
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

Formatting the Chapter Page

Post by yaami »

Thanks frabjous, I tried using the \titlespacing

Code: Select all

\usepackage{titlesec}
\titleformat{\chapter}[hang]{\huge}{\thechapter}{1em}{}
\titlespacing{\chapter}{0pt}{0pt}{1cm}
but got the following error:

Code: Select all

("C:\Users\Bhargava\Documents\ThesisDoc\Doc\thesis_sjsucls\thesis_v4-5 Publish\
chapt1_intro/chapt1_intro.tex"
 \th@ChapterStyle\th@DoChapCenterCHAPTER \th@ChapterStyle 1.
centered
! Missing number, treated as zero.
<to be read again> 
                   }
l.3 \section{Wireless environment}
                                  
? 
I tried the above lines using just a report class and worked perfectly. But I'm using a modified class shown below.
sjsuthesis.cls
The used class file.
(41.53 KiB) Downloaded 272 times
Can you please tell me what might the problem be?

There is line 174 in the style file

Code: Select all

\newcommand*{\th@ChapterStyle}{\if@thInHeading\th@HdFnt\th@ChSz\fi}
do I need to change this.

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

Formatting the Chapter Page

Post by localghost »

There is no guarantee that the titlesec package works with others than the standard classes. I suggest to contact the maintainer of the concerned class file and ask for help.


Thorsten
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

Re: [SOLVED] Formatting the Chapter Page

Post by yaami »

Thanks a lot for your help .
Post Reply