Math 乳胶中的年金或角度操作符号

Math 乳胶中的年金或角度操作符号,math,latex,symbols,angle,Math,Latex,Symbols,Angle,如何在LaTeX中设置角度或年金操作的符号?具体来说,这是精算a角度s=(1-vs)/i。\p>\annu 可以在此处找到一个很好的乳胶符号列表有关乳胶符号的非常全面的列表,请参阅。值得打印出来并放在枕头下。第95页有一些代码可以做你想做的事情。我已经看过了各种精算前哨站,以及用于LaTeX的,并将最好的组合到以下宏中: \DeclareRobustCommand{\lcroof}[1]{ \hbox{\vtop{\vbox{% \hrule\kern 1pt\hbox{%

如何在LaTeX中设置角度或年金操作的符号?具体来说,这是精算a角度s=(1-vs)/i。

\p>\annu
可以在此处找到一个很好的乳胶符号列表

有关乳胶符号的非常全面的列表,请参阅。值得打印出来并放在枕头下。第95页有一些代码可以做你想做的事情。

我已经看过了各种精算前哨站,以及用于LaTeX的,并将最好的组合到以下宏中:

\DeclareRobustCommand{\lcroof}[1]{
  \hbox{\vtop{\vbox{%
      \hrule\kern 1pt\hbox{%
        $\scriptstyle #1$%
        \kern 1pt}}\kern1pt}%
    \vrule\kern1pt}}
\DeclareRobustCommand{\angle}[1]{
  _{\lcroof{#1}}}
然后,您可以通过键入

 $a\angle{s}$
 $a_{\lcroof{s}}$
如果您需要一整套精算符号,您应该使用
lifecon
。使用
lifecon
,您可以通过键入

 $a\angle{s}$
 $a_{\lcroof{s}}$

我对精算符号和下标/上标也有同样的问题,所以我做了一个包,让我的生活更轻松,并帮助其他人

另外,我还添加了一些快捷方式来节省时间

该项目和方案

您所需要的只是精算符号包

在代码的开头,您必须编写

\usepackage{actuarialsymbol}
对于sub/superscript

\actsymb['subscripLeft']['superscriptL']{<middle>}{'subscriptR'}{'superscriptR'}
\actsymb['subscriptft']['superscriptL']{}{'subscriptR'}{'superscriptR'}
输出示例:

精算符号的快捷方式示例:

我一直在为我的一位教授排版,结果发现我需要一些帮助来生成年金符号的累积值

我在tex堆栈交换上问了这个问题

产生的结果是

\documentclass{article}
\usepackage{siunitx}

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

我真希望你能这样做……:(该文档向您展示了如何定义\annu宏,而不是它是一个普通宏。)