| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2019 David Beauchemin, Vincent Goulet |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified under the conditions |
| 6 |
% of the LaTeX Project Public License, either version 1.3c of this |
| 7 |
% license or (at your option) any later version. The latest version |
| 8 |
% of this license is in: |
| 9 |
% |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% |
| 12 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 13 |
% version 2006/05/20 or later. |
| 14 |
% |
| 15 |
% This work has the LPPL maintenance status `maintained'. |
| 16 |
% |
| 17 |
% The Current Maintainer of this work is Vincent Goulet |
| 18 |
% <[email protected]>. |
| 19 |
% |
| 20 |
% This work consists of actuarialsymbol.dtx and the derived |
| 21 |
% files. |
| 22 |
% |
| 23 |
% \fi |
| 24 |
% |
| 25 |
% \iffalse |
| 26 |
%<*dtx> |
| 27 |
\ProvidesFile{actuarialsymbol.dtx} |
| 28 |
%</dtx> |
| 29 |
%<package>\NeedsTeXFormat{LaTeX2e}[2009/09/24] |
| 30 |
%<package>\ProvidesPackage{actuarialsymbol}[2019/06/13 v1.1 Actuarial symbols] |
| 31 |
%<*batchfile> |
| 32 |
\begingroup |
| 33 |
\input docstrip.tex |
| 34 |
\keepsilent |
| 35 |
\askforoverwritefalse |
| 36 |
|
| 37 |
\preamble |
| 38 |
|
| 39 |
This is a generated file. |
| 40 |
|
| 41 |
Copyright (C) 2019 David Beauchemin, Vincent Goulet |
| 42 |
|
| 43 |
This file may be distributed and/or modified under the conditions |
| 44 |
of the LaTeX Project Public License, either version 1.3c of this |
| 45 |
license or (at your option) any later version. The latest version |
| 46 |
of this license is in: |
| 47 |
|
| 48 |
http://www.latex-project.org/lppl.txt |
| 49 |
|
| 50 |
and version 1.3c or later is part of all distributions of LaTeX |
| 51 |
version 2006/05/20 or later. |
| 52 |
|
| 53 |
This work has the LPPL maintenance status `maintained'. |
| 54 |
|
| 55 |
The Current Maintainer of this work is Vincent Goulet |
| 56 |
<[email protected]>. |
| 57 |
|
| 58 |
This work consists of actuarialsymbol.dtx and the derived files. |
| 59 |
|
| 60 |
\endpreamble |
| 61 |
\generate{\file{actuarialsymbol.sty}{\from{actuarialsymbol.dtx}{package}}} |
| 62 |
\endgroup |
| 63 |
%</batchfile> |
| 64 |
%<*driver> |
| 65 |
\documentclass[11pt,x11names]{ltxdoc} |
| 66 |
\usepackage[utf8]{inputenc} |
| 67 |
\usepackage[T1]{fontenc} |
| 68 |
\usepackage{natbib} |
| 69 |
\usepackage{microtype} |
| 70 |
\usepackage[scaled=0.90]{helvet} |
| 71 |
\usepackage[scaled=1.02]{inconsolata} |
| 72 |
\usepackage[sc]{mathpazo} |
| 73 |
\usepackage{rsfso} % \mathcal variants |
| 74 |
\usepackage{actuarialsymbol}[2017/04/10] |
| 75 |
\usepackage{framed} % environment snugshade* |
| 76 |
\usepackage{metalogo} % XeTeX logo |
| 77 |
\usepackage{graphicx} |
| 78 |
\usepackage{longtable,booktabs} |
| 79 |
\DisableCrossrefs |
| 80 |
\CodelineNumbered |
| 81 |
\RecordChanges |
| 82 |
\GlossaryPrologue{\section*{Version history}% |
| 83 |
\addcontentsline{toc}{section}{Version history}} |
| 84 |
|
| 85 |
%% colors |
| 86 |
\usepackage{xcolor} |
| 87 |
\definecolor{link}{rgb}{0,0.4,0.6} % ~dvips RoyalBlue |
| 88 |
\definecolor{url}{rgb}{0.6,0,0} % dark red |
| 89 |
\definecolor{citation}{rgb}{0,0.5,0} % dark green |
| 90 |
\colorlet{shadecolor}{LightYellow1} % code background |
| 91 |
|
| 92 |
%% left aligned description list |
| 93 |
\usepackage{enumitem} |
| 94 |
\setlist[description]{leftmargin=*,align=left} |
| 95 |
|
| 96 |
%% environment for remarks |
| 97 |
\usepackage{amsthm} |
| 98 |
\theoremstyle{definition} |
| 99 |
\newtheorem*{rem}{Remark} |
| 100 |
|
| 101 |
%% single entry for symbol and shortcut lists |
| 102 |
%% https://tex.stackexchange.com/a/128441 |
| 103 |
\usepackage{xparse} |
| 104 |
\ExplSyntaxOn |
| 105 |
\NewDocumentCommand{\showcase}{v} { \tl_rescan:nn { } { $#1$ } & \texttt{#1} } |
| 106 |
\NewDocumentCommand{\rshowcase}{v} { \texttt{#1} & \tl_rescan:nn { } { $#1$ } } |
| 107 |
\ExplSyntaxOff |
| 108 |
|
| 109 |
%% environment for displayed sample code; hybrid between |
| 110 |
%% environments snugshade* and leftbar of framed.sty |
| 111 |
\makeatletter |
| 112 |
\newenvironment{snugshadebar}{% |
| 113 |
\setlength{\topsep}{1pt} |
| 114 |
\def\FrameCommand##1{\hskip\@totalleftmargin |
| 115 |
\vrule width 2pt\colorbox{shadecolor}{\hspace{3pt}##1}% |
| 116 |
% There is no \@totalrightmargin, so: |
| 117 |
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% |
| 118 |
\MakeFramed {\advance\hsize-\width |
| 119 |
\@totalleftmargin\z@ \linewidth\hsize |
| 120 |
\advance\labelsep\fboxsep |
| 121 |
\@setminipage}% |
| 122 |
}{\par\unskip\@minipagefalse\endMakeFramed} |
| 123 |
\makeatother |
| 124 |
|
| 125 |
%% environments for demo code; 'texample' mostly lifted from |
| 126 |
%% documentation of amsmath |
| 127 |
\newenvironment{demo}{\begin{trivlist}\item}{\end{trivlist}} |
| 128 |
\newenvironment{texample}[1][0.5]{% |
| 129 |
\noindent\begin{minipage}{#1\linewidth}\begin{snugshadebar}% |
| 130 |
\def\producing{\end{snugshadebar}\end{minipage}\hfill\begin{minipage}{\dimexpr0.97\linewidth-#1\linewidth}% |
| 131 |
\hbox\bgroup\kern-.2pt% |
| 132 |
\vbox\bgroup\parindent0pt\relax |
| 133 |
% The 3pt is to cancel the -\lineskip from \displ@y |
| 134 |
\abovedisplayskip3pt \abovedisplayshortskip\abovedisplayskip |
| 135 |
\belowdisplayskip0pt \belowdisplayshortskip\belowdisplayskip |
| 136 |
\noindent}% |
| 137 |
}{% |
| 138 |
\par |
| 139 |
% Ensure that a lonely \[\] structure doesn't take up width less than |
| 140 |
% \hsize. |
| 141 |
\hrule height0pt width\hsize |
| 142 |
\egroup\kern-.2pt\egroup |
| 143 |
\end{minipage}% |
| 144 |
\par |
| 145 |
} |
| 146 |
|
| 147 |
%% utility macro |
| 148 |
\newcommand{\pkg}[1]{\textsf{#1}} |
| 149 |
|
| 150 |
%% increase row height in tables |
| 151 |
\renewcommand{\arraystretch}{1.2} |
| 152 |
|
| 153 |
%% hyperlinks |
| 154 |
\usepackage{hyperref} |
| 155 |
\hypersetup{% |
| 156 |
pdftitle={actuarialsymbol User Guide}, |
| 157 |
pdfauthor={David Beauchemin, Vincent Goulet}, |
| 158 |
colorlinks = true, |
| 159 |
linktocpage = true, |
| 160 |
urlcolor = {url}, |
| 161 |
linkcolor = {link}, |
| 162 |
citecolor = {citation}, |
| 163 |
pdfpagemode = {UseOutlines}, |
| 164 |
pdfstartview = {Fit}} |
| 165 |
|
| 166 |
%% autoref labels |
| 167 |
\let\subsectionautorefname\sectionautorefname |
| 168 |
\let\subsubsectionautorefname\sectionautorefname |
| 169 |
|
| 170 |
\begin{document} |
| 171 |
\DocInput{actuarialsymbol.dtx} |
| 172 |
\end{document} |
| 173 |
%</driver> |
| 174 |
% \fi |
| 175 |
% \CheckSum{520} |
| 176 |
% \changes{1.0}{2017-04-11}{Initial release.} |
| 177 |
% \changes{1.1}{2019-01-08}{Various improvements to the code |
| 178 |
% contributed by Ruixi Zhang.} |
| 179 |
% \changes{1.1}{2019-06-13}{Code samples displayed in a box with a |
| 180 |
% left bar.} |
| 181 |
% |
| 182 |
% \GetFileInfo{actuarialsymbol.sty} |
| 183 |
% |
| 184 |
% \title{Actuarial symbols of life contingencies \\ |
| 185 |
% and financial mathematics^^A |
| 186 |
% \thanks{This document corresponds to |
| 187 |
% \pkg{actuarialsymbol}~\fileversion, dated~\filedate.}} |
| 188 |
% \author{David Beauchemin \\ |
| 189 |
% \url{[email protected]} |
| 190 |
% \and |
| 191 |
% Vincent Goulet\thanks{^^A |
| 192 |
% École d'actuariat, Université Laval} \\ |
| 193 |
% \url{[email protected]}} |
| 194 |
% \maketitle |
| 195 |
% |
| 196 |
% \begin{abstract} |
| 197 |
% The package \pkg{actuarialsymbol} provides facilities to compose |
| 198 |
% actuarial symbols of life contingencies and financial mathematics |
| 199 |
% characterized by subscripts and superscripts on both sides of a |
| 200 |
% principal symbol. The package also features commands to easily and |
| 201 |
% consistently position precedence numbers above or below statuses |
| 202 |
% in symbols for multiple lives contracts. |
| 203 |
% |
| 204 |
% Since actuarial notation can get quite involved, the package |
| 205 |
% defines a number of shortcut macros to ease entry of the most |
| 206 |
% common elements. \autoref{sec:comprehensive} lists the commands to |
| 207 |
% typeset a large selection of life contingencies symbols. |
| 208 |
% \end{abstract} |
| 209 |
% |
| 210 |
% \tableofcontents |
| 211 |
% |
| 212 |
% \section{Introduction} |
| 213 |
% \label{sec:introduction} |
| 214 |
% |
| 215 |
% Actuaries denote various quantities of life contingencies like |
| 216 |
% present values of life insurances and life annuities, annual |
| 217 |
% premiums, or reserves using a whole array of symbols. The highly |
| 218 |
% descriptive, yet compact, notation was standardized as far back as |
| 219 |
% in 1898 \citep{Wolthuis:notation:2004}. \autoref{fig:mosaic} shows a |
| 220 |
% creative use of the notation by the graduating class of 1972 in |
| 221 |
% Actuarial Science at Université Laval. |
| 222 |
% |
| 223 |
% \begin{figure}[t] |
| 224 |
% \centering |
| 225 |
% \includegraphics[width=\linewidth]{mosaic} |
| 226 |
% \caption{``Actuariat'' (French for Actuarial Science) written |
| 227 |
% using actuarial symbols on the 1972 graduating class mosaic at |
| 228 |
% Université Laval} |
| 229 |
% \label{fig:mosaic} |
| 230 |
% \end{figure} |
| 231 |
% |
| 232 |
% \citet[Appendix~4]{Bowers:2e:1997} offer an excellent overview of |
| 233 |
% the composition rules for symbols of actuarial functions. In a |
| 234 |
% nutshell, a principal symbol, say $S$, is combined with auxiliary |
| 235 |
% symbols positioned in subscript or in superscript, to the left or to |
| 236 |
% the right. Schematically, we thus have: |
| 237 |
% \begin{equation} |
| 238 |
% \label{schema1} |
| 239 |
% \actsymb[\fbox{\scriptsize I}\!\;][\fbox{\scriptsize II}\!\;]^^A |
| 240 |
% {\framebox[5ex]{$S$}}{\,\fbox{\scriptsize III}}^^A |
| 241 |
% [\,\fbox{\scriptsize IV}] |
| 242 |
% \end{equation} |
| 243 |
% |
| 244 |
% The principal symbol is in general a single letter. The letter may |
| 245 |
% be ``accented'' with a bar ($\bar{A}$), double dots ($\ddot{a}$) or |
| 246 |
% a circle ($\mathring{e}$). When the principal symbol consists of two |
| 247 |
% letters, they are grouped between parentheses, as in $\IA$ or |
| 248 |
% $\DA*$. Most commonly, there are alphanumeric statuses in the |
| 249 |
% lower-right position \fbox{\small III}\,. Numerals can be placed above |
| 250 |
% or below the individual statuses to show the order of failure; we |
| 251 |
% will refer to these numerals as \emph{precedence numbers}. Otherwise, |
| 252 |
% auxiliary symbols appear lower-left \fbox{\small I}\,, upper-left |
| 253 |
% \fbox{\small II}\, and upper-right \fbox{\small IV}\,, in that order of |
| 254 |
% frequency. |
| 255 |
% |
| 256 |
% Symbols for benefit premiums ($P$), reserves ($V$) and amount of |
| 257 |
% reduced paid-up insurance ($W$), are combined with |
| 258 |
% benefit symbols unless the benefit is a level unit insurance payable |
| 259 |
% at the end of the year of death. In such cases, we have the |
| 260 |
% following symbol structure (replace $P$ by $V$ or $W$ as needed): |
| 261 |
% \begin{equation} |
| 262 |
% \label{schema2} |
| 263 |
% \actsymb[\fbox{\scriptsize I}\!\;][\fbox{\scriptsize II}\!\;]^^A |
| 264 |
% {\framebox[5ex]{$P$}}{}[\,\fbox{\scriptsize IV}]^^A |
| 265 |
% \bigl(\actsymb{\framebox[5ex]{$S$}}{\,\fbox{\scriptsize III}}\bigr) |
| 266 |
% \end{equation} |
| 267 |
% |
| 268 |
% Perhaps the most commonly used auxiliary symbol not readily |
| 269 |
% available in {\LaTeX} is the ``angle'' denoting a duration $n$, as |
| 270 |
% in $\angln$. The package \pkg{actuarialangle} \citep{actuarialangle} |
| 271 |
% provides commands to create this symbol, as well as an overhead |
| 272 |
% angle bracket\footnote{Starting with version 2.0 dated 2017/04/10.} |
| 273 |
% (or ``roof'') used to emphasize the joint status when ambiguity is |
| 274 |
% possible: $\group{xy}$. This package is imported at load time by |
| 275 |
% \pkg{actuarialsymbol}. |
| 276 |
% |
| 277 |
% The package \pkg{actuarialsymbol} provides a generic command to position |
| 278 |
% all subscripts and superscripts easily and consistently around a |
| 279 |
% principal symbol; a command to create two-letter symbols; and two |
| 280 |
% commands to position precedence numbers above and below statuses. |
| 281 |
% Since entering actuarial symbols can get quite involved, the package |
| 282 |
% also defines a number of shortcuts to create the most common |
| 283 |
% actuarial functions of financial mathematics and life contingencies. |
| 284 |
% |
| 285 |
% \section{For the impatient} |
| 286 |
% \label{sec:actuarialsymbol:quickstart} |
| 287 |
% |
| 288 |
% The hurried reader may jump to \autoref{sec:shortcuts} for tables of |
| 289 |
% shortcut macros defined by the package, and to |
| 290 |
% \autoref{sec:comprehensive} for a comprehensive list of symbols of |
| 291 |
% life contingencies along with the {\LaTeX} code to compose them with |
| 292 |
% \pkg{actuarialsymbol} loaded. That said, in our highly biased view, |
| 293 |
% it remains worth reading along the fine documentation below. |
| 294 |
% |
| 295 |
% \section{Package features} |
| 296 |
% \label{sec:features} |
| 297 |
% |
| 298 |
% This section describes the generic commands provided by the package |
| 299 |
% to compose actuarial symbols. On a daily basis, one should use the |
| 300 |
% shortcuts of \autoref{sec:shortcuts} to ease entry of symbols. |
| 301 |
% |
| 302 |
% \subsection{Actuarial symbol} |
| 303 |
% \label{sec:features:actsymb} |
| 304 |
% |
| 305 |
% \begin{DescribeMacro}{\actsymb} |
| 306 |
% The generic command \cmd{\actsymb} typesets a principal symbol with |
| 307 |
% surrounding subscripts and superscripts. Its syntax is somewhat |
| 308 |
% unusual for {\LaTeX}, but it serves well the natural order of the |
| 309 |
% building blocks of a symbol and their relative prevalence: |
| 310 |
% \begin{quote} |
| 311 |
% \cmd{\actsymb}\oarg{ll}\oarg{ul}\marg{symbol}\marg{lr}\oarg{ur} |
| 312 |
% \end{quote} |
| 313 |
% Above, \meta{ll} identifies the auxiliary symbol in the lower left |
| 314 |
% subscript position \fbox{\small I}\, (following the notation in the |
| 315 |
% schematic representation \eqref{schema1}); \meta{ul} is the upper |
| 316 |
% left superscript \fbox{\small II}\,; \meta{symbol} is the principal |
| 317 |
% symbol $S$; \meta{lr} is the lower right subscript \fbox{\small |
| 318 |
% III}\,; \meta{ur} is the upper right superscript \fbox{\small IV}\,. |
| 319 |
% The principal symbol and the right subscript are required, the |
| 320 |
% other arguments are optional. |
| 321 |
% \begin{demo} |
| 322 |
% \begin{texample} |
| 323 |
% |\actsymb{A}{x}| |
| 324 |
% \producing |
| 325 |
% $\actsymb{A}{x}$ |
| 326 |
% \end{texample} |
| 327 |
% \begin{texample} |
| 328 |
% |\actsymb[n]{A}{x}| |
| 329 |
% \producing |
| 330 |
% $\actsymb[n]{A}{x}$ |
| 331 |
% \end{texample} |
| 332 |
% \begin{texample} |
| 333 |
% |\actsymb[n][2]{A}{x}| |
| 334 |
% \producing |
| 335 |
% $\actsymb[n][2]{A}{x}$ |
| 336 |
% \end{texample} |
| 337 |
% \begin{texample} |
| 338 |
% |\actsymb[n][2]{A}{x}[(m)]| |
| 339 |
% \producing |
| 340 |
% $\actsymb[n][2]{A}{x}[(m)]$ |
| 341 |
% \end{texample} |
| 342 |
% \end{demo} |
| 343 |
% |
| 344 |
% The command actually supports one more optional argument, for composing |
| 345 |
% symbols for premiums, reserves and paid-up insurance. The extended |
| 346 |
% command |
| 347 |
% \begin{quote} |
| 348 |
% \cmd{\actsymb}\oarg{ll}\oarg{ul}\oarg{P}\marg{symbol}\marg{lr}\oarg{ur} |
| 349 |
% \end{quote} |
| 350 |
% puts symbol \meta{P} outside the parentheses in the |
| 351 |
% schematic representation \eqref{schema2}. |
| 352 |
% \begin{demo} |
| 353 |
% \begin{texample}[0.7] |
| 354 |
% |\actsymb[][][P]{\bar{A}}{x:\angln}| |
| 355 |
% \producing |
| 356 |
% $\actsymb[][][P]{\bar{A}}{x:\angln}$ |
| 357 |
% \end{texample} |
| 358 |
% \begin{texample}[0.7] |
| 359 |
% |\actsymb[k][][V]{\bar{A}}{x}[\{1\}]| |
| 360 |
% \producing |
| 361 |
% $\actsymb[k][][V]{\bar{A}}{x}[\{1\}]$ |
| 362 |
% \end{texample} |
| 363 |
% \begin{texample}[0.7] |
| 364 |
% |\actsymb[k][][\bar{W}]{\bar{A}}{x}| |
| 365 |
% \producing |
| 366 |
% $\actsymb[k][][\bar{W}]{\bar{A}}{x}$ |
| 367 |
% \end{texample} |
| 368 |
% \end{demo} |
| 369 |
% \end{DescribeMacro} |
| 370 |
% |
| 371 |
% \begin{rem} |
| 372 |
% {\TeX} adjusts the position of a subscript downward when a |
| 373 |
% superscript is present: |
| 374 |
% \begin{displaymath} |
| 375 |
% A_x \quad A_x^2. |
| 376 |
% \end{displaymath} |
| 377 |
% The package maintains this behaviour. Therefore, entering the |
| 378 |
% symbols above using the standard operators |^| and |_| or with |
| 379 |
% \cmd{\actsymb} yields the same result. |
| 380 |
% \begin{demo} |
| 381 |
% \begin{texample}[0.7] |
| 382 |
% |A_x \quad A_x^2| |
| 383 |
% \producing |
| 384 |
% $A_x \quad A_x^2$ |
| 385 |
% \end{texample} |
| 386 |
% \begin{texample}[0.7] |
| 387 |
% |\actsymb{A}{x} \quad \actsymb{A}{x}[2]| |
| 388 |
% \producing |
| 389 |
% $\actsymb{A}{x} \quad \actsymb{A}{x}[2]$ |
| 390 |
% \end{texample} |
| 391 |
% \end{demo} |
| 392 |
% Furthermore, the package ensures that the left and right |
| 393 |
% subscripts, when both present, are at the same level, something |
| 394 |
% common ad~hoc constructions do not provide. |
| 395 |
% \begin{demo} |
| 396 |
% \begin{texample}[0.7] |
| 397 |
% |{}_tA_x \quad {}_tA_x^2| |
| 398 |
% \producing |
| 399 |
% ${}_tA_x \quad {}_tA_x^2$ |
| 400 |
% \end{texample} |
| 401 |
% \begin{texample}[0.7] |
| 402 |
% |\actsymb[t]{A}{x} \quad \actsymb[t]{A}{x}[2]| |
| 403 |
% \producing |
| 404 |
% $\actsymb[t]{A}{x} \quad \actsymb[t]{A}{x}[2]$ |
| 405 |
% \end{texample} |
| 406 |
% \end{demo} |
| 407 |
% In symbols for premiums, reserves and paid-up insurance, |
| 408 |
% subscripts and superscripts are aligned only around |
| 409 |
% symbol \meta{P}. Authors who would prefer a uniform subscript position |
| 410 |
% \emph{throughout their document} can load the package |
| 411 |
% \pkg{subdepth} \citep{subdepth}. |
| 412 |
% \end{rem} |
| 413 |
% |
| 414 |
% \subsection{Two-letter principal symbols} |
| 415 |
% \label{sec:features:twoletsymb} |
| 416 |
% |
| 417 |
% \begin{DescribeMacro}{\twoletsymb} |
| 418 |
% Entering two-letter principal symbols like $\DA$ as |$(DA)$| results in |
| 419 |
% letters that are too distant from one another: $(DA)$. To unify |
| 420 |
% presentation, the package provides the command |
| 421 |
% \begin{quote} |
| 422 |
% \cmd{\twoletsymb}\oarg{length}\marg{symbol\_1}\marg{symbol\_2} |
| 423 |
% \end{quote} |
| 424 |
% to group \meta{symbol\_1} and \meta{symbol\_2} between parentheses |
| 425 |
% with kerning\footnote{Spacing adjustment between the characters.} |
| 426 |
% reduced by length \cmd{\twoletkern} (see below). One can also |
| 427 |
% reduce spacing by \meta{length} for a specific symbol. |
| 428 |
% \begin{demo} |
| 429 |
% \begin{texample} |
| 430 |
% |\twoletsymb{\bar{D}}{\bar{A}}| |
| 431 |
% \producing |
| 432 |
% $\twoletsymb{\bar{D}}{\bar{A}}$ |
| 433 |
% \end{texample} |
| 434 |
% \begin{texample} |
| 435 |
% |\twoletsymb{I}{\ddot{a}}| |
| 436 |
% \producing |
| 437 |
% $\twoletsymb{I}{\ddot{a}}$ |
| 438 |
% \end{texample} |
| 439 |
% \begin{texample} |
| 440 |
% |\twoletsymb[0.8pt]{I}{\ddot{a}}| |
| 441 |
% \producing |
| 442 |
% $\twoletsymb[0.8pt]{I}{\ddot{a}}$ |
| 443 |
% \end{texample} |
| 444 |
% \end{demo} |
| 445 |
% |
| 446 |
% We expect authors to use \cmd{\twoletsymb} to define commands, not |
| 447 |
% directly in equations. The package already defines a number of |
| 448 |
% shortcuts for the main two-letter actuarial symbols; see |
| 449 |
% \autoref{sec:shortcuts}. |
| 450 |
% \end{DescribeMacro} |
| 451 |
% |
| 452 |
% \begin{DescribeMacro}{\twoletkern} |
| 453 |
% The standard kerning between mathematical symbols defined with |
| 454 |
% \cmd{\twoletsymb} is \emph{reduced} by the length |
| 455 |
% \cmd{\twoletkern}, by default 0.1em. This value can be |
| 456 |
% changed as usual using \cmd{\setlength}. |
| 457 |
% \end{DescribeMacro} |
| 458 |
% |
| 459 |
% \subsection{Precedence numbers} |
| 460 |
% \label{sec:features:precedence} |
| 461 |
% |
| 462 |
% \begin{DescribeMacro}{\nthtop} |
| 463 |
% \begin{DescribeMacro}{\nthtop*} |
| 464 |
% Precedence numbers appear above or below individual statuses in |
| 465 |
% the right subscript \fbox{\small III}\, of a symbol. The commands |
| 466 |
% \begin{quote} |
| 467 |
% \cmd{\nthtop}\oarg{length}\marg{number}\marg{status} \\ |
| 468 |
% \cmd{\nthtop*}\oarg{length}\marg{number}\marg{status} |
| 469 |
% \end{quote} |
| 470 |
% put a precedence \meta{number} above a \meta{status}, smashed so |
| 471 |
% that the apparent height of the status is its normal height. With |
| 472 |
% \cmd{\nthtop}, the spacing between the precedence number and the |
| 473 |
% status is a constant \cmd{\nthtopsep} (see below). This can result |
| 474 |
% in precedence numbers placed at different heights if one status |
| 475 |
% contains a horizontal rule. |
| 476 |
% \begin{demo} |
| 477 |
% \begin{texample}[0.85] |
| 478 |
% |\actsymb{A}{\nthtop{1}{x}:\angln}| |
| 479 |
% \producing |
| 480 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop{1}{x}:\angln}$ |
| 481 |
% \end{texample} |
| 482 |
% \begin{texample}[0.85] |
| 483 |
% |\actsymb{A}{x:\nthtop{1}{\angln}}| |
| 484 |
% \producing |
| 485 |
% \rule{0pt}{12pt}$\actsymb{A}{x:\nthtop{1}{\angln}}$ |
| 486 |
% \end{texample} |
| 487 |
% \begin{texample}[0.85] |
| 488 |
% |\actsymb{A}{\nthtop{1}{x}y:\nthtop{2}{\angln}}| |
| 489 |
% \producing |
| 490 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop{1}{x}y:\nthtop{2}{\angln}}$ |
| 491 |
% \end{texample} |
| 492 |
% \end{demo} |
| 493 |
% Conversely, \cmd{\nthtop*} always leaves enough space |
| 494 |
% \cmd{\nthtopskip} for intervening horizontal rules, resulting |
| 495 |
% in vertically aligned precedence numbers. |
| 496 |
% \begin{demo} |
| 497 |
% \begin{texample}[0.85] |
| 498 |
% |\actsymb{A}{\nthtop*{1}{x}:\angln}| |
| 499 |
% \producing |
| 500 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop*{1}{x}:\angln}$ |
| 501 |
% \end{texample} |
| 502 |
% \begin{texample}[0.85] |
| 503 |
% |\actsymb{A}{x:\nthtop*{1}{\angln}}| |
| 504 |
% \producing |
| 505 |
% \rule{0pt}{12pt}$\actsymb{A}{x:\nthtop*{1}{\angln}}$ |
| 506 |
% \end{texample} |
| 507 |
% \begin{texample}[0.85] |
| 508 |
% |\actsymb{A}{\nthtop*{1}{x}y:\nthtop*{2}{\angln}}| |
| 509 |
% \producing |
| 510 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop*{1}{x}y:\nthtop*{2}{\angln}}$ |
| 511 |
% \end{texample} |
| 512 |
% \end{demo} |
| 513 |
% The optional argument \meta{length} changes the default spacing |
| 514 |
% for one symbol. The package also defines shortcuts for first, |
| 515 |
% second and third top precedence; see \autoref{sec:shortcuts}. |
| 516 |
% \end{DescribeMacro} |
| 517 |
% \end{DescribeMacro} |
| 518 |
% |
| 519 |
% \begin{DescribeMacro}{\nthbottom} |
| 520 |
% \begin{DescribeMacro}{\nthbottom*} |
| 521 |
% In the same vein as the above two commands, |
| 522 |
% \begin{quote} |
| 523 |
% \cmd{\nthbottom}\oarg{length}\marg{number}\marg{status} \\ |
| 524 |
% \cmd{\nthbottom*}\oarg{length}\marg{number}\marg{status} |
| 525 |
% \end{quote} |
| 526 |
% put a precedence \meta{number} below a \meta{status}. With |
| 527 |
% \cmd{\nthbottom} the spacing between the status and the number is |
| 528 |
% a constant \cmd{\nthbottomsep}, whereas with \cmd{\nthbottom*} |
| 529 |
% enough spacing \cmd{\nthbottomskip} is left to bottom align the |
| 530 |
% precedence numbers. The |*| variant is most useful in cases |
| 531 |
% involving more than one bottom precedence numbers and statuses |
| 532 |
% with descenders. |
| 533 |
% \begin{demo} |
| 534 |
% \begin{texample}[0.85] |
| 535 |
% |\actsymb{A}{\nthtop{3}{x}%| \\ |
| 536 |
% | \nthbottom{1}{y}\nthbottom{2}{z}}| |
| 537 |
% \producing |
| 538 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop{3}{x}\nthbottom{1}{y}\nthbottom{2}{z}}$ |
| 539 |
% \end{texample} |
| 540 |
% \begin{texample}[0.85] |
| 541 |
% |\actsymb{A}{\nthtop{3}{x}%| \\ |
| 542 |
% | \nthbottom*{1}{y}\nthbottom*{2}{z}}| |
| 543 |
% \producing |
| 544 |
% \rule{0pt}{12pt}$\actsymb{A}{\nthtop{3}{x}\nthbottom*{1}{y}\nthbottom*{2}{z}}$ |
| 545 |
% \end{texample} |
| 546 |
% \end{demo} |
| 547 |
% The optional argument \meta{length} changes the default spacing |
| 548 |
% for one symbol. The package also defines shortcuts for first, |
| 549 |
% second and third bottom precedence; see \autoref{sec:shortcuts}. |
| 550 |
% \end{DescribeMacro} |
| 551 |
% \end{DescribeMacro} |
| 552 |
% |
| 553 |
% \begin{rem} |
| 554 |
% The fact that top precedence numbers have zero height means they |
| 555 |
% will clash with a right superscript \fbox{\small IV}\,: |
| 556 |
% \begin{demo} |
| 557 |
% \begin{texample}[0.7] |
| 558 |
% |\actsymb{A}{\nthtop{1}{x}:\angln}[(m)]| |
| 559 |
% \producing |
| 560 |
% $\actsymb{A}{\nthtop{1}{x}:\angln}[(m)]$ |
| 561 |
% \end{texample} |
| 562 |
% \end{demo} |
| 563 |
% In such rare circumstances, one needs to insert a \emph{strut} (an |
| 564 |
% invisible vertical rule) in the subscript to push it downward as |
| 565 |
% needed: |
| 566 |
% \begin{demo} |
| 567 |
% \begin{texample}[0.7] |
| 568 |
% |\actsymb{A}{\rule{0pt}{2.3ex}%| \\ |
| 569 |
% | \nthtop{1}{x}:\angln}[(m)]| |
| 570 |
% \producing |
| 571 |
% $\actsymb{A}{\rule{0pt}{2.3ex}\nthtop{1}{x}:\angln}[(m)]$ |
| 572 |
% \end{texample} |
| 573 |
% \end{demo} |
| 574 |
% This remark also applies to bottom precedence numbers in inline |
| 575 |
% formulas or multiline equations. |
| 576 |
% \end{rem} |
| 577 |
% |
| 578 |
% \begin{DescribeMacro}{\nthtopsep} |
| 579 |
% \begin{DescribeMacro}{\nthtopskip} |
| 580 |
% \begin{DescribeMacro}{\nthbottomsep} |
| 581 |
% \begin{DescribeMacro}{\nthbottomskip} |
| 582 |
% The constant spacing between a top precedence number and the status |
| 583 |
% underneath when using \cmd{\nthtop} is \cmd{\nthtopsep}, by |
| 584 |
% default 0.18em. The constant height of top precedence |
| 585 |
% numbers when using \cmd{\nthtop*} is achieved by setting the |
| 586 |
% baseline skip to \cmd{\nthtopskip}, by default |
| 587 |
% 0.64em. |
| 588 |
% |
| 589 |
% Similarly, the constant spacing between a bottom precedence number |
| 590 |
% and the status above when using \cmd{\nthbottom} is |
| 591 |
% \cmd{\nthbottomsep}, by default 0.18em, and the |
| 592 |
% constant height of bottom precedence numbers when using |
| 593 |
% \cmd{\nthbottom*} is achieved by setting the baseline skip to |
| 594 |
% \cmd{\nthbottomskip}, by default 0.82em. |
| 595 |
% |
| 596 |
% These values can be changed as usual using \cmd{\setlength}. |
| 597 |
% \end{DescribeMacro} |
| 598 |
% \end{DescribeMacro} |
| 599 |
% \end{DescribeMacro} |
| 600 |
% \end{DescribeMacro} |
| 601 |
% |
| 602 |
% \section{Shortcuts} |
| 603 |
% \label{sec:shortcuts} |
| 604 |
% |
| 605 |
% Composing actuarial symbols from scratch using \cmd{\actsymb} can |
| 606 |
% easily get quite involved. For this reason, the package defines a |
| 607 |
% large number of shortcut macros to ease entry of the most common |
| 608 |
% symbols. We encourage authors to define their own shortcuts for |
| 609 |
% cases we did not consider. The package provides powerful facilities |
| 610 |
% to define shortcuts. |
| 611 |
% |
| 612 |
% \subsection{Basic symbols of life tables, insurance and annuities} |
| 613 |
% \label{sec:shortcuts:principal} |
| 614 |
% |
| 615 |
% \autoref{tab:principal} lists shortcuts to compose complete symbols |
| 616 |
% of life tables and benefits of insurance and annuities. For space |
| 617 |
% considerations only the mandatory arguments are given, but it should |
| 618 |
% be noted that all commands of \autoref*{tab:principal} accept the |
| 619 |
% optional arguments \meta{ll}, \meta{ul} and \meta{ur} of |
| 620 |
% \cmd{\actsymb}. |
| 621 |
% |
| 622 |
% \begin{table}[t] |
| 623 |
% \centering |
| 624 |
% \caption{Shortcuts for life table, insurance and annuity |
| 625 |
% symbols. All commands accept the optional arguments |
| 626 |
% \meta{ll}, \meta{ul} and \meta{ur} of \cmd{\actsymb}.} |
| 627 |
% \label{tab:principal} |
| 628 |
% \begin{tabular}{lll} |
| 629 |
% \toprule |
| 630 |
% Definition & Example & Output \\ |
| 631 |
% \midrule |
| 632 |
% \cmd{\lx}\marg{age} & \rshowcase{\lx{x}} \\ |
| 633 |
% \cmd{\Lx}\marg{age} & \rshowcase{\Lx{x}}$^\dagger$ \\ |
| 634 |
% \cmd{\dx}\marg{age} & \rshowcase{\dx[n]{x}} \\ |
| 635 |
% \cmd{\Dx}\marg{age} & \rshowcase{\Dx[n]{x}}$^\dagger$ \\ |
| 636 |
% \cmd{\px}\marg{age} & \rshowcase{\px[t]{x}} \\ |
| 637 |
% \cmd{\qx}\marg{age} & \rshowcase{\qx[t]{x}} \\ |
| 638 |
% \cmd{\eringx}\marg{lr} & \rshowcase{\eringx{x:\angln}} \\ |
| 639 |
% \addlinespace |
| 640 |
% \cmd{\Ax}\marg{lr} & \rshowcase{\Ax{x:\angln}} \\ |
| 641 |
% \cmd{\Ax*}\marg{lr} & \rshowcase{\Ax*{x:\angln}} \\ |
| 642 |
% \cmd{\Ex}\marg{lr} & \rshowcase{\Ex[n]{x}} \\ |
| 643 |
% \addlinespace |
| 644 |
% \cmd{\ax}\marg{lr} & \rshowcase{\ax{x:\angln}} \\ |
| 645 |
% \cmd{\ax*}\marg{lr} & \rshowcase{\ax*{x:\angln}} \\ |
| 646 |
% \cmd{\ax**}\marg{lr} & \rshowcase{\ax**{x:\angln}} \\ |
| 647 |
% \cmd{\sx}\marg{lr} & \rshowcase{\sx{x:\angln}} \\ |
| 648 |
% \cmd{\sx*}\marg{lr} & \rshowcase{\sx*{x:\angln}} \\ |
| 649 |
% \cmd{\sx**}\marg{lr} & \rshowcase{\sx**{x:\angln}} \\ |
| 650 |
% \cmd{\aringx}\marg{lr} & \rshowcase{\aringx{x:\angln}} \\ |
| 651 |
% \bottomrule |
| 652 |
% \end{tabular} \\ |
| 653 |
% \raggedright |
| 654 |
% \hspace*{1em}{\footnotesize $^\dagger$ Calligraphic letters |
| 655 |
% obtained using \cmd{\mathcal}. These specific versions of |
| 656 |
% $\mathcal{L}$ and $\mathcal{D}$ require the package \pkg{rsfso} |
| 657 |
% \citep{rsfso}. Standard versions are |
| 658 |
% $\text{\usefont{OMS}{zplm}{m}{n} L}$ and |
| 659 |
% $\text{\usefont{OMS}{zplm}{m}{n} D}$.\par} |
| 660 |
% \end{table} |
| 661 |
% |
| 662 |
% One will note that shortcuts for insurance benefits come in two |
| 663 |
% variants: one for the benefit payable at the end of the year of |
| 664 |
% death (standard shortcut) and one for the benefit payable at the |
| 665 |
% time of death (|*| variant). Shortcuts for annuity benefits have |
| 666 |
% three variants: payable at the end of the period (standard), |
| 667 |
% continuously (|*| variant) and at the beginning of the period (|**| |
| 668 |
% variant). |
| 669 |
% |
| 670 |
% \begin{DescribeMacro}{\@actinssc} |
| 671 |
% \begin{DescribeMacro}{\@actannsc} |
| 672 |
% \begin{DescribeMacro}{\@actothersc} |
| 673 |
% One may define additional shortcut macros similar to those of |
| 674 |
% \autoref{tab:principal} using the internal commands |
| 675 |
% \begin{quote} |
| 676 |
% |\@actinssc|\marg{symbol} \\ |
| 677 |
% |\@actannsc|\marg{symbol} \\ |
| 678 |
% |\@actothersc|\marg{symbol} |
| 679 |
% \end{quote} |
| 680 |
% Command |\@actinssc| automatically provides the two shortcuts for |
| 681 |
% insurance benefits, command |\@actannsc| provides the three |
| 682 |
% shortcuts for annuity benefits and command |\@actothersc| |
| 683 |
% provides a single shortcut for \meta{symbol}. |
| 684 |
% |
| 685 |
% For example, the package defines the shortcut \cmd{\px} with the |
| 686 |
% equivalent of ^^A |
| 687 |
% ^^A below we abuse the texample environment to avoid defining |
| 688 |
% ^^A another environment just for this purpose |
| 689 |
% \begin{demo} |
| 690 |
% \begin{texample}[1] |
| 691 |
% |\newcommand{\px}{\@actothersc{p}}| \producing |
| 692 |
% \end{texample} |
| 693 |
% \end{demo} |
| 694 |
% shortcuts \cmd{\Ax} and \cmd{\Ax*} with |
| 695 |
% \begin{demo} |
| 696 |
% \begin{texample}[1] |
| 697 |
% |\newcommand{\Ax}{\@actinssc{A}}| \producing |
| 698 |
% \end{texample} |
| 699 |
% \end{demo} |
| 700 |
% and shortcuts \cmd{\ax}, \cmd{\ax*} and \cmd{\ax**} with |
| 701 |
% \begin{demo} |
| 702 |
% \begin{texample}[1] |
| 703 |
% |\newcommand{\ax}{\@actannsc{a}}| \producing |
| 704 |
% \end{texample} |
| 705 |
% \end{demo} |
| 706 |
% \end{DescribeMacro} |
| 707 |
% \end{DescribeMacro} |
| 708 |
% \end{DescribeMacro} |
| 709 |
% |
| 710 |
% \begin{rem} |
| 711 |
% When used in the preamble of a document, the above commands need |
| 712 |
% to be protected by a |\makeatletter| \dots\ |\makeatother| pair |
| 713 |
% since they make use of the reserved character |@|. Therefore, to |
| 714 |
% define shortcuts, say, \cmd{\Bx} and \cmd{\Bx*} to the imaginary |
| 715 |
% benefits $B$ and $\bar{B}$, one would write in the preamble |
| 716 |
% \begin{demo} |
| 717 |
% \begin{texample}[1] |
| 718 |
% |\makeatletter| \\ |
| 719 |
% |\newcommand{\Bx}{\@actinssc{B}}| \\ |
| 720 |
% |\makeatother| \producing |
| 721 |
% \end{texample} |
| 722 |
% \end{demo} |
| 723 |
% \end{rem} |
| 724 |
% |
| 725 |
% \subsection{Symbols for premiums, reserves and paid-up insurance} |
| 726 |
% \label{sec:shortcuts:premres} |
| 727 |
% |
| 728 |
% Symbols for premiums, reserves and paid-up insurance come in two |
| 729 |
% main variants: without an explicit benefit between parentheses for |
| 730 |
% insurances payable at the end of the year of death, and with the |
| 731 |
% type of benefit specified for all other insurances and annuities. |
| 732 |
% |
| 733 |
% \autoref{tab:premres} lists two sets of shortcuts to compose symbols |
| 734 |
% for premiums, reserves and paid-up insurance. Shortcuts from the |
| 735 |
% first set take in mandatory argument the content of the \meta{lr} |
| 736 |
% subscript of actuarial symbols. Those from the second set require a |
| 737 |
% complete benefit symbol in argument. One may use the shortcuts of |
| 738 |
% \autoref{tab:principal} to this effect. Again, only the mandatory |
| 739 |
% arguments are given in the table, but all commands accept the |
| 740 |
% optional arguments \meta{ll}, \meta{ul} and \meta{ur} of |
| 741 |
% \cmd{\actsymb}. |
| 742 |
% |
| 743 |
% \begin{table}[t] |
| 744 |
% \centering |
| 745 |
% \caption{Shortcuts for premiums, reserves and paid-up insurance. All |
| 746 |
% commands accept the optional arguments \meta{ll}, |
| 747 |
% \meta{ul} and \meta{ur} of \cmd{\actsymb}.} |
| 748 |
% \label{tab:premres} |
| 749 |
% \begin{tabular*}{1.0\linewidth}{lll} |
| 750 |
% \toprule |
| 751 |
% Definition & Example & Output \\ |
| 752 |
% \midrule |
| 753 |
% \cmd{\Px}\marg{lr} & \rshowcase{\Px[h]{x}} \\ |
| 754 |
% \cmd{\Vx}\marg{lr} & \rshowcase{\Vx[k]{x}} \\ |
| 755 |
% \cmd{\Wx}\marg{lr} & \rshowcase{\Wx[k]{x}} \\ |
| 756 |
% \addlinespace |
| 757 |
% \cmd{\premium}\marg{benefit} & \rshowcase{\premium[t]{\Ax*{x}}} \\ |
| 758 |
% \cmd{\premium*}\marg{benefit} & \rshowcase{\premium*[t]{\Ax*{x:\angln}}} \\ |
| 759 |
% \cmd{\reserve}\marg{benefit} & \rshowcase{\reserve[t]{\ax**{x}}} \\ |
| 760 |
% \cmd{\reserve*}\marg{benefit} & \rshowcase{\reserve*[t]{\ax*{x}}} \\ |
| 761 |
% \cmd{\paidup}\marg{benefit} & \rshowcase{\paidup[k]{\Ax*{x}}} \\ |
| 762 |
% \cmd{\paidup*}\marg{benefit} & \rshowcase{\paidup*[k][h]{\Ax*{x}}} \\ |
| 763 |
% \bottomrule |
| 764 |
% \end{tabular*} |
| 765 |
% \end{table} |
| 766 |
% |
| 767 |
% \begin{DescribeMacro}{\@actpremres} |
| 768 |
% The package eases definition of additional shortcut macros similar |
| 769 |
% to the second set of \autoref{tab:premres} using the internal |
| 770 |
% command |
| 771 |
% \begin{quote} |
| 772 |
% |\@actpremres|\marg{P} |
| 773 |
% \end{quote} |
| 774 |
% It defines shortcuts for discrete (default) or continuous (|*| |
| 775 |
% variant) premiums, reserves and paid-up insurance. For example, |
| 776 |
% the package defines shortcuts \cmd{\premium} and \cmd{\premium*} |
| 777 |
% with the equivalent of |
| 778 |
% \begin{demo} |
| 779 |
% \begin{texample}[1] |
| 780 |
% |\newcommand{\premium}{\@actpremres{P}}| \producing |
| 781 |
% \end{texample} |
| 782 |
% \end{demo} |
| 783 |
% The remark at the end of \autoref{sec:shortcuts:principal} also |
| 784 |
% applies here. |
| 785 |
% \end{DescribeMacro} |
| 786 |
% |
| 787 |
% \subsection{Auxiliary symbols} |
| 788 |
% \label{sec:shortcuts:aux} |
| 789 |
% |
| 790 |
% \autoref{tab:aux} lists shortcuts for a few common auxiliary symbols |
| 791 |
% used in the lower right subscript \fbox{\small III}\,. |
| 792 |
% |
| 793 |
% \begin{table} |
| 794 |
% \centering |
| 795 |
% \caption{Shortcuts for auxiliary symbols} |
| 796 |
% \label{tab:aux} |
| 797 |
% \begin{tabular*}{1.0\linewidth}{lll} |
| 798 |
% \toprule |
| 799 |
% Definition & Example & Output \\ |
| 800 |
% \midrule |
| 801 |
% \cmd{\term}\marg{age}\marg{duration} & \rshowcase{\Ax{\term{x}{n}}} \\ |
| 802 |
% \cmd{\termxn} & \rshowcase{\Ax{\termxn}} \\ |
| 803 |
% \cmd{\pureendow}\marg{age}\marg{duration} & \rshowcase{\Ax{\pureendow{x}{n}}} \\ |
| 804 |
% \cmd{\pureendowxn} & \rshowcase{\Ax{\pureendowxn}} \\ |
| 805 |
% \cmd{\endow}\marg{age}\marg{duration} & \rshowcase{\ax**{\endow{x}{n}}} \\ |
| 806 |
% \cmd{\endowxn} & \rshowcase{\ax**{\endowxn}} \\ |
| 807 |
% \cmd{\joint}\marg{ages}$^\dagger$ & \rshowcase{\Ax*{\joint{xy}z}} \\ |
| 808 |
% \bottomrule |
| 809 |
% \end{tabular*} \\ |
| 810 |
% \raggedright |
| 811 |
% \hspace*{1em}{\footnotesize $^\dagger$ Alias for \cmd{\overline}.\par} |
| 812 |
% \end{table} |
| 813 |
% |
| 814 |
% \subsection{Symbols for varying benefit insurance and annuities} |
| 815 |
% \label{sec:shortcuts:twoletsymb} |
| 816 |
% |
| 817 |
% \autoref{tab:twoletsymb} lists shortcuts for common two-letter |
| 818 |
% symbols of varying benefit insurance and annuities. These shortcuts |
| 819 |
% can be used as principal symbol in \cmd{\actsymb} or in the commands |
| 820 |
% of \autoref{tab:principal}. |
| 821 |
% |
| 822 |
% \begin{table} |
| 823 |
% \centering |
| 824 |
% \caption{Shortcuts for varying benefit insurance and annuities} |
| 825 |
% \label{tab:twoletsymb} |
| 826 |
% \begin{tabular}{ll@{\hspace{15mm}}ll} |
| 827 |
% \toprule |
| 828 |
% Definition & Output & Definition & Output \\ |
| 829 |
% \midrule |
| 830 |
% \cmd{\IA} & $\IA$ & \cmd{\DA} & $\DA$ \\ |
| 831 |
% \cmd{\IA*} & $\IA*$ & \cmd{\DA*} & $\DA*$ \\ |
| 832 |
% \addlinespace[6pt] |
| 833 |
% \cmd{\IbA} & $\IbA$ & \cmd{\DbA} & $\DbA$ \\ |
| 834 |
% \cmd{\IbA*} & $\IbA*$ & \cmd{\DbA*} & $\DbA*$ \\ |
| 835 |
% \addlinespace[6pt] |
| 836 |
% \cmd{\ImA} & $\ImA$ & \cmd{\DmA} & $\DmA$ \\ |
| 837 |
% \cmd{\ImA*} & $\ImA*$ & \cmd{\DmA*} & $\DmA*$ \\ |
| 838 |
% \addlinespace[6pt] |
| 839 |
% \cmd{\Ia} & $\Ia$ & \cmd{\Da} & $\Da$ \\ |
| 840 |
% \cmd{\Ia*} & $\Ia*$ & \cmd{\Da*} & $\Da*$ \\ |
| 841 |
% \cmd{\Ia**} & $\Ia**$ & \cmd{\Da**} & $\Da**$ \\ |
| 842 |
% \addlinespace[6pt] |
| 843 |
% \cmd{\Is} & $\Is$ & \cmd{\Ds} & $\Ds$ \\ |
| 844 |
% \cmd{\Is*} & $\Is*$ & \cmd{\Ds*} & $\Ds*$ \\ |
| 845 |
% \cmd{\Is**} & $\Is**$ & \cmd{\Ds**} & $\Ds**$ \\ |
| 846 |
% \bottomrule |
| 847 |
% \end{tabular} |
| 848 |
% \end{table} |
| 849 |
% |
| 850 |
% \begin{DescribeMacro}{\@twoletinssc} |
| 851 |
% \begin{DescribeMacro}{\@twoletannsc} |
| 852 |
% One may define additional shortcuts for two-letter insurance and |
| 853 |
% annuity benefit symbols using the internal commands |
| 854 |
% \begin{quote} |
| 855 |
% |\@twoletinssc|\oarg{length}\marg{symbol\_1}\marg{symbol\_2} \\ |
| 856 |
% |\@twoletannsc|\oarg{length}\marg{symbol\_1}\marg{symbol\_2} |
| 857 |
% \end{quote} |
| 858 |
% These commands are similar to those of |
| 859 |
% \autoref{sec:shortcuts:principal}: |\@twoletinssc| provides two |
| 860 |
% shortcuts (standard and |*| variant), whereas |\@twoletannsc| |
| 861 |
% provides three (standard, |*| and |**| variants). |
| 862 |
% \end{DescribeMacro} |
| 863 |
% \end{DescribeMacro} |
| 864 |
% |
| 865 |
% \subsection{First, second and third precedence} |
| 866 |
% \label{sec:shortcuts:preced} |
| 867 |
% |
| 868 |
% \autoref{tab:preced} lists shortcuts and aliases for the first, |
| 869 |
% second and third precedence numbers, top and bottom. These shortcuts |
| 870 |
% can be used in auxiliary symbols in \cmd{\actsymb} or in the |
| 871 |
% commands of \autoref{tab:principal}. |
| 872 |
% |
| 873 |
% \begin{table}[t] |
| 874 |
% \centering |
| 875 |
% \caption{Shortcuts and aliases for precedence numbers} |
| 876 |
% \label{tab:preced} |
| 877 |
% \begin{tabular}{lll} |
| 878 |
% \toprule |
| 879 |
% Definition & Alias & Output \\ |
| 880 |
% \midrule |
| 881 |
% \cmd{\firsttop}\marg{status} & \cmd{\itop}\marg{status} & $\Ax{\itop{x}:\angln}$ \\ |
| 882 |
% \cmd{\secondtop}\marg{status} & \cmd{\iitop}\marg{status} & $\Ax{x\iitop{y}z}$ \\ |
| 883 |
% \cmd{\thirdtop}\marg{status} & \cmd{\iiitop}\marg{status} & $\Ax{xy\iiitop{z}}$ \\ |
| 884 |
% \addlinespace[6pt] |
| 885 |
% \cmd{\firsttop*}\marg{status} & \cmd{\itop*}\marg{status} & $\Ax{\itop*{x}:\angln}$ \\ |
| 886 |
% \cmd{\secondtop*}\marg{status} & \cmd{\iitop*}\marg{status} & $\Ax{x\iitop*{y}z}$ \\ |
| 887 |
% \cmd{\thirdtop*}\marg{status} & \cmd{\iiitop*}\marg{status} & $\Ax{xy\iiitop*{z}}$ \\ |
| 888 |
% \addlinespace[6pt] |
| 889 |
% \cmd{\firstbottom}\marg{status} & \cmd{\ibottom}\marg{status} & $\Ax{\ibottom{x}yz}$ \\ |
| 890 |
% \addlinespace[3pt] |
| 891 |
% \cmd{\secondbottom}\marg{status} & \cmd{\iibottom}\marg{status} & $\Ax{\iibottom{x}yz}$ \\ |
| 892 |
% \addlinespace[3pt] |
| 893 |
% \cmd{\thirdbottom}\marg{status} & \cmd{\iiibottom}\marg{status} & $\Ax{xy\iiibottom{z}}$ \\ |
| 894 |
% \addlinespace[6pt] |
| 895 |
% \cmd{\firstbottom*}\marg{status} & \cmd{\ibottom*}\marg{status} & $\Ax{\ibottom*{x}yz}$ \\ |
| 896 |
% \addlinespace[3pt] |
| 897 |
% \cmd{\secondbottom*}\marg{status} & \cmd{\iibottom*}\marg{status} & $\Ax{\iibottom*{x}yz}$ \\ |
| 898 |
% \addlinespace[3pt] |
| 899 |
% \cmd{\thirdbottom*}\marg{status} & \cmd{\iiibottom*}\marg{status} & $\Ax{xy\iiibottom*{z}}$ \\ |
| 900 |
% \addlinespace[6pt] |
| 901 |
% \bottomrule |
| 902 |
% \end{tabular} |
| 903 |
% \end{table} |
| 904 |
% |
| 905 |
% \section{Package options} |
| 906 |
% \label{sec:options} |
| 907 |
% |
| 908 |
% The package offers two options to control the placement of |
| 909 |
% precedence numbers: |
| 910 |
% \begin{description} |
| 911 |
% \item[\mdseries\ttfamily alignpreced] always align top and bottom |
| 912 |
% precedence numbers; makes \cmd{\nthtop} and \cmd{\nthbottom} |
| 913 |
% equivalent to \cmd{\nthtop*} and \cmd{\nthbottom*}, |
| 914 |
% respectively; |
| 915 |
% \item[\mdseries\ttfamily compactpreced] always put precedence |
| 916 |
% numbers close to the corresponding statuses; makes \cmd{\nthtop*} |
| 917 |
% and \cmd{\nthbottom*} equivalent to \cmd{\nthtop} and |
| 918 |
% \cmd{\nthbottom}, respectively. |
| 919 |
% \end{description} |
| 920 |
% Option |alignpreced| can be useful to simplify entry of uniformly |
| 921 |
% positioned precedence numbers. On the other hand, option |
| 922 |
% |compactpreced| is merely included as a complement to |alignpreced|. |
| 923 |
% We do not recommended --- nor see a reason --- to use it as it |
| 924 |
% basically renders inoperative commands \cmd{\nthtop*} and |
| 925 |
% \cmd{\nthbottom*}. |
| 926 |
% |
| 927 |
% \appendix |
| 928 |
% |
| 929 |
% \newpage |
| 930 |
% \section{Comprehensive life contingencies symbol list} |
| 931 |
% \label{sec:comprehensive} |
| 932 |
% |
| 933 |
% This appendix was inspired by \citet{Trivedi:lifecon:2004}. The |
| 934 |
% title is a nod to the immensely useful \emph{Comprehensive |
| 935 |
% {\LaTeX} Symbol List} of \citet{comprehensive}. |
| 936 |
% |
| 937 |
% The table below contains all the life contingencies symbols listed |
| 938 |
% in Appendix~3 of \citet{Bowers:2e:1997} along with the code to |
| 939 |
% compose them with \pkg{actuarialsymbol} (and therefore |
| 940 |
% \pkg{actuarialangle}) loaded. Often times there are various ways to |
| 941 |
% obtain a symbol; we tried to always present the most compact and |
| 942 |
% legible option. Not all symbols require features of |
| 943 |
% \pkg{actuarialsymbol}. |
| 944 |
% |
| 945 |
% Calligraphic letters are typeset using \cmd{\mathcal}. The specific |
| 946 |
% versions of $\mathcal{L}$ and $\mathcal{D}$ that appear in this |
| 947 |
% table require the package \pkg{rsfso} \citep{rsfso}, which is \emph{not} |
| 948 |
% loaded by \pkg{actuarialsymbol}. Standard versions of the |
| 949 |
% calligraphic letters are $\text{\usefont{OMS}{zplm}{m}{n} L}$ and |
| 950 |
% $\text{\usefont{OMS}{zplm}{m}{n} D}$. See Table~299 of |
| 951 |
% \citet{comprehensive} for other options. |
| 952 |
% |
| 953 |
% \begingroup |
| 954 |
% \catcode`\|=12 ^^A to use | in math, disable as verbatim delimiter |
| 955 |
% \begin{longtable}{ll} |
| 956 |
% \toprule |
| 957 |
% Symbol & Code to compose the symbol \\ |
| 958 |
% \midrule |
| 959 |
% \endfirsthead |
| 960 |
% \toprule |
| 961 |
% Symbol & Code to compose the symbol \\ |
| 962 |
% \midrule |
| 963 |
% \endhead |
| 964 |
% \midrule |
| 965 |
% \endfoot |
| 966 |
% \bottomrule |
| 967 |
% \endlastfoot |
| 968 |
% \showcase{a} \\ |
| 969 |
% \showcase{a(x)} \\ |
| 970 |
% \showcase{a_x} \\ |
| 971 |
% \showcase{\ax{\angl{K}}} \\ |
| 972 |
% \showcase{\ax*{\angln}} \\ |
| 973 |
% \showcase{\ax*{P_t}} \\ |
| 974 |
% \showcase{\ax*{\angl{T}}} \\ |
| 975 |
% \showcase{\ax*{x}} \\ |
| 976 |
% \showcase{\ax*{r}[h]} \\ |
| 977 |
% \showcase{\ax*{x + t}[i]} \\ |
| 978 |
% \showcase{\ax*{x + t}[r]} \\ |
| 979 |
% \showcase{\ax**{\angl{K + 1}}} \\ |
| 980 |
% \showcase{\ax**{x}[(m)]} \\ |
| 981 |
% \showcase{\aringx{x}[(m)]} \\ |
| 982 |
% \showcase{\ax**{x}[\{m\}]} \\ |
| 983 |
% \showcase{\ax**[j]{x}} \\ |
| 984 |
% \showcase{\ax**[*]{x}} \\ |
| 985 |
% \showcase{\ax{\endowxn}} \\ |
| 986 |
% \showcase{\ax*{\endowxn}} \\ |
| 987 |
% \showcase{\ax**{\endowxn}} \\ |
| 988 |
% \showcase{\ax**{\endowxn}[(m)]} \\ |
| 989 |
% \showcase{\aringx{\endowxn}[(m)]} \\ |
| 990 |
% \showcase{\ax**{\endowxn}[\{m\}]} \\ |
| 991 |
% \showcase{\ax*{\joint\endowxn}} \\ |
| 992 |
% \showcase{\ax*[][2]{\endowxn}} \\ |
| 993 |
% \showcase{\ax[n|]{x}} \\ |
| 994 |
% \showcase{\ax*[n|]{x}} \\ |
| 995 |
% \showcase{\ax**[n|]{x}} \\ |
| 996 |
% \showcase{\ax**[n|]{x}[(m)]} \\ |
| 997 |
% \showcase{\ax*{xy|z}[1]} \\ |
| 998 |
% \showcase{\ax**{xy}[(m)]} \\ |
| 999 |
% \showcase{\ax**{xy:\angln}} \\ |
| 1000 |
% \showcase{\ax**[][2]{xy:\angln}} \\ |
| 1001 |
% \showcase{\ax*{x|y}} \\ |
| 1002 |
% \showcase{\ax*{\joint{x_1 x_2 x_3}}} \\ |
| 1003 |
% \showcase{\twoletsymb[0.6pt]{a}{A}(x)} \\ |
| 1004 |
% \showcase{\twoletsymb[0.6pt]{a}{A}_t} \\ |
| 1005 |
% \showcase{\twoletsymb[0.3pt]{a}{C}_t} \\ |
| 1006 |
% \showcase{\twoletsymb[0.6pt]{a}{F}_t} \\ |
| 1007 |
% \showcase{\twoletsymb[0.6pt]{a}{U}_t} \\ |
| 1008 |
% \showcase{\twoletsymb[0.6pt]{a}{V}(x)} \\ |
| 1009 |
% \showcase{\twoletsymb[0.6pt]{a}{V}_t} \\ |
| 1010 |
% \showcase{A(h)} \\ |
| 1011 |
% \showcase{A_t} \\ |
| 1012 |
% \showcase{\Ax{x}} \\ |
| 1013 |
% \showcase{\Ax*{x}} \\ |
| 1014 |
% \showcase{\Ax{x}[(m)]} \\ |
| 1015 |
% \showcase{\Ax*{x}[\text{PR}]} \\ |
| 1016 |
% \showcase{\Ax{\termxn}} \\ |
| 1017 |
% \showcase{\Ax{\endowxn}} \\ |
| 1018 |
% \showcase{\Ax*{\endowxn}} \\ |
| 1019 |
% \showcase{\Ax{\pureendowxn}} \\ |
| 1020 |
% \showcase{\Ax[j]{x}} \\ |
| 1021 |
% \showcase{\Ax[*]{x}} \\ |
| 1022 |
% \showcase{\Ax*{\termxn}} \\ |
| 1023 |
% \showcase{\actsymb{\tilde{A}}{\termxn}} \\ |
| 1024 |
% \showcase{\Ax[][2]{\pureendowxn}} \\ |
| 1025 |
% \showcase{\Ax[][2]{\termxn}} \\ |
| 1026 |
% \showcase{\Ax*[m|]{x}} \\ |
| 1027 |
% \showcase{\Ax*[m|n]{x}} \\ |
| 1028 |
% \showcase{\Ax{xy}} \\ |
| 1029 |
% \showcase{\Ax{\joint{xy}}} \\ |
| 1030 |
% \showcase{\Ax{xy}[(m)]} \\ |
| 1031 |
% \showcase{\Ax*{x\iitop{y}}} \\ |
| 1032 |
% \showcase{\Ax*{\itop{x}y}} \\ |
| 1033 |
% \showcase{\Ax{xy:\angln}} \\ |
| 1034 |
% \showcase{\Ax*{\itop{\joint{xy}}:\angln}} \\ |
| 1035 |
% \showcase{\Ax[][2]{xy:\angln}} \\ |
| 1036 |
% \showcase{\Ax*{wx\iitop{y}}} \\ |
| 1037 |
% \showcase{\Ax*{\joint{x_1 x_2 x_3}}} \\ |
| 1038 |
% \showcase{\actsymb[k]{\mathit{AS}}{}} \\ |
| 1039 |
% \showcase{\actsymb[k]{\widehat{\mathit{AS}}}{}} \\ |
| 1040 |
% \showcase{\twoletsymb[0pt]{A}{S}_{x + h}} \\ |
| 1041 |
% \showcase{(\mathit{AAI})} \\ |
| 1042 |
% \addlinespace |
| 1043 |
% \showcase{\beta} \\ |
| 1044 |
% \showcase{\bar{\beta}} \\ |
| 1045 |
% \showcase{\Gamma(\alpha)} \\ |
| 1046 |
% \showcase{b(u)} \\ |
| 1047 |
% \showcase{b_j} \\ |
| 1048 |
% \showcase{b_t} \\ |
| 1049 |
% \showcase{b_f(t)} \\ |
| 1050 |
% \showcase{B_t} \\ |
| 1051 |
% \showcase{\hat{B}_{x + k}} \\ |
| 1052 |
% \showcase{\hat{B}_{x + t}^{(3)}} \\ |
| 1053 |
% \showcase{\hat{B}_{x + t}^{(j)}} \\ |
| 1054 |
% \showcase{\actsymb[h]{\mathit{BP}}{}} \\ |
| 1055 |
% \addlinespace |
| 1056 |
% \showcase{c} \\ |
| 1057 |
% \showcase{c_k} \\ |
| 1058 |
% \showcase{\hat{c}_k} \\ |
| 1059 |
% \showcase{c(t)} \\ |
| 1060 |
% \showcase{C_1} \\ |
| 1061 |
% \showcase{C_2} \\ |
| 1062 |
% \showcase{C_3} \\ |
| 1063 |
% \showcase{C_h} \\ |
| 1064 |
% \showcase{\actsymb[k]{\mathit{CV}}{}} \\ |
| 1065 |
% \addlinespace |
| 1066 |
% \showcase{\dx{x}[(j)]} \\ |
| 1067 |
% \showcase{\dx[n]{x}} \\ |
| 1068 |
% \showcase{\dx[n]{x}[(j)]} \\ |
| 1069 |
% \showcase{\dx[n]{x}[(\tau)]} \\ |
| 1070 |
% \showcase{\actsymb[t]{D}{j}} \\ |
| 1071 |
% \showcase{\actsymb[k + 1]{D}{}} \\ |
| 1072 |
% \showcase{\DA_{\termxn}} \\ |
| 1073 |
% \showcase{\DA*_{\termxn}} \\ |
| 1074 |
% \showcase{\Dx[n]{x}} \\ |
| 1075 |
% \showcase{\Dx[n]{x}[(j)]} \\ |
| 1076 |
% \showcase{\Dx[n]{x}[(\tau)]} \\ |
| 1077 |
% \addlinespace |
| 1078 |
% \showcase{e} \\ |
| 1079 |
% \showcase{e_{h - 1}} \\ |
| 1080 |
% \showcase{e_x} \\ |
| 1081 |
% \showcase{\eringx{x}} \\ |
| 1082 |
% \showcase{\hat{e}_k} \\ |
| 1083 |
% \showcase{\eringx{\endowxn}} \\ |
| 1084 |
% \showcase{e_{xy}} \\ |
| 1085 |
% \showcase{e_{\joint{xy}}} \\ |
| 1086 |
% \showcase{\mathrm{E}} \\ |
| 1087 |
% \showcase{E} \\ |
| 1088 |
% \showcase{E_0} \\ |
| 1089 |
% \showcase{\Ex[n]{x}} \\ |
| 1090 |
% \showcase{\twoletsymb[0.6pt]{E}{S}_{x + h + t}} \\ |
| 1091 |
% \showcase{\mathit{ELRA}} \\ |
| 1092 |
% \addlinespace |
| 1093 |
% \showcase{f} \\ |
| 1094 |
% \showcase{f(u, t)} \\ |
| 1095 |
% \showcase{f_S(s)} \\ |
| 1096 |
% \showcase{F_X(x)} \\ |
| 1097 |
% \showcase{F_t} \\ |
| 1098 |
% \showcase{F^{(k)}} \\ |
| 1099 |
% \showcase{F_S(s)} \\ |
| 1100 |
% \showcase{\actsymb[k]{F}{}} \\ |
| 1101 |
% \addlinespace |
| 1102 |
% \showcase{G} \\ |
| 1103 |
% \showcase{\hat{G}} \\ |
| 1104 |
% \showcase{G(b)} \\ |
| 1105 |
% \showcase{G(b)} \\ |
| 1106 |
% \showcase{G(x; \alpha, \beta)} \\ |
| 1107 |
% \addlinespace |
| 1108 |
% \showcase{h(x)} \\ |
| 1109 |
% \showcase{H(r)} \\ |
| 1110 |
% \showcase{H(x; \alpha, \beta, x_0)} \\ |
| 1111 |
% \showcase{\actsymb[u]{\twoletsymb{h}{p}}{x + t}[(\tau)]} \\ |
| 1112 |
% \showcase{\actsymb{\twoletsymb{h}{\mu}}{x + t}[(j)](u)} \\ |
| 1113 |
% \addlinespace |
| 1114 |
% \showcase{i'_{k + 1}} \\ |
| 1115 |
% \showcase{\hat{\imath}_{k + 1}} \\ |
| 1116 |
% \showcase{i(s, s + t)} \\ |
| 1117 |
% \showcase{I_k} \\ |
| 1118 |
% \showcase{I_d} \\ |
| 1119 |
% \showcase{I_d(x)} \\ |
| 1120 |
% \showcase{\actsymb[j]{i}{k}} \\ |
| 1121 |
% \showcase{\IA_x} \\ |
| 1122 |
% \showcase{\IA*_x} \\ |
| 1123 |
% \showcase{\IbA*_x} \\ |
| 1124 |
% \showcase{\ImA*_x} \\ |
| 1125 |
% \showcase{\IA_{\termxn}} \\ |
| 1126 |
% \addlinespace |
| 1127 |
% \showcase{J} \\ |
| 1128 |
% \showcase{j(s, s + t, s + u)} \\ |
| 1129 |
% \addlinespace |
| 1130 |
% \showcase{\actsymb[t]{\bar{k}}{x}} \\ |
| 1131 |
% \showcase{K} \\ |
| 1132 |
% \showcase{K(x)} \\ |
| 1133 |
% \showcase{K(xy)} \\ |
| 1134 |
% \showcase{K(\joint{xy})} \\ |
| 1135 |
% \addlinespace |
| 1136 |
% \showcase{\lx{x}} \\ |
| 1137 |
% \showcase{\lx{[x] + k}} \\ |
| 1138 |
% \showcase{\lx{x}[(\tau)]} \\ |
| 1139 |
% \showcase{l(x, u)} \\ |
| 1140 |
% \showcase{l_f(x, u)} \\ |
| 1141 |
% \showcase{L} \\ |
| 1142 |
% \showcase{L_1} \\ |
| 1143 |
% \showcase{L_x} \\ |
| 1144 |
% \showcase{L(h)} \\ |
| 1145 |
% \showcase{\actsymb[t]{L}{}} \\ |
| 1146 |
% \showcase{\actsymb[t]{L}{}[\underline{2}]} \\ |
| 1147 |
% \showcase{\actsymb[t]{L}{e}} \\ |
| 1148 |
% \showcase{\actsymb[t]{L}{e}[\underline{2}]} \\ |
| 1149 |
% \showcase{\mathcal{L}(x)} \\ |
| 1150 |
% \showcase{\Lx{x}[(\tau)]} \\ |
| 1151 |
% \addlinespace |
| 1152 |
% \showcase{m(x)} \\ |
| 1153 |
% \showcase{m_x} \\ |
| 1154 |
% \showcase{m_x^{(j)}} \\ |
| 1155 |
% \showcase{m_x^{(\tau)}} \\ |
| 1156 |
% \showcase{m_x^{\prime (j)}} \\ |
| 1157 |
% \showcase{\mathrm{M}_X(t)} \\ |
| 1158 |
% \showcase{M(x)} \\ |
| 1159 |
% \addlinespace |
| 1160 |
% \showcase{n(u)} \\ |
| 1161 |
% \showcase{N} \\ |
| 1162 |
% \showcase{N(t)} \\ |
| 1163 |
% \addlinespace |
| 1164 |
% \showcase{p(j)} \\ |
| 1165 |
% \showcase{p(x)} \\ |
| 1166 |
% \showcase{p_k} \\ |
| 1167 |
% \showcase{\px{[x] + r}} \\ |
| 1168 |
% \showcase{p^{*n}(x)} \\ |
| 1169 |
% \showcase{\px[t]{x}} \\ |
| 1170 |
% \showcase{\px[t]{x}[(\tau)]} \\ |
| 1171 |
% \showcase{\px[t]{x}[\prime (j)]} \\ |
| 1172 |
% \showcase{\px[t]{xy}} \\ |
| 1173 |
% \showcase{\px[t]{\joint{xy}}} \\ |
| 1174 |
% \showcase{\px[u]{\joint{xy} + t}} \\ |
| 1175 |
% \showcase{\px[t]{\joint{x_1 x_2}\nthtop{k}{\joint{x_3}}}} \\ |
| 1176 |
% \showcase{P(x)} \\ |
| 1177 |
% \showcase{P(s, t)} \\ |
| 1178 |
% \showcase{P_t} \\ |
| 1179 |
% \showcase{\actsymb[][T]{P}{t}} \\ |
| 1180 |
% \showcase{P^a} \\ |
| 1181 |
% \showcase{P_x} \\ |
| 1182 |
% \showcase{\Px[j]{x}} \\ |
| 1183 |
% \showcase{\Px[*]{x}} \\ |
| 1184 |
% \showcase{\Px{\endowxn}[A]} \\ |
| 1185 |
% \showcase{\Px{\endowxn}} \\ |
| 1186 |
% \showcase{\Px{\joint{xy}}} \\ |
| 1187 |
% \showcase{\Px{\:\termxn}} \\ |
| 1188 |
% \showcase{\Px{\pureendowxn}} \\ |
| 1189 |
% \showcase{P^{*n}(x)} \\ |
| 1190 |
% \showcase{\Px[h]{x}} \\ |
| 1191 |
% \showcase{\Px[h]{\endowxn}} \\ |
| 1192 |
% \showcase{\twoletsymb[0.6pt]{P}{a}(x)} \\ |
| 1193 |
% \showcase{\twoletsymb[0.6pt]{P}{a}_t} \\ |
| 1194 |
% \showcase{\premium{\Ax*{\endowxn}}} \\ |
| 1195 |
% \showcase{\premium{\ax**[n|]{x}}} \\ |
| 1196 |
% \showcase{\premium{\ax*[n|]{x}}} \\ |
| 1197 |
% \showcase{\premium{\Ax*{x}}[(m)]} \\ |
| 1198 |
% \showcase{\premium{\Ax*{x}}[\{m\}]} \\ |
| 1199 |
% \showcase{\premium{\Ax*{x}[\text{PR}]}} \\ |
| 1200 |
% \showcase{\premium*{\Ax*{\endowxn}}} \\ |
| 1201 |
% \showcase{\premium*{\Ax*{\termxn}}} \\ |
| 1202 |
% \showcase{\premium*{\Ax*{\pureendowxn}}} \\ |
| 1203 |
% \showcase{\premium{\Ax*{\endowxn}}[(m)]} \\ |
| 1204 |
% \showcase{\premium{\Ax*{\termxn}}[(m)]} \\ |
| 1205 |
% \showcase{\premium*[h]{\Ax*{x}}} \\ |
| 1206 |
% \showcase{\premium*[h]{\Ax*{\endowxn}}} \\ |
| 1207 |
% \showcase{\premium[h]{\Ax*{x}}[(m)]} \\ |
| 1208 |
% \showcase{\premium[h]{\Ax*{\endowxn}}[(m)]} \\ |
| 1209 |
% \showcase{\premium[h]{\Ax*{\endowxn}}[\{m\}]} \\ |
| 1210 |
% \addlinespace[3pt] |
| 1211 |
% \showcase{\premium{\Ax*{\joint{xy}\iitop{\joint{z}}}}} \\ |
| 1212 |
% \showcase{\premium{\Ax*{\ibottom{x}\iitop{y}z}}} \\ |
| 1213 |
% \addlinespace[3pt] |
| 1214 |
% \showcase{\tilde{P}_{\:\termxn}} \\ |
| 1215 |
% \addlinespace |
| 1216 |
% \showcase{\qx{[x] + r}} \\ |
| 1217 |
% \showcase{\qx{x}[(d)]} \\ |
| 1218 |
% \showcase{\qx{x}[(i)]} \\ |
| 1219 |
% \showcase{\qx{x}[(r)]} \\ |
| 1220 |
% \showcase{\qx{x}[(w)]} \\ |
| 1221 |
% \showcase{\actsymb{\hat{q}}{x + k}[(j)]} \\ |
| 1222 |
% \showcase{\qx{xy}} \\ |
| 1223 |
% \showcase{\qx[k|]{x}} \\ |
| 1224 |
% \showcase{\qx[t]{x}} \\ |
| 1225 |
% \showcase{\qx[t]{x}[(j)]} \\ |
| 1226 |
% \showcase{\qx[t]{x}[(\tau)]} \\ |
| 1227 |
% \showcase{\qx[t]{x}[\prime (j)]} \\ |
| 1228 |
% \showcase{\qx[t|u]{x}} \\ |
| 1229 |
% \showcase{\qx[n]{\itop{x}y}} \\ |
| 1230 |
% \showcase{\qx[n]{x\iitop{y}}} \\ |
| 1231 |
% \showcase{\qx[k|]{xy}} \\ |
| 1232 |
% \addlinespace[3pt] |
| 1233 |
% \showcase{\qx[n]{\ibottom{x}\iitop{y}z}} \\ |
| 1234 |
% \addlinespace[3pt] |
| 1235 |
% \showcase{\qx[\infty]{\ibottom*{x}\iibottom*{y}\iiitop{z}}} \\ |
| 1236 |
% \addlinespace |
| 1237 |
% \showcase{r} \\ |
| 1238 |
% \showcase{r_C} \\ |
| 1239 |
% \showcase{r_F} \\ |
| 1240 |
% \showcase{r_N} \\ |
| 1241 |
% \showcase{\twoletsymb[0.6pt]{r}{A}_t} \\ |
| 1242 |
% \showcase{\twoletsymb[0.6pt]{r}{F}_t} \\ |
| 1243 |
% \showcase{\twoletsymb[0.6pt]{r}{V}_t} \\ |
| 1244 |
% \showcase{R} \\ |
| 1245 |
% \showcase{\tilde{R}} \\ |
| 1246 |
% \showcase{R(x, h, y)} \\ |
| 1247 |
% \addlinespace |
| 1248 |
% \showcase{s(x)} \\ |
| 1249 |
% \showcase{\sx**{\angln}} \\ |
| 1250 |
% \showcase{s(x,u)} \\ |
| 1251 |
% \showcase{\sx*{\endowxn}} \\ |
| 1252 |
% \showcase{\sx**{\endowxn}} \\ |
| 1253 |
% \showcase{S} \\ |
| 1254 |
% \showcase{S(t)} \\ |
| 1255 |
% \showcase{S_y} \\ |
| 1256 |
% \showcase{\actsymb[k]{\mathit{SC}}{}} \\ |
| 1257 |
% \addlinespace |
| 1258 |
% \showcase{T} \\ |
| 1259 |
% \showcase{\tilde{T}} \\ |
| 1260 |
% \showcase{T_x} \\ |
| 1261 |
% \showcase{T_{xy}} \\ |
| 1262 |
% \showcase{T_{\joint{xy}}} \\ |
| 1263 |
% \addlinespace |
| 1264 |
% \showcase{U(t)} \\ |
| 1265 |
% \showcase{U_t} \\ |
| 1266 |
% \showcase{\hat{U}{t}} \\ |
| 1267 |
% \addlinespace |
| 1268 |
% \showcase{v_t} \\ |
| 1269 |
% \showcase{\tilde{v}_n} \\ |
| 1270 |
% \showcase{V_i} \\ |
| 1271 |
% \showcase{V_t} \\ |
| 1272 |
% \showcase{\Vx[k]{x}} \\ |
| 1273 |
% \showcase{\Vx[k]{\endowxn}} \\ |
| 1274 |
% \showcase{\Vx[k]{\:\termxn}} \\ |
| 1275 |
% \showcase{\Vx[k]{\pureendowxn}} \\ |
| 1276 |
% \showcase{\Vx[k]{x}[\text{FPT}]} \\ |
| 1277 |
% \showcase{\Vx[t]{\itop{\group{xy}}:\angln}} \\ |
| 1278 |
% \showcase{\Vx[k][h]{x}} \\ |
| 1279 |
% \showcase{\Vx[k][h]{\endowxn}} \\ |
| 1280 |
% \showcase{\Vx[k][h]{\endowxn}[(m)]} \\ |
| 1281 |
% \showcase{\Vx[k][h]{\endowxn}[\text{Mod}]} \\ |
| 1282 |
% \showcase{\reserve[k]{\ax**[n|]{x}}} \\ |
| 1283 |
% \showcase{\reserve*[t]{\ax*[n|]{x}}} \\ |
| 1284 |
% \showcase{\reserve*[t]{\Ax*{x}}} \\ |
| 1285 |
% \showcase{\reserve*[t]{\Ax*{\endowxn}}} \\ |
| 1286 |
% \showcase{\reserve*[t]{\Ax*{\termxn}}} \\ |
| 1287 |
% \showcase{\reserve*[t]{\Ax*{\pureendowxn}}} \\ |
| 1288 |
% \showcase{\reserve*[t]{\Ax*{x}}^{\text{Mod}}} \\ |
| 1289 |
% \showcase{\reserve[t]{\Ax*{\joint{xy}}}} \\ |
| 1290 |
% \showcase{\reserve[t]{\Ax*{x}}[\{1\}]} \\ |
| 1291 |
% \showcase{\reserve[k]{\Ax*{x}[\text{PR}]}} \\ |
| 1292 |
% \showcase{\reserve[k][h]{\Ax{\termxn}}} \\ |
| 1293 |
% \showcase{\reserve*[t][h]{\Ax*{x}}} \\ |
| 1294 |
% \showcase{\reserve*[t][h]{\Ax*{\endowxn}}} \\ |
| 1295 |
% \showcase{\reserve*[t][h]{\Ax*{\endowxn}}[(m)]} \\ |
| 1296 |
% \addlinespace |
| 1297 |
% \showcase{w(x)} \\ |
| 1298 |
% \showcase{W_i} \\ |
| 1299 |
% \showcase{W_t} \\ |
| 1300 |
% \showcase{\Wx[k]{}} \\ |
| 1301 |
% \showcase{\Wx[k]{x}} \\ |
| 1302 |
% \showcase{\Wx[k]{\endowxn}} \\ |
| 1303 |
% \showcase{\Wx[k][h]{x}} \\ |
| 1304 |
% \showcase{\twoletsymb{W}{a}_t} \\ |
| 1305 |
% \showcase{\paidup*[k]{\Ax{x}}} \\ |
| 1306 |
% \showcase{\paidup*[k]{\Ax{\endowxn}}} \\ |
| 1307 |
% \showcase{\paidup*[k][h]{\Ax{x}}} \\ |
| 1308 |
% \addlinespace |
| 1309 |
% \showcase{(x)} \\ |
| 1310 |
% \showcase{(x_1 x_2 \dotsm x_m)} \\ |
| 1311 |
% \showcase{(\joint{x_1 x_2 \dotsm x_m})} \\ |
| 1312 |
% \addlinespace[9pt] |
| 1313 |
% \showcase{\joint{x_1x_2 \dotsm}\nthtop{k}{\joint{x_m}}} \\ |
| 1314 |
% \addlinespace[9pt] |
| 1315 |
% \showcase{\joint{x_1x_2 \dotsm}\nthtop{[k]}{\joint{x_m}}} \\ |
| 1316 |
% \showcase{X_i} \\ |
| 1317 |
% \showcase{X(\theta)} \\ |
| 1318 |
% \addlinespace |
| 1319 |
% \showcase{Y} \\ |
| 1320 |
% \showcase{y(s, s + m)} \\ |
| 1321 |
% \showcase{Y(t, n)} \\ |
| 1322 |
% \addlinespace |
| 1323 |
% \showcase{z_t}\\ |
| 1324 |
% \showcase{Z}\\ |
| 1325 |
% \showcase{\actsymb[m]{Z}{t}}\\ |
| 1326 |
% \addlinespace |
| 1327 |
% \showcase{\alpha} \\ |
| 1328 |
% \showcase{\alpha(m)} \\ |
| 1329 |
% \showcase{\bar{\alpha}} \\ |
| 1330 |
% \showcase{\alpha^{\text{CRVM}}} \\ |
| 1331 |
% \addlinespace |
| 1332 |
% \showcase{\beta} \\ |
| 1333 |
% \showcase{\beta(m)} \\ |
| 1334 |
% \showcase{\bar{\beta}} \\ |
| 1335 |
% \showcase{\beta^{\text{CRVM}}} \\ |
| 1336 |
% \showcase{\beta(x, u)} \\ |
| 1337 |
% \addlinespace |
| 1338 |
% \showcase{\Gamma(\alpha)} \\ |
| 1339 |
% \addlinespace |
| 1340 |
% \showcase{\delta} \\ |
| 1341 |
% \showcase{\delta_t} \\ |
| 1342 |
% \addlinespace |
| 1343 |
% \showcase{\theta} \\ |
| 1344 |
% \addlinespace |
| 1345 |
% \showcase{\lambda(t)} \\ |
| 1346 |
% \showcase{\lambda(t, n)} \\ |
| 1347 |
% \showcase{\Lambda} \\ |
| 1348 |
% \showcase{\Lambda_h} \\ |
| 1349 |
% \addlinespace |
| 1350 |
% \showcase{\mu(x)} \\ |
| 1351 |
% \showcase{\mu_x(t)} \\ |
| 1352 |
% \showcase{\mu_x^{(d)}}\\ |
| 1353 |
% \showcase{\mu_x^{(i)}}\\ |
| 1354 |
% \showcase{\mu_x^{(w)}}\\ |
| 1355 |
% \showcase{\mu_x^{(j)}(t)}\\ |
| 1356 |
% \showcase{\mu_x^{(\tau)}(t)}\\ |
| 1357 |
% \showcase{\mu_{xy}(t)}\\ |
| 1358 |
% \showcase{\mu_{\joint{xy}}(t)} \\ |
| 1359 |
% \showcase{\mu(x, u)} \\ |
| 1360 |
% \addlinespace |
| 1361 |
% \showcase{\pi_h} \\ |
| 1362 |
% \showcase{\pi_t} \\ |
| 1363 |
% \addlinespace |
| 1364 |
% \showcase{\rho} \\ |
| 1365 |
% \addlinespace |
| 1366 |
% \showcase{\tau} \\ |
| 1367 |
% \addlinespace |
| 1368 |
% \showcase{\phi(x)} \\ |
| 1369 |
% \showcase{\phi(x, u)} \\ |
| 1370 |
% \addlinespace |
| 1371 |
% \showcase{\Psi(u)} \\ |
| 1372 |
% \showcase{\tilde{\Psi}(u)} \\ |
| 1373 |
% \showcase{\Psi(u, t)} \\ |
| 1374 |
% \showcase{\Psi(u; w)} \\ |
| 1375 |
% \showcase{\tilde{\Psi}(u; w)} \\ |
| 1376 |
% \addlinespace |
| 1377 |
% \showcase{\omega}\\ |
| 1378 |
% \end{longtable} |
| 1379 |
% \endgroup |
| 1380 |
% |
| 1381 |
% \StopEventually{ |
| 1382 |
% \newpage |
| 1383 |
% \begin{thebibliography}{9} |
| 1384 |
% \addcontentsline{toc}{section}{References} |
| 1385 |
% \bibitem[{A}merican~{M}athematical {S}ociety(2002)]{amsmath} |
| 1386 |
% {A}merican~{M}athematical {S}ociety. |
| 1387 |
% \newblock \emph{User's Guide for the amsmath Package}, 2002. |
| 1388 |
% \newblock URL \url{https://www.ctan.org/pkg/amsmath/}. |
| 1389 |
% |
| 1390 |
% \bibitem[Bowers et~al.(1997)Bowers, Gerber, Hickman, Jones, and |
| 1391 |
% Nesbitt]{Bowers:2e:1997} |
| 1392 |
% N.~L. Bowers, H.~U. Gerber, J.~C. Hickman, D.~A. Jones, and C.~J. Nesbitt. |
| 1393 |
% \newblock \emph{Actuarial Mathematics}. |
| 1394 |
% \newblock Society of Actuaries, Shaumburg, IL, second edition, 1997. |
| 1395 |
% \newblock ISBN 0-9389594-6-8. |
| 1396 |
% |
| 1397 |
% \bibitem[Goulet(2017)]{actuarialangle} |
| 1398 |
% V. Goulet. |
| 1399 |
% \newblock \emph{Actuarial angle symbol for life contingencies and financial |
| 1400 |
% mathematics}, 2017. |
| 1401 |
% \newblock URL \url{https://www.ctan.org/pkg/actuarialangle/}. |
| 1402 |
% |
| 1403 |
% \bibitem[Høgholm and Madsen(2015)]{mathtools} |
| 1404 |
% M. Høgholm and L. Madsen. |
| 1405 |
% \newblock \emph{The mathtools package}, 2015. |
| 1406 |
% \newblock URL \url{https://www.ctan.org/pkg/mathtools/}. |
| 1407 |
% |
| 1408 |
% \bibitem[Pakin(2015)]{comprehensive} |
| 1409 |
% S. Pakin. |
| 1410 |
% \newblock \emph{The Comprehensive {\LaTeX} Symbol List}, 2015. |
| 1411 |
% \newblock URL \url{https://www.ctan.org/pkg/comprehensive/}. |
| 1412 |
% |
| 1413 |
% \bibitem[Robertson(2007)]{subdepth} |
| 1414 |
% W. Robertson. |
| 1415 |
% \newblock \emph{Unify subscript depths}, 2007. |
| 1416 |
% \newblock URL \url{https://www.ctan.org/pkg/subdepth/}. |
| 1417 |
% |
| 1418 |
% \bibitem[Sharpe(2015)]{rsfso} |
| 1419 |
% M. Sharpe. |
| 1420 |
% \newblock \emph{An acute script font based on {rsfs}}, 2015. |
| 1421 |
% \newblock URL \url{https://www.ctan.org/pkg/rsfso/}. |
| 1422 |
% |
| 1423 |
% \bibitem[Trivedi(2004)]{Trivedi:lifecon:2004} |
| 1424 |
% E. Trivedi. |
| 1425 |
% \newblock \emph{Life Contingencies' Symbols}, 2004. |
| 1426 |
% \newblock \texttt{lifecon} 2.1 User Guide. |
| 1427 |
% |
| 1428 |
% \bibitem[Wolthuis(2004)]{Wolthuis:notation:2004} |
| 1429 |
% H. Wolthuis. |
| 1430 |
% \newblock International actuarial notation. |
| 1431 |
% \newblock In Jozef Teugels and Bj{\o}rn Sundt, editors, \emph{Encyclopedia of |
| 1432 |
% Actuarial Science}. Wiley, 2004. |
| 1433 |
% \newblock ISBN 978-0-47001250-5. |
| 1434 |
% \newblock URL \url{https://onlinelibrary.wiley.com/book/10.1002/9780470012505}. |
| 1435 |
% \end{thebibliography} |
| 1436 |
% \PrintChanges |
| 1437 |
% } |
| 1438 |
% |
| 1439 |
% \newpage |
| 1440 |
% \section{Implementation} |
| 1441 |
% \label{sec:implementation} |
| 1442 |
% |
| 1443 |
% This appendix contains the annotated source code of the package. |
| 1444 |
% Most readers can stop reading here. |
| 1445 |
%\iffalse |
| 1446 |
%<*package> |
| 1447 |
%\fi |
| 1448 |
% |
| 1449 |
% \subsection{Required packages} |
| 1450 |
% \label{sec:implementation:packages} |
| 1451 |
% |
| 1452 |
% \begin{macro}{\RequirePackage} |
| 1453 |
% The package depends on packages \pkg{amsmath} \citep{amsmath} and |
| 1454 |
% \pkg{actuarialangle} \citep{actuarialangle}. |
| 1455 |
% \begin{macrocode} |
| 1456 |
\RequirePackage{amsmath} |
| 1457 |
\RequirePackage{actuarialangle} |
| 1458 |
% \end{macrocode} |
| 1459 |
% \end{macro} |
| 1460 |
% |
| 1461 |
% \subsection{Package options} |
| 1462 |
% \label{sec:implementation:options} |
| 1463 |
% |
| 1464 |
% \begin{macro}{\ifacts@alignpreced} |
| 1465 |
% \begin{macro}{\ifacts@compactpreced} |
| 1466 |
% We define two flags to keep track of the type of alignment for |
| 1467 |
% precedence numbers. Both are false by default. |
| 1468 |
% \begin{macrocode} |
| 1469 |
\newif\ifacts@alignpreced \acts@alignprecedfalse |
| 1470 |
\newif\ifacts@compactpreced \acts@compactprecedfalse |
| 1471 |
% \end{macrocode} |
| 1472 |
% \end{macro} |
| 1473 |
% \end{macro} |
| 1474 |
% \begin{macro}{\DeclareOption} |
| 1475 |
% Declaration of the package options and processing. |
| 1476 |
% \begin{macrocode} |
| 1477 |
\DeclareOption{alignpreced}{\acts@alignprecedtrue} |
| 1478 |
\DeclareOption{compactpreced}{\acts@compactprecedtrue} |
| 1479 |
\ProcessOptions |
| 1480 |
% \end{macrocode} |
| 1481 |
% \end{macro} |
| 1482 |
% |
| 1483 |
% \subsection{Actuarial symbol} |
| 1484 |
% \label{sec:implementation:actsymb} |
| 1485 |
% |
| 1486 |
% We face three main challenges when trying to compose actuarial |
| 1487 |
% symbols: position a subscript and a superscipt to the left of a main |
| 1488 |
% symbol; ensure that the left and right subscripts and superscripts |
| 1489 |
% are vertically aligned; maintain consistency with the placement of |
| 1490 |
% subscripts and superscripts elsewhere in the document. |
| 1491 |
% |
| 1492 |
% \subsubsection{User level and parsing commands} |
| 1493 |
% \label{sec:implementation:actsymb:user} |
| 1494 |
% |
| 1495 |
% \begin{macro}{\actsymb} |
| 1496 |
% We first define the user level command. |
| 1497 |
% \begin{macrocode} |
| 1498 |
\DeclareRobustCommand{\actsymb}{\acts@actsymb} |
| 1499 |
% \end{macrocode} |
| 1500 |
% \end{macro} |
| 1501 |
% \begin{macro}{\acts@actsymb} |
| 1502 |
% \begin{macro}{\acts@@actsymb} |
| 1503 |
% \begin{macro}{\acts@@@actsymb} |
| 1504 |
% \begin{macro}{\acts@@@@actsymb} |
| 1505 |
% With its unusual syntax, \cmd{\actsymb} requires four parsing |
| 1506 |
% macros to pass the arguments to the actual workhorse |
| 1507 |
% \cmd{\@actsymbol}. |
| 1508 |
% \changes{1.1}{2019-01-08}{Use \pkg{amsmath}'s \cmd{\new@ifnextchar}.} |
| 1509 |
% \begin{macrocode} |
| 1510 |
\newcommand*\acts@actsymb{% |
| 1511 |
\new@ifnextchar[{\acts@@actsymb}% |
| 1512 |
{\acts@@actsymb[]}} |
| 1513 |
\newcommand*\acts@@actsymb{} |
| 1514 |
\def\acts@@actsymb[#1]{% |
| 1515 |
\new@ifnextchar[{\acts@@@actsymb[#1]}% |
| 1516 |
{\acts@@@actsymb[#1][]}} |
| 1517 |
\newcommand*\acts@@@actsymb{} |
| 1518 |
\def\acts@@@actsymb[#1][#2]{% |
| 1519 |
\new@ifnextchar[{\acts@@@@actsymb[#1][#2]}% |
| 1520 |
{\acts@@@@actsymb[#1][#2][]}} |
| 1521 |
\newcommand*\acts@@@@actsymb{} |
| 1522 |
\def\acts@@@@actsymb[#1][#2][#3]#4#5{% |
| 1523 |
\new@ifnextchar[{\@actsymbol[#1][#2][#3]{#4}{#5}}% |
| 1524 |
{\@actsymbol[#1][#2][#3]{#4}{#5}[]}} |
| 1525 |
% \end{macrocode} |
| 1526 |
% \end{macro} |
| 1527 |
% \end{macro} |
| 1528 |
% \end{macro} |
| 1529 |
% \end{macro} |
| 1530 |
% |
| 1531 |
% \subsubsection{Symbol construction} |
| 1532 |
% \label{sec:implementation:actsymb:workhorse} |
| 1533 |
% |
| 1534 |
% \begin{macro}{\@actsymbol} |
| 1535 |
% We now define the workhorse to compose an actuarial symbol |
| 1536 |
% allowing for auxiliary symbols on all four corners around a |
| 1537 |
% principal symbol. The macro \cmd{\@actsymbol} has the following |
| 1538 |
% six arguments, using the notation from of the schematics |
| 1539 |
% representations \eqref{schema1} and \eqref{schema2}: |
| 1540 |
% \begin{enumerate}[nosep] |
| 1541 |
% \item lower left subscript \fbox{\small I}\,; may be empty; |
| 1542 |
% \item upper left superscript \fbox{\small II}\,; may be empty; |
| 1543 |
% \item symbol $P$; when empty a standard symbol is |
| 1544 |
% typeset; |
| 1545 |
% \item principal symbol $S$; assumed present; |
| 1546 |
% \item lower right subscript \fbox{\small III}\,; assumed present; |
| 1547 |
% \item upper right superscript \fbox{\small IV}\,; may be empty. |
| 1548 |
% \end{enumerate} |
| 1549 |
% The definition below is heavily inspired by the code of |
| 1550 |
% \cmd{\prescript} from the package \pkg{mathtools} \citep{mathtools} |
| 1551 |
% which, as reported by the author, is itself based on a posting to |
| 1552 |
% |comp.text.tex| by Michael J.~Downes. Some of the comments below |
| 1553 |
% are still his. |
| 1554 |
% \begin{macrocode} |
| 1555 |
\newcommand*\@actsymbol{} |
| 1556 |
\def\@actsymbol[#1][#2][#3]#4#5[#6]{% |
| 1557 |
% \end{macrocode} |
| 1558 |
% We put symbol $P$ and all subscripts and superscript into |
| 1559 |
% horizontal boxes using \cmd{\@mathmeasure} of the package \pkg{amsmath}. |
| 1560 |
% \changes{1.1}{2019-01-08}{Use local box registers.} |
| 1561 |
% \begin{macrocode} |
| 1562 |
\@mathmeasure\z@\displaystyle{#3}% |
| 1563 |
\@mathmeasure\tw@\scriptstyle{#1}% |
| 1564 |
\@mathmeasure4\scriptstyle{#2}% |
| 1565 |
\@mathmeasure6\scriptstyle{#5}% |
| 1566 |
\@mathmeasure8\scriptstyle{#6}% |
| 1567 |
% \end{macrocode} |
| 1568 |
% Do not let a preceding mathord symbol approach without any |
| 1569 |
% intervening space. |
| 1570 |
% \begin{macrocode} |
| 1571 |
\mathord{}% |
| 1572 |
% \end{macrocode} |
| 1573 |
% Right align the left subscript and superscript (if there is a |
| 1574 |
% superscript) by adjusting the width of their horizontal boxes. |
| 1575 |
% \begin{macrocode} |
| 1576 |
\ifdim \wd4>\z@ \ifdim \wd4>\wd\tw@ |
| 1577 |
\setbox\tw@\hbox to\wd4{\hfil\unhbox\tw@}% |
| 1578 |
\else |
| 1579 |
\setbox4\hbox to\wd\tw@{\hfil\unhbox4}% |
| 1580 |
\fi\fi |
| 1581 |
% \end{macrocode} |
| 1582 |
% Bottom align the left and right subscripts by making their heights |
| 1583 |
% equal. |
| 1584 |
% \begin{macrocode} |
| 1585 |
\ifdim \ht\tw@>\ht6 |
| 1586 |
\ht6=\ht\tw@ |
| 1587 |
\else |
| 1588 |
\ht\tw@=\ht6% |
| 1589 |
\fi |
| 1590 |
% \end{macrocode} |
| 1591 |
% Actual symbol construction. First the case where there is at least |
| 1592 |
% one superscript (the nested conditionals emulate an OR condition). |
| 1593 |
% \begin{macrocode} |
| 1594 |
\ifnum\ifdim \wd4>\z@ 1\else\ifdim \wd8>\z@ 1\else 0\fi\fi |
| 1595 |
=1 % |
| 1596 |
% \end{macrocode} |
| 1597 |
% To ensure equal spacing with the subscripts on both sides of the |
| 1598 |
% principal symbol, make the depths of the left and right |
| 1599 |
% supercripts equal. |
| 1600 |
% \begin{macrocode} |
| 1601 |
\ifdim \dp4>\dp8 \dp8=\dp4\else \dp4=\dp8\fi |
| 1602 |
% \end{macrocode} |
| 1603 |
% Typesetting of the left subscript and superscript. Use |
| 1604 |
% \cmd{\mathopen} to suppress space between those and the principal |
| 1605 |
% symbol even when the latter is not of type ord. (We use |
| 1606 |
% |\textstyle| inside |\vphantom| to avoid bad positioning of |
| 1607 |
% subscripts with \XeTeX; see |
| 1608 |
% \href{https://tex.stackexchange.com/q/374771/24355}{^^A |
| 1609 |
% the discussion} on StackExchange for details.) |
| 1610 |
% \changes{1.0a}{2017-06-14}{Fix left subscript positioning with xetex.} |
| 1611 |
% \begin{macrocode} |
| 1612 |
\mathopen{\vphantom{\textstyle #4}\sp{\box4}\sb{\box\tw@}}% |
| 1613 |
% \end{macrocode} |
| 1614 |
% Typesetting of the principal symbol and the right subscript and |
| 1615 |
% superscript. The principal symbol is either a principal symbol alone |
| 1616 |
% or a premium (or reserve, or paid-up insurance) symbol and a benefit symbol |
| 1617 |
% between parentheses. In |
| 1618 |
% the latter case, we make sure to align the subscripts and |
| 1619 |
% superscripts only around the premium symbol. |
| 1620 |
% \begin{macrocode} |
| 1621 |
\ifdim\wd\z@=\z@ |
| 1622 |
#4\sp{\box8}\sb{\box6}% |
| 1623 |
\else |
| 1624 |
#3\sp{\box8}\sb{\vphantom{\copy6}}(#4\sb{\box6})% |
| 1625 |
\fi |
| 1626 |
\else |
| 1627 |
% \end{macrocode} |
| 1628 |
% Same ideas as above in the simpler case without superscripts. That |
| 1629 |
% way, {\TeX}'s default placement of subscripts and superscripts is |
| 1630 |
% maintained. |
| 1631 |
% \begin{macrocode} |
| 1632 |
\mathopen{\vphantom{\textstyle #4}\sb{\box\tw@}}% |
| 1633 |
\ifdim\wd\z@=\z@ |
| 1634 |
#4\sb{\box6}% |
| 1635 |
\else |
| 1636 |
#3(#4\sb{\box6})% |
| 1637 |
\fi |
| 1638 |
\fi |
| 1639 |
} |
| 1640 |
% \end{macrocode} |
| 1641 |
% \end{macro} |
| 1642 |
% |
| 1643 |
% \subsubsection{Shortcuts for basic symbols of life tables, insurance and annuities} |
| 1644 |
% \label{sec:implementation:actsymb:principalsc} |
| 1645 |
% |
| 1646 |
% \begin{macro}{\@actinssc} |
| 1647 |
% \begin{macro}{\@actannsc} |
| 1648 |
% \begin{macro}{\@actothersc} |
| 1649 |
% \begin{macro}{\acts@actsc} |
| 1650 |
% \begin{macro}{\acts@@actsc} |
| 1651 |
% \begin{macro}{\acts@@@actsc} |
| 1652 |
% We first define the internal macros and parsing macros used to |
| 1653 |
% define shortcuts for insurance benefits (\cmd{\@actinssc}), |
| 1654 |
% annuity benefits (\cmd{\@actannsc}) and simple symbols |
| 1655 |
% (\cmd{\@actothersc}). |
| 1656 |
% \begin{macrocode} |
| 1657 |
\newcommand*\@actinssc[1]{% |
| 1658 |
\@ifstar{\acts@actsc{\bar{#1}}}% |
| 1659 |
{\acts@actsc{#1}}} |
| 1660 |
\newcommand*\@actannsc[1]{% |
| 1661 |
\@ifstar{\@ifstar{\acts@actsc{\ddot{#1}}}% |
| 1662 |
{\acts@actsc{\bar{#1}}}}% |
| 1663 |
{\acts@actsc{#1}}} |
| 1664 |
\newcommand*\acts@actsc[1]{% |
| 1665 |
\new@ifnextchar[{\acts@@actsc{#1}}% |
| 1666 |
{\acts@@actsc{#1}[]}} |
| 1667 |
\newcommand*\@actothersc{} |
| 1668 |
\let\@actothersc\acts@actsc |
| 1669 |
\newcommand*\acts@@actsc{} |
| 1670 |
\def\acts@@actsc#1[#2]{% |
| 1671 |
\new@ifnextchar[{\acts@@@actsc{#1}[#2]}% |
| 1672 |
{\acts@@@actsc{#1}[#2][]}} |
| 1673 |
\newcommand*\acts@@@actsc{} |
| 1674 |
\def\acts@@@actsc#1[#2][#3]#4{% |
| 1675 |
\new@ifnextchar[{\@actsymbol[#2][#3][]{#1}{#4}}% |
| 1676 |
{\@actsymbol[#2][#3][]{#1}{#4}[]}} |
| 1677 |
% \end{macrocode} |
| 1678 |
% \end{macro} |
| 1679 |
% \end{macro} |
| 1680 |
% \end{macro} |
| 1681 |
% \end{macro} |
| 1682 |
% \end{macro} |
| 1683 |
% \end{macro} |
| 1684 |
% \begin{macro}{\DeclareRobustCommand} |
| 1685 |
% We can now define all the shortcuts of \autoref{tab:principal}. |
| 1686 |
% \begin{macrocode} |
| 1687 |
\DeclareRobustCommand{\lx}{\@actothersc\ell} |
| 1688 |
\DeclareRobustCommand{\Lx}{\@actothersc{\mathcal{L}}} |
| 1689 |
\DeclareRobustCommand{\dx}{\@actothersc d} |
| 1690 |
\DeclareRobustCommand{\Dx}{\@actothersc{\mathcal{D}}} |
| 1691 |
\DeclareRobustCommand{\px}{\@actothersc p} |
| 1692 |
\DeclareRobustCommand{\qx}{\@actothersc q} |
| 1693 |
\DeclareRobustCommand{\Ax}{\@actinssc A} |
| 1694 |
\DeclareRobustCommand{\Ex}{\@actinssc E} |
| 1695 |
\DeclareRobustCommand{\ax}{\@actannsc a} |
| 1696 |
\DeclareRobustCommand{\sx}{\@actannsc s} |
| 1697 |
\DeclareRobustCommand{\aringx}{\@actothersc{\mathring{a}}} |
| 1698 |
\DeclareRobustCommand{\eringx}{\@actothersc{\mathring{e}}} |
| 1699 |
% \end{macrocode} |
| 1700 |
% \end{macro} |
| 1701 |
% |
| 1702 |
% \subsubsection{Shortcuts for premiums, reserves and paid-up insurance} |
| 1703 |
% \label{sec:implementation:actsymb:premressc} |
| 1704 |
% |
| 1705 |
% \begin{macro}{\@actpremres} |
| 1706 |
% \begin{macro}{\acts@actpremres} |
| 1707 |
% \begin{macro}{\acts@@actpremres} |
| 1708 |
% \begin{macro}{\acts@@@actpremres} |
| 1709 |
% Not unlike above, we first define the internal and parsing macros |
| 1710 |
% used to create shortcut for premiums, reserves and paid-up insurance |
| 1711 |
% symbols. |
| 1712 |
% \begin{macrocode} |
| 1713 |
\newcommand*\@actpremres[1]{% |
| 1714 |
\@ifstar{\acts@actpremres{\bar{#1}}}% |
| 1715 |
{\acts@actpremres{#1}}} |
| 1716 |
\newcommand*\acts@actpremres[1]{% |
| 1717 |
\new@ifnextchar[{\acts@@actpremres{#1}}% |
| 1718 |
{\acts@@actpremres{#1}[]}} |
| 1719 |
\newcommand*\acts@@actpremres{} |
| 1720 |
\def\acts@@actpremres#1[#2]{% |
| 1721 |
\new@ifnextchar[{\acts@@@actpremres{#1}[#2]}% |
| 1722 |
{\acts@@@actpremres{#1}[#2][]}} |
| 1723 |
\newcommand*\acts@@@actpremres{} |
| 1724 |
\def\acts@@@actpremres#1[#2][#3]#4{% |
| 1725 |
\new@ifnextchar[{\@actsymbol[#2][#3][#1]{{#4}}{}}% |
| 1726 |
{\@actsymbol[#2][#3][#1]{{#4}}{}[]}} |
| 1727 |
% \end{macrocode} |
| 1728 |
% \end{macro} |
| 1729 |
% \end{macro} |
| 1730 |
% \end{macro} |
| 1731 |
% \end{macro} |
| 1732 |
% \begin{macro}{\DeclareRobustCommand} |
| 1733 |
% Then we can define the shortcuts of \autoref{tab:premres}. |
| 1734 |
% \begin{macrocode} |
| 1735 |
\DeclareRobustCommand{\Px}{\@actothersc P} |
| 1736 |
\DeclareRobustCommand{\Vx}{\@actothersc V} |
| 1737 |
\DeclareRobustCommand{\Wx}{\@actothersc W} |
| 1738 |
\DeclareRobustCommand{\premium}{\@actpremres P} |
| 1739 |
\DeclareRobustCommand{\reserve}{\@actpremres V} |
| 1740 |
\DeclareRobustCommand{\paidup}{\@actpremres W} |
| 1741 |
% \end{macrocode} |
| 1742 |
% \end{macro} |
| 1743 |
% |
| 1744 |
% \subsubsection{Shortcuts for auxiliary symbols} |
| 1745 |
% \label{sec:implementation:actsymb:auxsc} |
| 1746 |
% |
| 1747 |
% \begin{macro}{\DeclareRobustCommand} |
| 1748 |
% Here we define the shortcuts for common auxiliary symbols listed in |
| 1749 |
% \autoref{tab:aux}. Command \cmd{\joint} is simply defined as an |
| 1750 |
% alias of \cmd{\overline}. |
| 1751 |
% \changes{1.1}{2019-01-08}{The colons used here are not \cmd{\mathrel}'s.} |
| 1752 |
% \begin{macrocode} |
| 1753 |
\DeclareRobustCommand{\term}[2]{\itop{#1}{:}\angl{#2}} |
| 1754 |
\DeclareRobustCommand{\termxn}{{\itop{x}{:}\angln}} |
| 1755 |
\DeclareRobustCommand{\pureendow}[2]{#1{:}\itop{\angl{#2}}} |
| 1756 |
\DeclareRobustCommand{\pureendowxn}{{x{:}\itop{\angln}}} |
| 1757 |
\DeclareRobustCommand{\endow}[2]{#1{:}\angl{#2}} |
| 1758 |
\DeclareRobustCommand{\endowxn}{{x{:}\angln}} |
| 1759 |
\let\joint\overline |
| 1760 |
% \end{macrocode} |
| 1761 |
% \end{macro} |
| 1762 |
% |
| 1763 |
% \subsection{Two-letter symbols} |
| 1764 |
% \label{sec:implementation:twoletsymb} |
| 1765 |
% |
| 1766 |
% \begin{macro}{\twoletkern} |
| 1767 |
% \begin{macro}{\twoletsymb} |
| 1768 |
% The definition of the user level command \cmd{\twoletsymb} is |
| 1769 |
% pretty straighforward. |
| 1770 |
% \changes{1.1}{2019-01-08}{Use relative length.} |
| 1771 |
% \begin{macrocode} |
| 1772 |
\newlength{\twoletkern} |
| 1773 |
\setlength{\twoletkern}{0.1em} |
| 1774 |
\DeclareRobustCommand{\twoletsymb}[3][\twoletkern]{(#2\kern-#1#3)} |
| 1775 |
% \end{macrocode} |
| 1776 |
% \end{macro} |
| 1777 |
% \end{macro} |
| 1778 |
% \begin{macro}{\@twoletinssc} |
| 1779 |
% \begin{macro}{\@twoletannsc} |
| 1780 |
% Following the same lines as above, we define two internal macros |
| 1781 |
% to create shortcuts for two-letter insurance and annuity benefit |
| 1782 |
% symbols. |
| 1783 |
% \begin{macrocode} |
| 1784 |
\newcommand*\@twoletinssc[3][\twoletkern]{% |
| 1785 |
\@ifstar{\twoletsymb[#1]{#2}{\bar{#3}}}% |
| 1786 |
{\twoletsymb[#1]{#2}{#3}}} |
| 1787 |
\newcommand*\@twoletannsc[3][\twoletkern]{% |
| 1788 |
\@ifstar{\@ifstar{\twoletsymb[#1]{#2}{\ddot{#3}}}% |
| 1789 |
{\twoletsymb[#1]{#2}{\bar{#3}}}}% |
| 1790 |
{\twoletsymb[#1]{#2}{#3}}} |
| 1791 |
% \end{macrocode} |
| 1792 |
% \end{macro} |
| 1793 |
% \end{macro} |
| 1794 |
% \begin{macro}{\newcommand*} |
| 1795 |
% Follow the shortcuts of \autoref{tab:twoletsymb}. Note that we |
| 1796 |
% used a smaller negative kerning adjustment for symbols annuity |
| 1797 |
% symbols. |
| 1798 |
% \begin{macrocode} |
| 1799 |
\newcommand*{\IA}{\@twoletinssc IA} |
| 1800 |
\newcommand*{\IbA}{\@twoletinssc{\bar{I}}A} |
| 1801 |
\newcommand*{\ImA}{\@twoletinssc{I^{(m)}}A} |
| 1802 |
\newcommand*{\DA}{\@twoletinssc DA} |
| 1803 |
\newcommand*{\DbA}{\@twoletinssc{\bar{D}}A} |
| 1804 |
\newcommand*{\DmA}{\@twoletinssc{D^{(m)}}A} |
| 1805 |
\newcommand*{\Ia}{\@twoletannsc[0.5\twoletkern]Ia} |
| 1806 |
\newcommand*{\Is}{\@twoletannsc[0.5\twoletkern]Is} |
| 1807 |
\newcommand*{\Da}{\@twoletannsc[0.5\twoletkern]Da} |
| 1808 |
\newcommand*{\Ds}{\@twoletannsc[0.5\twoletkern]Ds} |
| 1809 |
% \end{macrocode} |
| 1810 |
% \end{macro} |
| 1811 |
% |
| 1812 |
% \subsection{Precedence numbers} |
| 1813 |
% \label{sec:implementation:preced} |
| 1814 |
% |
| 1815 |
% The system of precedence numbers builds on a backbone that used to |
| 1816 |
% be part of the package \pkg{actuarialangle}. The original author of the code is |
| 1817 |
% unknown. Some of the comments on \cmd{\@precedence}, below, are his |
| 1818 |
% or hers. |
| 1819 |
% |
| 1820 |
% \subsubsection{User level lengths and commands} |
| 1821 |
% \label{sec:implementation:preced:user} |
| 1822 |
% |
| 1823 |
% \begin{macro}{\nthtopsep} |
| 1824 |
% \begin{macro}{\nthtopskip} |
| 1825 |
% \begin{macro}{\nthbottomsep} |
| 1826 |
% \begin{macro}{\nthbottomskip} |
| 1827 |
% Let us start by defining the lengths needed to position the |
| 1828 |
% precedence numbers above or below the statuses. |
| 1829 |
% \changes{1.1}{2019-01-08}{Use relative lengths.} |
| 1830 |
% \begin{macrocode} |
| 1831 |
\newlength{\nthtopsep} |
| 1832 |
\setlength{\nthtopsep}{0.18em} |
| 1833 |
\newlength{\nthtopskip} |
| 1834 |
\setlength{\nthtopskip}{0.64em} |
| 1835 |
\newlength{\nthbottomsep} |
| 1836 |
\setlength{\nthbottomsep}{0.18em} |
| 1837 |
\newlength{\nthbottomskip} |
| 1838 |
\setlength{\nthbottomskip}{0.82em} |
| 1839 |
% \end{macrocode} |
| 1840 |
% \end{macro} |
| 1841 |
% \end{macro} |
| 1842 |
% \end{macro} |
| 1843 |
% \end{macro} |
| 1844 |
% \begin{macro}{\nthtop} |
| 1845 |
% \begin{macro}{\nthbottom} |
| 1846 |
% Next up are the two user level commands and the internal commands |
| 1847 |
% that call the workhorse \cmd{\@precedence}. |
| 1848 |
% \begin{macrocode} |
| 1849 |
\DeclareRobustCommand{\nthtop}{\@ifstar\@varnthtop\@nthtop} |
| 1850 |
\DeclareRobustCommand{\nthbottom}{\@ifstar\@varnthbottom\@nthbottom} |
| 1851 |
\newcommand*{\@nthtop}[3][\nthtopsep]{% |
| 1852 |
\mathpalette{\@precedence t\z@{#1}{#2}}{#3}} |
| 1853 |
\newcommand*{\@varnthtop}[3][\nthtopskip]{% |
| 1854 |
\mathpalette{\@precedence t{#1}\z@{#2}}{#3}} |
| 1855 |
\newcommand*{\@nthbottom}[3][\nthbottomsep]{% |
| 1856 |
\mathpalette{\@precedence b\z@{#1}{#2}}{#3}} |
| 1857 |
\newcommand*{\@varnthbottom}[3][\nthbottomskip]{% |
| 1858 |
\mathpalette{\@precedence b{#1}\z@{#2}}{#3}} |
| 1859 |
% \end{macrocode} |
| 1860 |
% \end{macro} |
| 1861 |
% \end{macro} |
| 1862 |
% |
| 1863 |
% \begin{macro}{\@nthtop} |
| 1864 |
% \begin{macro}{\@nthbottom} |
| 1865 |
% With the internal commands defined we can now process the package |
| 1866 |
% options. Option |alignpreced| makes the internal macros |
| 1867 |
% \cmd{\@nthtop} and \cmd{\@nthbottom} equivalent to |
| 1868 |
% \cmd{\@varnthtop} and \cmd{\@varnthbottom}, respectively. |
| 1869 |
% \begin{macrocode} |
| 1870 |
\ifacts@alignpreced |
| 1871 |
\let\@nthtop\@varnthtop |
| 1872 |
\let\@nthbottom\@varnthbottom |
| 1873 |
\fi |
| 1874 |
% \end{macrocode} |
| 1875 |
% \end{macro} |
| 1876 |
% \end{macro} |
| 1877 |
% \begin{macro}{\@varnthtop} |
| 1878 |
% \begin{macro}{\@varnthbottom} |
| 1879 |
% Option |compactpreced| does the opposite. |
| 1880 |
% \changes{1.1}{2019-01-08}{Add missing \texttt{@}'s in macro names.} |
| 1881 |
% \begin{macrocode} |
| 1882 |
\ifacts@compactpreced |
| 1883 |
\let\@varnthtop\@nthtop |
| 1884 |
\let\@varnthbottom\@nthbottom |
| 1885 |
\fi |
| 1886 |
% \end{macrocode} |
| 1887 |
% \end{macro} |
| 1888 |
% \end{macro} |
| 1889 |
% |
| 1890 |
% \subsubsection{Number and status positioning} |
| 1891 |
% \label{sec:implementation:preced:workhorse} |
| 1892 |
% |
| 1893 |
% \begin{macro}{\@precedence} |
| 1894 |
% We now define the workhorse to position precedence numbers above |
| 1895 |
% or below statuses, smashed so that the height of the auxiliary |
| 1896 |
% symbol containing the call remains unaffected. The macro |
| 1897 |
% \cmd{\@precedence} has the following six arguments: |
| 1898 |
% \begin{enumerate}[nosep] |
| 1899 |
% \item |t| for top or |b| for bottom; |
| 1900 |
% \item baseline skip between the top and bottom symbols; |
| 1901 |
% \item spacing between the top and bottom symbols; |
| 1902 |
% \item first argument from the user; |
| 1903 |
% \item one of math style selecting commands (\cmd{\displaystyle}, |
| 1904 |
% \cmd{\textstyle}, \cmd{\scriptstyle}, \cmd{\scriptscriptstyle}) |
| 1905 |
% from \cmd{\mathpalette}; |
| 1906 |
% \item second argument given by the user. |
| 1907 |
% \end{enumerate} |
| 1908 |
% This peculiar ordering of the arguments is done to work around the |
| 1909 |
% restriction of \cmd{\mathpalette} that it only reads two |
| 1910 |
% arguments. |
| 1911 |
% \begin{macrocode} |
| 1912 |
\newcommand*\@precedence[6]{% |
| 1913 |
\setbox\tw@\hbox{$\m@th#5#4$}% |
| 1914 |
\setbox\z@\hbox{$\m@th#5#6$}% |
| 1915 |
\dimen@\wd\z@ |
| 1916 |
\vbox to\ht\z@{% |
| 1917 |
\baselineskip=#2% |
| 1918 |
\lineskip=#3% |
| 1919 |
\lineskiplimit\lineskip |
| 1920 |
\if b#1\relax\box\z@\else\vss\fi |
| 1921 |
\hbox to\dimen@{\hss\unhbox\tw@\hss}% |
| 1922 |
\if t#1\relax\box\z@\else\vss\fi |
| 1923 |
}% |
| 1924 |
} |
| 1925 |
% \end{macrocode} |
| 1926 |
% \end{macro} |
| 1927 |
% |
| 1928 |
% \subsubsection{Shortcuts and aliases} |
| 1929 |
% \label{sec:implementation:preced:shortcuts} |
| 1930 |
% |
| 1931 |
% \begin{macro}{\DeclareRobustCommand} |
| 1932 |
% We finish off by defining the shortcuts and aliases of |
| 1933 |
% \autoref{tab:preced}. |
| 1934 |
% \begin{macrocode} |
| 1935 |
\DeclareRobustCommand{\firsttop}{% |
| 1936 |
\@ifstar{\@varnthtop{1}}{\@nthtop{1}}} |
| 1937 |
\DeclareRobustCommand{\secondtop}{% |
| 1938 |
\@ifstar{\@varnthtop{2}}{\@nthtop{2}}} |
| 1939 |
\DeclareRobustCommand{\thirdtop}{% |
| 1940 |
\@ifstar{\@varnthtop{3}}{\@nthtop{3}}} |
| 1941 |
\DeclareRobustCommand{\firstbottom}{% |
| 1942 |
\@ifstar{\@varnthbottom{1}}{\@nthbottom{1}}} |
| 1943 |
\DeclareRobustCommand{\secondbottom}{% |
| 1944 |
\@ifstar{\@varnthbottom{2}}{\@nthbottom{2}}} |
| 1945 |
\DeclareRobustCommand{\thirdbottom}{% |
| 1946 |
\@ifstar{\@varnthbottom{3}}{\@nthbottom{3}}} |
| 1947 |
\let\itop\firsttop |
| 1948 |
\let\iitop\secondtop |
| 1949 |
\let\iiitop\thirdtop |
| 1950 |
\let\ibottom\firstbottom |
| 1951 |
\let\iibottom\secondbottom |
| 1952 |
\let\iiibottom\thirdbottom |
| 1953 |
% \end{macrocode} |
| 1954 |
% \end{macro} |
| 1955 |
% \iffalse |
| 1956 |
%</package> |
| 1957 |
%\fi |
| 1958 |
% |
| 1959 |
% \Finale |
| 1960 |
% \obeyspaces |
| 1961 |
% \typeout{*************************************************************} |
| 1962 |
% \typeout{* *} |
| 1963 |
% \typeout{* To finish the installation you have to move the following *} |
| 1964 |
% \typeout{* file into a directory searched by TeX: *} |
| 1965 |
% \typeout{* *} |
| 1966 |
% \typeout{* actuarialsymbol.sty *} |
| 1967 |
% \typeout{* *} |
| 1968 |
% \typeout{* To produce the documentation, run actuarialsymbol.dtx *} |
| 1969 |
% \typeout{* through LaTeX. *} |
| 1970 |
% \typeout{* *} |
| 1971 |
% \typeout{* Happy actuarial TeXing! *} |
| 1972 |
% \typeout{* *} |
| 1973 |
% \typeout{*************************************************************} |
| 1974 |
% |
| 1975 |
% ^^A Local Variables: |
| 1976 |
% ^^A mode: doctex |
| 1977 |
% ^^A TeX-master: t |
| 1978 |
% ^^A End: |
| 1979 |
\endinput |