Reference Numbering Macro

plain TeX


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


%=================================================================
% Automatically, keeps track of reference numbers
% by using author name (or other meaningful word)
% as a control word
%
% Examples:  First occurrance of reference:
%                 \refnam\author_name_you_pick\newref
%            Subsequent occurrances:
%                 \author_name_you_pick
%-----------------------------------------------------------------
\newcount\refnumber
\refnumber=1

\def\newref{{\rm{\the\refnumber}}
\global\advance\refnumber by 1}

\def\refnam#1{\xdef#1{\the\refnumber}}
%=================================================================

Equation Numbering Macros

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


FSU Math Home Page


Last modified: 14 August 1995