summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/akktex/akkwidepage.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-19 18:01:32 +0000
committerKarl Berry <karl@freefriends.org>2012-04-19 18:01:32 +0000
commitbf4db43a7562e7e1c14012c133867620f2da3da6 (patch)
treeff92d433d0f52c57771e0a40451f7b217cfccad0 /Master/texmf-dist/tex/latex/akktex/akkwidepage.sty
parente206c9762da30438bee956fb796e43f39a6e987c (diff)
akktex from AkkTeX
git-svn-id: svn://tug.org/texlive/trunk@26055 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/akktex/akkwidepage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/akktex/akkwidepage.sty72
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/akktex/akkwidepage.sty b/Master/texmf-dist/tex/latex/akktex/akkwidepage.sty
new file mode 100644
index 00000000000..e7f96e11b44
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/akktex/akkwidepage.sty
@@ -0,0 +1,72 @@
+%=====================================================================================================================================
+% Package akkwidepage by Igor Akkerman (c) 2004, 2005
+% Package providing wide pages.
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License (latest version).
+%
+% The latest version of this license can be found at
+% http://www.latex-project.org/lppl.txt
+%
+% This file may only be distributed together with the full 'AkkTeX' bundle.
+%=====================================================================================================================================
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{akkwidepage}[2005/05/05 by Igor Akkerman (c) 2004, 2005 v1.1.1 Package providing wide pages.]
+%=====================================================================================================================================
+
+\makeatletter
+
+% Initialisierungsteil
+\RequirePackage{akkconditional}
+
+\newboolean {akk@twoside}
+
+% Deklaration von Optionen
+\DeclareOption {twoside} {\setboolean {akk@twoside} {true}}
+
+% Ausfuehrung von Optionen
+\ProcessOptions
+
+% Laden von Paketen
+
+%=====================================================================================================================================
+
+\newlength \akk@orig@oddsidemargin
+\newlength \akk@orig@evensidemargin
+\newlength \akk@orig@textwidth
+
+\newlength \akk@default@oddsidemargin
+\newlength \akk@default@evensidemargin
+\newlength \akk@default@textwidth
+
+\setlength \akk@orig@oddsidemargin \oddsidemargin
+\setlength \akk@orig@evensidemargin \evensidemargin
+\setlength \akk@orig@textwidth \textwidth
+
+\setlength \akk@default@oddsidemargin \oddsidemargin
+\setlength \akk@default@evensidemargin \evensidemargin
+\setlength \akk@default@textwidth \textwidth
+
+\ifbool{akk@twoside} {
+ \addtolength \akk@default@oddsidemargin {-3.00em}
+ \addtolength \akk@default@evensidemargin {-5.50em}
+}{
+ \addtolength \akk@default@oddsidemargin {-4.25em}
+ \addtolength \akk@default@evensidemargin {-4.25em}
+}
+\addtolength \akk@default@textwidth { 8.50em} % = 3cm at 10 pt
+
+\newcommand \akk@widepage@setorigvalues {%
+ \setlength \oddsidemargin \akk@orig@oddsidemargin%
+ \setlength \evensidemargin \akk@orig@evensidemargin%
+}
+
+\newcommand \akk@widepage@setdefaultvalues {%
+ \setlength \oddsidemargin \akk@default@oddsidemargin%
+ \setlength \evensidemargin \akk@default@evensidemargin%
+}
+
+\akk@widepage@setdefaultvalues
+\setlength \textwidth \akk@default@textwidth %textwidth can only be set in preamble
+
+\makeatother