diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/linegoal/linegoal.sty | 13 |
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 |