From f946e83a3e1602921a33b84330397adf3b9b4c22 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 6 Jun 2010 22:04:17 +0000 Subject: linegoal 1.1 (5jun10) git-svn-id: svn://tug.org/texlive/trunk@18778 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/linegoal/linegoal.sty | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/linegoal') 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 %% \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 -- cgit v1.2.3