LaTeX 中的年金或角度运算符号

发布于 2024-07-04 11:26:53 字数 105 浏览 6 评论 0 原文

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

二智少女猫性小仙女 2024-07-11 11:26:53

我查看了生命应急包,各种精算前哨站< a href="http://www.actuarialoutpost.com/actuarial_discussion_forum/showthread.php?t=113896" rel="noreferrer">论坛 话题,以及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}$

然后,您可以通过键入If you need a full set 精算符号,您应该使用Life's Contingency's Package lifecon。 使用 lifecon,您可以通过键入以下内容来设置上述内容

 $a_{\lcroof{s}}$

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

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

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

 $a\angle{s}$

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

 $a_{\lcroof{s}}$
格子衫的從容 2024-07-11 11:26:53

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

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

项目页面CTAN

您所需要的只是 Actuarialsymbol 包。

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

\usepackage{actuarialsymbol}

对于子/上标输出

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

示例:

在此处输入图像描述

在此处输入图像描述

精算符号的快捷方式示例:
输入图片此处描述

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

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

The project page and the CTAN.

All you need is the actuarialsymbol package.

At the beginning of the code you have to write

\usepackage{actuarialsymbol}

For the sub/superscript

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

Example of output:

enter image description here

enter image description here

Example of shortcut for actuarial symbol :
enter image description here

烙印 2024-07-11 11:26:53

有关 LaTeX 符号非常的完整列表,请参阅 综合 LaTeX 符号列表。 值得打印出来并放在枕头下。 第 95 页有一些代码可以满足您的要求。

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

○愚か者の日 2024-07-11 11:26:53

\年
可以在这里找到一个很好的乳胶符号列表 http: //www.ctan.org/tex-archive/info/symbols/compressive/symbols-a4.pdf

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

违心° 2024-07-11 11:26:53

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

我在 tex stack exchange 此处问了这个问题

结果Heiko Oberdiek 制作的

\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.

内容是:
年金累计值

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

I asked this question on the tex stack exchange here

The result that Heiko Oberdiek produced was

\documentclass{article}
\usepackage{siunitx}

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

Which produces:
accumulated value of annuity

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文