% mymargins.sty
% from http://www.jokr.de/stefan/
% File created by Stefan Krause -- version 1.6.
% Replaces the deprecated a4wide package.
% You may access
%  \addtoinnermargin{}
%  \addtooutermargin{}
% from this document.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mymargins}[2009/01/29]
\RequirePackage{ifthen}
\ifthenelse{\paperheight>\paperwidth}{
 \setlength{\hoffset}{-1in}
 \setlength{\oddsidemargin}{27.2mm}
 \setlength{\evensidemargin}{27.2mm}
 \setlength{\textwidth}{155.6mm}
 \setlength{\marginparsep}{4mm}
 \setlength{\marginparwidth}{13.2mm}
 \setlength{\voffset}{-1in}
 \setlength{\topmargin}{24mm}
 \setlength{\headheight}{5.5mm}
 \setlength{\headsep}{5.5mm}
 \setlength{\textheight}{227mm}
 \setlength{\footskip}{11mm}
}{
 \setlength{\hoffset}{-1in}
 \setlength{\oddsidemargin}{35mm}
 \setlength{\evensidemargin}{35mm}
 \setlength{\textwidth}{227mm}
 \setlength{\voffset}{-1in}
 \setlength{\topmargin}{16.2mm}
 \setlength{\headheight}{5.5mm}
 \setlength{\headsep}{5.5mm}
 \setlength{\textheight}{155.6mm}
 \setlength{\footskip}{11mm}
}
\newcommand{\addtoinnermargin}[1]{%
 \addtolength{\oddsidemargin}{#1}%
 \addtolength{\textwidth}{-#1}%
}
\newcommand{\addtooutermargin}[1]{%
 \addtolength{\evensidemargin}{#1}%
 \addtolength{\textwidth}{-#1}%
}
