| 1 |
%% |
| 2 |
%% This is file `a4.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% a4.dtx (with options: `package') |
| 8 |
%% This is a generated file. |
| 9 |
%% |
| 10 |
%% Copyright (C) 1990-2026 Nederlandstalige TeX Gebruikersgroep. |
| 11 |
%% All rights reserved. |
| 12 |
%% |
| 13 |
%% This file was generated from file(s) of the NTG document classes distribution. |
| 14 |
%% ------------------------------------------------------------------------------ |
| 15 |
%% |
| 16 |
%% It may be distributed and/or modified under the |
| 17 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 18 |
%% of this license or (at your option) any later version. |
| 19 |
%% The latest version of this license is in |
| 20 |
%% http://www.latex-project.org/lppl.txt |
| 21 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 22 |
%% version 2008 or later. |
| 23 |
%% |
| 24 |
%% This work has the LPPL maintenance status "maintained". |
| 25 |
%% |
| 26 |
%% The Current Maintainer of this work is Johannes Braams. |
| 27 |
%% |
| 28 |
%% This file may only be distributed together with a copy of the NTG |
| 29 |
%% document classes distribution. You may however distribute the NTG |
| 30 |
%% document classes distribution without such generated files. |
| 31 |
%% |
| 32 |
%% The list of all files belonging to the NTG document classes |
| 33 |
%% distribution is given in the file `manifest.txt'. |
| 34 |
%% |
| 35 |
%% The list of derived (unpacked) files belonging to the distribution |
| 36 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 37 |
%% extension .ins) which are part of the distribution. |
| 38 |
\ifx\ProvidesPackage\undefined |
| 39 |
\def\ProvidesPackage#1[#2 #3 #4]{% |
| 40 |
\wlog{LaTeX Package `#1' #3 <#2> #4}} |
| 41 |
\fi |
| 42 |
\ProvidesPackage{a4} |
| 43 |
[2025/12/29 v1.2g A4 based page layout] |
| 44 |
\ifx\documentclass\undefined |
| 45 |
\else |
| 46 |
\DeclareOption{widemargins}{\WideMargins} |
| 47 |
\fi |
| 48 |
|
| 49 |
\topmargin 0pt |
| 50 |
\ifcase \@ptsize |
| 51 |
\textheight 53\baselineskip |
| 52 |
\or |
| 53 |
\textheight 46\baselineskip |
| 54 |
\or |
| 55 |
\textheight 42\baselineskip |
| 56 |
\fi |
| 57 |
\advance\textheight by \topskip |
| 58 |
\ifcase \@ptsize |
| 59 |
\textwidth 5.00in |
| 60 |
\marginparwidth 1.00in |
| 61 |
\if@twoside |
| 62 |
\oddsidemargin 0.55in |
| 63 |
\evensidemargin 0.75in |
| 64 |
\else |
| 65 |
\oddsidemargin 0.55in |
| 66 |
\evensidemargin 0.55in |
| 67 |
\fi |
| 68 |
\or |
| 69 |
\textwidth 5.20in |
| 70 |
\marginparwidth 1.00in |
| 71 |
\if@twoside |
| 72 |
\oddsidemargin 0.45in |
| 73 |
\evensidemargin 0.65in |
| 74 |
\else |
| 75 |
\oddsidemargin 0.45in |
| 76 |
\evensidemargin 0.45in |
| 77 |
\fi |
| 78 |
\or |
| 79 |
\textwidth 5.70in |
| 80 |
\marginparwidth 0.80in |
| 81 |
\if@twoside |
| 82 |
\oddsidemargin 0.20in |
| 83 |
\evensidemargin 0.40in |
| 84 |
\else |
| 85 |
\oddsidemargin 0.20in |
| 86 |
\evensidemargin 0.20in |
| 87 |
\fi |
| 88 |
\fi |
| 89 |
\def\WideMargins{% |
| 90 |
\newdimen\ExtraWidth |
| 91 |
\ifcase \@ptsize |
| 92 |
\ExtraWidth = 0.5in |
| 93 |
\@widemargins |
| 94 |
\or |
| 95 |
\ExtraWidth = 0.5in |
| 96 |
\@widemargins |
| 97 |
\or |
| 98 |
\ExtraWidth = 0.7in |
| 99 |
\@widemargins |
| 100 |
\fi\let\WideMargins\relax\let\@widemargins\relax} |
| 101 |
{\def\do{\noexpand\do\noexpand} |
| 102 |
\xdef\@preamblecmds{\@preamblecmds \do\WideMargins} |
| 103 |
} |
| 104 |
\def\@widemargins{% |
| 105 |
\global\advance\textwidth by -\ExtraWidth |
| 106 |
\global\advance\marginparwidth by \ExtraWidth |
| 107 |
\if@twoside |
| 108 |
\tw@sidedwidemargins |
| 109 |
\else |
| 110 |
\@nesidedwidemargins |
| 111 |
\fi} |
| 112 |
\def\tw@sidedwidemargins{% |
| 113 |
\if@reversemargin |
| 114 |
\@tempdima=\evensidemargin |
| 115 |
\advance\@tempdima by -\oddsidemargin |
| 116 |
\advance\oddsidemargin by \ExtraWidth |
| 117 |
\advance\oddsidemargin by \@tempdima |
| 118 |
\advance\evensidemargin by -\@tempdima |
| 119 |
\else |
| 120 |
\advance\evensidemargin by \ExtraWidth |
| 121 |
\fi} |
| 122 |
\def\@nesidedwidemargins{% |
| 123 |
\if@reversemargin |
| 124 |
\advance\oddsidemargin by \ExtraWidth |
| 125 |
\advance\evensidemargin by \ExtraWidth |
| 126 |
\fi} |
| 127 |
\ifx\documentclass\undefined |
| 128 |
\else |
| 129 |
\ProcessOptions |
| 130 |
\fi |
| 131 |
\endinput |
| 132 |
%% |
| 133 |
%% End of file `a4.sty'. |