summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/addlines
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-08 16:23:48 +0000
committerKarl Berry <karl@freefriends.org>2008-09-08 16:23:48 +0000
commit1e490c47d2998d62acb68dc520a10f7966ca484f (patch)
treecc139e7d350623f54c63d5e5cc6ac95443c402aa /Master/texmf-dist/tex/latex/addlines
parentb570aa2dd0f2c5e23b1f3bac8aeaf2e337c1f7f9 (diff)
addlines update (16aug08)
git-svn-id: svn://tug.org/texlive/trunk@10494 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/addlines')
-rw-r--r--Master/texmf-dist/tex/latex/addlines/addlines.sty44
1 files changed, 22 insertions, 22 deletions
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 <wspr81@gmail.com>
+%% Copyright (C) 2007-2008 by Will Robertson <wspr81@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of