Path: utzoo!utgpu!news-server.csri.toronto.edu!csri.toronto.edu!norvell Newsgroups: comp.text.tex From: norvell@csri.toronto.edu (Theo Norvell) Subject: Re: Equation numbering in Latex Message-ID: <1990Nov7.235751.5038@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto References: <1990Nov7.101013.29399@agate.berkeley.edu> Date: 8 Nov 90 04:57:51 GMT Lines: 31 In article <1990Nov7.101013.29399@agate.berkeley.edu> link@stew.ssl.berkeley.edu (Richard Link) writes: >I need to number equations in an appendix as (A1), (A2), etc., >where the () are right-justified in the usual manner. > %%%%%%%%%%%%%%%%%%% letteredEquations.sty %%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\AlphNum}[2]{\prtAlphNum{\@nameuse{c@#1}}#2} \newcommand{\prtAlphNum}[2]{(#2\number #1)} \newcounter{eqnSaver} \def\eqNum#1#2{\setcounter{eqnSaver}{\value{equation}}% \setcounter{equation}{#2}% \renewcommand{\theequation}{\AlphNum{equation}#1}} \def\eqNormal{\setcounter{equation}{\value{eqnSaver}}% \renewcommand{\theequation}{\arabic{equation}}} %%%%%%%%%%%%%%%%%%% End Hack %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Use as follows: \eqNum{A}{0}% Switch to (Ai) starting with 0 ... some equations ... \eqNorm % Back to normal Theo Norvell norvell@csri.utoronto.ca norvell@csri.toronto.edu