diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-01 22:26:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-01 22:26:09 +0000 |
commit | bff88215edc7bb6ad7e3304605cac52dc011e7a7 (patch) | |
tree | d40ab09b0e6f9ea82fb44bc6fe94db9d877db98a /Master/texmf-dist | |
parent | ae6f91f3d421fc8e0d2990ee0ab8c7ca379ecc63 (diff) |
tabto-ltx (1mar19)
git-svn-id: svn://tug.org/texlive/trunk@50188 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/tabto-ltx/README | 23 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.pdf | bin | 118394 -> 59715 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex | 12 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tabto-ltx/tabto.sty | 18 |
4 files changed, 40 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/tabto-ltx/README b/Master/texmf-dist/doc/latex/tabto-ltx/README new file mode 100644 index 00000000000..63a1dff8bae --- /dev/null +++ b/Master/texmf-dist/doc/latex/tabto-ltx/README @@ -0,0 +1,23 @@ +tabto.sty +version 1.4 (Dec 2018) + +Tabbing to fixed positions in a paragraph. + +Copyright 2006,2009,2012,2013,2018 by +Donald Arseneau, Vancouver, Canada (asnd@triumf.ca) +License: LPPL ver 1.3 or later +LPPL maintenance status `maintained' (by author). + +Two new text positioning commands are defined: \tabto and \tab. + +\tabto{<length>} and \tabto*{<length>} +Tab to a specified position relative to the left margin in a paragraph +They differ when the text on the line already goes past the desired +position: \tabto gives a line break whereas \tabto* backspaces. + +\tab +Tab to the next tab-stop chosen from a list of tab positions, in +the traditional style of typewriters. The tab-stop positions are +declared using either \TabPositions{<length>, <length>,...<length>} +or \NumTabs{<number>}. + diff --git a/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.pdf b/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.pdf Binary files differindex f40b4c9510c..be9309202d7 100644 --- a/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.pdf +++ b/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.pdf diff --git a/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex b/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex index b073c7f3cdb..8d2aef54c10 100644 --- a/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex +++ b/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex @@ -19,9 +19,9 @@ \begin{document} \title{The \Package{tabto} package} -\author{Donald Arseneau\thanks{Documentation file assembled by Robin - Fairbairns}} -\date{Mar 2013, version 1.3} +\author{Donald Arseneau\thanks{Thanks to Robin + Fairbairns for making typeset documentation.}} +\date{Dec 2018, version 1.4} \maketitle \section*{Tabbing to fixed positions in a paragraph} @@ -48,8 +48,10 @@ The length register \cs{CurrentLineWidth} will report the width of the existing text on the line, and it may be used in the \meta{length} argument (using calc.sty, for example). Also, there is \cs{TabPrevPos} which stores the \cs{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. \prototype{\cs{tab}} 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 % <length> 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 |