Theses, Books, Title pages ⇒ add word "CHAPTER", in front of every chapter.
add word "CHAPTER", in front of every chapter.
I am using "Easy Thesis" template to write my thesis (https://www.sharelatex.com/project/5553 ... 810cb635be).
I need to do some tweaks to adopt according to my university thesis format.
I have two questions to ask.
Question 1)
In the "Contents page" the chapters are numbered. Like:
1. Introdudction
2. Literature Review
3. Research Methodology.
I want the word "CHAPTER" present (in capital letter) in front of every chapter like:
CHAPTER 1. Introdudction
CHAPTER 2. Literature Review
CHAPTER 3. Research Methodology.
Question 2)
In the "List of Figures" and "List of Table" page the figures and tables are numbered like:
List of Figures
1.1 Cell
1.2 Lipid
List of Table
1.1 Lipid mass table
1.2 Cell components
I want the word "FIGURE" and "TABLE" present in front of the numbers as shown below.
List of Figures
FIGURE 1.1 Cell
FIGURE 1.2 Lipid
List of Table
TABLE 1.1 Lipid mass table
TABLE 1.2 Cell components
I hope, I will get some help to fix this.
Many advance thanks in advance.
Vijay
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
add word "CHAPTER", in front of every chapter.
I need to be logged in to ShareLaTeX to see the template, but i am not a member there, so i can only assume some things that might not even be true.
The following uses package tocloft, depending on the class actually used, the solution could be much simpler.
Code: Select all
\documentclass{report}
\usepackage{tocloft}
\renewcommand{\cftchappresnum}{chapter~}
\renewcommand{\cftfigpresnum}{figure~}
\renewcommand{\cfttabpresnum}{table~}
\renewcommand{\cftchapnumwidth}{3cm}
\renewcommand{\cftfignumwidth}{2cm}
\renewcommand{\cfttabnumwidth}{2cm}
\addtocontents{toc}{\protect\contentsline{chapter}{Chapter:}{Page}}
\usepackage{capt-of}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\chapter{pogo penguin}
\captionof{figure}{Walzing Wombat}
\captionof{table}{Rumba Rhinoceros}
\end{document}
Re: add word "CHAPTER", in front of every chapter.
For your information, the "Easy Thesis" template uses "book" class
When I use "\usepackage{tocloft}" I get two errors as below:
tocloft.sty|error|line 607|Command \c@lofdepth already defined. \newcounter{lofdepth}
tocloft.sty|error|line 608|Command \c@lotdepth already defined. \newcounter{lotdepth}
Is there anyway to fix this?
Vijay
add word "CHAPTER", in front of every chapter.
I have found that the error that I get is due to the use of "subfigure". So getting some info from (http://tex.stackexchange.com/questions/ ... nd-tocloft) I tried to use the command below:
Code: Select all
\usepackage[clean,pdf]{svg}
\usepackage[subfigure]{tocloft}
Code: Select all
\renewcommand{\cftchappresnum}{chapter~}
\renewcommand{\cftfigpresnum}{figure~}
\renewcommand{\cfttabpresnum}{table~}
\renewcommand{\cftchapnumwidth}{3cm}
\renewcommand{\cftfignumwidth}{2cm}
\renewcommand{\cfttabnumwidth}{2cm}
\addtocontents{toc}{\protect\contentsline{chapter}{Chapter:}{Page}}
\usepackage{capt-of}
in packages.tex file.
But I wonder where to put the \tableofcontents after the \begin{document} command. Because in my thesis.tex file there is \frontmatter command. I have given my thesis.tex for your view below.
Code: Select all
% % % NAMASHIVAYA
\documentclass[a4paper, 12pt, oneside, doublespacing]{Thesis} % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
\input{Settings/Packages.tex}
\input{Settings/Administrative.tex}
% TO AVOID HYPHENATION
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
%% ----------------------------------------------------------------
\begin{document}
\frontmatter % Begin Roman style (i, ii, iii, iv...) page numbering
\widowpenalty=9900
\clubpenalty=9900
%% All the pages before the chapters ------------------------------
%\include{Frontpages/Fixed/titleCoverpage}
%\input{Frontpages/Fixed/Title}
%\makecoverandtitlepage
%%\newpage
\input{Frontpages/DeclarationPage.tex}
%\input{Frontpages/Abstract}
%\input{Frontpages/Abstrak}
\input{Frontpages/Acknowledgements.tex}
%%\newpage
\input{Frontpages/Fixed/TableOfContents.tex}
\input{Frontpages/Fixed/ListOfFigures.tex}
\input{Frontpages/Fixed/ListOfTables.tex}
\input{Frontpages/Abbrev.tex}
\input{Frontpages/Symbols.tex}
%\input{Frontpages/Appendices.tex}
%##################################################
%% The Body -------------------------------------------------------
\setstretch{1.3} % Return the line spacing back to 1.3 the whole document.
\mainmatter % Begin normal, numeric (1,2,3...) page numbering
\pagestyle{fancy} % Return the page headers back to the "fancy" style
\newpage
%\include{Chapters/Chapter1} % Introduction
%\include{Chapters/Chapter2} % Literature Review
\include{Chapters/Chapter3} % Research Methodology
%\include{Chapters/Chapter4} % Paper 1 anhydrous structure
%\include{Chapters/Chapter5} % Paper 2 anhydrous dynamics
%\include{Chapters/Chapter6} % PAper 3 lyotropic structure & dynamics
%\include{Chapters/Chapter7} % Conclusion
%\include{Chapters/testChap}
%\include{Chapters/abbreTest}
%\begin{appendices}
%\startapps
%% \chapter{Consectetur adipiscing elit}
%% \chapter{Mauris euismod}
% \input{Backmatters/Appendices/Appendix_A} % Appendix Title
%vj\input{Backmatters/Appendices/Appendix_B} % Appendix Title
%%\input{Backmatters/Appendices/Appendix_C} % Appendix Title
%\finishapps
%\end{appendices}
%% Bibliography ---------------------------------------------------
\addtocontents{toc}{\vspace{1em}}
\backmatter % Cue to tell LaTeX that the following 'chapters' are Bibliography
\begingroup
\begin{normalsize}
\bibliographystyle{Files/vjHarvard3}
\renewcommand{\bibname}{References}
\setlength{\bibsep}{10pt}
\setstretch{1}
\bibliography{Backmatters/References/all_thesis_chapters} % The references (bibliography)
\end{normalsize}
\endgroup
\end{document} % The End
%% ----------------------------------------------------------------
Could you give some suggestion?
Thank you sir.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
add word "CHAPTER", in front of every chapter.
In you frontmatter, a file with the name TableOfContents in included. It is most likely that within there the table of contents is generated.
By the way, there are many many files included and even i as an andvanced user find this confusing. Unfortunately, that is template paradoxon. By trying to make everything solid and easy to understand for beginners, the file structure gets really really complex, information scattered around and almost no ducumentation of why stuff is placed the way it is. Many many beginners loose a lot of time trying to understand a complex template, trying to fix mistakes of the template compiler that should have been fixed long ago ... Package subfigure is obsolete for about 10 years now.
If you are interested, i suggest to read LaTeX for complete novices along with successor. This will take you two days to read and understand and you can get a real fresh start.
Re: add word "CHAPTER", in front of every chapter.
Thanks for your reply. The link to the Latex books is really interesting. I am reading now.
I hope this will help to resolve my problem.
Thank you.
Vijay