# [texhax] Annuity symbols?

Thomas, Larry LTHOMAS at spc.edu
Thu Aug 24 17:09:48 CEST 2006

I am trying to define a command to typeset annuity symbols. My attempt
for an ordinary annuity looks like this:

\newcommand{\ordan}[2]{\ensuremath{ a_{\overline{#1\,}\!| #2}}}

In the symbol, the right end of the overline on argument #1 should just
meet the top of the | before argument #2, no matter the height of the
arguments. In

\ordan{100i}{j}

the overbar and the | do not touch, but in

\ordan{\infty}{j}

they overlap. Is there a way to ensure that the overbar and the | meet
at a right angle (as in \urcorner)?

Thanks.
--Larry