Equation Numbering Macro

plain TeX


Renumbering equations in manuscripts sometimes becomes quite time-consuming. The following macro allows a definition for each numbered equation to be created on-the-spot. Thereafter the equations number themselves and are referred to by name later in the manuscript.


%=================================================================
% Automatically, keeps track of displayed equation numbers
% by using meaningful word as a control word
%
% Examples:  First occurrance of reference:
%                 \eqnam\word_you_pick\neweq
%            Subsequent occurrances:
%                 \word_you_pick
%-----------------------------------------------------------------
\newcount\eqnumber
\eqnumber=1

\def\neweq{{\rm{(\the\eqnumber)}}
\global\advance\eqnumber by 1}

\def\eqnam#1{\xdef#1{\the\eqnumber}}
%=================================================================

Proclaiming Macros / Reference Numbering Macro

MESmith Spinneret / TeXSpot / smith@math.fsu.edu


FSU Math Home Page


Last modified: 14 August 1995