6

How do you write this in LaTeX:

enter image description here

8

In the thread Actuarial & Annuity notation in LaTeX from text.comp.tex, Donald Arseneau provided the following \annu command:

\def\annu#1{_{% 
  \vbox{\hrule height .2pt 
    \kern 1pt 
    \hbox{$\scriptstyle {#1}\kern 1pt$}% 
  }\kern-.05pt 
  \vrule width .2pt 
}}

with the additional comment:

Tweak ".2pt" and "1pt" for appearance.

  • But you cant do it on this site? – annuitt Aug 6 '11 at 6:56
  • 5
    @ annuitt Can't do what on this site? You now have two solutions to your problem on this site. (Or do you mean why LaTeX markup isn't converted on this site? If that's your question, it's because this site is mainly about the markup language (TeX/LaTeX) and having automatic conversion would defeat the purpose.) See this question Can we turn off math-tex for reasons. – Alan Munn Aug 6 '11 at 16:47
7

I suggest to google for "actuarial" symbols and, of course, "LaTeX". You will find lots of examples, e.g. Annuity or Angle Operation Symbol in LaTeX.

I solved that problem some years ago, if I only remembered the context. . .


EDIT

Some years later: There is a package for the actuarial angle, now in version 2: https://ctan.org/pkg/actuarialangle

  • +1 for the lifecon package mentioned there. – mbork Aug 5 '11 at 23:15
  • @Keks: But how do you do it on sites like this? – annuitt Aug 6 '11 at 6:56
  • 2
    How do you do what? On which sites? Sorry, I do not understand the question. – Keks Dose Aug 6 '11 at 15:06
  • @annuitt Ah, now I understand, you'd like to write it as html here! Well, sorry, no idea! – Keks Dose Apr 13 '17 at 14:30
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 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

  • 4
    Welcome to TeX.SE, and thanks for providing this announcement about the newly available package. It would he helpful is you also posted a compilable example -- borrowing code from some of the earlier answers would be entirely acceptable -- that shows the output produced by your package. – Mico Apr 26 '17 at 20:33
3

You need the actuarialange package.

At the beginning of the code you have to write

\usepackage{actuarialangle}

Then in math mode, to make the subscript “n” with the actuarial angle, you have to use one of these three commands:

\actuarialangle{n}
\angl{n}
\angln

Then for your task the command is:

\[
a_{\actuarialangle{n}}
\]

Or if you want to write also the interest rate “i” the command is

\[
a_{\actuarialangle{n}i}
\]

Here's an example: in the tabular the construction appears at natural size, but of course the commands should be used as subscripts like in the display.

\documentclass{article}
\usepackage{actuarialangle}

\begin{document}

\begin{tabular}{ll}
\verb|\actuarialangle{n}| & $\actuarialangle{n}$ \\
\verb|\angl{n}| & $\angl{n}$ \\
\verb|\angln| & $\angln$
\end{tabular}

\[
a_{\actuarialangle{n}} \qquad a_{\actuarialangle{n}i}
\]

\end{document}

enter image description here

  • 1
    Welcome to TeX.SX! I reformatted the post to conform to our usual standards. – egreg Apr 1 '17 at 20:08
0

enter image description here

\documentclass{article}
\usepackage{amsmath,amssymb,actuarialangle} 
    %amssymb is needed for the urcorner symbol OR actuarialangle for the taller version

     %following two lines are only for this demo
    \usepackage[]{graphicx}
    \usepackage[colorlinks=true]{hyperref}

\begin{document}
    \centering
    \includegraphics[scale=0.4]{Actuarial_notation}\\
    Actuarial notation from \url{https://en.wikipedia.org/wiki/Actuarial_notation}\\
    \vspace{0.4 cm}

    %This is the full urcorner template to be reduced as one desires (see a typical example below)
    $m\mkern-8mu{\raisebox{0.8em}2} \vert
    \bar{\raisebox{0.5em}{\large{A}}}{\raisebox{0.8em}1}$
    $\mkern-12mu{\raisebox{-0.0em}{\textit{x:n}}\mkern-8mu\big\urcorner}$

    \vspace{0.4cm}

                    or for actuarialangle version
    \vspace{0.4cm}

    %This is the full Actuarialangle template to be reduced as one desires (see a typical example below)
    $m\mkern-8mu{\raisebox{0.8em}2} \vert{\bar{\raisebox{0.5em}{\large{A}}}{\raisebox{0.8em}1}\mkern-10mu{x\mkern-4mu:\mkern-4mu\actuarialangle{n}}}$

    \vspace{0.4cm}
                    or for a n other example
    \vspace{0.4cm}

    % bar A changed to ddot a, and several ''terms'' removed
    $\ddot{\raisebox{0.4em}{{a}}}$$\raisebox{-0.0em}{\textit{x:n}}\mkern-8mu\big\urcorner$\\
    $\ddot{a}_{x:\actuarialangle{n}} $ 

    \vspace{0.4cm}
    These are here as simple snippets to adjust rather than have to start from fresh
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.