LaTeX forum ⇒ 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

Postby lcy » Thu Aug 13, 2015 7:44 am

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:

User avatar
Johannes_B
Site Moderator
Posts: 3803
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Aug 13, 2015 10:39 am

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?

  1. List Of equations
  2.  
  3. 1 ...... 1
  4. 2 ...... 1
  5. 3 ...... 1
  6. 4 ...... 5
  7. 5 ...... 5
  8. 6 ...... 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

Postby lcy » Thu Aug 13, 2015 12:52 pm

Hi,
This is the class file that I use:
  1. The following is the content in my main tex file which I used to produce my thesis:
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. % Masters/Doctoral Thesis
  4. % LaTeX Template
  5. % Version 1.43 (17/5/14)
  6. %
  7. % This template has been downloaded from:
  8. % http://www.LaTeXTemplates.com
  9. %
  10. % Original authors:
  11. % Steven Gunn
  12. % http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/
  13. % and
  14. % Sunil Patel
  15. % http://www.sunilpatel.co.uk/thesis-template/
  16. %
  17. % License:
  18. % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
  19. %
  20. % Note:
  21. % Make sure to edit document variables in the Thesis.cls file
  22. %
  23. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  24.  
  25. %----------------------------------------------------------------------------
  26. % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
  27. %----------------------------------------------------------------------------
  28.  
  29. %To avoid clashes when load xcolor in table ---------------------------
  30. \PassOptionsToPackage{table}{xcolor}
  31. %-----------------------------------------------------------------------
  32.  
  33. \documentclass[12pt, oneside]{Thesis}
  34. % The default font size and one-sided printing (no margin offsets)
  35. %\usepackage{etex}
  36. \graphicspath{{Pictures/}}
  37. % Specifies the directory where pictures are stored
  38.  
  39.  
  40. \usepackage{apacite}
  41.  
  42. \hypersetup{urlcolor=black, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying
  43. \title{\ttitle} % Defines the thesis title - don't touch this
  44.  
  45. %The following change chapter number and chapter title ----------------
  46. %alignment to center
  47. \usepackage{sectsty}
  48. \chapterfont{\centering \Large}
  49. %\sectionfont{\sectionrule{0ex}{0pt}{-1ex}{0pt}}
  50. %----------------------------------------------------------------------
  51.  
  52. %The following change 1 to ONE for chapter but resume to alphabet -----
  53. %for appendix
  54. \usepackage{fmtcount,etoolbox}
  55. \makeatletter
  56. \patchcmd{\@makechapterhead}{\thechapter}{\headingthechapter}{}{}
  57. \newcommand{\headingthechapter}{\NUMBERstring{chapter}}
  58. \patchcmd{\chaptermark}{\thechapter}{\headerthechapter}{}{}
  59. \newcommand{\headerthechapter}{\NUMBERstring{chapter}}
  60. \appto{\appendix}{%
  61. \renewcommand{\headingthechapter}{\thechapter}%
  62. \renewcommand{\headerthechapter}{\thechapter}%
  63. % \renewcommand{\thechapter}{APPENDIX \Alph{chapter}}
  64. }
  65. \makeatother
  66.  
  67. %The following load package which enable use of longtable--------------
  68. %that spread across one page
  69. \usepackage{array,multirow, longtable}
  70. \newcolumntype{F}{>{\raggedright\arraybackslash}p{1.5cm}}
  71. %\newcolumntype{S}{>{\raggedright\arraybackslash}p{1.8cm}}
  72. %\newcolumntype{T}{>{\raggedright\arraybackslash}p{1.8cm}}
  73. %\newcolumntype{O}{>{\raggedright\arraybackslash}p{5.5cm}}
  74. %\newcolumntype{L}{>{\raggedright\arraybackslash}p{3.0cm}}
  75. %{|Lp{1.5cm}|p{1.8cm}|p{1.8cm}|p{5.5cm}|p{3.0cm}|}
  76. %----------------------------------------------------------------------
  77.  
  78. %The following load package which allow shading of table's --
  79. %row or cell
  80. \usepackage[table]{xcolor} % loads also »colortbl«
  81. %------------------------------------------------------------
  82.  
  83. %The following allow draw partial horizontal line of table so that ----
  84. % it will be covered by the color assigned to the row/column/cell
  85. \usepackage{hhline}
  86. % -----------------------------------------------------------
  87.  
  88. \usepackage{array}
  89. \usepackage{ragged2e}
  90. \newcolumntype{P}[1]{>{\RaggedRight}p{#1}}
  91. \newcolumntype{C}[1]{>{\centering}p{#1}}
  92.  
  93. %The following allow merging cell of multi rows -------------
  94. \usepackage{multirow}
  95. %------------------------------------------------------------
  96.  
  97. %The following allow display subfigures side by side --------
  98. \usepackage{caption}
  99. \usepackage{subcaption}
  100. %------------------------------------------------------------
  101.  
  102. %The following allow display of equations with better presentation -----
  103. \usepackage[retainorgcmds]{IEEEtrantools}
  104. %------------------------------------------------------------
  105.  
  106. %The following allow the use of enumerate list --------------
  107. %\usepackage{enumerate}
  108. \usepackage{enumitem}
  109. % -----------------------------------------------------------
  110.  
  111. %The following allow the use of afterpage -------------------
  112. \usepackage{afterpage}
  113. % -----------------------------------------------------------
  114.  
  115. %The following is for appendix usepackage to include appendix title
  116. \usepackage[titletoc,title]{appendix}
  117. %------------------------------------------------------------
  118.  
  119. %the following reduce the space between section heading and text -------
  120. %\usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{0pt}{0pt}
  121. %------------------------------------------------------------
  122.  
  123. \begin{document}
  124.  
  125. \frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
  126.  
  127. \setstretch{1.5} % Line spacing of 1.5
  128.  
  129. \fancyhead{} % Clears all page headers and footers
  130. \rhead{\thepage} % Sets the right side header to show the page number
  131. %{\thepage}
  132. \lhead{} % Clears the left side page header
  133.  
  134. \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
  135.  
  136. % PDF meta-data
  137. \hypersetup{pdftitle={\ttitle}}
  138. \hypersetup{pdfsubject=\subjectname}
  139. \hypersetup{pdfauthor=\authornames}
  140. \hypersetup{pdfkeywords=\keywordnames}
  141.  
  142. %------------------------------------------------------------
  143. % TITLE PAGE
  144. %------------------------------------------------------------
  145.  
  146. \begin{titlepage}
  147. \begin{center}
  148. \null \vfill
  149. {\Large \bfseries \ttitle}%\\[2cm] % Thesis title
  150. \vfill \vfill
  151. {\authornames} % Author name - remove the \href bracket to remove the link
  152.  
  153. \vfill\vfill
  154.  
  155. \large {A thesis submitted \\ In fulfilment of the requirements for the degree of \\ \degreename (\subjectname)}\\[0.3cm] % University requirement text
  156. \vfill \vfill \vfill
  157. {\facname} % Faculty name - remove the \href bracket to remove the link
  158.  
  159. {\UNIVNAME} %\\[0.5cm] % University name - remove the \href bracket to remove the link
  160.  
  161. \vfill
  162.  
  163. {\large{2015}}
  164.  
  165. \vfill
  166. \end{center}
  167.  
  168. \end{titlepage}
  169.  
  170. %------------------------------------------------------------
  171. % ACKNOWLEDGEMENTS
  172. %------------------------------------------------------------
  173.  
  174. \setstretch{1.5} % Reset the line-spacing to 1.5 for body text (if it has changed)
  175.  
  176. \acknowledgements{\addtocontents{toc}{\vspace{0em}} % Add a gap in the Contents, for aesthetics
  177. \bigskip
  178.  
  179. {\noindent\ignorespaces}%
  180. This is my acknowledgement.
  181. }
  182. \clearpage % Start a new page
  183. %------------------------------------------------------------
  184. % DEDICATION
  185. %------------------------------------------------------------
  186. \setstretch{1.5}
  187.  
  188. %\dedication{\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
  189. \dedication{\addtocontents{toc}{\vspace{0em}}
  190. \bigskip
  191.  
  192. \begin{center}
  193. This is my dedication.
  194. \end{center}
  195.  
  196. }
  197. \clearpage % Start a new page
  198.  
  199. %------------------------------------------------------------
  200. % ABSTRACT PAGE
  201. %------------------------------------------------------------
  202. \addtotoc{Abstract} % Add the "Abstract" page entry to the Contents
  203.  
  204. \abstract{\addtocontents{toc}{\vspace{0em}}
  205.  
  206. {\noindent\ignorespaces}%
  207. This is my abstract.
  208. }
  209.  
  210. \clearpage % Start a new page
  211.  
  212. %------------------------------------------------------------
  213. %LIST OF CONTENTS/FIGURES/TABLES/EQUATIONS/DEFINITIONS PAGES
  214. %------------------------------------------------------------
  215.  
  216. \pagestyle{plain}
  217.  
  218. \tableofcontents % Write out the Table of Contents
  219.  
  220. \listoffigures % Write out the List of Figures
  221.  
  222. \listoftables % Write out the List of Tables
  223.  
  224. \makeatletter
  225. \listofequations %Write out the List of Equations
  226. \makeatother
  227.  
  228. \listofdefinitions %Write out the List of Definitions
  229.  
  230. %------------------------------------------------------------
  231. % ABBREVIATIONS
  232. %------------------------------------------------------------
  233.  
  234. \clearpage % Start a new page
  235.  
  236. \setstretch{1.5}
  237.  
  238. \listofsymbols{ll}
  239. {
  240. A & Overall Accuracy \\
  241. }
  242.  
  243. %------------------------------------------------------------
  244. % LIST OF PUBLICATIONS AND PRESENTATIONS
  245. %------------------------------------------------------------
  246.  
  247. \clearpage % Start a new page
  248.  
  249. %\setstretch{1.5} % Set the line spacing to 1.5, this makes the following tables easier to read
  250. \setstretch{1}
  251. \listofpublications{lP{13cm}}
  252. {
  253. \multicolumn{2}{l}{\textbf{Publications}} \\ [5pt]
  254.  
  255. 1 & lkjhlkjhl \tabularnewline [5pt]
  256. }
  257.  
  258. \setstretch{1.5}
  259.  
  260. %------------------------------------------------------------
  261. % THESIS CONTENT - CHAPTERS
  262. %------------------------------------------------------------
  263.  
  264. \mainmatter
  265. \input{Chapters/Chapter1}
  266. \input{Chapters/Chapter2}
  267. \input{Chapters/Chapter3}
  268. \input{Chapters/Chapter4}
  269. \input{Chapters/Chapter5}
  270. \input{Chapters/Chapter6}
  271. \input{Chapters/Chapter7}
  272.  
  273. \addtocontents{toc}{\vspace{2em}}
  274.  
  275. \backmatter
  276.  
  277. %------------------------------------------------------------
  278. % REFERENCES
  279. %------------------------------------------------------------
  280. %The following change references title to uppercase ---------
  281. \renewcommand{\bibname}{REFERENCES} %\bibname is for book and report class
  282. %\renewcommand{\refname}{REFERENCES} %\refname is for article class
  283. %------------------------------------------------------------
  284.  
  285. \label{References}
  286.  
  287. \bibliographystyle{apacite}
  288.  
  289. \bibliography{lcy_reference}
  290.  
  291. % lcy move appendices section after references
  292. %------------------------------------------------------------
  293. % THESIS CONTENT - APPENDICES
  294. %------------------------------------------------------------
  295. \mainmatter % added in by lcy
  296. \addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
  297. \begin{appendices}
  298.  
  299. \appendix
  300.  
  301. \input{Appendices/AppendixA}
  302. \input{Appendices/AppendixB}
  303. \end{appendices}
  304.  
  305. \end{document}


The following is an example of an equation environment in my chapter 4:
  1. \begin{center}
  2. \begin{IEEEeqnarray}{lCl}
  3. \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}
  4. \text{False Positive Rate} & = & 1 - Specificity \nonumber\\ \label{4.3}
  5. & = & 1 - \frac{TN}{TN+FP}
  6. \end{IEEEeqnarray}
  7. \end{center}


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

Thank you for your reply.
img_loe.JPG
Image of List of Equation
img_loe.JPG (21.4 KiB) Viewed 3982 times

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

Postby lcy » Thu Aug 13, 2015 12:54 pm

Hi,
Sorry, typing mistake. The latex scripts i sent is the one in my main tex file and NOT class file. Sorry..
Thank you.

User avatar
Johannes_B
Site Moderator
Posts: 3803
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Aug 13, 2015 1:43 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

Postby lcy » Thu Aug 13, 2015 2:57 pm

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.
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % Thesis LaTeX Template - THESIS CLASS FILE
  3. %
  4. % This template has been downloaded from:
  5. % http://www.latextemplates.com
  6. %
  7. % This class file defines the structure and design of the template.
  8. %
  9. % There is one part of this file that needs to be filled out - the variables
  10. % dictating the document particulars such as the author name, university
  11. % name, etc. You will find these in the commented "DOCUMENT VARIABLES"
  12. % section below.
  13. %
  14. % The other two easily-editable sections are the margin sizes and abstract.
  15. % These have both been commented for easy editing. Advanced LaTeX
  16. % users will have no trouble editing the rest of the document to their liking.
  17. %
  18. % Original header:
  19. %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn
  20. %% generated with the docstrip utility.
  21. %%
  22. %% Created by Steve R. Gunn, modified by Sunil Patel: http://www.sunilpatel.co.uk
  23. %% Further modified by http://www.latextemplates.com
  24. %
  25. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  26.  
  27. \NeedsTeXFormat{LaTeX2e}[1996/12/01]
  28. \ProvidesClass{Thesis}
  29. [2007/22/02 v1.0
  30. LaTeX document class]
  31. \def\baseclass{book}
  32. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
  33. \def\@checkoptions#1#2{
  34. \edef\@curroptions{\@ptionlist{\@currname.\@currext}}
  35. \@tempswafalse
  36. \@tfor\@this:=#2\do{
  37. \@expandtwoargs\in@{,\@this,}{,\@curroptions,}
  38. \ifin@ \@tempswatrue \@break@tfor \fi}
  39. \let\@this\@empty
  40. \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
  41. }
  42. \@checkoptions{11pt}{{10pt}{11pt}{12pt}}
  43. \PassOptionsToClass{a4paper}{\baseclass}
  44. \ProcessOptions\relax
  45. \LoadClass{\baseclass}
  46. \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
  47.  
  48. \newcommand\Declaration[1]{
  49. \btypeout{Declaration of Authorship}
  50. \addtotoc{Declaration of Authorship}
  51. \thispagestyle{plain}
  52. \null\vfil
  53. %\vskip 60\p@
  54. \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}
  55. %\vskip 60\p@
  56. {\normalsize #1}
  57. \vfil\vfil\null
  58. %\cleardoublepage
  59. }
  60.  
  61. \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
  62. \def\today{\ifcase\month\or
  63. January\or February\or March\or April\or May\or June\or
  64. July\or August\or September\or October\or November\or December\fi
  65. \space \number\year}
  66. \usepackage{setspace}
  67. \onehalfspacing
  68. \setlength{\parindent}{0.3in}
  69. \usepackage{vmargin}
  70.  
  71. \RequirePackage[utf8]{inputenc} % Allows the use of international characters (e.g. Umlauts)
  72. \usepackage{etex}
  73. %----------------------------------------------------------------------------
  74. % MARGINS
  75. %----------------------------------------------------------------------------
  76. \setmarginsrb { 1.3in} % left margin
  77. { 0.4in} % top margin
  78. { 0.8in} % right margin
  79. { 0.6in} % bottom margin
  80. { 20pt} % head height
  81. {0.25in} % head sep
  82. { 9pt} % foot height
  83. { 0.3in} % foot sep
  84. %----------------------------------------------------------------------------------------
  85. \raggedbottom
  86. \setlength{\topskip}{1\topskip \@plus 5\p@}
  87. \doublehyphendemerits=10000 % No consecutive line hyphens.
  88. \brokenpenalty=10000 % No broken words across columns/pages.
  89. \widowpenalty=9999 % Almost no widows at bottom of page.
  90. \clubpenalty=9999 % Almost no orphans at top of page.
  91. \interfootnotelinepenalty=9999 % Almost never break footnotes.
  92. \usepackage{fancyhdr}
  93. \pagestyle{plain}
  94. \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
  95. \renewcommand{\sectionmark}[1]{}
  96. \renewcommand{\subsectionmark}[1]{}
  97. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  98. \hbox{}
  99. \thispagestyle{empty}
  100. \newpage
  101. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  102. \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
  103. \theoremstyle{plain}
  104. \newtheorem{example}{Example}[chapter]
  105. \newtheorem{theorem}{Theorem}[chapter]
  106. \newtheorem{corollary}[theorem]{Corollary}
  107. \newtheorem{lemma}[theorem]{Lemma}
  108. \newtheorem{proposition}[theorem]{Proposition}
  109. \newtheorem{axiom}[theorem]{Axiom}
  110. \theoremstyle{definition}
  111. \newtheorem{definition}[theorem]{Definition}
  112. \theoremstyle{remark}
  113. \newtheorem{remark}[theorem]{Remark}
  114. %\usepackage[centerlast,small,sc]{caption}%this is the original script%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  115. \usepackage[centerlast,small]{caption} %'sc' is taken away by lcy so that caption is nto in uppercase%%
  116. \setlength{\captionmargin}{20pt}
  117. \newcommand{\fref}[1]{Figure~\ref{#1}}
  118. \newcommand{\tref}[1]{Table~\ref{#1}}
  119. \newcommand{\eref}[1]{Equation~\ref{#1}}
  120. \newcommand{\dref}[1]{Definition~\ref{#1}}
  121. \newcommand{\cref}[1]{Chapter~\ref{#1}}
  122. \newcommand{\sref}[1]{Section~\ref{#1}}
  123. \newcommand{\aref}[1]{Appendix~\ref{#1}}
  124. \renewcommand{\topfraction}{0.85}
  125. \renewcommand{\bottomfraction}{.85}
  126. \renewcommand{\textfraction}{0.1}
  127. \renewcommand{\dbltopfraction}{.85}
  128. \renewcommand{\floatpagefraction}{0.75}
  129. \renewcommand{\dblfloatpagefraction}{.75}
  130. \renewcommand{\chaptername}{CHAPTER} %add in by lcy to change the word 'Chapter' to 'CHAPTER'
  131. \renewcommand{\appendixname}{APPENDIX} %add in by lcy to change the work 'Appendix' to 'APPENDIX'
  132. \setcounter{topnumber}{9}
  133. \setcounter{bottomnumber}{9}
  134. \setcounter{totalnumber}{20}
  135. \setcounter{dbltopnumber}{9}
  136. \usepackage{graphicx}
  137. \usepackage{epstopdf}
  138. \usepackage{booktabs}
  139. \usepackage{rotating}
  140. \usepackage{listings}
  141. \usepackage{lstpatch}
  142. \lstset{captionpos=b,
  143. frame=tb,
  144. basicstyle=\scriptsize\ttfamily,
  145. showstringspaces=false,
  146. keepspaces=true}
  147. \lstdefinestyle{matlab} {
  148. language=Matlab,
  149. keywordstyle=\color{blue},
  150. commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
  151. stringstyle=\color[rgb]{0.7,0,0} }
  152. \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
  153. bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
  154. colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},
  155. pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
  156. \pdfstringdefDisableCommands{
  157. \let\\\space
  158. }
  159. \newcommand*{\supervisor}[1]{\def\supname{#1}}
  160. \newcommand*{\thesistitle}[1]{\def\ttitle{#1}}
  161. \newcommand*{\examiner}[1]{\def\examname{#1}}
  162. \newcommand*{\degree}[1]{\def\degreename{#1}}
  163. \newcommand*{\authors}[1]{\def\authornames{#1}}
  164. \newcommand*{\addresses}[1]{\def\addressnames{#1}}
  165. \newcommand*{\university}[1]{\def\univname{#1}}
  166. \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
  167. \newcommand*{\department}[1]{\def\deptname{#1}}
  168. \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
  169. \newcommand*{\group}[1]{\def\groupname{#1}}
  170. \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
  171. \newcommand*{\faculty}[1]{\def\facname{#1}}
  172. \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
  173. \newcommand*{\subject}[1]{\def\subjectname{#1}}
  174. \newcommand*{\keywords}[1]{\def\keywordnames{#1}}
  175.  
  176. %----------------------------------------------------------------------------
  177. % DOCUMENT VARIABLES
  178. % Fill in the lines below to update the thesis template
  179. % If you wish to cite each of the variables defined below, look at the
  180. % section above for the citation command e.g. \examiner{} below is
  181. % defined as \examname above so you cite it as \examname
  182. %----------------------------------------------------------------------------
  183.  
  184. \thesistitle{asdfsa} % Your thesis title - this is used in the title and abstract
  185. %-------------------------------------------------
  186. \supervisor{dfgh} % You supervisor's name - this is used in the title page
  187. %-------------------------------------------------
  188. \examiner{} % Your examiner's name - this is not currently used anywhere in the template, cite it with \examname if you want it
  189. %-------------------------------------------------
  190. \degree{Doctor of Philosophy} % Your degree name - this is currently used in the title page and abstract
  191. %-------------------------------------------------
  192. \authors{dfgh} % Your name - this is used in the title page and abstract
  193. %-------------------------------------------------
  194. \addresses{} % Your address - this is not currently used anywhere in the template, cite it with \addressnames if you want it
  195. %-------------------------------------------------
  196. \subject{sdfg} % Your subject area - this is not currently used anywhere in the template, cite it with \subjectname if you want it
  197. %-------------------------------------------------
  198. \keywords{} % Keywords for your thesis - this is not currently used anywhere in the template, cite it with \keywordnames if you want it
  199. %-------------------------------------------------
  200. \university{\texorpdfstring{\href{http://www.university.com} % Your university's URL
  201. {hjgh}} % Your university's name - this is currently used in the title page
  202. {fghgfh}}
  203. %-------------------------------------------------
  204. \UNIVERSITY{\texorpdfstring{\href{University Web Site URL Here (include http://)} % Your university's URL
  205. {sfgsd}} % Your university's name in capitals - this is currently used in the abstract page
  206. {sdfgdsfg}}
  207. %-------------------------------------------------
  208. \department{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL
  209. {Department or School Name}} % Your department's name - used in the title page and abstract
  210. {Department or School Name}}
  211. %-------------------------------------------------
  212. \DEPARTMENT{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL
  213. {hjghjgh}} % Your department's name in capitals - this is not currently used anywhere in the template, cite it with \DEPTNAME if you want it
  214. {ghjghj}}
  215. %-------------------------------------------------
  216. \group{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
  217. {Research Group Name}} % Your research group's name - this is currently used in the title page
  218. {Research Group Name}}
  219. %-------------------------------------------------
  220. \GROUP{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
  221. {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
  222. {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
  223. %-------------------------------------------------
  224. \faculty{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
  225. {rtrtyrty}} % Your faculty's name - this is currently used in the abstract page
  226. {rtyrtyr}}
  227. %-------------------------------------------------
  228. \FACULTY{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
  229. {rtyrty}} % Your faculty's name in capitals - this is not currently used anywhere in the template, cite it with \FACNAME if you want it
  230. {rtyrty}}
  231. %----------------------------------------------------------------------------
  232.  
  233. % The default title page, this is not used in this http://www.latextemplates.com version
  234. \renewcommand\maketitle{
  235. \btypeout{Title Page}
  236. \hypersetup{pdftitle={\@title}}
  237. \hypersetup{pdfsubject=\subjectname}
  238. \hypersetup{pdfauthor=\authornames}
  239. \hypersetup{pdfkeywords=\keywordnames}
  240. \thispagestyle{empty}
  241. \begin{titlepage}
  242. \let\footnotesize\small
  243. \let\footnoterule\relax
  244. \let \footnote \thanks
  245. \setcounter{footnote}{0}
  246. \null\vfil
  247. \vskip 60\p@
  248. \begin{center}
  249. \setlength{\parskip}{0pt}
  250. {\large\textbf{\UNIVNAME}\par}
  251. \vfill
  252. {\huge \bf \@title \par}
  253. \vfill
  254. {\LARGE by \par}
  255. \smallskip
  256. {\LARGE \authornames \par}
  257. \vfill
  258. {\large A thesis submitted in partial fulfillment for the \par}
  259. {\large degree of \degreename \par}
  260. \bigskip
  261. \bigskip
  262. {\large in the \par}
  263. {\large \facname \par}
  264. {\large \deptname \par}
  265. \bigskip
  266. \bigskip
  267. \bigskip
  268. {\Large \@date \par}
  269. \bigskip
  270. \end{center}
  271. \par
  272. \@thanks
  273. \vfil\null
  274. \end{titlepage}
  275. \setcounter{footnote}{0}%
  276. \global\let\thanks\relax
  277. \global\let\maketitle\relax
  278. \global\let\@thanks\@empty
  279. \global\let\@author\@empty
  280. \global\let\@date\@empty
  281. \global\let\@title\@empty
  282. \global\let\title\relax
  283. \global\let\author\relax
  284. \global\let\date\relax
  285. \global\let\and\relax
  286. \cleardoublepage
  287. }
  288. %----------------------------------------------------------------------------
  289. % ABSTRACT PAGE DESIGN
  290. %----------------------------------------------------------------------------
  291. \newenvironment{abstract}
  292. {
  293. \begin{center}
  294. {\large {\textbf{ABSTRACT}} \par}
  295. \bigskip
  296. \end{center}
  297. }
  298. %----------------------------------------------------------------------------
  299. {
  300. \vfil\vfil\vfil\null
  301. \cleardoublepage
  302. }
  303. \addtocounter{secnumdepth}{1}
  304. \setcounter{tocdepth}{6}
  305. \newcounter{dummy}
  306. \newcommand\addtotoc[1]{
  307. \refstepcounter{dummy}
  308. \addcontentsline{toc}{chapter}{#1}}
  309.  
  310. \renewcommand\tableofcontents{
  311. \btypeout{Table of Contents}
  312. \addtotoc{Table of Contents}
  313. \begin{spacing}{1}{
  314. \setlength{\parskip}{1pt}
  315. \if@twocolumn
  316. \@restonecoltrue\onecolumn
  317. \else
  318. \@restonecolfalse
  319. \fi
  320. \chapter*{\begin{center} \Large \textbf{TABLE OF CONTENTS}\end{center}%{\contentsname}
  321. \@mkboth{
  322. \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
  323. \@starttoc{toc}
  324. \if@restonecol\twocolumn\fi
  325. \cleardoublepage
  326. }\end{spacing}
  327. }
  328.  
  329. \renewcommand\listoffigures{
  330. \btypeout{List of Figures}
  331. \addtotoc{List of Figures}
  332. \begin{spacing}{1}{
  333. \setlength{\parskip}{1pt}
  334. \if@twocolumn
  335. \@restonecoltrue\onecolumn
  336. \else
  337. \@restonecolfalse
  338. \fi
  339. \chapter*{\begin{center} \Large \textbf{LIST OF FIGURES} \end{center}
  340. %\listfigurename
  341. \@mkboth{\MakeUppercase\listfigurename}
  342. {\MakeUppercase\listfigurename}}
  343. \@starttoc{lof}
  344. \if@restonecol\twocolumn\fi
  345. \cleardoublepage
  346. }\end{spacing}
  347. }
  348.  
  349. \renewcommand\listoftables{
  350. \btypeout{List of Tables}
  351. \addtotoc{List of Tables}
  352. \begin{spacing}{1}{
  353. \setlength{\parskip}{1pt}
  354. \if@twocolumn
  355. \@restonecoltrue\onecolumn
  356. \else
  357. \@restonecolfalse
  358. \fi
  359. \chapter*{\begin{center} \Large \textbf{LIST OF TABLES} \end{center} %\listtablename
  360. \@mkboth{
  361. \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
  362. \@starttoc{lot}
  363. \if@restonecol\twocolumn\fi
  364. \cleardoublepage
  365. }\end{spacing}
  366. }
  367.  
  368. \newcommand\listofequations{
  369. \btypeout{List of Equations}
  370. \addtotoc{List of Equations}
  371. \begin{spacing}{1}{
  372. \setlength{\parskip}{1pt}
  373. \if@twocolumn
  374. \@restonecoltrue\onecolumn
  375. \else
  376. \@restonecolfalse
  377. \fi
  378. \chapter*{\begin{center} \Large \textbf{LIST OF EQUATIONS}\end{center} %\listtablename
  379. \@mkboth{
  380. \MakeUppercase\listequationname}{\MakeUppercase\listequationname}}
  381. \@starttoc{loe}
  382. \if@restonecol\twocolumn\fi
  383. \cleardoublepage
  384. }\end{spacing}
  385. }
  386.  
  387. \newcommand\listofdefinitions{
  388. \btypeout{List of Definitions}
  389. \addtotoc{List of Definitions}
  390. \begin{spacing}{1}{
  391. \setlength{\parskip}{1pt}
  392. \if@twocolumn
  393. \@restonecoltrue\onecolumn
  394. \else
  395. \@restonecolfalse
  396. \fi
  397. \chapter*{\begin{center} \Large \textbf{LIST OF DEFINITIONS}\end{center} %\listdefinitionname
  398. \@mkboth{
  399. \MakeUppercase\listdefinitionname}{\MakeUppercase\listdefinitionname}}
  400. \@starttoc{lot}
  401. \if@restonecol\twocolumn\fi
  402. \cleardoublepage
  403. }\end{spacing}
  404. }
  405.  
  406. \newcommand\listsymbolname{List of Abbreviations}
  407. \usepackage{longtable}
  408. \newcommand\listofsymbols[2]{
  409. \btypeout{\listsymbolname}
  410. \addtotoc{\listsymbolname}
  411. \chapter*{\begin{center} \Large \textbf{LIST OF ABBREVIATIONS}\end{center} %\listsymbolname
  412. \@mkboth{
  413. \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
  414. \begin{longtable}[c]{#1}#2\end{longtable}\par
  415. \cleardoublepage
  416. }
  417.  
  418. \newcommand\listpublications{List of Publications}
  419. \usepackage{longtable}
  420. \newcommand\listofpublications[2]{
  421. \btypeout{\listpublications}
  422. \addtotoc{\listpublications}
  423. \chapter*{\begin{center} \Large \textbf{LIST OF PUBLICATIONS AND PRESENTATIONS} \end{center} %\listpublications and presentations
  424. \@mkboth{
  425. \MakeUppercase\listpublications}{\MakeUppercase\listpublications}}
  426. \begin{longtable}[c]{#1}#2\end{longtable}\par
  427. \cleardoublepage
  428. }
  429.  
  430. \newcommand\acknowledgements[1]{
  431. \btypeout{Acknowledgements}
  432. \addtotoc{Acknowledgements}
  433. \thispagestyle{plain}
  434. \begin{center}{\Large {\textbf{ACKNOWLEDGEMENTS}} \par}\end{center}
  435. {\normalsize #1}
  436. \vfil\vfil\null
  437. }
  438.  
  439. \newcommand\dedication[1]{
  440. \btypeout{Dedication}
  441. \addtotoc{Dedication}
  442. \thispagestyle{plain}
  443. \begin{center}{\Large {\textbf{DEDICATION}} \par}\end{center}
  444. {\normalsize #1}
  445. \vfil\vfil\null
  446. }
  447.  
  448. %The following added in by lcy so that numbering continues from--------------
  449. % mainmatter after backmatter
  450. %\makeatletter
  451. \def\mainmatter{%
  452. \cleardoublepage
  453. \@mainmattertrue
  454. \pagenumbering{arabic}
  455. \def\mainmatter{\cleardoublepage\@mainmattertrue}
  456. }
  457. %\makeatother
  458. %----------------------------------------------------------------------------
  459.  
  460. \renewcommand\backmatter{
  461. \if@openright
  462. \cleardoublepage
  463. \else
  464. \clearpage
  465. \fi
  466. % \addtotoc{\bibname} %}References
  467. \btypeout{\bibname} %}References
  468. \@mainmatterfalse}
  469. \endinput


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

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Aug 13, 2015 7: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
Site admin

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

Postby lcy » Fri Aug 14, 2015 4:25 am

Hi, Thank you for your reply.
I will look into this method.
Thank you..

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

Postby lcy » Fri Aug 14, 2015 5:24 am

img_eq4_1.JPG
capture of equation produced
img_eq4_1.JPG (20.55 KiB) Viewed 3929 times
hi,
With the following changes to:

  1. My class file:
    1. \newcommand\listofmyeqcap{
    2. \btypeout{List of Equations}
    3. \addtotoc{List of Equations}
    4. \begin{spacing}{1}{
    5. \setlength{\parskip}{1pt}
    6. \if@twocolumn
    7. \@restonecoltrue\onecolumn
    8. \else
    9. \@restonecolfalse
    10. \fi
    11. \chapter*{\begin{center} \Large \textbf{LIST OF EQUATIONS}\end{center}
    12. \@mkboth{
    13. \MakeUppercase\myeqcap}{\MakeUppercase\myeqcap}}
    14. \@starttoc{loe}
    15. \if@restonecol\twocolumn\fi
    16. \cleardoublepage
    17. }\end{spacing}
    18. }

  2. My main tex file
    1. \documentclass[12pt, oneside]{Thesis}
    2. \usepackage{caption}
    3. \usepackage{subcaption}
    4. \DeclareCaptionType{myeqcap}[][List of Equations]
    5. \captionsetup[myeqcap]{labelformat=empty}
    6. \begin{document}
    7. \listofmyeqcap
    8. \input{Chapters/Chapter4}
    9. \end{document}

  3. The example of equation in my chapter 4
    1. \begin{myeqcap}[!h]
    2. \caption{Overall Accuracy}
    3. \begin{center}
    4. \begin{IEEEeqnarray}{lCl}
    5. \text{Overall accuracy}, A & = & \frac{TP+TN}{TP+FN+TN+FP} \\ \label{4.1}
    6. \text{True Positive Rate } (Sensitivity) & = & \frac{TP}{TP+FN} \\ \label{4.2}
    7. \text{False Positive Rate} & = & 1 - Specificity \nonumber\\ \label{4.3}
    8. & = & 1 - \frac{TN}{TN+FP}
    9. \end{IEEEeqnarray}
    10. \end{center}
    11. \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

Postby lcy » Fri Aug 14, 2015 7:03 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
img_output.JPG (13.43 KiB) Viewed 3924 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"? :o

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


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 4 guests