From 0f37ab813b7b69885fa8c19dde8c51fdb629eff5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 15 Jun 2017 21:47:10 +0000 Subject: actuarialsymbol (15jun17) git-svn-id: svn://tug.org/texlive/trunk@44607 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/actuarialsymbol/actuarialsymbol.dtx | 31 +++++++++++++--------- 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/source/latex/actuarialsymbol') 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} % %\NeedsTeXFormat{LaTeX2e}[2009/09/24] -%\ProvidesPackage{actuarialsymbol}[2017/04/11 v1.0 Actuarial symbols] +%\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} % % \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 -- cgit v1.2.3