summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/addlines
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-13 22:43:47 +0000
committerKarl Berry <karl@freefriends.org>2007-10-13 22:43:47 +0000
commitf20ec35ac0bb2ddf9fd31463dd01f118641309f4 (patch)
tree64daa2d4d9024955297b55054098e5f930f48f1b /Master/texmf-dist/tex/latex/addlines
parent00fd18b649b5eaa172d3831df80680767d22be33 (diff)
new latex package addlines (13oct07)
git-svn-id: svn://tug.org/texlive/trunk@5178 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/addlines')
-rw-r--r--Master/texmf-dist/tex/latex/addlines/addlines.sty59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/addlines/addlines.sty b/Master/texmf-dist/tex/latex/addlines/addlines.sty
new file mode 100644
index 00000000000..3c2d462f5ce
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/addlines/addlines.sty
@@ -0,0 +1,59 @@
+%%
+%% This is file `addlines.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% addlines.dtx (with options: `package')
+%%
+%% __________________________________
+%% Copyright (C) 2007 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}
+\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}}%
+ \fi
+ \fi}
+\let\addline\addlines
+\newcommand\removelines[1][1]{%
+ \addlines[\numexpr -1*(#1) \relax]}
+\let\removeline\removelines
+\ifpl@memoir
+ \strictpagechecktrue
+\fi
+%%
+%% Copyright (C) 2007 by Will Robertson <wspr81@gmail.com>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Will Robertson.
+%%
+%% This work consists of the files addlines.dtx and
+%% addlines.ins,
+%% and the derived files addlines.pdf,
+%% addlines.sty, and
+%% addlines-example.ltx.
+%%
+%%
+%% End of file `addlines.sty'.