[Tuglist] Help
K.S. Mallikarjuna Rao
tuglist@tug.org.in
Thu, 21 Mar 2002 19:59:49 +0530 (IST)
Hello,
I am writing my thesis using my own style file. The page style should
change from the chapter 1 onwards. But, it is changing from exactly two
pages before chapter 1. Can anyone please help me in finding the problem
and solve it. I am sending my style file and my main thesis file in this
mail... Thank you.
Style file : thes.sty
\makeatletter
\renewcommand\contentsname{Table of Contents}
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname
\@mkboth{\bibname}{\bibname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{}Bibliography}
}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
%\chaptermark{#1}%
\def\sectionmark##1{%
\markright {{%
\ifnum \c@secnumdepth >\z@
\thesection. \ %
\fi
##1}}}
\markboth{Chapter~\thechapter~:~#1}{\S\thesection}
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
%\huge\bfseries \@chapapp\space\thechapter
\huge\bfseries \@chapapp~\thechapter
%\par\nobreak
%\vskip 20\p@
\rule[1em]{\textwidth}{0pt}
\fi
\interlinepenalty\@M
\rule{\textwidth}{1pt}
\Huge \bfseries #1\par\nobreak
\rule{\textwidth}{1pt}
%\vskip 40\p@
}}
\def\@schapter#1{\if@twocolumn
\@topnewpage[\@makeschapterhead{#1}]%
\else
\@makeschapterhead{#1}%
\@afterheading
\fi
%\markboth{#1}{}
}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\rule{\textwidth}{1pt}
\Huge \bfseries #1\par\nobreak
\rule[20pt]{\textwidth}{1pt}
\vskip 40\p@
}}
\makeatother
My mail file : thes.tex
\documentclass[12pt,a4paper, reqno, openright,twoside,titlepage]{report}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{epsfig}
\usepackage{thes}
\pagenumbering{roman}
\textheight8.25in
\textwidth6.5in
\oddsidemargin=\evensidemargin %60pt
\hoffset-0.75in
\voffset-0.45in
\title{}
\author{}
\date{}
\begin{document}
\input{title.tex}
\fancyhead[LE,RO]{\egtsf\thepage}
\fancyhead[RE]{{\egtsf\rightmark}}
\fancyhead[LO]{{\egtsf\leftmark}}
\fancyfoot[LE,RO]{{\egtsf Ph. D. Thesis}}
%\fancyfoot[LO,RE]{{\egtsf Differential Games and Viscosity Solutions}}
\fancyfoot[C]{}
\input{decl.tex}
\input{dedic.tex}
\input{acknow.tex}
\input{abstract.tex}
\tableofcontents
\makeatletter
\@addtoreset{equation}{section}
\renewcommand{\theequation}{\thesection.\@arabic\c@equation}
\makeatother
\pagestyle{fancy}
\pagenumbering{arabic}
\chapter{Introduction}
\input{chap1.tex}
\chapter{Differential Games on Finite Horizon}
\input{chap2.tex}
\chapter{Differential Games in a Hilbert Space}
\input{chap3.tex}
\chapter{Differential Games with Ergodic Payoff}
\input{chap4.tex}
\chapter{Differential Games with Mixed Controls}
\input{chap5.tex}
\chapter{Stochastic Games with Stopping Times}
\input{chap6.tex}
\input{bibl.tex}
\end{document}
-Mallik