~ubuntu-branches/ubuntu/trusty/rheolef/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/todo/a4.sty

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2010-06-12 09:08:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100612090859-8gpm2gc7j3ab43et
Tags: upstream-5.89
ImportĀ upstreamĀ versionĀ 5.89

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
%% 
 
9
%% This file is part of the NTGclass package.
 
10
%% ---------------------------------------------
 
11
%% 
 
12
%% Copyright (C) 1999 Nederlandstalige TeX Gebruikersgroep.
 
13
%% All rights reserved.
 
14
%% 
 
15
%% This program can be redistributed and/or modified under the terms
 
16
%% of the LaTeX Project Public License Distributed from CTAN
 
17
%% archives in directory macros/latex/base/lppl.txt; either
 
18
%% version 1 of the License, or any later version.
 
19
%% 
 
20
%% Style option `A4' to be used with LaTeX V2.09
 
21
%% Copyright (C) 1990-1999 Johannes Braams, Nico Poppelier.
 
22
%%               All rights reserved.
 
23
%%
 
24
%% This program can be redistributed and/or modified under the terms
 
25
%% of the LaTeX Project Public License Distributed from CTAN
 
26
%% archives in directory macros/latex/base/lppl.txt; either
 
27
%% version 1 of the License, or any later version.
 
28
%%
 
29
\ifx\ProvidesPackage\undefined
 
30
  \def\ProvidesPackage#1[#2 #3 #4]{%
 
31
    \wlog{LaTeX Package `#1' #3 <#2> #4}}
 
32
\fi
 
33
\ProvidesPackage{a4}
 
34
       [1999/03/03 v1.2f A4 based page layout]
 
35
\ifx\documentclass\undefined
 
36
\else
 
37
  \DeclareOption{widemargins}{\WideMargins}
 
38
\fi
 
39
 
 
40
\topmargin 0pt
 
41
\ifcase \@ptsize
 
42
    \textheight 53\baselineskip
 
43
\or
 
44
    \textheight 46\baselineskip
 
45
\or
 
46
    \textheight 42\baselineskip
 
47
\fi
 
48
\advance\textheight by \topskip
 
49
\ifcase \@ptsize
 
50
    \textwidth      5.00in
 
51
    \marginparwidth 1.00in
 
52
  \if@twoside
 
53
    \oddsidemargin  0.55in
 
54
    \evensidemargin 0.75in
 
55
  \else
 
56
    \oddsidemargin  0.55in
 
57
    \evensidemargin 0.55in
 
58
  \fi
 
59
\or
 
60
    \textwidth      5.20in
 
61
    \marginparwidth 1.00in
 
62
  \if@twoside
 
63
    \oddsidemargin  0.45in
 
64
    \evensidemargin 0.65in
 
65
  \else
 
66
    \oddsidemargin  0.45in
 
67
    \evensidemargin 0.45in
 
68
  \fi
 
69
\or
 
70
    \textwidth      5.70in
 
71
    \marginparwidth 0.80in
 
72
  \if@twoside
 
73
    \oddsidemargin  0.20in
 
74
    \evensidemargin 0.40in
 
75
  \else
 
76
    \oddsidemargin  0.20in
 
77
    \evensidemargin 0.20in
 
78
  \fi
 
79
\fi
 
80
\def\WideMargins{%
 
81
  \newdimen\ExtraWidth
 
82
  \ifcase \@ptsize
 
83
    \ExtraWidth = 0.5in
 
84
    \@widemargins
 
85
  \or
 
86
    \ExtraWidth = 0.5in
 
87
    \@widemargins
 
88
  \or
 
89
    \ExtraWidth = 0.7in
 
90
    \@widemargins
 
91
  \fi\let\WideMargins\relax\let\@widemargins\relax}
 
92
{\def\do{\noexpand\do\noexpand}
 
93
 \xdef\@preamblecmds{\@preamblecmds \do\WideMargins}
 
94
}
 
95
\def\@widemargins{%
 
96
    \global\advance\textwidth by -\ExtraWidth
 
97
    \global\advance\marginparwidth by \ExtraWidth
 
98
    \if@twoside
 
99
      \tw@sidedwidemargins
 
100
    \else
 
101
      \@nesidedwidemargins
 
102
    \fi}
 
103
\def\tw@sidedwidemargins{%
 
104
    \if@reversemargin
 
105
      \@tempdima=\evensidemargin
 
106
      \advance\@tempdima by -\oddsidemargin
 
107
      \advance\oddsidemargin by \ExtraWidth
 
108
      \advance\oddsidemargin by \@tempdima
 
109
      \advance\evensidemargin by -\@tempdima
 
110
    \else
 
111
      \advance\evensidemargin by \ExtraWidth
 
112
    \fi}
 
113
\def\@nesidedwidemargins{%
 
114
    \if@reversemargin
 
115
      \advance\oddsidemargin by \ExtraWidth
 
116
      \advance\evensidemargin by \ExtraWidth
 
117
    \fi}
 
118
\ifx\documentclass\undefined
 
119
\else
 
120
  \ProcessOptions
 
121
\fi
 
122
%% \CharacterTable
 
123
%%  {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
 
124
%%   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
 
125
%%   Digits        \0\1\2\3\4\5\6\7\8\9
 
126
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
 
127
%%   Dollar        \$     Percent       \%     Ampersand     \&
 
128
%%   Acute accent  \'     Left paren    \(     Right paren   \)
 
129
%%   Asterisk      \*     Plus          \+     Comma         \,
 
130
%%   Minus         \-     Point         \.     Solidus       \/
 
131
%%   Colon         \:     Semicolon     \;     Less than     \<
 
132
%%   Equals        \=     Greater than  \>     Question mark \?
 
133
%%   Commercial at \@     Left bracket  \[     Backslash     \\
 
134
%%   Right bracket \]     Circumflex    \^     Underscore    \_
 
135
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 
136
%%   Right brace   \}     Tilde         \~}
 
137
%%
 
138
\endinput
 
139
%%
 
140
%% End of file `a4.sty'.