General ⇒ Missing the Word "Chapter" in ToC
Missing the Word "Chapter" in ToC
I have a problem where I lost the word chapter in my thesis ToC. What I have now roughly is something like this
ABSTRACT
ACK
APPROVAL
LIST OF TABLES
LIST OF FIGURES
1. INTRODUCTION and so on
What I want is something like this
ABSTRACT
ACK
APPROVAL
LIST OF TABLES
LIST OF FIGURES
CHAPTER
1. INTRODUCTION and so on.
Don't know what is missing. Really am in need of help. Thank u.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Missing the Word "Chapter" in ToC
What do you mean by “you lost it”? Does that mean you had the word “chapter” in the ToC before?mafendee wrote:[...] I lost the word chapter in my thesis ToC. [...]
I don't quite understand what your goal is in the end. Do you want the “chapter” be inserted before every (numbered) chapter or only as a separator between unnumbered
and numbered sections/chapters?
Missing the Word "Chapter" in ToC
ABSTRACT
ACK
APPROVAL
LIST OF TABLES
LIST OF FIGURES
CHAPTER
1. INTRODUCTION
2. LIT REVIEW
...and so on.
Currently, the word CHAPTER above is missing (from the generated pdf file). But, I want it to be there.
I hope this clear things up. Waiting for your reply.
Missing the Word "Chapter" in ToC
Regards
Missing the Word "Chapter" in ToC
Code: Select all
\documentclass[tocchapterhead]{iitthesis}
\usepackage[dvips]{graphicx} % This package is used for Figures
\usepackage{rotating} % This package is used for landscape mode.
\usepackage{epsfig,amsmath,graphicx,amssymb,amsfonts,color,epsfig,amsthm}
\usepackage{caption}
\usepackage[font=footnotesize]{subcaption}
\usepackage{array}
\usepackage{helvet}
\usepackage{latexsym}
\usepackage{mathrsfs}
\usepackage{natbib}
\usepackage[a4paper]{geometry}
\geometry{left=4.2cm,right=27mm,top=25mm,bottom=20mm}
\setlength{\textheight}{23.4cm}
\makeatletter
\renewcommand\@dotsep{140} % default value 4.5
\makeatother
\widowpenalty=10000
\clubpenalty=10000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\voffset}{0in} \setlength{\oddsidemargin}{1.8cm}
\setlength{\evensidemargin}{1.8cm} \setlength{\unitlength}{1mm}
\font\bg=cmbx10 scaled\magstep1 \font\Bg=cmbx12 scaled\magstep3
\font\small=cmr8 \font\bg=cmbx10 scaled\magstep1 \font\Bg=cmbx12
scaled\magstep3 \font\small=cmr8
\def\nt{\noindent}
\def\cal{\mathcal}
\begin{document}
\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\newcommand{\setlinespacing}[1]%
{\setlength{\baselineskip}{#1 \defbaselineskip}}
\newcommand{\doublespacing}{\setlength{\baselineskip}%
{2.0 \defbaselineskip}}
\newcommand{\singlespacing}{\setlength{\baselineskip}{\defbaselineskip}}
\newcommand{\myspace}{1.5}
\newcommand{\myspacea}{1.1}
\newcommand{\myspaceq}{1.0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman}
\tolerance=10000 \baselineskip18truept
\newbox\thebox
\global\setbox\thebox=\vbox to 0.2truecm{\hsize 0.15truecm\noindent\hfill}
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern0pt
\vbox{\kern0pt#1\kern0pt}\kern0pt\vrule}\hrule}}
\def\qed{\lower0.1cm\hbox{\noindent \boxit{\copy\thebox}}\bigskip}
\def\ss{\smallskip}
\def\ms{\medskip}
\def\bs{\bigskip}
\def\c{\centerline}
\def\nt{\noindent}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{pro}[thm]{Proposition}
\newtheorem{alg}[thm]{Algorithm}
\newtheorem{cnj}[thm]{Conjecture}
\theoremstyle{plain}
\newtheorem{lem}[thm]{Lemma}
\theoremstyle{definition}
\newtheorem{dfn}[thm]{Definition}
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\newtheorem{example}[thm]{Example}
\newtheorem{note}{Note}
\include{title}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf DEDICATIONS}
\include{dedication}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf ABSTRACT}
\include{abs}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf ABSTRAK}
\include{absm}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf ACKNOWLEDGMENTS}
\include{ack}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf APPROVAL}
\include{approval}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\setlinespacing{0.9}
\addcontentsline{toc}{chapter}{\bf DECLARATION}
\include{dec}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{contents}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{tables}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{figures}
%\addtocontents{toc}{\protect\vspace*{-7pt}}
\addcontentsline{toc}{chapter}{\bf LIST OF ABBREVIATIONS}
\include{abbrevs}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\addcontentsline{toc}{chapter}{\bf LIST OF NOTATIONS}
\include{notats}
\pagenumbering{arabic}
\setlength{\parindent}{0.0cm}
\setlinespacing{1.4}
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{chapter6}
\include{chapter7}
\setlinespacing{0.9}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{bibliography}
%\addtocontents{toc}{\protect\vspace*{-7pt}}
\include{appendix}
\setlinespacing{1.4}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{biodata}
\setlinespacing{0.9}
\addtocontents{toc}{\protect\vspace*{-9pt}}
\include{listpub}
\end{document}
- Attachments
-
- iitthesis.cls
- (37.86 KiB) Downloaded 222 times
Missing the Word "Chapter" in ToC
Anyway, I can't even get the IIT-Thesis class running. Not even this code:
Code: Select all
\documentclass[tocchapterhead]{iitthesis}
\begin{document}
Hello World
\end{document}
Code: Select all
\addtocontents{toc}{\protect\contentsline{chapter}{CHAPTER:}{}}
Re: Missing the Word "Chapter" in ToC
Re: Missing the Word "Chapter" in ToC
Could you please indicate where did you put the command "\addtocontents{toc}{\protect\contentsline{chapter}{CHAPTER:}{}}" in the latex script?
Your reply may help me to fix similar problem that I am facing now.
Thank you in advance.
Vijay