Theses, Books, Title pages ⇒ Generate list of equations using Thesis.cls thesis latex tem
Generate list of equations using Thesis.cls thesis latex tem
I use the thesis latex template of Thesis.cls (downloaded from http://www.latextemplates.com which is created by Steve R. Gunn and modified by Sunil Patel) to produce my phd thesis and would like to know how to generate a list of equations of all the equations i have in my thesis.
The "List of Equation" page does exist in my pdf output but there's no equations in it.
I have searched through the web for a solution but most require the use of tocloft package which when used will cause my table of contents, list of figures and list of tables disappear.
Please help me to include a list of equations using the available scripts in the thesis template that i use. BTW, i also wish to generate a "List of Definition" for my thesis.
Thank you.
The "List of Equation" page does exist in my pdf output but there's no equations in it.
I have searched through the web for a solution but most require the use of tocloft package which when used will cause my table of contents, list of figures and list of tables disappear.
Please help me to include a list of equations using the available scripts in the thesis template that i use. BTW, i also wish to generate a "List of Definition" for my thesis.
Thank you.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Generate list of equations using Thesis.cls thesis latex tem
HI and welcome,
an equation usually has a number, which is required for proper referring. But equations don't have names.
How would a list of equations look like?
Do you have names for the equations? How are you doing this? Can you wrap up a minimal working example?
as you already noted, tocloft is incompatible with the template. Compiling multiple times should bring the toc back, though.
an equation usually has a number, which is required for proper referring. But equations don't have names.
How would a list of equations look like?
Code: Select all
List Of equations
1 ...... 1
2 ...... 1
3 ...... 1
4 ...... 5
5 ...... 5
6 ...... 7
as you already noted, tocloft is incompatible with the template. Compiling multiple times should bring the toc back, though.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Generate list of equations using Thesis.cls thesis latex tem
Hi,
This is the class file that I use:
The following is an example of an equation environment in my chapter 4:
A "List of Equation" should look something as attached.
Thank you for your reply.
This is the class file that I use:
Code: Select all
The following is the content in my main tex file which I used to produce my thesis:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Masters/Doctoral Thesis
% LaTeX Template
% Version 1.43 (17/5/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original authors:
% Steven Gunn
% http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/
% and
% Sunil Patel
% http://www.sunilpatel.co.uk/thesis-template/
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Note:
% Make sure to edit document variables in the Thesis.cls file
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------
%To avoid clashes when load xcolor in table ---------------------------
\PassOptionsToPackage{table}{xcolor}
%-----------------------------------------------------------------------
\documentclass[12pt, oneside]{Thesis}
% The default font size and one-sided printing (no margin offsets)
%\usepackage{etex}
\graphicspath{{Pictures/}}
% Specifies the directory where pictures are stored
\usepackage{apacite}
\hypersetup{urlcolor=black, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying
\title{\ttitle} % Defines the thesis title - don't touch this
%The following change chapter number and chapter title ----------------
%alignment to center
\usepackage{sectsty}
\chapterfont{\centering \Large}
%\sectionfont{\sectionrule{0ex}{0pt}{-1ex}{0pt}}
%----------------------------------------------------------------------
%The following change 1 to ONE for chapter but resume to alphabet -----
%for appendix
\usepackage{fmtcount,etoolbox}
\makeatletter
\patchcmd{\@makechapterhead}{\thechapter}{\headingthechapter}{}{}
\newcommand{\headingthechapter}{\NUMBERstring{chapter}}
\patchcmd{\chaptermark}{\thechapter}{\headerthechapter}{}{}
\newcommand{\headerthechapter}{\NUMBERstring{chapter}}
\appto{\appendix}{%
\renewcommand{\headingthechapter}{\thechapter}%
\renewcommand{\headerthechapter}{\thechapter}%
% \renewcommand{\thechapter}{APPENDIX \Alph{chapter}}
}
\makeatother
%The following load package which enable use of longtable--------------
%that spread across one page
\usepackage{array,multirow, longtable}
\newcolumntype{F}{>{\raggedright\arraybackslash}p{1.5cm}}
%\newcolumntype{S}{>{\raggedright\arraybackslash}p{1.8cm}}
%\newcolumntype{T}{>{\raggedright\arraybackslash}p{1.8cm}}
%\newcolumntype{O}{>{\raggedright\arraybackslash}p{5.5cm}}
%\newcolumntype{L}{>{\raggedright\arraybackslash}p{3.0cm}}
%{|Lp{1.5cm}|p{1.8cm}|p{1.8cm}|p{5.5cm}|p{3.0cm}|}
%----------------------------------------------------------------------
%The following load package which allow shading of table's --
%row or cell
\usepackage[table]{xcolor} % loads also »colortbl«
%------------------------------------------------------------
%The following allow draw partial horizontal line of table so that ----
% it will be covered by the color assigned to the row/column/cell
\usepackage{hhline}
% -----------------------------------------------------------
\usepackage{array}
\usepackage{ragged2e}
\newcolumntype{P}[1]{>{\RaggedRight}p{#1}}
\newcolumntype{C}[1]{>{\centering}p{#1}}
%The following allow merging cell of multi rows -------------
\usepackage{multirow}
%------------------------------------------------------------
%The following allow display subfigures side by side --------
\usepackage{caption}
\usepackage{subcaption}
%------------------------------------------------------------
%The following allow display of equations with better presentation -----
\usepackage[retainorgcmds]{IEEEtrantools}
%------------------------------------------------------------
%The following allow the use of enumerate list --------------
%\usepackage{enumerate}
\usepackage{enumitem}
% -----------------------------------------------------------
%The following allow the use of afterpage -------------------
\usepackage{afterpage}
% -----------------------------------------------------------
%The following is for appendix usepackage to include appendix title
\usepackage[titletoc,title]{appendix}
%------------------------------------------------------------
%the following reduce the space between section heading and text -------
%\usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{0pt}{0pt}
%------------------------------------------------------------
\begin{document}
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
\setstretch{1.5} % Line spacing of 1.5
\fancyhead{} % Clears all page headers and footers
\rhead{\thepage} % Sets the right side header to show the page number
%{\thepage}
\lhead{} % Clears the left side page header
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
% PDF meta-data
\hypersetup{pdftitle={\ttitle}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
%------------------------------------------------------------
% TITLE PAGE
%------------------------------------------------------------
\begin{titlepage}
\begin{center}
\null \vfill
{\Large \bfseries \ttitle}%\\[2cm] % Thesis title
\vfill \vfill
{\authornames} % Author name - remove the \href bracket to remove the link
\vfill\vfill
\large {A thesis submitted \\ In fulfilment of the requirements for the degree of \\ \degreename (\subjectname)}\\[0.3cm] % University requirement text
\vfill \vfill \vfill
{\facname} % Faculty name - remove the \href bracket to remove the link
{\UNIVNAME} %\\[0.5cm] % University name - remove the \href bracket to remove the link
\vfill
{\large{2015}}
\vfill
\end{center}
\end{titlepage}
%------------------------------------------------------------
% ACKNOWLEDGEMENTS
%------------------------------------------------------------
\setstretch{1.5} % Reset the line-spacing to 1.5 for body text (if it has changed)
\acknowledgements{\addtocontents{toc}{\vspace{0em}} % Add a gap in the Contents, for aesthetics
\bigskip
{\noindent\ignorespaces}%
This is my acknowledgement.
}
\clearpage % Start a new page
%------------------------------------------------------------
% DEDICATION
%------------------------------------------------------------
\setstretch{1.5}
%\dedication{\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
\dedication{\addtocontents{toc}{\vspace{0em}}
\bigskip
\begin{center}
This is my dedication.
\end{center}
}
\clearpage % Start a new page
%------------------------------------------------------------
% ABSTRACT PAGE
%------------------------------------------------------------
\addtotoc{Abstract} % Add the "Abstract" page entry to the Contents
\abstract{\addtocontents{toc}{\vspace{0em}}
{\noindent\ignorespaces}%
This is my abstract.
}
\clearpage % Start a new page
%------------------------------------------------------------
%LIST OF CONTENTS/FIGURES/TABLES/EQUATIONS/DEFINITIONS PAGES
%------------------------------------------------------------
\pagestyle{plain}
\tableofcontents % Write out the Table of Contents
\listoffigures % Write out the List of Figures
\listoftables % Write out the List of Tables
\makeatletter
\listofequations %Write out the List of Equations
\makeatother
\listofdefinitions %Write out the List of Definitions
%------------------------------------------------------------
% ABBREVIATIONS
%------------------------------------------------------------
\clearpage % Start a new page
\setstretch{1.5}
\listofsymbols{ll}
{
A & Overall Accuracy \\
}
%------------------------------------------------------------
% LIST OF PUBLICATIONS AND PRESENTATIONS
%------------------------------------------------------------
\clearpage % Start a new page
%\setstretch{1.5} % Set the line spacing to 1.5, this makes the following tables easier to read
\setstretch{1}
\listofpublications{lP{13cm}}
{
\multicolumn{2}{l}{\textbf{Publications}} \\ [5pt]
1 & lkjhlkjhl \tabularnewline [5pt]
}
\setstretch{1.5}
%------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%------------------------------------------------------------
\mainmatter
\input{Chapters/Chapter1}
\input{Chapters/Chapter2}
\input{Chapters/Chapter3}
\input{Chapters/Chapter4}
\input{Chapters/Chapter5}
\input{Chapters/Chapter6}
\input{Chapters/Chapter7}
\addtocontents{toc}{\vspace{2em}}
\backmatter
%------------------------------------------------------------
% REFERENCES
%------------------------------------------------------------
%The following change references title to uppercase ---------
\renewcommand{\bibname}{REFERENCES} %\bibname is for book and report class
%\renewcommand{\refname}{REFERENCES} %\refname is for article class
%------------------------------------------------------------
\label{References}
\bibliographystyle{apacite}
\bibliography{lcy_reference}
% lcy move appendices section after references
%------------------------------------------------------------
% THESIS CONTENT - APPENDICES
%------------------------------------------------------------
\mainmatter % added in by lcy
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\begin{appendices}
\appendix
\input{Appendices/AppendixA}
\input{Appendices/AppendixB}
\end{appendices}
\end{document}
Code: Select all
\begin{center}
\begin{IEEEeqnarray}{lCl}
\text{Overall accuracy}, A & = & \frac{TP+TN}{TP+FN+TN+FP} \\ \label{4.1} \text{True Positive Rate } (Sensitivity) & = & \frac{TP}{TP+FN} \\ \label{4.2}
\text{False Positive Rate} & = & 1 - Specificity \nonumber\\ \label{4.3}
& = & 1 - \frac{TN}{TN+FP}
\end{IEEEeqnarray}
\end{center}
Thank you for your reply.
Re: Generate list of equations using Thesis.cls thesis latex
Hi,
Sorry, typing mistake. The latex scripts i sent is the one in my main tex file and NOT class file. Sorry..
Thank you.
Sorry, typing mistake. The latex scripts i sent is the one in my main tex file and NOT class file. Sorry..
Thank you.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Generate list of equations using Thesis.cls thesis latex
You are doing the numbers by hand? You can just as well create the list by hand.
Right now, there isn't really anything i could say with respect to an alternate approach. How lng till you thesis is due? The equation you presented is horrible.
Right now, there isn't really anything i could say with respect to an alternate approach. How lng till you thesis is due? The equation you presented is horrible.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Generate list of equations using Thesis.cls thesis latex tem
Hi, thank you for your reply and comment.
The image that i attached is captured from the word file. I wish to make my tex file being able to generate a "List of Equations" and "List of Definitions" just like how it generates "List of Figures" and "List of Tables" WITHOUT using the tocloft package but make use of what is available in the template that is used.
I would be grateful if you could point out what make my equations look horrible. I really appreciate your comments.
I still have around two weeks to go to send in my thesis. I really hope to find out the way to create the "List of Equations" and for definition also. There are many problems encountered throughout the use of latex where all could be solved (though may not be the appropriate way) except this one. Only this "List of Equations" thingy make me kind of stuck here for many days.
I attach here the class file that i use.
Thank you very much.
The image that i attached is captured from the word file. I wish to make my tex file being able to generate a "List of Equations" and "List of Definitions" just like how it generates "List of Figures" and "List of Tables" WITHOUT using the tocloft package but make use of what is available in the template that is used.
I would be grateful if you could point out what make my equations look horrible. I really appreciate your comments.
I still have around two weeks to go to send in my thesis. I really hope to find out the way to create the "List of Equations" and for definition also. There are many problems encountered throughout the use of latex where all could be solved (though may not be the appropriate way) except this one. Only this "List of Equations" thingy make me kind of stuck here for many days.
I attach here the class file that i use.
Code: Select all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Thesis LaTeX Template - THESIS CLASS FILE
%
% This template has been downloaded from:
% http://www.latextemplates.com
%
% This class file defines the structure and design of the template.
%
% There is one part of this file that needs to be filled out - the variables
% dictating the document particulars such as the author name, university
% name, etc. You will find these in the commented "DOCUMENT VARIABLES"
% section below.
%
% The other two easily-editable sections are the margin sizes and abstract.
% These have both been commented for easy editing. Advanced LaTeX
% users will have no trouble editing the rest of the document to their liking.
%
% Original header:
%% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn
%% generated with the docstrip utility.
%%
%% Created by Steve R. Gunn, modified by Sunil Patel: http://www.sunilpatel.co.uk
%% Further modified by http://www.latextemplates.com
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesClass{Thesis}
[2007/22/02 v1.0
LaTeX document class]
\def\baseclass{book}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
\@tempswafalse
\@tfor\@this:=#2\do{
\@expandtwoargs\in@{,\@this,}{,\@curroptions,}
\ifin@ \@tempswatrue \@break@tfor \fi}
\let\@this\@empty
\if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
}
\@checkoptions{11pt}{{10pt}{11pt}{12pt}}
\PassOptionsToClass{a4paper}{\baseclass}
\ProcessOptions\relax
\LoadClass{\baseclass}
\newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
\newcommand\Declaration[1]{
\btypeout{Declaration of Authorship}
\addtotoc{Declaration of Authorship}
\thispagestyle{plain}
\null\vfil
%\vskip 60\p@
\begin{center}{\huge\bf Declaration of Authorship\par}\end{center}
%\vskip 60\p@
{\normalsize #1}
\vfil\vfil\null
%\cleardoublepage
}
\newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
\def\today{\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space \number\year}
\usepackage{setspace}
\onehalfspacing
\setlength{\parindent}{0.3in}
\usepackage{vmargin}
\RequirePackage[utf8]{inputenc} % Allows the use of international characters (e.g. Umlauts)
\usepackage{etex}
%----------------------------------------------------------------------------
% MARGINS
%----------------------------------------------------------------------------
\setmarginsrb { 1.3in} % left margin
{ 0.4in} % top margin
{ 0.8in} % right margin
{ 0.6in} % bottom margin
{ 20pt} % head height
{0.25in} % head sep
{ 9pt} % foot height
{ 0.3in} % foot sep
%----------------------------------------------------------------------------------------
\raggedbottom
\setlength{\topskip}{1\topskip \@plus 5\p@}
\doublehyphendemerits=10000 % No consecutive line hyphens.
\brokenpenalty=10000 % No broken words across columns/pages.
\widowpenalty=9999 % Almost no widows at bottom of page.
\clubpenalty=9999 % Almost no orphans at top of page.
\interfootnotelinepenalty=9999 % Almost never break footnotes.
\usepackage{fancyhdr}
\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
\renewcommand{\sectionmark}[1]{}
\renewcommand{\subsectionmark}[1]{}
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
\theoremstyle{plain}
\newtheorem{example}{Example}[chapter]
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{axiom}[theorem]{Axiom}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
%\usepackage[centerlast,small,sc]{caption}%this is the original script%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[centerlast,small]{caption} %'sc' is taken away by lcy so that caption is nto in uppercase%%
\setlength{\captionmargin}{20pt}
\newcommand{\fref}[1]{Figure~\ref{#1}}
\newcommand{\tref}[1]{Table~\ref{#1}}
\newcommand{\eref}[1]{Equation~\ref{#1}}
\newcommand{\dref}[1]{Definition~\ref{#1}}
\newcommand{\cref}[1]{Chapter~\ref{#1}}
\newcommand{\sref}[1]{Section~\ref{#1}}
\newcommand{\aref}[1]{Appendix~\ref{#1}}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{.85}
\renewcommand{\textfraction}{0.1}
\renewcommand{\dbltopfraction}{.85}
\renewcommand{\floatpagefraction}{0.75}
\renewcommand{\dblfloatpagefraction}{.75}
\renewcommand{\chaptername}{CHAPTER} %add in by lcy to change the word 'Chapter' to 'CHAPTER'
\renewcommand{\appendixname}{APPENDIX} %add in by lcy to change the work 'Appendix' to 'APPENDIX'
\setcounter{topnumber}{9}
\setcounter{bottomnumber}{9}
\setcounter{totalnumber}{20}
\setcounter{dbltopnumber}{9}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{listings}
\usepackage{lstpatch}
\lstset{captionpos=b,
frame=tb,
basicstyle=\scriptsize\ttfamily,
showstringspaces=false,
keepspaces=true}
\lstdefinestyle{matlab} {
language=Matlab,
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
}
\newcommand*{\supervisor}[1]{\def\supname{#1}}
\newcommand*{\thesistitle}[1]{\def\ttitle{#1}}
\newcommand*{\examiner}[1]{\def\examname{#1}}
\newcommand*{\degree}[1]{\def\degreename{#1}}
\newcommand*{\authors}[1]{\def\authornames{#1}}
\newcommand*{\addresses}[1]{\def\addressnames{#1}}
\newcommand*{\university}[1]{\def\univname{#1}}
\newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
\newcommand*{\department}[1]{\def\deptname{#1}}
\newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
\newcommand*{\group}[1]{\def\groupname{#1}}
\newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
\newcommand*{\faculty}[1]{\def\facname{#1}}
\newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
\newcommand*{\subject}[1]{\def\subjectname{#1}}
\newcommand*{\keywords}[1]{\def\keywordnames{#1}}
%----------------------------------------------------------------------------
% DOCUMENT VARIABLES
% Fill in the lines below to update the thesis template
% If you wish to cite each of the variables defined below, look at the
% section above for the citation command e.g. \examiner{} below is
% defined as \examname above so you cite it as \examname
%----------------------------------------------------------------------------
\thesistitle{asdfsa} % Your thesis title - this is used in the title and abstract
%-------------------------------------------------
\supervisor{dfgh} % You supervisor's name - this is used in the title page
%-------------------------------------------------
\examiner{} % Your examiner's name - this is not currently used anywhere in the template, cite it with \examname if you want it
%-------------------------------------------------
\degree{Doctor of Philosophy} % Your degree name - this is currently used in the title page and abstract
%-------------------------------------------------
\authors{dfgh} % Your name - this is used in the title page and abstract
%-------------------------------------------------
\addresses{} % Your address - this is not currently used anywhere in the template, cite it with \addressnames if you want it
%-------------------------------------------------
\subject{sdfg} % Your subject area - this is not currently used anywhere in the template, cite it with \subjectname if you want it
%-------------------------------------------------
\keywords{} % Keywords for your thesis - this is not currently used anywhere in the template, cite it with \keywordnames if you want it
%-------------------------------------------------
\university{\texorpdfstring{\href{http://www.university.com} % Your university's URL
{hjgh}} % Your university's name - this is currently used in the title page
{fghgfh}}
%-------------------------------------------------
\UNIVERSITY{\texorpdfstring{\href{University Web Site URL Here (include http://)} % Your university's URL
{sfgsd}} % Your university's name in capitals - this is currently used in the abstract page
{sdfgdsfg}}
%-------------------------------------------------
\department{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL
{Department or School Name}} % Your department's name - used in the title page and abstract
{Department or School Name}}
%-------------------------------------------------
\DEPARTMENT{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL
{hjghjgh}} % Your department's name in capitals - this is not currently used anywhere in the template, cite it with \DEPTNAME if you want it
{ghjghj}}
%-------------------------------------------------
\group{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
{Research Group Name}} % Your research group's name - this is currently used in the title page
{Research Group Name}}
%-------------------------------------------------
\GROUP{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
{RESEARCH GROUP NAME (IN BLOCK CAPITALS)}} % Your research group's name in capitals - this is not currently used anywhere in the template, cite it with \GROUPNAME if you want it
{RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
%-------------------------------------------------
\faculty{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
{rtrtyrty}} % Your faculty's name - this is currently used in the abstract page
{rtyrtyr}}
%-------------------------------------------------
\FACULTY{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
{rtyrty}} % Your faculty's name in capitals - this is not currently used anywhere in the template, cite it with \FACNAME if you want it
{rtyrty}}
%----------------------------------------------------------------------------
% The default title page, this is not used in this http://www.latextemplates.com version
\renewcommand\maketitle{
\btypeout{Title Page}
\hypersetup{pdftitle={\@title}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
\thispagestyle{empty}
\begin{titlepage}
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\setcounter{footnote}{0}
\null\vfil
\vskip 60\p@
\begin{center}
\setlength{\parskip}{0pt}
{\large\textbf{\UNIVNAME}\par}
\vfill
{\huge \bf \@title \par}
\vfill
{\LARGE by \par}
\smallskip
{\LARGE \authornames \par}
\vfill
{\large A thesis submitted in partial fulfillment for the \par}
{\large degree of \degreename \par}
\bigskip
\bigskip
{\large in the \par}
{\large \facname \par}
{\large \deptname \par}
\bigskip
\bigskip
\bigskip
{\Large \@date \par}
\bigskip
\end{center}
\par
\@thanks
\vfil\null
\end{titlepage}
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
\cleardoublepage
}
%----------------------------------------------------------------------------
% ABSTRACT PAGE DESIGN
%----------------------------------------------------------------------------
\newenvironment{abstract}
{
\begin{center}
{\large {\textbf{ABSTRACT}} \par}
\bigskip
\end{center}
}
%----------------------------------------------------------------------------
{
\vfil\vfil\vfil\null
\cleardoublepage
}
\addtocounter{secnumdepth}{1}
\setcounter{tocdepth}{6}
\newcounter{dummy}
\newcommand\addtotoc[1]{
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{#1}}
\renewcommand\tableofcontents{
\btypeout{Table of Contents}
\addtotoc{Table of Contents}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\begin{center} \Large \textbf{TABLE OF CONTENTS}\end{center}%{\contentsname}
\@mkboth{
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
\@starttoc{toc}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
}
\renewcommand\listoffigures{
\btypeout{List of Figures}
\addtotoc{List of Figures}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\begin{center} \Large \textbf{LIST OF FIGURES} \end{center}
%\listfigurename
\@mkboth{\MakeUppercase\listfigurename}
{\MakeUppercase\listfigurename}}
\@starttoc{lof}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
}
\renewcommand\listoftables{
\btypeout{List of Tables}
\addtotoc{List of Tables}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\begin{center} \Large \textbf{LIST OF TABLES} \end{center} %\listtablename
\@mkboth{
\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
\@starttoc{lot}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
}
\newcommand\listofequations{
\btypeout{List of Equations}
\addtotoc{List of Equations}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\begin{center} \Large \textbf{LIST OF EQUATIONS}\end{center} %\listtablename
\@mkboth{
\MakeUppercase\listequationname}{\MakeUppercase\listequationname}}
\@starttoc{loe}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
}
\newcommand\listofdefinitions{
\btypeout{List of Definitions}
\addtotoc{List of Definitions}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\begin{center} \Large \textbf{LIST OF DEFINITIONS}\end{center} %\listdefinitionname
\@mkboth{
\MakeUppercase\listdefinitionname}{\MakeUppercase\listdefinitionname}}
\@starttoc{lot}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
}
\newcommand\listsymbolname{List of Abbreviations}
\usepackage{longtable}
\newcommand\listofsymbols[2]{
\btypeout{\listsymbolname}
\addtotoc{\listsymbolname}
\chapter*{\begin{center} \Large \textbf{LIST OF ABBREVIATIONS}\end{center} %\listsymbolname
\@mkboth{
\MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
\begin{longtable}[c]{#1}#2\end{longtable}\par
\cleardoublepage
}
\newcommand\listpublications{List of Publications}
\usepackage{longtable}
\newcommand\listofpublications[2]{
\btypeout{\listpublications}
\addtotoc{\listpublications}
\chapter*{\begin{center} \Large \textbf{LIST OF PUBLICATIONS AND PRESENTATIONS} \end{center} %\listpublications and presentations
\@mkboth{
\MakeUppercase\listpublications}{\MakeUppercase\listpublications}}
\begin{longtable}[c]{#1}#2\end{longtable}\par
\cleardoublepage
}
\newcommand\acknowledgements[1]{
\btypeout{Acknowledgements}
\addtotoc{Acknowledgements}
\thispagestyle{plain}
\begin{center}{\Large {\textbf{ACKNOWLEDGEMENTS}} \par}\end{center}
{\normalsize #1}
\vfil\vfil\null
}
\newcommand\dedication[1]{
\btypeout{Dedication}
\addtotoc{Dedication}
\thispagestyle{plain}
\begin{center}{\Large {\textbf{DEDICATION}} \par}\end{center}
{\normalsize #1}
\vfil\vfil\null
}
%The following added in by lcy so that numbering continues from--------------
% mainmatter after backmatter
%\makeatletter
\def\mainmatter{%
\cleardoublepage
\@mainmattertrue
\pagenumbering{arabic}
\def\mainmatter{\cleardoublepage\@mainmattertrue}
}
%\makeatother
%----------------------------------------------------------------------------
\renewcommand\backmatter{
\if@openright
\cleardoublepage
\else
\clearpage
\fi
% \addtotoc{\bibname} %}References
\btypeout{\bibname} %}References
\@mainmatterfalse}
\endinput
Last edited by Stefan Kottwitz on Thu Aug 13, 2015 7:07 pm, edited 1 time in total.
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
Generate list of equations using Thesis.cls thesis latex tem
You already use the
caption package. So you can use
Stefan

\DeclareCaptionType
to create a new environment type with captions for equations, which can be used to producer a list of equations. This can be seen for example in this topic.Stefan
LaTeX.org admin
Re: Generate list of equations using Thesis.cls thesis latex
Hi, Thank you for your reply.
I will look into this method.
Thank you..
I will look into this method.
Thank you..
Generate list of equations using Thesis.cls thesis latex tem
With the following changes to:
- My class file:
Code: Select all
\newcommand\listofmyeqcap{ \btypeout{List of Equations} \addtotoc{List of Equations} \begin{spacing}{1}{ \setlength{\parskip}{1pt} \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\begin{center} \Large \textbf{LIST OF EQUATIONS}\end{center} \@mkboth{ \MakeUppercase\myeqcap}{\MakeUppercase\myeqcap}} \@starttoc{loe} \if@restonecol\twocolumn\fi \cleardoublepage }\end{spacing} }
- My main tex file
Code: Select all
\documentclass[12pt, oneside]{Thesis} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionType{myeqcap}[][List of Equations] \captionsetup[myeqcap]{labelformat=empty} \begin{document} \listofmyeqcap \input{Chapters/Chapter4} \end{document}
- The example of equation in my chapter 4
Code: Select all
\begin{myeqcap}[!h] \caption{Overall Accuracy} \begin{center} \begin{IEEEeqnarray}{lCl} \text{Overall accuracy}, A & = & \frac{TP+TN}{TP+FN+TN+FP} \\ \label{4.1} \text{True Positive Rate } (Sensitivity) & = & \frac{TP}{TP+FN} \\ \label{4.2} \text{False Positive Rate} & = & 1 - Specificity \nonumber\\ \label{4.3} & = & 1 - \frac{TN}{TN+FP} \end{IEEEeqnarray} \end{center} \end{myeqcap}
What have i done wrongly?
Thank you.
Last edited by cgnieder on Fri Aug 14, 2015 3:46 pm, edited 1 time in total.
Generate list of equations using Thesis.cls thesis latex tem
Hi,
I have tried to 'disable' all the scripts regarding "list of equations" in my class file. This is what produced.. I don't know why the title of list-of-equations page turns out to be "LIST OF FIGURES" instead of "LIST OF EQUATIONS"?
And, what should i do if i do not want the caption of the equation appear right above the equations in my chapter.
Thank you very much..
I have tried to 'disable' all the scripts regarding "list of equations" in my class file. This is what produced.. I don't know why the title of list-of-equations page turns out to be "LIST OF FIGURES" instead of "LIST OF EQUATIONS"?

And, what should i do if i do not want the caption of the equation appear right above the equations in my chapter.
Thank you very much..