From 1e490c47d2998d62acb68dc520a10f7966ca484f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Sep 2008 16:23:48 +0000 Subject: addlines update (16aug08) git-svn-id: svn://tug.org/texlive/trunk@10494 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/addlines/addlines.sty | 44 +++++++++++------------ 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'Master/texmf-dist/tex/latex/addlines') diff --git a/Master/texmf-dist/tex/latex/addlines/addlines.sty b/Master/texmf-dist/tex/latex/addlines/addlines.sty index 3c2d462f5ce..96d49f226f5 100644 --- a/Master/texmf-dist/tex/latex/addlines/addlines.sty +++ b/Master/texmf-dist/tex/latex/addlines/addlines.sty @@ -6,41 +6,41 @@ %% %% addlines.dtx (with options: `package') %% -%% __________________________________ -%% Copyright (C) 2007 Will Robertson +%% _______________________________________ +%% Copyright (C) 2007-2008 Will Robertson %% %% License information appended. %% \ProvidesPackage{addlines} - [2007/10/13 v0.1 Add/remove lines from a page] -\RequirePackage{etex,afterpage,chngpage} -\newif\ifpl@memoir -\def\ifmemoir@tf{% - \ifpl@memoir\expandafter\@firstoftwo - \else\expandafter\@secondoftwo\fi} -\@ifclassloaded{memoir}{\pl@memoirtrue}{\pl@memoirfalse} + [2008/08/16 v0.2 Add/remove lines from a page] +\RequirePackage{etex,afterpage,changepage} +\newif\if@addlines@checkpage@ +\DeclareOption{final}{\@addlines@checkpage@true} +\DeclareOption{draft}{\@addlines@checkpage@false} +\ExecuteOptions{final} +\ProcessOptions \newcommand\addlines[1][1]{% \enlargethispage{#1\baselineskip}% - \if@twoside - \checkoddpage - \ifmemoir@tf\ifoddpage\ifcpoddpage - \PackageError{addlines} - {You're adding lines to the wrong page} - {Extra lines need to be added to both sides of a doublepage spread.^^J - This error might clear up after a recompile, though.}% - \else - \afterpage{\enlargethispage{#1\baselineskip}}% + \if@addlines@checkpage@ + \if@twoside + \checkoddpage + \ifoddpage + \PackageError{addlines} + {You're adding lines to the wrong page} + {Extra lines need to be added to both sides of a doublepage spread.^^J + This error might clear up after a recompile, though.}% + \else + \afterpage{\enlargethispage{#1\baselineskip}}% + \fi \fi \fi} \let\addline\addlines \newcommand\removelines[1][1]{% \addlines[\numexpr -1*(#1) \relax]} \let\removeline\removelines -\ifpl@memoir - \strictpagechecktrue -\fi +\strictpagechecktrue %% -%% Copyright (C) 2007 by Will Robertson +%% Copyright (C) 2007-2008 by Will Robertson %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of -- cgit v1.2.3