Question

How do I set the symbol for the angle or annuity operation in LaTeX? Specifically, this is the actuarial a angle s = (1-vs)/i.

Was it helpful?

Solution

For a very comprehensive list of LaTeX symbols, see The Comprehensive LaTeX Symbol List. Worth printing out and keeping under your pillow. Page 95 has some code that may do what you want.

OTHER TIPS

I've looked at Life's Contingency's Package, various Actuarial Outpost forum threads, and the Comprehensive Symbol List for LaTeX, and combined the best into the following macros:

\DeclareRobustCommand{\lcroof}[1]{
  \hbox{\vtop{\vbox{%
      \hrule\kern 1pt\hbox{%
        $\scriptstyle #1$%
        \kern 1pt}}\kern1pt}%
    \vrule\kern1pt}}
\DeclareRobustCommand{\angle}[1]{
  _{\lcroof{#1}}}

You can then use this macro for the problem's example by typing

 $a\angle{s}$

If you need a full set of actuarial symbols, you should use the Life's Contingency's Package lifecon. Using lifecon, you can set the above by typing

 $a_{\lcroof{s}}$

I've been doing some typesetting for a professor of mine and it turns out I needed some help producing the accumulated value of an annuity notation.

I asked this question on the tex stack exchange here

The result that Heiko Oberdiek produced was

\documentclass{article}
\usepackage{siunitx}

\makeatletter
\newcommand*{\NegationLike}[1]{%
  \mathop{%
    \mathpalette\@NegationLike{#1}%
  }%
  % A little space is added automatically,
  % if a math ord atom follows.
}
\newdimen\BarLineWidth
\newcommand*{\@NegationLike}[2]{%
  % #1: math style
  % #2: argument
  \vbox{%
    % The rule thickness of \overline or \underline
    % is available in the font dimen register 8
    % of the math family 3 of the current size.
    \BarLineWidth=%
      \the\fontdimen8%
      \ifx\displaystyle#1\textfont
      \else\ifx\textstyle#1\textfont
      \else\ifx\scriptstyle#1\scriptfont
      \else\scriptscriptfont
      \fi\fi\fi
      3\relax
    % The rule at the top
    \hrule height\BarLineWidth
    % Move the box with the vertical line
    % as height as the top of the upper line
    % to get a better corner.

Which produces: accumulated value of annuity

I had the same problem with the subscript and superscript, sooo I made a package to make my life easier and to other. It's a common problem with actuarial symbol, and it help align the sub and superscript. Plus, I’ve add some shortcut to save time. The GitHub : https://vigou3.github.io/actuarialsymbol/

And the CTAN : http://ctan.org/pkg/actuarialsymbol

All you need is the actuarialsymbol package.

At the beginning of the code you have to write

\usepackage{actuarialsymbol}

For the sub/superscript

\actsymb['subscripLeft']['superscriptL']{<middle>}{'subscriptR'}{'superscriptR'}

Example of output:

enter image description here

Example of shortcut for actuarial symbol : enter image description here

\annu
A good list of latex symbols can be found here http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top