[Tex/LaTex] Typesetting annuity and life-insurance symbols in ConTeXt

contextcontext-mkivsymbols

How do I typeset annuity and life-insurance symbols, actuarial notation in ConTeXt.
I see there are packages available but not for ConTeXt.

enter image description here

Thanks

Best Answer

This is Plain TeX, but I guess it can do for ConTeXt. Experts can improve it.

\def\actuarial#1{%
  \vbox{
    \offinterlineskip
    \tabskip=0pt
    \mathsurround=0pt
    \halign{##&\vrule##\cr
      \noalign{\hrule}%
      &height 1pt\cr
      $\scriptstyle#1$&\cr
    }%
  }%
}

$a_{\actuarial{n}}$

\bye

enter image description here

Related Question