LyX ⇒ List of Equations / Table of Equations
List of Equations / Table of Equations
So in our document we have the Table of Contents, List of Figures, List of Tables, nomenclature, etc.
How to we insert a List of Equations? All of our equations are numbered and labeled. I.e., next to each equation appears (eq:EquationName, #)
Thanks in advance,
Robinson
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
List of Equations / Table of Equations
List of Equations / Table of Equations
I can get the new List to appear, but to populate it with equations each equation which you want to appear in your list must include something like:
Code: Select all
\myequations{Equation name \ref{eq:1}}I was wondering if there was a more elegant way to include the tocloft package and have it recognize that each \begin{equation} should be listed in the TOC/List of Equations without that special \myequations following it.
Thanks,
Robinson
List of Equations / Table of Equations
Code: Select all
% redefine equation to automatically include our \myequations tag
\let\oldequation = \equation
\let\endoldequation = \endequation
\renewenvironment{equation}{
\begin{oldequation}
}{
\end{oldequation}
\myequations{\@currentlabelname}
}
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
% myequation takes in its display name
\newcommand{\myequations}[1]{
% display name is printed
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
- Each \equations displayed name in the List of Equations is not its own \label (eg. Torque) but instead is the name of the \subsection in which it appears (such that dozens of equations have the name "Brushless Motor Fundamentals", etc.
- Equations 2.1 - 2.9 display correctly in the List of Equations but after the equation number hits 2.10 the second digit overlaps with the display name.
Code: Select all
\begin{equation}
\tau=F\times r
\label{eq:Torque}
\end{equation}