Annuity or Angle Operation Symbol in LaTeX
Asked Answered
C

5

5

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.

Cracked answered 18/9, 2008 at 2:30 Comment(1)
I wish SO had latex rendering... :(Noted
F
4

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.

Fabiolafabiolas answered 18/9, 2008 at 2:40 Comment(0)
C
6

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}}$
Cracked answered 18/9, 2008 at 3:52 Comment(0)
F
4

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.

Fabiolafabiolas answered 18/9, 2008 at 2:40 Comment(0)
S
4

I had the same problem with the actuarial symbol and the subscript/superscript, sooo I made a package to make my life easier and help other.

Plus, I’ve add some shortcut to save time.

The project page and the CTAN.

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

enter image description here

Example of shortcut for actuarial symbol : enter image description here

Survivor answered 26/4, 2017 at 20:19 Comment(0)
L
2

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

Lianeliang answered 28/7, 2017 at 22:1 Comment(0)
A
0

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

Ardene answered 18/9, 2008 at 2:40 Comment(1)
That document shows you how to define the \annu macro, not that it is a common macroCracked

© 2022 - 2024 — McMap. All rights reserved.