~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fpcdocs/old/a4.sty

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

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
%% Copyright (C) 1994-1996 Nederlandstalige TeX Gebruikersgroep. 
 
10
%% All rights reserved. 
 
11
%% For additional copyright information see further down in this file. 
 
12
%% 
 
13
%% This file is part of the NTG document classes distribution 
 
14
%% ---------------------------------------------------------- 
 
15
%% 
 
16
%% This file is distributed in the hope that it will be useful, 
 
17
%% but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
18
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 
19
%% 
 
20
%% 
 
21
%% IMPORTANT NOTICE: 
 
22
%% 
 
23
%% For error reports in case of UNCHANGED versions see readme file. 
 
24
%% 
 
25
%% Please do not request updates from us directly. Distribution is 
 
26
%% done through Mail-Servers and TeX organizations. 
 
27
%% 
 
28
%% You are not allowed to change this file. 
 
29
%% 
 
30
%% You are allowed to distribute this file under the condition that 
 
31
%% it is distributed together with all files mentioned in 00readme.txt. 
 
32
%% 
 
33
%% If you receive only some of these files from someone, complain! 
 
34
%% 
 
35
%% You are NOT ALLOWED to distribute this file alone. You are NOT 
 
36
%% ALLOWED to take money for the distribution or use of either this 
 
37
%% file or a changed version, except for a nominal charge for copying 
 
38
%% etc. 
 
39
\ifx\ProvidesPackage\undefined
 
40
  \def\ProvidesPackage#1[#2 #3 #4]{%
 
41
    \wlog{LaTeX Package `#1' #3 <#2> #4}}
 
42
\fi
 
43
\ProvidesPackage{a4}
 
44
       [1995/09/25 v1.2e A4 based page layout]
 
45
\ifx\documentclass\undefined
 
46
\else
 
47
  \DeclareOption{widemargins}{\WideMargins}
 
48
\fi
 
49
 
 
50
\topmargin 0pt
 
51
\ifcase \@ptsize
 
52
    \textheight 53\baselineskip
 
53
\or
 
54
    \textheight 46\baselineskip
 
55
\or
 
56
    \textheight 42\baselineskip
 
57
\fi
 
58
\advance\textheight by \topskip
 
59
\ifcase \@ptsize
 
60
    \textwidth      5.00in
 
61
    \marginparwidth 1.00in
 
62
  \if@twoside
 
63
    \oddsidemargin  0.55in
 
64
    \evensidemargin 0.75in
 
65
  \else
 
66
    \oddsidemargin  0.55in
 
67
    \evensidemargin 0.55in
 
68
  \fi
 
69
\or
 
70
    \textwidth      5.20in
 
71
    \marginparwidth 1.00in
 
72
  \if@twoside
 
73
    \oddsidemargin  0.45in
 
74
    \evensidemargin 0.65in
 
75
  \else
 
76
    \oddsidemargin  0.45in
 
77
    \evensidemargin 0.45in
 
78
  \fi
 
79
\or
 
80
    \textwidth      5.70in
 
81
    \marginparwidth 0.80in
 
82
  \if@twoside
 
83
    \oddsidemargin  0.20in
 
84
    \evensidemargin 0.40in
 
85
  \else
 
86
    \oddsidemargin  0.20in
 
87
    \evensidemargin 0.20in
 
88
  \fi
 
89
\fi
 
90
\def\WideMargins{%
 
91
  \newdimen\ExtraWidth
 
92
  \ifcase \@ptsize
 
93
    \ExtraWidth = 0.5in
 
94
    \@widemargins
 
95
  \or
 
96
    \ExtraWidth = 0.5in
 
97
    \@widemargins
 
98
  \or
 
99
    \ExtraWidth = 0.7in
 
100
    \@widemargins
 
101
  \fi\let\WideMargins\relax\let\@widemargins\relax}
 
102
{\def\do{\noexpand\do\noexpand}
 
103
 \xdef\@preamblecmds{\@preamblecmds \do\WideMargins}
 
104
}
 
105
\def\@widemargins{%
 
106
    \global\advance\textwidth by -\ExtraWidth
 
107
    \global\advance\marginparwidth by \ExtraWidth
 
108
    \if@twoside
 
109
      \tw@sidedwidemargins
 
110
    \else
 
111
      \@nesidedwidemargins
 
112
    \fi}
 
113
\def\tw@sidedwidemargins{%
 
114
    \if@reversemargin
 
115
      \@tempdima=\evensidemargin
 
116
      \advance\@tempdima by -\oddsidemargin
 
117
      \advance\oddsidemargin by \ExtraWidth
 
118
      \advance\oddsidemargin by \@tempdima
 
119
      \advance\evensidemargin by -\@tempdima
 
120
    \else
 
121
      \advance\evensidemargin by \ExtraWidth
 
122
    \fi}
 
123
\def\@nesidedwidemargins{%
 
124
    \if@reversemargin
 
125
      \advance\oddsidemargin by \ExtraWidth
 
126
      \advance\evensidemargin by \ExtraWidth
 
127
    \fi}
 
128
\ifx\documentclass\undefined
 
129
\else
 
130
  \ProcessOptions
 
131
\fi
 
132
%% \CharacterTable
 
133
%%  {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
 
134
%%   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
 
135
%%   Digits        \0\1\2\3\4\5\6\7\8\9
 
136
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
 
137
%%   Dollar        \$     Percent       \%     Ampersand     \&
 
138
%%   Acute accent  \'     Left paren    \(     Right paren   \)
 
139
%%   Asterisk      \*     Plus          \+     Comma         \,
 
140
%%   Minus         \-     Point         \.     Solidus       \/
 
141
%%   Colon         \:     Semicolon     \;     Less than     \<
 
142
%%   Equals        \=     Greater than  \>     Question mark \?
 
143
%%   Commercial at \@     Left bracket  \[     Backslash     \\
 
144
%%   Right bracket \]     Circumflex    \^     Underscore    \_
 
145
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 
146
%%   Right brace   \}     Tilde         \~}
 
147
%%
 
148
\endinput
 
149
%% 
 
150
%% End of file `a4.sty'.