I'm writing a PhD thesis that includes many similar symbols. Therefore, I'd like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the text). I'm aware you can list the page number, but I'd prefer the section number. Is there a way to do this?
Here's a minimal example what I have at the moment to define the section number, although this requires me to manually check each reference is correct:
\documentclass{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\printnomenclature
\chapter{Structural Analysis} \label{sec:Structural Analysis}
\section{Sectional Properties} \label{sec:Sectional Properties}
The cross-sectional area is defined as
\begin{equation} \label{eqn:Cross-sectional area}
A = \int_{S} \: dS
\end{equation}
\nomenclature{$A$}{cross-sectional area, m$^{2}$ (\ref{sec:Sectional Properties})}
\nomenclature{$S$}{arbitrary surface (\ref{sec:Sectional Properties})}
\end{document}
I tried using \thesection
as the reference but as expected this value was calculated during when creating the nomenclature, not at the position of \nomenclature
.
I imagine there should be a way to do this through programming but haven't been able to find a solution.