diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-15 21:47:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-15 21:47:10 +0000 |
commit | 0f37ab813b7b69885fa8c19dde8c51fdb629eff5 (patch) | |
tree | a17d020ea6483906d3ff3a0ca797930a4bb024e2 /Master/texmf-dist/source | |
parent | c9f1cd270feae1ae1d41885a68463871e6eb57a9 (diff) |
actuarialsymbol (15jun17)
git-svn-id: svn://tug.org/texlive/trunk@44607 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx b/Master/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx index 46b58bd2ce2..b19549c144f 100644 --- a/Master/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx +++ b/Master/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx @@ -27,7 +27,7 @@ \ProvidesFile{actuarialsymbol.dtx} %</dtx> %<package>\NeedsTeXFormat{LaTeX2e}[2009/09/24] -%<package>\ProvidesPackage{actuarialsymbol}[2017/04/11 v1.0 Actuarial symbols] +%<package>\ProvidesPackage{actuarialsymbol}[2017/06/14 v1.0a Actuarial symbols] %<*batchfile> \begingroup \input docstrip.tex @@ -70,9 +70,11 @@ This work consists of actuarialsymbol.dtx and the derived files. \usepackage[scaled=0.90]{helvet} \usepackage[scaled=1.02]{inconsolata} \usepackage[sc]{mathpazo} - \usepackage{rsfso} + \usepackage{rsfso} % \mathcal variants \usepackage{actuarialsymbol}[2017/04/10] - \usepackage{graphicx,framed} + \usepackage{framed} % environment snugshade* + \usepackage{metalogo} % XeTeX logo + \usepackage{graphicx} \usepackage{longtable,booktabs} \DisableCrossrefs \CodelineNumbered @@ -149,7 +151,7 @@ This work consists of actuarialsymbol.dtx and the derived files. \end{document} %</driver> % \fi -% \CheckSum{535} +% \CheckSum{537} % \changes{1.0}{2017-04-11}{Initial release.} % % \GetFileInfo{actuarialsymbol.sty} @@ -174,10 +176,10 @@ This work consists of actuarialsymbol.dtx and the derived files. % consistently position precedence numbers above or below statuses % in symbols for multiple lives contracts. % -% Since the actuarial notation can get quite involved. the package +% Since actuarial notation can get quite involved, the package % defines a number of shortcut macros to ease entry of the most % common elements. \autoref{sec:comprehensive} lists the commands to -% typeset a large selection of symbols of life contingencies. +% typeset a large selection of life contingencies symbols. % \end{abstract} % % \tableofcontents @@ -249,7 +251,7 @@ This work consists of actuarialsymbol.dtx and the derived files. % % Package \pkg{actuarialsymbol} provides a generic command to position % all subscripts and superscripts easily and consistently around a -% principal symbol, a command to create two-letter symbols and two +% principal symbol; a command to create two-letter symbols; and two % commands to position precedence numbers above and below statuses. % Since entering actuarial symbols can get quite involved, the package % also defines a number of shortcuts to create the most common @@ -258,7 +260,7 @@ This work consists of actuarialsymbol.dtx and the derived files. % \section{For the impatient} % \label{sec:actuarialsymbol:quickstart} % -% The hurried reader may jump to \autoref{sec:shortcuts} for the +% The hurried reader may jump to \autoref{sec:shortcuts} for tables of % shortcut macros defined by the package, and to % \autoref{sec:comprehensive} for a comprehensive list of symbols of % life contingencies along with the {\LaTeX} code to compose them with @@ -1574,15 +1576,20 @@ This work consists of actuarialsymbol.dtx and the derived files. % \end{macrocode} % Typesetting of the left subscript and superscript. Use % \cmd{\mathopen} to suppress space between those and the principal -% symbol even when the latter is not of type ord. +% symbol even when the latter is not of type ord. (We use +% |\textstyle| inside |\vphantom| to avoid bad positioning of +% subscripts with \XeTeX; see +% \href{https://tex.stackexchange.com/q/374771/24355}{^^A +% the discussion} on StackExchange for details.) +% \changes{1.0a}{2017-06-14}{Fix left subscript positioning with xetex.} % \begin{macrocode} - \mathopen{\vphantom{#4}^{\box\tw@}\sb{\box\@ne}}% + \mathopen{\vphantom{\textstyle #4}^{\box\tw@}\sb{\box\@ne}}% % \end{macrocode} % Typesetting of the principal symbol and the right subscript and % superscript. The principal symbol is either a principal symbol alone % or a principle symbol and a benefit symbol between parentheses. In % the latter case, we make sure to align the subscripts and -% superscripts only around de principle symbol. +% superscripts only around the principle symbol. % \begin{macrocode} \ifdim\wd\z@=\z@ #4^{\box4}\sb{\box\thr@@}% @@ -1595,7 +1602,7 @@ This work consists of actuarialsymbol.dtx and the derived files. % way, {\TeX}'s default placement of subscripts and superscripts is % maintained. % \begin{macrocode} - \mathopen{\vphantom{#4}\sb{\box\@ne}}% + \mathopen{\vphantom{\textstyle #4}\sb{\box\@ne}}% \ifdim\wd\z@=\z@ #4\sb{\box\thr@@}% \else |