🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2043

getting TOC _before_ first PART in modified book style

#2043
From: G.D. Pratt
Date: Thu, 03 Sep 1992 15:20
39 lines
2032 bytes
We have a style here kthesis.sty which is based on book.sty - it is for 
producing theses which meet the requirements of Keele University.

It puts in a table of contents (and LOT and LOF if necessary) immediately
_before_ the first chapter - which is where you want it. However if you
use the \part command to organise your chapters the TOC goes _after_ the
PART I and before CHAPTER 1.

I guess the kthesis.sty is saying "when the chapters start flush out the
TOC, LOT and LOF" when it should say "when the chapters OR parts start etc".
I think the bit of the kthesis.sty file that controls this is:-

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %                         TABLE OF CONTENTS                            %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
  \def\l@chapter#1#2{\smallskip\@dottedtocline{2}{0em}{2em}{{\bf #1}}{\bf #2}}%
   
  \setcounter{tocdepth}{4}
   
  \def\make@tableofcontents{\@tableofcontents}
   
  \def\@tableofcontents{%
      {\baselineskip=\origbaselineskip\parindent=0pt
      \tableofcontents
      \listoffigures
      \listoftables}
      \newpage
      \c@page=1
      \global\def\thepage{\arabic{page}}}
  % The following macros avoid printing a heading if there are no
  % following lines (e.g., no tables, or no figures).

Any idea what I need to alter to make it deal with \part correctly?
gerry
--
gerry pratt  --  workstation support  --  university of keele
email:  gerry@seq1.keele.ac.uk  --------  tel:  (0782) 583072
"these opinions are mine, mine, mine....ALL MINE I TELL YOU!"
Technical Details
Message-ID: <Bu0DA3.2GD@gabriel.keele.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!cca13

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!cca13
From: cca13@keele (G.D. Pratt)
Newsgroups: comp.text.tex
Subject: getting TOC _before_ first PART in modified book style
Message-ID: <Bu0DA3.2GD@gabriel.keele.ac.uk>
Date: 3 Sep 92 15:20:27 GMT
Sender: news@gabriel.keele.ac.uk (UseNet News Service)
Organization: Keele University, England
Lines: 39
Nntp-Posting-Host: seq1.cc.keele.ac.uk