diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-06 22:04:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-06 22:04:17 +0000 |
commit | f946e83a3e1602921a33b84330397adf3b9b4c22 (patch) | |
tree | 26dba25cba698420be56b0a8ea4d77bbae364675 /Master/texmf-dist/tex/latex/linegoal | |
parent | 8cb1f8bb85c22a13ea39018c68cb89d47ff968c5 (diff) |
linegoal 1.1 (5jun10)
git-svn-id: svn://tug.org/texlive/trunk@18778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/linegoal')
-rw-r--r-- | Master/texmf-dist/tex/latex/linegoal/linegoal.sty | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/linegoal/linegoal.sty b/Master/texmf-dist/tex/latex/linegoal/linegoal.sty index 2c7116f05b1..ca2e1cc6da0 100644 --- a/Master/texmf-dist/tex/latex/linegoal/linegoal.sty +++ b/Master/texmf-dist/tex/latex/linegoal/linegoal.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% linegoal : 2010/05/07 v1.0 - linegoal : a new dimen corresponding to the remainder of the line +%% linegoal : 2010/06/06 v1.1 - linegoal : a new dimen corresponding to the remainder of the line %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -24,9 +24,9 @@ %% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> %% \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX) - [2005/12/01]% LaTeX must be 2005/12/01 or younger (see kvsetkeys.dtx). + [2005/12/01]% LaTeX must be 2005/12/01 or younger \ProvidesPackage{linegoal} - [2010/05/07 v1.0 - A new dimen corresponding to the remainder of the line] + [2010/06/06 v1.1 - A new dimen corresponding to the remainder of the line] \def\LNGL@pkg@name{linegoal} \ifdefined\pdfsavepos\else \PackageWarning\LNGL@pkg@name @@ -44,8 +44,8 @@ \global\advance\LNGL@unique\@ne \pdfsavepos \zref@labelbyprops{linegoal.\the\LNGL@unique}{posx,LNGL@page}% - #1=\dimexpr\linewidth-\zposx{linegoal.\the\LNGL@unique}sp% - +\ifodd\zref@extractdefault{linegoal.\the\LNGL@unique}{LNGL@page}{0} + #1=\dimexpr\linewidth-\zref@extractdefault{linegoal.\the\LNGL@unique}{posx}0sp + +\ifodd\zref@extractdefault{linegoal.\the\LNGL@unique}{LNGL@page}0 \oddsidemargin \else \evensidemargin \fi @@ -58,8 +58,8 @@ \def\LNGL@AtBeginDocument@hook{% \let\LNGL@ORI@setlength\setlength \protected\def\setlength##1##2{% - \ifx\linegoal##2 \expandafter\set@linegoal - \else \expandafter\LNGL@ORI@setlength + \ifx\linegoal##2\expandafter\set@linegoal + \else \expandafter\LNGL@ORI@setlength \fi{##1}{##2}% }% \setlength }% \LNGL@AtBeginDocument@hook |