## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Generate list of equations using Thesis.cls thesis latex tem

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am

### 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.

Tags:

Johannes_B
Site Moderator
Posts: 3933
Joined: Thu Nov 01, 2012 4:08 pm
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?

List Of equations 1 ...... 12 ...... 13 ...... 14 ...... 55 ...... 56 ...... 7

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
Hi,
This is the class file that I use:

The following is an example of an equation environment in my chapter 4:
\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}

A "List of Equation" should look something as attached.

Image of List of Equation
img_loe.JPG (21.4 KiB) Viewed 4450 times

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
Hi,
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: 3933
Joined: Thu Nov 01, 2012 4:08 pm
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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
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.
Last edited by Stefan Kottwitz on Thu Aug 13, 2015 7:07 pm, edited 1 time in total.
Reason: inline code changed to code block

Stefan Kottwitz
Posts: 9242
Joined: Mon Mar 10, 2008 9:44 pm
You already use the caption package. So you can use \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

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
I will look into this method.
Thank you..

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
capture of equation produced
img_eq4_1.JPG (20.55 KiB) Viewed 4397 times
hi,
With the following changes to:

1. My class file:
\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}}

2. My main tex file
\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}

3. The example of equation in my chapter 4
\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}`

The list of equations that generated is still empty.. except that the equation caption is now appear on top of the equation in chapter 4 as shown inline.

What have i done wrongly?

Thank you.
Last edited by cgnieder on Fri Aug 14, 2015 3:46 pm, edited 1 time in total.
Reason: changed markup from inline code to block code

lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am
Hi,

I have tried to 'disable' all the scripts regarding "list of equations" in my class file. This is what produced..
img_output.JPG (13.43 KiB) Viewed 4392 times

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..