Skip to content

Commit

Permalink
List of equations
Browse files Browse the repository at this point in the history
Added ability for list of equations, still needs to be added to the
figures and tables to match requirements given.
  • Loading branch information
bwoosley committed Mar 3, 2017
1 parent 21f5770 commit a96dde5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

\listoffigtab

\listofmyequations

\chapter{Introduction}


Expand All @@ -50,6 +52,14 @@ \chapter{Introduction}
\caption{Second}
\end{figure}

\begin{equation}
1 + 1 = 2
\end{equation}
\label{eq:2.1}
\myequations{sum}



\chapter{Related Works}

\end{document}
13 changes: 12 additions & 1 deletion unophd.cls
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ Advisor: \@advisor
% CODE STARTS HERE
% Based on `tocloft` package
\RequirePackage[titles]{tocloft}
\newlistof{figtab}{loft}{List of Figures and Tables}
\newcommand{\listmultimedianame}{List of Figures and Tables}
\newlistof{figtab}{loft}{\listmultimedianame}
\makeatletter
% Change the file extension of both lot and lof
\def\ext@figure{loft}
Expand Down Expand Up @@ -219,3 +220,13 @@ Advisor: \@advisor
\setlength{\cfttabindent}{0pt}
\makeatother
% CODE ENDS HERE

\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\def\tohe@listeq{Eq.~}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{Eq.~\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{3.5em}% Width of equation number in List of Equations


% TODO: add equations to above list, see http://tex.stackexchange.com/questions/173102/table-of-equations-like-list-of-figures for idea on how to do it

0 comments on commit a96dde5

Please sign in to comment.