Theses, Books, Title pagesGenerate 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

Post by lcy »

Hi,
I managed to get rid of the caption appearing on top of the equations using \caption[Overall Accuracy]{ } but still fail to change the title "LIST OF FIGURES" to "LIST OF EQUATIONS" with this script \DeclareCaptionType[fileext=loe,placement=h]{myeqcap}[][List of Equations]

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Generate list of equations using Thesis.cls thesis latex tem

Post by Stefan Kottwitz »

This document class is awful. If I read such

Code: Select all

\chapter*{\begin{center} \Large \textbf{LIST OF EQUATIONS}\end{center}}
argh... Headings have a style, one should never need to do font changes or centering within a heading text. Using all caps is typewriter-age like btw.

But I can understand if you don't want to change it any more now.

Regarding the problem: I cannot reproduce it from your descriptions. If you would post a Infominimal working example, no problem, I'm sure Johannes or I would fix the issue in 1 min after we see the code. But I cannot see the cause in small code snippets and instructions.

Stefan
LaTeX.org admin
lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am

Generate list of equations using Thesis.cls thesis latex tem

Post by lcy »

Hi,
Could you please advice how should i change the heading so that it is not awful? And also the equations that are commented as horrible.
I would want to change it if i have time, so that my scripts are tidier.

This is the MWE. I have disabled the scripts about "List of Equations" so that the list-of-equations (though it is 'wrongly' compiled as "LIST OF FIGURES") could appear. If they are not disabled, not list of equations is produced except the empty page of "LIST OF EQUATIONS".

Code: Select all

\documentclass[12pt, oneside]{Thesis}
\usepackage{caption}
\usepackage[retainorgcmds]{IEEEtrantools}
\DeclareCaptionType[fileext=loe,placement=h]{myeqcap}[][List of Equations]
\captionsetup[myeqcap]{labelformat=empty}
\begin{document}
%\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}
%}

\listofmyeqcap
\chapter{MY CHAPTER}
\begin{myeqcap}[!h]
  \caption[Overall Accuracy]{ }
  \begin{center}
	\begin{IEEEeqnarray}{lCl}
	  \text{Overall accuracy}, A & = & \frac{TP+TN}{TP+FN+TN+FP} \label{eq4.1}
	\end{IEEEeqnarray}
  \end{center}
\end{myeqcap}

\begin{myeqcap}[!h]
  \caption[True Positive Rate (Sensitivity)]{ }
  \begin{center}
	\begin{IEEEeqnarray}{lCl}
	  \text{True Positive Rate } (Sensitivity) & = & \frac{TP}{TP+FN} \label{eq4.2}
	\end{IEEEeqnarray}
  \end{center}
\end{myeqcap}

\begin{myeqcap}[!h]
  \caption[False Positive Rate]{ }
  \begin{center}
	\begin{IEEEeqnarray}{lCl}
 	  \text{False Positive Rate} & = & 1 - Specificity \nonumber\\ \label{eq4.3}
	  & = & 1 - \frac{TN}{TN+FP} 
	\end{IEEEeqnarray}
  \end{center}
\end{myeqcap}

\end{document}  
Thank you very much for your help..
Last edited by Stefan Kottwitz on Fri Aug 14, 2015 11:30 am, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Generate list of equations using Thesis.cls thesis latex tem

Post by Stefan Kottwitz »

With this code from your previous post I get:
listofequations.png
listofequations.png (11.89 KiB) Viewed 7014 times
The header is correct. You are making something different. Perhaps you changed the original class file Thesis.cls. A class file itself should never be changed. If you did, you may post it as attachment.

Please test your example before posting. The code above doesn't work without amsmath. If you did not test it, the code may not be relevant at all. As said, I don't get "List of figures". And in forum posts, please use the Code-Button for longer code, not the LaTeX-button (which is for inline code) and not the MWE button (which inserts a quick-link to MWE information).

Stefan
LaTeX.org admin
lcy
Posts: 11
Joined: Thu Aug 13, 2015 3:47 am

Re: Generate list of equations using Thesis.cls thesis latex

Post by lcy »

Hi,
I am sorry for not using the post button correctly. Thank you for pointing out.

I should have attached the class file that i have modified. The missing package is in the class file. When i tested in my comp it works. Sorry for inconvenience caused.

I attach my modified class file here.

Thank you for your help.
Attachments
Thesis.cls
my modified Thesis.cls file.
(19.4 KiB) Downloaded 409 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Generate list of equations using Thesis.cls thesis latex tem

Post by Stefan Kottwitz »

In that attached file I can see that it is cause by your change of Thesis.cls. Originally there is:

Code: Select all

    \chapter*{\listfigurename
      \@mkboth{\MakeUppercase\listfigurename}
              {\MakeUppercase\listfigurename}}
You changed it to:

Code: Select all

    \chapter*{\begin{center} \Large \textbf{LIST OF FIGURES} \end{center} 
    											%\listfigurename
      \@mkboth{\MakeUppercase\listfigurename}
              {\MakeUppercase\listfigurename}}
It is bad for about 5 reasons, but the main issue is that you should keep \listfigurename instead of typing LIST OF FIGURES. That's because the same mechanism is used for other "lists of". If you did it for having uppercase, you can change it to

Code: Select all

    \chapter*{\begin{center} \Large \textbf{\MakeUppercase\listfigurename} \end{center} 
    											%\listfigurename
      \@mkboth{\MakeUppercase\listfigurename}
              {\MakeUppercase\listfigurename}}
Then both list of figures and list of equations have their correct heading.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Generate list of equations using Thesis.cls thesis latex tem

Post by Johannes_B »

Unfortunately. Thesis.cls is a strange construct. It was originally created for students of one single university departement in the UK. It was set up, so that the user needed to change the class, just to get a titlepage. The names of lists were also hard-wired.

Thesis.cls has seen many users over time, it is the most succesful thesis-template. That means, there might be about a few thousand files with that name, with a fixed version and date, but differernt contents floating around.

I have been in contact with Vel for weeks now, and a more robust version is on its way.
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

Re: Generate list of equations using Thesis.cls thesis latex

Post by lcy »

Thank you very much Stefan for pointing out the serious mistake i have made. I have been stuck in this list-of-equations for weeks. I will look into this and make correction. Hopefully i can get my correct "LIST OF EQUATIONS".

Nevertheless, i don't quite understand why eventhough i have specified "LIST OF EQUATIONS" in the part that belongs to it in the class file and have changed the \listfigurename to \listequationname but the title of my list-of-equations is still "LIST OF FIGURES"...

Yes, Johannes, thank to this Thesis.cls template. It helps me, a newbie in latex, to complete this big project of compiling my thesis using latex although facing many obstacles along the way. Glad that it is going to have an improved version.
Post Reply