summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/linegoal/linegoal.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-25 23:45:04 +0000
committerKarl Berry <karl@freefriends.org>2011-02-25 23:45:04 +0000
commitd8784a24ee61bfc794665e3c8300d435d8d9a4bd (patch)
tree383ee57bc18ab13eee60ab6e8b24f2d4f59b39f0 /Master/texmf-dist/tex/latex/linegoal/linegoal.sty
parent33d636ef67864794bd7e1cd5395751ebb382bcfe (diff)
linegoal 2.9 (25feb11)
git-svn-id: svn://tug.org/texlive/trunk@21523 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/linegoal/linegoal.sty')
-rw-r--r--Master/texmf-dist/tex/latex/linegoal/linegoal.sty13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/linegoal/linegoal.sty b/Master/texmf-dist/tex/latex/linegoal/linegoal.sty
index 28ece1f153e..b5180c41a08 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/12/07 v2.7 - linegoal : a new dimen corresponding to the remainder of the line
+%% linegoal : 2011/02/25 v2.9 - 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
@@ -26,7 +26,7 @@
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
[2005/12/01]% LaTeX must be 2005/12/01 or younger
\ProvidesPackage{linegoal}
- [2010/12/07 v2.7 - A new dimen corresponding to the remainder of the line]
+ [2011/02/25 v2.9 - Measuring the remaining width of the line]
\ifdefined\pdfsavepos\else % works also in dvi mode
\PackageWarning{linegoal}
{This package requires pdfTeX for its \string\pdfsavepos\space primitive\MessageBreak
@@ -37,7 +37,7 @@
\fi
\RequirePackage{etex,zref,zref-savepos}
\zref@newprop*{linegoal}[\linewidth]{\dimexpr
- \linewidth-\the\pdflastxpos sp
+ \linewidth -\the\pdflastxpos sp
+\ifodd\zref@extractdefault{linegoal/posx.\the\LNGL@unique}{page}\c@page
\oddsidemargin
\else\evensidemargin
@@ -48,9 +48,10 @@
\newcommand*\linegoal{%
\zref@extract{linegoal.\the\LNGL@unique}{linegoal}\LNGL@setlinegoal
}% \linegoal
-\globcount\LNGL@unique
-\globdimen\LNGL@tempdim
-\def\LNGL@setlinegoal{\relax\csname LNGL@set\ifdefined\calc@next!\fi\endcsname}
+\globcount \LNGL@unique
+\globdimen \LNGL@tempdim
+\def\LNGL@setlinegoal {\relax \LNGL@set@linegoal}
+\protected\def\LNGL@set@linegoal{\csname LNGL@set\ifdefined\calc@next!\fi\endcsname}
\expandafter\def\csname LNGL@set!\endcsname!{!\LNGL@set}
\protected\def\LNGL@set{%
\@bsphack