I would like to use renewcommand to show my symbols, which have been firstly used in one equation with the page information, e.g.,
Code: Select all
\renewcommand{\eqdeclaration}[1]{.~(First used in Equation #1}%
\renewcommand{\pagedeclaration}[1]{~on page #1)}
C Relevant temp. (First used in Equation 1.2 on page 18).
However, some symbols haven't been used in any equation. Then it shows:
a A constant. on page 118).
which is wrong becuase I need another definition for \pagedeclaration like:
Code: Select all
\renewcommand{\pagedeclaration}[1]{.~(First appears on page #1)}
a A constant. (First appears on page 118).
Because I didn't call these two functions explicitly, the 'nomencl' package uses them somehow. I don't know how to define two \pagedeclaration. Like this pseudo-code:
Code: Select all
if (\eqdeclaration defined)
{
\renewcommand{\pagedeclaration}[1]{~on page #1)}
}
else
{
\renewcommand{\pagedeclaration}[1]{.~(First appears on page #1)}
}
Any ideas? Thanks a lot!