1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
%%
%% This is file `a4.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% a4.dtx (with options: `package')
%% This is a generated file.
%%
%% Copyright (C) 1990-2004 Nederlandstalige TeX Gebruikersgroep.
%% All rights reserved.
%%
%% This file was generated from file(s) of the NTG document classes distribution.
%% ------------------------------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% The Current Maintainer of this work is Johannes Braams.
%%
%% This file may only be distributed together with a copy of the NTG
%% document classes distribution. You may however distribute the NTG
%% document classes distribution without such generated files.
%%
%% The list of all files belonging to the NTG document classes
%% distribution is given in the file `manifest.txt'.
%%
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%% Style option `A4' to be used with LaTeX V2.09
%% Copyright (C) 1990-2004 Johannes Braams, Nico Poppelier.
%% All rights reserved.
%%
\ifx\ProvidesPackage\undefined
\def\ProvidesPackage#1[#2 #3 #4]{%
\wlog{LaTeX Package `#1' #3 <#2> #4}}
\fi
\ProvidesPackage{a4}
[2004/04/15 v1.2g A4 based page layout]
\ifx\documentclass\undefined
\else
\DeclareOption{widemargins}{\WideMargins}
\fi
\topmargin 0pt
\ifcase \@ptsize
\textheight 53\baselineskip
\or
\textheight 46\baselineskip
\or
\textheight 42\baselineskip
\fi
\advance\textheight by \topskip
\ifcase \@ptsize
\textwidth 5.00in
\marginparwidth 1.00in
\if@twoside
\oddsidemargin 0.55in
\evensidemargin 0.75in
\else
\oddsidemargin 0.55in
\evensidemargin 0.55in
\fi
\or
\textwidth 5.20in
\marginparwidth 1.00in
\if@twoside
\oddsidemargin 0.45in
\evensidemargin 0.65in
\else
\oddsidemargin 0.45in
\evensidemargin 0.45in
\fi
\or
\textwidth 5.70in
\marginparwidth 0.80in
\if@twoside
\oddsidemargin 0.20in
\evensidemargin 0.40in
\else
\oddsidemargin 0.20in
\evensidemargin 0.20in
\fi
\fi
\def\WideMargins{%
\newdimen\ExtraWidth
\ifcase \@ptsize
\ExtraWidth = 0.5in
\@widemargins
\or
\ExtraWidth = 0.5in
\@widemargins
\or
\ExtraWidth = 0.7in
\@widemargins
\fi\let\WideMargins\relax\let\@widemargins\relax}
{\def\do{\noexpand\do\noexpand}
\xdef\@preamblecmds{\@preamblecmds \do\WideMargins}
}
\def\@widemargins{%
\global\advance\textwidth by -\ExtraWidth
\global\advance\marginparwidth by \ExtraWidth
\if@twoside
\tw@sidedwidemargins
\else
\@nesidedwidemargins
\fi}
\def\tw@sidedwidemargins{%
\if@reversemargin
\@tempdima=\evensidemargin
\advance\@tempdima by -\oddsidemargin
\advance\oddsidemargin by \ExtraWidth
\advance\oddsidemargin by \@tempdima
\advance\evensidemargin by -\@tempdima
\else
\advance\evensidemargin by \ExtraWidth
\fi}
\def\@nesidedwidemargins{%
\if@reversemargin
\advance\oddsidemargin by \ExtraWidth
\advance\evensidemargin by \ExtraWidth
\fi}
\ifx\documentclass\undefined
\else
\ProcessOptions
\fi
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\endinput
%%
%% End of file `a4.sty'.
|