From bff88215edc7bb6ad7e3304605cac52dc011e7a7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 1 Mar 2019 22:26:09 +0000 Subject: tabto-ltx (1mar19) git-svn-id: svn://tug.org/texlive/trunk@50188 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/tabto-ltx') diff --git a/Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty b/Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty index d7b70de1173..084da37bad7 100644 --- a/Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty +++ b/Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty @@ -1,10 +1,10 @@ % tabto.sty % -% version 1.3 (Mar 2013) +% version 1.4 (Dec 2018) % % Tabbing to fixed positions in a paragraph. % -% Copyright 2006,2009,2012,2013 by +% Copyright 2006,2009,2012,2013,2018 by % Donald Arseneau, Vancouver, Canada (asnd@triumf.ca) % Permission to use, distribute and modify this software is granted % under the conditions of the LaTeX Project Public License, either @@ -33,8 +33,10 @@ % of the existing text on the line, and it may be used in the % argument (using calc.sty, for example). Also, there % is "\TabPrevPos" which gives the "\CurrentLineWidth" from the -% previous tab command, and can be used to return to that position -% if no line breaks have occurred in between. +% previous tab command (the position where the tab command occurred, +% not where it went to), and can be used to return to that position +% if no line breaks have occurred in between, or directly below it, +% if there were line breaks. % % \tab % Tab to the next tab-stop chosen from a list of tab positions, in @@ -74,11 +76,11 @@ % Tall objects after a tab stop may overlap the line above, rather % than forcing a greater separation between lines. -\ProvidesPackage{tabto}[2013/03/25 \space v 1.3 \space +\ProvidesPackage{tabto}[2018/12/28 \space v 1.4 \space Another tabbing mechanism]\relax \newdimen\CurrentLineWidth -\let\TabPrevPos\z@ +\newdimen\TabPrevPos \newcommand\tabto[1]{% \leavevmode @@ -120,10 +122,10 @@ \fi\fi \ifdim\CurrentLineWidth<\z@ \CurrentLineWidth\z@\fi % Enshrine the tab-to position; #1 might reference \CurrentLineWidth - \@tempdimb=#1\relax + \setlength\@tempdimb{#1}% allow calc.sty %\message{*** Tab to \the\@tempdimb, previous width is \the\CurrentLineWidth. ***}% % Save width for possible return use - \xdef\TabPrevPos{\the\CurrentLineWidth}% + \global\TabPrevPos\CurrentLineWidth % Build the action to perform \protected@xdef\TTo@action{% \vrule\@width\z@\@depth\the\prevdepth -- cgit v1.2.3