Debian Codegraph @

texmf-dist/doc/latex/rmpage/rmplocal.gfc

raw
1 %% File rmplocal.cfg 11/9/96
2 %% File rmpagelocal.cfg 23/8/96
3 %%
4 %% Copyright 1996 and 1997 R.J.M. McDonnell
5 %% email: [email protected]
6 %%
7 %%
8 %% This file is meant to be modified at each installation. So that
9 %% you don't end up with a mess that's hideously incompatible with
10 %% other installations and versions of the rmpage package, do this:
11 %% when you change this file, add a comment on the top line identifying
12 %% it as yours, and change the comment after the version number to do
13 %% the same thing (e.g., [1923/09/17 v0.carrot Gertrude Stein's config
14 %% file for the rmpage package]).
15 %%
16 %% Please don't make any other changes above the line: `LOCAL CODE BELOW
17 %% HERE PLEASE', aside from commenting out or uncommenting whole
18 %% options; you're best off not deleting them, honest.
19 %%
20 %% My current idea is that the contents of this file below the `LOCAL
21 %% CODE BELOW HERE PLEASE' line can be cut and pasted wholesale into
22 %% a later version of this file; the code that's there is my local
23 %% configuration code, and I expect that its only use to you is as
24 %% examples. My intention is that future versions of this file won't
25 %% have essential code below the line `LOCAL CODE BELOW HERE PLEASE'
26 %% either.
27 %%
28 %% I suggest the first thing you do is hunt down the \ExecuteOptions
29 %% statements and change them to whatever you think suits you best.
30 %%
31 %%
32 \NeedsTeXFormat{LaTeX2e}[1996/06/01]
33 \ProvidesFile{rmplocal.gfc}[1997/10/10 v1.0 local configuration file
34 for the rmpage package.]
35 %
36 % 1997/10/10 v1.0 Transmogrified it into the first public release
37 % version
38 % 1996/11/01 v0.36 Changed the typesetting tightness the loadpsfount
39 % options change to (now looseish).
40 % Goes with rmpage-v0.90.sty
41 % 1996/11/01 v0.35 Played about with ltxdoc stuff. Still no joy.
42 % Goes with rmpage-v0.89.2.sty
43 % 1996/10/31 v0.34 Added the three beton options, just after the
44 % loadfount stuff. Belongs here because not everyone uses the
45 % concrete founts.
46 % Goes with rmpage-v0.89.sty
47 % 1996/10/29 v0.33 Put \RM@notinexecuteoptions back in t@uch options;
48 % put ljmeepex options into class file. Perhaps change rmpage so
49 % t@uch options can be used; tricky.
50 % Goes with rmpage-v0.88.sty
51 % 1996/10/28 v0.32 Added \RM@AfterInitialTextwidthSetting hook;
52 % added book class default options
53 % Goes with rmpage-v0.88.sty
54 % 1996/10/28 v0.31 Added foils defaults.
55 % Goes with rmpage-v0.87.sty
56 % 1996/10/25 v0.30 Added stuff about \RM@LocalClassReport hook.
57 % Goes with rmpage-v0.85.sty
58 % 1996/10/25 v0.29 Changed nastydate option to othernicedate. :-).
59 % Goes with rmpage-v0.84.1.sty
60 % 1996/10/21 v0.28 Changed slides options a bit; rmpwslid.pko is now
61 % used.
62 % Goes with rmpage-v0.84.sty
63 % 1996/10/21 v0.27 Uncommented another t@uchoption; allowed all t@uch
64 % options in \ExecuteOptions; added support for ljmeepex class
65 % (options are declared here, and it's given the same number as
66 % ljmueepexam. Is Bill Gates the Antichrist?)
67 % Goes with rmpage-v0.83.sty
68 % 1996/10/19 v0.26 Added ringbinding option which uses new
69 % \RM@DefLengthAtLeast command. Changed bithesis settings to use
70 % this command to define minmargins.
71 % Goes with rmpage-v0.83.sty
72 % 1996/10/17 v0.25 Changed loadpsfount stuff to use new command to
73 % set looseness, which requests sloppiest \if@twocolum.
74 % Goes with rmpage-v0.82.sty
75 % 1996/10/14 v0.24 Added errorshow, warningshow, infoshow, and debugshow
76 % options (asleep); these are used by tracefnt---someone might
77 % like them.
78 % Goes with rmpage-v0.81.1.sty
79 % 1996/10/09 v0.23 Confirmed lj4printer limits by measuring MS works
80 % output. Not great, but it'll do for now.
81 % Goes with rmpage-v0.81.1.sty
82 % 1996/10/06 v0.22 Fixed loadbookman option
83 % Goes with rmpage-v0.81.1.sty
84 % 1996/10/04 v0.21 Changed an errant \RM@ocltype to \RM@ocl
85 % Goes with rmpage-v0.81.1.sty
86 % 1996/10/01 v0.20 Changed loadconcrete option so it uses the beton
87 % package; goes with changes in rmpage. Changed generalprinter so
88 % it works with HP inkjets.
89 % Goes with rmpage-v0.81.sty
90 % 1996/09/30 v0.19.1 Changed c76paper option to c7/6paper; binned a
91 % redundant asleepoption.
92 % Goes with rmpage-v0.80.1.sty
93 % 1996/09/29 v0.19 replaced smallbase things with normalbase things.
94 % Goes with rmpage-v0.80.sty
95 % 1996/09/28 v0.18 added noheaders and notstdmargins to default
96 % \ExecuteOptions; to counteract changed default flag settings.
97 % 1996/09/27 v0.17 Downcased the RA and SRA paper size names; changed
98 % luccasua to lucasual.
99 % Goes with rmpage-v0.78.sty
100 % 1996/09/26 v0.16 Changed some comments; changed
101 % \RM@ClassExecuteOptions to \RM@OnClassExecuteOptions
102 % Goes with rmpage-v0.76.sty
103 % 1996/09/24 v0.15 Added printer/paper settings from rmpage.sty to
104 % the \RM@PrinterPaperSettings hook. Put loadcourier and
105 % loadconcrete to bed. Commented out rmcv, rmletter, and bithesis
106 % options; they should be redundant by now. Delete them later if
107 % there's no problems.
108 % Goes with rmpage-v0.74.sty
109 % 1996/09/23 v0.14 Changed R+Rdw520printer option so \RM@printertype
110 % is set to 11 (new 500 series value), rather than 2 (old DW520
111 % value). Foolish child. Added the thisfontwidth option,
112 % commented out.
113 % Goes with rmpage-v0.73.sty
114 % 1996/09/22 v0.13 basemaxmparwidth and basemparclearance options
115 % commented out. I mean, really, why not? Added the letter4paper
116 % size: an unholy alliance between US letter and ISO A4. Avoid
117 % like the plague; but I can almost see a use for it.
118 % Goes with rmpage-v0.72.sty
119 % 1996/09/18 v0.12.1 Changed some comments.
120 % Goes with rmpage-v0.71.2.sty
121 % 1996/09/16 v0.12 Added fulllength and stdlength options from
122 % rmpage, because they need executing after the touchlength options.
123 % Goes with rmpage-v0.71.sty
124 % 1996/09/13 v0.11.1 minor doc change
125 % 1996/09/13 v0.11 Not much really: added the center and notcenter
126 % options to match the documentation.
127 % Goes with rmpage-v0.69.sty
128 % 1996/09/11 v0.10.1 Made a line a comment line again (oops)
129 % Goes with rmpage-v0.67.sty
130 % 1996/09/11 v0.10 Added some more options, and changed the name from
131 % rmpagelocal.cfg (as it would be in a world free from Bill
132 % Gates's malign influence) to the rather silly rmplocal.cfg. It
133 % might have been ratlocal, but I decided in favour of utility
134 % against character. Apologies to those who use the
135 % abreviation RMP in a different context. Added lots and lots of
136 % option declarations from rmpage.sty. Changed default option
137 % setting and played around with class detection rather a lot;
138 % it's relatively elegant now.
139 % Goes with rmpage-v0.66.sty
140 % 1996/09/10 v0.9 Turned a few %% lines into % lines
141 % Goes with rmpage-v0.65.sty
142 % 1996/09/10 v0.8 Played about with commented-out options
143 % Goes with rmpage-v0.64.sty
144 % 1996/09/09 v0.7 Played around with class detection and changed
145 % class type numbers
146 % Goes with rmpage-v0.63.sty
147 % 1996/09/04 v0.6 Erm, some stuff. Changed printer option to
148 % dw520-ours.
149 % Goes with rmpage-v0.61.sty
150 % 1996/09/03 v0.5 Played about a bit; can't remember the details.
151 % Goes with rmpage-v0.60.sty
152 % 1996/09/02 v0.4 added hook stuff, and included ltxdoc code in one
153 % of them.
154 % 1996/08/25 v0.3 added rarely used paper size definitions.
155 % Goes with rmpagenew v0.56
156 % 1996/08/24 v0.2 changed name and stuff; goes with rmpagenew v0.55
157 % 1996/08/23 v0.1 Here we go... Goes with rmpagenew v0.54
158 %
159 %%
160 %%
161 %% OPTION DECLARATION
162 %% ==================
163 %%
164 %% This section contains the standard options for rmpage. I suggest
165 %% you don't add or delete anything from this section: just comment
166 %% options out to speed rmpage up or uncomment them if you need to
167 %% use them.
168 %%
169 %% If you want to add options, add them at the end of this section
170 %% in between the places marked.
171 %%
172 %%
173 %% PAPER SIZES
174 %% -----------
175 %%
176 %% \DeclareOption{undefinedpaper}{\def\RM@papertype{0}}
177 %%
178 %% \DeclareOption{letter4paper}{\def\RM@papertype{9}
179 %% \setlength\paperheight{8.5in}
180 %% \setlength\paperwidth{210mm}
181 %% }
182 %%
183 %% \DeclareOption{a0paper}{\def\RM@papertype{10}
184 %% \setlength\paperheight{1189mm}
185 %% \setlength\paperwidth{841mm}
186 %% }
187 %% \DeclareOption{a1paper}{\def\RM@papertype{11}
188 %% \setlength\paperheight{841mm}
189 %% \setlength\paperwidth{594mm}
190 %% }
191 %% \DeclareOption{a2paper}{\def\RM@papertype{12}
192 %% \setlength\paperheight{594mm}
193 %% \setlength\paperwidth{420mm}
194 %% }
195 \DeclareOption{a3paper}{\def\RM@papertype{13}%
196 \setlength\paperheight{420mm}%
197 \setlength\paperwidth{297mm}%
198 }
199
200 \DeclareOption{a6paper}{\def\RM@papertype{16}%
201 \setlength\paperheight{148mm}%
202 \setlength\paperwidth{105mm}%
203 }
204 %% \DeclareOption{a7paper}{\def\RM@papertype{17}
205 %% \setlength\paperheight{105mm}
206 %% \setlength\paperwidth{74mm}
207 %% }
208 %% \DeclareOption{a8paper}{\def\RM@papertype{18}
209 %% \setlength\paperheight{74mm}
210 %% \setlength\paperwidth{52mm}
211 %% }
212 %% \DeclareOption{a9paper}{\def\RM@papertype{19}
213 %% \setlength\paperheight{52mm}
214 %% \setlength\paperwidth{37mm}
215 %% }
216 %% \DeclareOption{a10paper}{\def\RM@papertype{20}
217 %% \setlength\paperheight{37mm}
218 %% \setlength\paperwidth{26mm}
219 %% }
220 %%
221 %% \DeclareOption{b0paper}{\def\RM@papertype{30}
222 %% \setlength\paperheight{1414mm}
223 %% \setlength\paperwidth{1000mm}
224 %% }
225 %% \DeclareOption{b1paper}{\def\RM@papertype{31}
226 %% \setlength\paperheight{1000mm}
227 %% \setlength\paperwidth{707mm}
228 %% }
229 %% \DeclareOption{b2paper}{\def\RM@papertype{32}
230 %% \setlength\paperheight{707mm}
231 %% \setlength\paperwidth{500mm}
232 %% }
233 %% \DeclareOption{b3paper}{\def\RM@papertype{33}
234 %% \setlength\paperheight{500mm}
235 %% \setlength\paperwidth{353mm}
236 %% }
237 \DeclareOption{b4paper}{\def\RM@papertype{34}%
238 \setlength\paperheight{353mm}%
239 \setlength\paperwidth{250mm}%
240 }
241
242 \DeclareOption{b6paper}{\def\RM@papertype{36}%
243 \setlength\paperheight{176mm}%
244 \setlength\paperwidth{125mm}%
245 }
246 \DeclareOption{b7paper}{\def\RM@papertype{37}%
247 \setlength\paperheight{125mm}%
248 \setlength\paperwidth{88mm}%
249 }
250 %% \DeclareOption{b8paper}{\def\RM@papertype{38}
251 %% \setlength\paperheight{88mm}
252 %% \setlength\paperwidth{62mm}
253 %% }
254 %% \DeclareOption{b9paper}{\def\RM@papertype{39}
255 %% \setlength\paperheight{62mm}
256 %% \setlength\paperwidth{44mm}
257 %% }
258 %% \DeclareOption{b10paper}{\def\RM@papertype{40}
259 %% \setlength\paperheight{44mm}
260 %% \setlength\paperwidth{31mm}
261 %% }
262 %% \DeclareOption{c0paper}{\def\RM@papertype{50}
263 %% \setlength\paperheight{1297mm}
264 %% \setlength\paperwidth{917mm}
265 %% }
266 %% \DeclareOption{c1paper}{\def\RM@papertype{51}
267 %% \setlength\paperheight{917mm}
268 %% \setlength\paperwidth{648mm}
269 %% }
270 %% \DeclareOption{c2paper}{\def\RM@papertype{52}
271 %% \setlength\paperheight{648mm}
272 %% \setlength\paperwidth{458mm}
273 %% }
274 %% \DeclareOption{c3paper}{\def\RM@papertype{53}
275 %% \setlength\paperheight{458mm}
276 %% \setlength\paperwidth{324mm}
277 %% }
278 %% \DeclareOption{c4paper}{\def\RM@papertype{54}
279 %% \setlength\paperheight{324mm}
280 %% \setlength\paperwidth{229mm}
281 %% }
282 %%
283 \DeclareOption{c5paper}{\def\RM@papertype{55}%
284 \setlength\paperheight{229mm}%
285 \setlength\paperwidth{162mm}%
286 }
287
288 %% \DeclareOption{c7paper}{\def\RM@papertype{57}
289 %% \setlength\paperheight{114mm}
290 %% \setlength\paperwidth{81mm}
291 %% }
292 %%
293 %% \DeclareOption{c7/6paper}{\def\RM@papertype{59}% c7/6 paper
294 %% \setlength\paperheight{162mm}
295 %% \setlength\paperwidth{81mm}
296 %% }
297 %% % Note that the BS4264 envelope sizes have names I invented
298 %% % BS4264 Post office preferred envelope: seed packets, wage slips, gen pack
299 %% \DeclareOption{bspopseedenvelopepaper}{\def\RM@papertype{60}
300 %% \setlength\paperheight{152mm}
301 %% \setlength\paperwidth{102mm}
302 %% }
303 %% % BS4264 Post office preferred envelope: gen commercial, non iso sizes
304 %% \DeclareOption{bspopnonisoenvelopepaper}{\def\RM@papertype{61}
305 %% \setlength\paperheight{229mm}
306 %% \setlength\paperwidth{102mm}
307 %% }
308 %% % BS4264 envelope; bulky A5, catalogues, brochures.
309 %% \DeclareOption{bsbrochureenvelopepaper}{\def\RM@papertype{62}
310 %% \setlength\paperheight{254mm}
311 %% \setlength\paperwidth{178mm}
312 %% }
313 %% % BS4264 envelope; legal docs, catalogues, photos
314 %% \DeclareOption{bslegalenvelopepaper}{\def\RM@papertype{63}
315 %% \setlength\paperheight{270mm}
316 %% \setlength\paperwidth{216mm}
317 %% }
318 %% % BS4264 envelope; insurance policies, legal docs
319 %% \DeclareOption{bslargelegalenvelopepaper}{\def\RM@papertype{64}
320 %% \setlength\paperheight{305mm}
321 %% \setlength\paperwidth{127mm}
322 %% }
323 %% % BS4264 envelope; bulky docs, calendars
324 %% \DeclareOption{bscalendarenvelopepaper}{\def\RM@papertype{65}
325 %% \setlength\paperheight{381mm}
326 %% \setlength\paperwidth{254mm}
327 %% }
328 %%
329 \DeclareOption{foolscapfoliopaper}{\def\RM@papertype{70}%
330 \setlength\paperheight{13.5in}%
331 \setlength\paperwidth{8.5in}%
332 }
333 %% \DeclareOption{foolscappaper}{\def\RM@papertype{70}% foolscap option gives foolscap
334 %% \setlength\paperheight{13.5in}% folio paper
335 %% \setlength\paperwidth{8.5in}
336 %% }
337 %%
338 %% \DeclareOption{foolscapquartopaper}{\def\RM@papertype{71}
339 %% \setlength\paperheight{8.5in}
340 %% \setlength\paperwidth{6.75in}
341 %% }
342 %% \DeclareOption{foolscapoctavopaper}{\def\RM@papertype{72}
343 %% \setlength\paperheight{6.75in}
344 %% \setlength\paperwidth{4.25in}
345 %% }
346 %% \DeclareOption{crownfoliopaper}{\def\RM@papertype{73}
347 %% \setlength\paperheight{15in}
348 %% \setlength\paperwidth{10in}
349 %% }
350 %% \DeclareOption{crownquartopaper}{\def\RM@papertype{74}
351 %% \setlength\paperheight{10in}
352 %% \setlength\paperwidth{7.5in}
353 %% }
354 %% \DeclareOption{crownoctavopaper}{\def\RM@papertype{75}
355 %% \setlength\paperheight{7.5in}
356 %% \setlength\paperwidth{5in}
357 %% }
358 %% \DeclareOption{royalfoliopaper}{\def\RM@papertype{76}
359 %% \setlength\paperheight{20in}
360 %% \setlength\paperwidth{12.5in}
361 %% }
362 %% \DeclareOption{royalquartopaper}{\def\RM@papertype{77}
363 %% \setlength\paperheight{12.5in}
364 %% \setlength\paperwidth{10in}
365 %% }
366 %% \DeclareOption{royaloctavopaper}{\def\RM@papertype{78}
367 %% \setlength\paperheight{10in}
368 %% \setlength\paperwidth{6.25in}
369 %% }
370 %% \DeclareOption{imperialfoliopaper}{\def\RM@papertype{79}
371 %% \setlength\paperheight{22in}
372 %% \setlength\paperwidth{15.5in}
373 %% }
374 %% \DeclareOption{imperialquartopaper}{\def\RM@papertype{80}
375 %% \setlength\paperheight{15in}
376 %% \setlength\paperwidth{11in}
377 %% }
378 %% \DeclareOption{imperialoctavopaper}{\def\RM@papertype{81}
379 %% \setlength\paperheight{11in}
380 %% \setlength\paperwidth{7.5in}
381 %% }
382 %% \DeclareOption{largecrownoctavopaper}{\def\RM@papertype{82}
383 %% \setlength\paperheight{8in}
384 %% \setlength\paperwidth{5.25in}
385 %% }
386 %% \DeclareOption{demyoquartopaper}{\def\RM@papertype{83}
387 %% \setlength\paperheight{11.25in}
388 %% \setlength\paperwidth{8.75in}
389 %% }
390 %% \DeclareOption{demyoctavopaper}{\def\RM@papertype{84}
391 %% \setlength\paperheight{8.75in}
392 %% \setlength\paperwidth{5.625in}
393 %% }
394 %% \DeclareOption{mediumquartopaper}{\def\RM@papertype{85}
395 %% \setlength\paperheight{12in}
396 %% \setlength\paperwidth{9.5in}
397 %% }
398 %% \DeclareOption{mediumoctavopaper}{\def\RM@papertype{86}
399 %% \setlength\paperheight{9.5in}
400 %% \setlength\paperwidth{6in}
401 %% }
402 %%
403 %% \DeclareOption{ra0paper}{\def\RM@papertype{90}
404 %% \setlength\paperheight{1270mm}
405 %% \setlength\paperwidth{960mm}
406 %% }
407 %% \DeclareOption{ra1paper}{\def\RM@papertype{91}
408 %% \setlength\paperheight{1270mm}
409 %% \setlength\paperwidth{960mm}
410 %% }
411 %% \DeclareOption{ra2paper}{\def\RM@papertype{92}
412 %% \setlength\paperheight{1270mm}
413 %% \setlength\paperwidth{960mm}
414 %% }
415 %% \DeclareOption{sra0paper}{\def\RM@papertype{93}
416 %% \setlength\paperheight{1280mm}
417 %% \setlength\paperwidth{900mm}
418 %% }
419 %% \DeclareOption{sra1paper}{\def\RM@papertype{94}
420 %% \setlength\paperheight{900mm}
421 %% \setlength\paperwidth{840mm}
422 %% }
423 %% \DeclareOption{sra2paper}{\def\RM@papertype{95}
424 %% \setlength\paperheight{640mm}
425 %% \setlength\paperwidth{450mm}
426 %% }
427 %% \DeclareOption{metricdoublecrownpaper}{\def\RM@papertype{96}
428 %% \setlength\paperheight{770mm}
429 %% \setlength\paperwidth{505mm}
430 %% }
431 %% \DeclareOption{metricquadcrownpaper}{\def\RM@papertype{97}
432 %% \setlength\paperheight{1010mm}
433 %% \setlength\paperwidth{770mm}
434 %% }
435 %% \DeclareOption{metriclargequadcrownpaper}{\def\RM@papertype{98}
436 %% \setlength\paperheight{1060mm}
437 %% \setlength\paperwidth{820mm}
438 %% }
439 %% \DeclareOption{metricquaddemypaper}{\def\RM@papertype{99}
440 %% \setlength\paperheight{1030mm}
441 %% \setlength\paperwidth{890mm}
442 %% }
443 %% \DeclareOption{metricsmallquadroyalpaper}{\def\RM@papertype{100}
444 %% \setlength\paperheight{1270mm}
445 %% \setlength\paperwidth{960mm}
446 %% }
447 %%
448 %%
449 %% LONG PAPER TYPES
450 %% ----------------
451 %%
452 %% 0 = not long (or 1)
453 %% 1 = 7/8 2 = 3/4 3 = 2/3 4 = 5/8 5 = 1/2
454 %% 6 = 3/8 7 = 1/3 8 = 1/4 9 = 1/8
455 %%
456 %\DeclareOption{notlongpaper}{\def\RM@longpapertype{0}}
457 %\DeclareOption{7/8longpaper}{\def\RM@longpapertype{1}}
458 \DeclareOption{3/4longpaper}{\def\RM@longpapertype{2}}
459 \DeclareOption{2/3longpaper}{\def\RM@longpapertype{3}}
460 %\DeclareOption{5/8longpaper}{\def\RM@longpapertype{4}}
461 %\DeclareOption{1/2longpaper}{\def\RM@longpapertype{5}}
462 %\DeclareOption{3/8longpaper}{\def\RM@longpapertype{6}}
463 \DeclareOption{1/3longpaper}{\def\RM@longpapertype{7}}
464 \DeclareOption{1/4longpaper}{\def\RM@longpapertype{8}}
465 %\DeclareOption{1/8longpaper}{\def\RM@longpapertype{9}}
466 %%
467 %%
468 %% OPTIONS TO CHANGE MARGINPARS
469 %% ----------------------------
470 %%
471 %% marginparsep is scaled by option
472 \DeclareOption{leastmparsep}{\RM@mparsepoption=3}
473 \DeclareOption{lessmparsep}{\RM@mparsepoption=6}
474 \DeclareOption{lessishmparsep}{\RM@mparsepoption=9}
475 \DeclareOption{normalmparsep}{\RM@mparsepoption=12}
476 \DeclareOption{moreishmparsep}{\RM@mparsepoption=15}
477 \DeclareOption{moremparsep}{\RM@mparsepoption=18}
478 \DeclareOption{mostmparsep}{\RM@mparsepoption=21}
479 %%
480 %% The basemparclear options need to be executed after paperwidth has
481 %% been set. Easily done with \ProcessOptions rather than
482 %% \ProcessOptions*, and the papersize setting options declared above
483 %% rather than below. The normalbasemparclear value is set after option
484 %% processing if no other value has been set. If \RM@mparclearance is
485 %% -666pt, the normalbasemparclear value is set; if it's -667pt, the
486 %% largebaselinemparclear value is set (both just after
487 %% \RM@PrinterPaperSettings hook is executed, which is well after
488 %% \paperwidth is set). This value is scaled by option just before it's
489 %% used, so one can use the \RM@BeforeWidthSetting hook to change things.
490 %% \DeclareOption{normalbasemparclear}{\setlength\RM@mparclearance{-666pt}}
491 %% \DeclareOption{largebasemparclear}{\setlength\RM@mparclearance{-667pt}}
492 %%
493 %% \DeclareOption{normalbasemaxmparwidth}{\setlength\RM@maxmparwidth{-666pt}}
494 %% \DeclareOption{largebasemaxmparwidth}{\setlength\RM@maxmparwidth{-667pt}}
495 %%
496 %% the gap between the edge of the paper and the edge of a marginpar
497 %% is 0.4in (10.16mm) with standard article/report class settings.
498 %% The mparclearance options change this.
499 %%
500 %% mparclearance for A4 portrait paper:
501 %% least=3.95mm less=5.37mm lessish=7.28mm norm=9.88
502 %% moreish=13.41mm more=18.20mm most=24.71mm
503 %%
504 %% (norm=0.4in with US letter paper). Note that there are no touch
505 %% options for mparclearance or maxmparwidth. There's no particular
506 %% reason why they shouldn't be added. So I did, but left them
507 %% commented out.
508 \DeclareOption{leastmparclearance}{\RM@mparclearoption=3}
509 \DeclareOption{lessmparclearance}{\RM@mparclearoption=6}
510 \DeclareOption{lessishmparclearance}{\RM@mparclearoption=9}
511 \DeclareOption{normalmparclearance}{\RM@mparclearoption=12}% norm
512 \DeclareOption{moreishmparclearance}{\RM@mparclearoption=15}
513 \DeclareOption{moremparclearance}{\RM@mparclearoption=18}
514 \DeclareOption{mostmparclearance}{\RM@mparclearoption=21}
515 %%
516 %% maxmparwidth is now set as a fraction of paperwidth, such that with
517 %% portrait US letter paper, you get 2in as standard (or maybe with A4; I
518 %% really ought to check this.. It's scale by option just like
519 %% everything else. If you want to change the default base value of
520 %% maxmparwidth, the \RM@BeforeWidthSetting hook is an ideal place to do
521 %% it.
522 \DeclareOption{leastmaxmparwidth}{\RM@maxmparwidthoption=3}
523 \DeclareOption{lessmaxmparwidth}{\RM@maxmparwidthoption=6}
524 \DeclareOption{lessishmaxmparwidth}{\RM@maxmparwidthoption=9}
525 \DeclareOption{normalmaxmparwidth}{\RM@maxmparwidthoption=12}% norm
526 \DeclareOption{moreishmaxmparwidth}{\RM@maxmparwidthoption=15}
527 \DeclareOption{moremaxmparwidth}{\RM@maxmparwidthoption=18}
528 \DeclareOption{mostmaxmparwidth}{\RM@maxmparwidthoption=21}
529 %%
530 %%
531 %% TOUCH OPTIONS
532 %% -------------
533 %%
534 %% Note that all the touch options need to be executed after their
535 %% corresponding `straight' options. This is inevitable if they are
536 %% left here and \ProcessOptions is used rather than the star form,
537 %% because rmplocal.cfg is loaded after all of rmpage's \DeclareOptions
538 %% statements.
539 %%
540 %% \DeclareOption{t@uchlonger} {\RM@notinexecuteoptions\advance\RM@lengthoption by 1}
541 %% \DeclareOption{t@uchshorter}{\RM@notinexecuteoptions\advance\RM@lengthoption by -1}
542 \DeclareOption{touchlonger}{\RM@notinexecuteoptions\advance\RM@lengthoption by 1}
543 \DeclareOption{touchshorter}{\RM@notinexecuteoptions\advance\RM@lengthoption by -1}
544 %%
545 \DeclareOption{touchmorecolsep}{\RM@notinexecuteoptions\advance\RM@columnsepoption by1}
546 \DeclareOption{touchlesscolsep}{\RM@notinexecuteoptions\advance\RM@columnsepoption by-1}
547 %% \DeclareOption{t@uchmorecolsep}{\RM@notinexecuteoptions\advance\RM@columnsepoption by1}
548 %% \DeclareOption{t@uchlesscolsep}{\RM@notinexecuteoptions\advance\RM@columnsepoption by-1}
549 %%
550 \DeclareOption{touchmoremparsep}{\RM@notinexecuteoptions\advance\RM@mparsepoption by1}
551 \DeclareOption{touchlessmparsep}{\RM@notinexecuteoptions\advance\RM@mparsepoption by-1}
552 %% \DeclareOption{t@uchmoremparsep}{\RM@notinexecuteoptions\advance\RM@mparsepoption by1}
553 %% \DeclareOption{t@uchlessmparsep}{\RM@notinexecuteoptions\advance\RM@mparsepoption by-1}
554 %%
555 \DeclareOption{touchmorefootskip}{\RM@notinexecuteoptions\advance\RM@footskipoption by1}
556 \DeclareOption{touchlessfootskip}{\RM@notinexecuteoptions\advance\RM@footskipoption by-1}
557 %% \DeclareOption{t@uchmorefootskip}{\RM@notinexecuteoptions\advance\RM@footskipoption by1}
558 %% \DeclareOption{t@uchlessfootskip}{\RM@notinexecuteoptions\advance\RM@footskipoption by-1}
559 %%
560 \DeclareOption{touchmoreheadsep}{\RM@notinexecuteoptions\advance\RM@headsepoption by1}
561 \DeclareOption{touchlessheadsep}{\RM@notinexecuteoptions\advance\RM@headsepoption by-1}
562 %% \DeclareOption{t@uchmoreheadsep}{\advance\RM@headsepoption by1}
563 %% \DeclareOption{t@uchlessheadsep}{\advance\RM@headsepoption by-1}
564 %%
565 \DeclareOption{t@uchwider}{\RM@notinexecuteoptions\advance\RM@widthoption by1}
566 \DeclareOption{t@uchnarrower}{\RM@notinexecuteoptions\advance\RM@widthoption by-1}
567 \DeclareOption{touchwider}{\RM@notinexecuteoptions\advance\RM@widthoption by1}
568 \DeclareOption{touchnarrower}{\RM@notinexecuteoptions\advance\RM@widthoption by-1}
569 %%
570 %% \DeclareOption{t@uchmoreoffset}{\RM@notinexecuteoptions\advance\RM@offsetoption by1}
571 %% \DeclareOption{t@uchlessoffset}{\RM@notinexecuteoptions\advance\RM@offsetoption by-1}
572 \DeclareOption{touchmoreoffset}{\RM@notinexecuteoptions\advance\RM@offsetoption by1}
573 \DeclareOption{touchlessoffset}{\RM@notinexecuteoptions\advance\RM@offsetoption by-1}
574 %%
575 %% \DeclareOption{t@uchhigher}{\RM@notinexecuteoptions\advance\RM@headfootbalance by -1}
576 %% \DeclareOption{t@uchlower} {\RM@notinexecuteoptions\advance\RM@headfootbalance by 1}
577 \DeclareOption{touchhigher}{\RM@notinexecuteoptions\advance\RM@headfootbalance by -1}
578 \DeclareOption{touchlower} {\RM@notinexecuteoptions\advance\RM@headfootbalance by 1}
579 %%
580 %% \DeclareOption{t@uchlessmparclearance}{\RM@notinexecuteoptions\advance\RM@mparclearoption by -1}
581 %% \DeclareOption{t@uchmoremparclearance}{\RM@notinexecuteoptions\advance\RM@mparclearoption by 1}
582 %% \DeclareOption{touchlessmparclearance}{\RM@notinexecuteoptions\advance\RM@mparclearoption by -1}
583 %% \DeclareOption{touchmoremparclearance}{\RM@notinexecuteoptions\advance\RM@mparclearoption by 1}
584 %%
585 %% \DeclareOption{t@uchlessmaxmparwidth}{\RM@notinexecuteoptions\advance\RM@maxmparwidthoption by -1}
586 %% \DeclareOption{t@uchmoremaxmparwidth}{\RM@notinexecuteoptions\advance\RM@maxmparwidthoption by 1}
587 %% \DeclareOption{touchlessmaxmparwidth}{\RM@notinexecuteoptions\advance\RM@maxmparwidthoption by -1}
588 %% \DeclareOption{touchmoremaxmparwidth}{\RM@notinexecuteoptions\advance\RM@maxmparwidthoption by 1}
589 %%
590 %%
591 %% RANDOM LENGTH OPTIONS
592 %% ---------------------
593 %%
594 %% These need to be executed after the touchlength options; but for
595 %% that, they'd be in rmpage.sty
596 %%
597 \DeclareOption{fulllength}{\RM@lengthoption=30}
598 \DeclareOption{stdlength}{\RM@lengthoption=0}
599 %%
600 %%
601 %% NUMBER OF COLUMNS
602 %% -----------------
603 %%
604 %% onecolumn and twocolumn are both in rmpage. These options only
605 %% affect \textwidth; use a package like multicols to set you text in
606 %% multiple columns.
607 %%
608 \DeclareOption{onecolumnwidth}{\def\RM@textcols{1}}
609 \DeclareOption{twocolumnwidth}{\def\RM@textcols{2}}
610 \DeclareOption{threecolumnwidth}{\def\RM@textcols{3}}
611 %% \DeclareOption{fourcolumnwidth}{\def\RM@textcols{4}}
612 %% \DeclareOption{fivecolumnwidth}{\def\RM@textcols{5}}
613 %% \DeclareOption{sixcolumnwidth}{\def\RM@textcols{6}}
614 %% \DeclareOption{sevencolumnwidth}{\def\RM@textcols{7}}
615 %% \DeclareOption{eightcolumnwidth}{\def\RM@textcols{8}}
616 %% \DeclareOption{ninecolumnwidth}{\def\RM@textcols{9}}
617 %% \DeclareOption{tencolumnwidth}{\def\RM@textcols{10}}
618 %%
619 %%
620 %% LOADING FOUNTS
621 %% --------------
622 %%
623 %% The fount options work like this: a fount family is set, and if the
624 %% \RM@loadfount flag is set true, the appropriate fount is loaded,
625 %% mainly with one of the standard PSNFSS packages.
626 %% Fount families are set like this:
627 %% 1=avant garde 2=bookman 3=zapf chancery 4=helvetica
628 %% 5=new century schoolbook 6=palatino 7=times 8=utopia
629 %% 9=lucida casual 10=courier 11=concrete 12=this fount width
630 %% 13=lucida casual dirty trick
631 %%
632 %% The dirty trick works like this: if you ask for lucida casual
633 %% (\RM@fountfamily 13), the fount loading code later on does a
634 %% \RequirePackage{lucida-casual}, and then sets \RM@fountfamily
635 %% to 9. The option to do this is in Rowland's curious option
636 %% section.
637 %%
638 %% The command below is used to ask for a particular set of
639 %% typesetting parameters if you've not explicitly requested any with
640 %% the looseness option set. You get loose if you've asked for
641 %% onecolumn, or sloppy if you've asked for twocolumn. Ncolumnwidth
642 %% is treated as onecolumn; the multicol package makes its own
643 %% arrangements. But this shouldn't be done any more because the
644 %% metrics have changed (S. Rahtz, psnfss2e.tex, 5/11/95). I wish
645 %% there was an up-to-date version of fontinst with docs available.
646 %%
647 %% This command's defined here so its meaning is clear; it's cleared
648 %% at the end of rmpage.sty.
649 %%
650 %% So, this is the command that used to do the dirty. And still does:
651 %% the PSNFSS founts \emph{are} still much tighter than cmr, and you
652 %% get more bad line breaks. But looseish seems enough for now; keep
653 %% the twocolumn extra super dooper very slack indeed looseness as is
654 %% for now. (I wish I had a television so I could find out exactly
655 %% what it is that Mutley says when he's annoyed). Maybe the thing
656 %% to do is to change the sloppiness command: see rmpage.sty for more
657 %% comments (yes, you, you fool, me! bloody well read it [don't
658 %% complain: I'm swearing at myself]).
659 %%
660 %% The thing is, the PSNFSS founts are a little tighter than cmr (it
661 %% seems). looseish over-compensates, but it's not all that much
662 %% looser than tight. Grumbledon diwn.
663 \def\RM@setpsloose{
664 \ifnum\RM@looseoption=205
665 \if@twocolumn
666 \def\RM@looseoption{5}
667 \else
668 \def\RM@looseoption{1}
669 \fi
670 \fi
671 }
672 % \def\RM@setpsloose{\relax}
673 % % Don't change the options below; just change the loosening command
674 % % in case I want to use it later.
675 %%
676 %% %% Computer modern roman; redundant options
677 %% \DeclareOption{cmrwidth}{\def\RM@fountfamily{0}}
678 %% \DeclareOption{loadcmr}{\def\RM@fountfamily{0}\RM@loadfounttrue}
679 %% Avant Garde
680 \DeclareOption{avantwidth}{\def\RM@fountfamily{1}}
681 \DeclareOption{loadavant}{\def\RM@fountfamily{1}
682 \RM@loadfounttrue\RM@setpsloose}
683 %% Bookman
684 \DeclareOption{bookmanwidth}{\def\RM@fountfamily{2}}
685 \DeclareOption{loadbookman}{\def\RM@fountfamily{2}
686 \RM@loadfounttrue\RM@setpsloose}
687 %% Zapf Chancery
688 \DeclareOption{chancerywidth}{\def\RM@fountfamily{3}}
689 \DeclareOption{loadchancery}{\def\RM@fountfamily{3}
690 \RM@loadfounttrue\RM@setpsloose}
691 %% Helvetica
692 \DeclareOption{helvetwidth}{\def\RM@fountfamily{4}}
693 \DeclareOption{loadhelvet}{\def\RM@fountfamily{4}
694 \RM@loadfounttrue\RM@setpsloose}
695 %% New Century Schoolbook
696 \DeclareOption{newcentwidth}{\def\RM@fountfamily{5}}
697 \DeclareOption{loadnewcent}{\def\RM@fountfamily{5}
698 \RM@loadfounttrue\RM@setpsloose}
699 %% Palatino
700 \DeclareOption{palatinowidth}{\def\RM@fountfamily{6}}
701 \DeclareOption{loadpalatino}{\def\RM@fountfamily{6}
702 \RM@loadfounttrue\RM@setpsloose}
703 %% Times
704 \DeclareOption{timeswidth}{\def\RM@fountfamily{7}}
705 \DeclareOption{loadtimes}{\def\RM@fountfamily{7}
706 \RM@loadfounttrue\RM@setpsloose}
707 %% Utopia
708 \DeclareOption{utopiawidth}{\def\RM@fountfamily{8}}
709 \DeclareOption{loadutopia}{\def\RM@fountfamily{8}
710 \RM@loadfounttrue\RM@setpsloose}
711 %% Lucida casual
712 \DeclareOption{lucasualwidth}{\def\RM@fountfamily{9}}
713 \DeclareOption{loadlucasual}{\def\RM@fountfamily{9}
714 \RM@loadfounttrue\RM@setpsloose}
715 %% lucida-casual option is now in rmplocal.cfg
716 %% Courier
717 \DeclareOption{courierwidth}{\def\RM@fountfamily{10}}
718 %% \DeclareOption{loadcourier}{\def\RM@fountfamily{10}\RM@loadfounttrue
719 %% \RM@setpsloose}
720 %% Concrete
721 %% Concrete doesn't need loose typesetting
722 \DeclareOption{concretewidth}{\def\RM@fountfamily{11}}
723 \DeclareOption{loadconcrete}{\def\RM@fountfamily{11}\RM@loadfounttrue
724 \ExecuteOptions{beton}}
725 %% Bases \textwidth on current fount
726 \DeclareOption{thisfountwidth}{\def\RM@fountfamily{12}}
727 %%
728 %%
729 %% Stuff for beton support
730 %% -----------------------
731 %%
732 %% I need to pass the standard-baselineskips option to beton
733 %% explicitly so I can detect whether beton's been loaded with this
734 %% option later. I might as well prepare to pass the other two
735 %% options, just in case I need to know about them someday.
736 \DeclareOption{standard-baselineskips}
737 {\PassOptionsToPackage{\CurrentOption}{beton}}
738 %% \DeclareOption{oldstyle-equation-numbers}
739 %% {\PassOptionsToPackage{\CurrentOption}{beton}}
740 %% \DeclareOption{concrete-math}
741 %% {\PassOptionsToPackage{\CurrentOption}{beton}}
742 %%
743 %%
744 %%
745 %% Synonyms for other options
746 %% --------------------------
747 %%
748 %% Now I like this.
749 \DeclareOption{othernicedate}{\RM@nicedatefalse}% usdate
750 \DeclareOption{nicedate}{\RM@nicedatetrue}% ukdate
751 %%
752 %% Other packages use these options to change the amount of
753 %% information displayed; I might as well pay attention.
754 %%
755 %% \DeclareOption{verbose}{\def\RM@chatlevel{1}}% chatty
756 %% \DeclareOption{silent}{\def\RM@chatlevel{3}}% yorkshire
757 %% \DeclareOption{errorshow}{\def\RM@chatlevel{3}}% yorkshire
758 %% \DeclareOption{warningshow}{\def\RM@chatlevel{2}}% taciturn
759 %% \DeclareOption{infoshow}{\def\RM@chatlevel{1}}% chatty
760 %% \DeclareOption{debugshow}{\def\RM@chatlevel{0}}% garrulous
761 %%
762 %% And I object to this, I really do. Why can't people learn to
763 %% spell properly?
764 %%
765 %% \DeclareOption{center}{\RM@centretrue}
766 %% \DeclareOption{notcenter}{\RM@centrefalse}
767 %%
768 %%
769 %% MARGIN OPTIONS
770 %% --------------
771 %%
772 %% What the ringbinding option does is ensure that there's enough space
773 %% in the inside margin to punch holes. It does not make a binding
774 %% correction after the fashion of the Koma-script packages. This option
775 %% assumes that you'll be punching holes in the inside margin, so don't
776 %% expect it to work properly with landscape printing---I couldn't work
777 %% out a way of predicting which margin will get the holes in landscape
778 %% printing, so I decided to make no attempt to support it. If you have
779 %% any thoughts on this, please email me.
780 %%
781 \DeclareOption{ringbinding}
782 {\ifRM@portrait
783 \RM@DefLengthAtLeast{\RM@mininsidemargin}{15mm}
784 \else
785 \RM@Warn{The ringbinding option does nothing in landscape mode}
786 \fi}
787 %%
788 %% PRINTER OPTIONS
789 %% ---------------
790 %%
791 %% Printer types are:
792 %% 0=fullbleed, 1=general, 2=pessimistic, 3=optimistic
793 %% 10=dw300 11=dw500 12=dw600 (HP deskwriter inkjet series)
794 %% 20=lj2 21=lj3 22=lj4 (HP laserjet laser printer series)
795 %% 30=canonbjx bubblejet something (Canon bubblejet inkjet series)
796 %% 40+ whatever else comes up
797 %%
798 %% The idea is that printer types < 10 are not locally configured;
799 %% these numbers are reserved for mythical general types that should
800 %% be the same on all systems. Feel free to add your own mythical
801 %% general types; please keep the printer number > 1000.
802 %%
803 %% The figures for all these printers are guesses, except for the DW500
804 %% and DW600: any data on printing margins for the printers above or
805 %% other commonly-used printers would be gratefully received. I need to
806 %% know about printing limits at the top, bottom, left, and right for
807 %% portrait and landscape modes, and whether the data is what the book
808 %% says or what you measured (preferrably both, but anything'll help).
809 %% If anyone really uses LaTeX with an A3 printer, do tell: it's
810 %% something I've been wondering about.
811 %%
812 %% \RM@ptrpostol generally set to 1mm (paper sizes are to $\pm2$mm),
813 %% except for our dw520 which I keep a careful eye on.
814 %%
815 \DeclareOption{fullbleedprinter}{
816 \def\RM@printertype{0}
817 \def\RM@ptrrportclear{0mm}
818 \def\RM@ptrlportclear{0mm}
819 \def\RM@ptrtportclear{0mm}
820 \def\RM@ptrbportclear{0mm}
821 \def\RM@ptrrlandclear{0mm}
822 \def\RM@ptrllandclear{0mm}
823 \def\RM@ptrtlandclear{0mm}
824 \def\RM@ptrblandclear{0mm}
825 \def\RM@ptrpostol{0mm}% Seems best
826 }
827 %
828 %% Quite arbitrary settings,
829 \DeclareOption{generalprinter}{% arbitrary
830 \def\RM@printertype{1}
831 \def\RM@ptrrportclear{8mm}
832 \def\RM@ptrlportclear{8mm}
833 \def\RM@ptrtportclear{8mm}
834 \def\RM@ptrbportclear{15mm}
835 \def\RM@ptrrlandclear{15mm}
836 \def\RM@ptrllandclear{8mm}
837 \def\RM@ptrtlandclear{8mm}
838 \def\RM@ptrblandclear{8mm}
839 \def\RM@ptrpostol{1mm}% Guess
840 }
841 %% This uses the worst limits I can remember meeting:
842 %% \DeclareOption{pessimisticprinter}{
843 %% \def\RM@printertype{2}
844 %% \def\RM@ptrrportclear{10mm}
845 %% \def\RM@ptrlportclear{10mm}
846 %% \def\RM@ptrtportclear{10mm}
847 %% \def\RM@ptrbportclear{19mm}
848 %% \def\RM@ptrrlandclear{19mm}
849 %% \def\RM@ptrllandclear{10mm}
850 %% \def\RM@ptrtlandclear{10mm}
851 %% \def\RM@ptrblandclear{10mm}
852 %% \def\RM@ptrpostol{1mm}% Guess
853 %% }
854 %% This uses the best limits I'd expect
855 %% \DeclareOption{optimisticprinter}{
856 %% \def\RM@printertype{3}
857 %% \def\RM@ptrrportclear{3mm}
858 %% \def\RM@ptrlportclear{3mm}
859 %% \def\RM@ptrtportclear{3mm}
860 %% \def\RM@ptrbportclear{3mm}
861 %% \def\RM@ptrrlandclear{3mm}
862 %% \def\RM@ptrllandclear{3mm}
863 %% \def\RM@ptrtlandclear{3mm}
864 %% \def\RM@ptrblandclear{3mm}
865 %% \def\RM@ptrpostol{0.5mm}% Guess
866 %% }
867 %%
868 %% \DeclareOption{dw300printer}{% Guess
869 %% \def\RM@printertype{11}
870 %% \def\RM@ptrrportclear{6mm}
871 %% \def\RM@ptrlportclear{6mm}
872 %% \def\RM@ptrtportclear{7mm}
873 %% \def\RM@ptrbportclear{15mm}
874 %% \def\RM@ptrrlandclear{15mm}
875 %% \def\RM@ptrllandclear{7mm}
876 %% \def\RM@ptrtlandclear{6mm}
877 %% \def\RM@ptrblandclear{6mm}
878 %% \def\RM@ptrpostol{1mm}
879 %% }
880 \DeclareOption{dw500printer}{% HP spec
881 \def\RM@printertype{11}
882 \def\RM@ptrrportclear{6mm}
883 \def\RM@ptrlportclear{6mm}
884 \def\RM@ptrtportclear{7mm}
885 \def\RM@ptrbportclear{15mm}
886 \def\RM@ptrrlandclear{15mm}
887 \def\RM@ptrllandclear{7mm}
888 \def\RM@ptrtlandclear{6mm}
889 \def\RM@ptrblandclear{6mm}
890 \def\RM@ptrpostol{1mm}
891 }
892 \DeclareOption{dw600printer}{% Measured from Rebecca's at work+1mm.
893 \def\RM@printertype{12}
894 \def\RM@ptrrportclear{5mm}
895 \def\RM@ptrlportclear{5mm}
896 \def\RM@ptrtportclear{2mm}
897 \def\RM@ptrbportclear{15mm}
898 \def\RM@ptrrlandclear{15mm}
899 \def\RM@ptrllandclear{2mm}
900 \def\RM@ptrtlandclear{5mm}
901 \def\RM@ptrblandclear{5mm}
902 \def\RM@ptrpostol{1mm}% Guess
903 }
904 %% \DeclareOption{lj2printer}{% an arbitrary guess
905 %% \def\RM@printertype{20}
906 %% \def\RM@ptrrportclear{7mm}
907 %% \def\RM@ptrlportclear{7mm}
908 %% \def\RM@ptrtportclear{7mm}
909 %% \def\RM@ptrbportclear{7mm}
910 %% \def\RM@ptrrlandclear{7mm}
911 %% \def\RM@ptrllandclear{7mm}
912 %% \def\RM@ptrtlandclear{7mm}
913 %% \def\RM@ptrblandclear{7mm}
914 %% \def\RM@ptrpostol{1mm}% Guess
915 %% }
916 %% \DeclareOption{lj3printer}{% an arbitrary guess
917 %% \def\RM@printertype{21}
918 %% \def\RM@ptrrportclear{6mm}
919 %% \def\RM@ptrlportclear{6mm}
920 %% \def\RM@ptrtportclear{6mm}
921 %% \def\RM@ptrbportclear{6mm}
922 %% \def\RM@ptrrlandclear{6mm}
923 %% \def\RM@ptrllandclear{6mm}
924 %% \def\RM@ptrtlandclear{6mm}
925 %% \def\RM@ptrblandclear{6mm}
926 %% \def\RM@ptrpostol{1mm}% Guess
927 %% }
928 \DeclareOption{lj4printer}{% measured from MS Works output
929 \def\RM@printertype{22}
930 \def\RM@ptrrportclear{5mm}
931 \def\RM@ptrlportclear{5mm}
932 \def\RM@ptrtportclear{5mm}
933 \def\RM@ptrbportclear{5mm}
934 \def\RM@ptrrlandclear{5mm}
935 \def\RM@ptrllandclear{5mm}
936 \def\RM@ptrtlandclear{5mm}
937 \def\RM@ptrblandclear{5mm}
938 \def\RM@ptrpostol{0.5mm}% Guess
939 }
940 %% \DeclareOption{canonbjxprinter}{% an arbitrary guess
941 %% \def\RM@printertype{22}
942 %% \def\RM@ptrrportclear{7mm}
943 %% \def\RM@ptrlportclear{7mm}
944 %% \def\RM@ptrtportclear{7mm}
945 %% \def\RM@ptrbportclear{12mm}
946 %% \def\RM@ptrrlandclear{12mm}
947 %% \def\RM@ptrllandclear{7mm}
948 %% \def\RM@ptrtlandclear{7mm}
949 %% \def\RM@ptrblandclear{7mm}
950 %% \def\RM@ptrpostol{1mm}% Guess
951 %% }
952 %%
953 %% ROWLAND'S CURIOUS OPTIONS
954 %% -------------------------
955 %%
956 %% These are curious options, defined by me (RJMM) to perform dark and
957 %% eldritch deeds. These aren't intended for hoi polloi, mainly 'cos
958 %% they're a bit iffy in places, but I like them and they might give
959 %% you some ideas.
960 %%
961 %%
962 %% Our DW520 isn't quite to spec.
963 %%
964 % \DeclareOption{R+R-dw520printer}{
965 % \def\RM@printertype{11}
966 % \def\RM@ptrrportclear{7mm}% spec 6mm
967 % \def\RM@ptrlportclear{6mm}
968 % \def\RM@ptrtportclear{7mm}
969 % \def\RM@ptrbportclear{15mm}
970 % \def\RM@ptrrlandclear{15mm}
971 % \def\RM@ptrllandclear{7mm}
972 % \def\RM@ptrtlandclear{7mm}% spec 6mm
973 % \def\RM@ptrblandclear{6mm}
974 % \def\RM@ptrpostol{0.5mm}% Guess
975 % }
976 %%
977 %% A dirty trick to load my .fd version of lucida casual rather than
978 %% the PSNFSS version. If you loadlucidacasual, \RM@fountfamily is set
979 %% to 9 after the lucida-casual package has been \RequirePackaged.
980 %% That's done by code further on in rmpage, specially written for
981 %% this dirty trick.
982 %%
983 %% Lucida casual
984 \DeclareOption{lucidacasualwidth}{\def\RM@fountfamily{9}}
985 \DeclareOption{loadlucidacasual}{\def\RM@fountfamily{13}
986 \RM@loadfounttrue\RM@setpsloose}
987 %%
988 %% These class options ought to be redundant now.
989 %%\DeclareOption{rmcv}{\def\RM@classtype{20}}
990 %%\DeclareOption{rmletter}{\def\RM@classtype{21}}
991 %%\DeclareOption{bithesis}{\def\RM@classtype{22}}
992 %% for ltx guide docs; maybe use in ltxguide.cfg?
993 %%\DeclareOption{ltxguide}{\def\RM@classtype{7}}% redundant
994 %% for typesetting .dtx files only; used by ltxdoc.cfg
995 %%\DeclareOption{ltxdoc}{\def\RM@classtype{6}}% redundant
996 %% for Liverpool J.Moore's EEP exams
997 %%\DeclareOption{ljmueepexam}{\def\RM@classtype{23}}% redundant
998 %%
999 %% \RM@ptsize is set to the requested point size if an rmsizeN package has
1000 %% not already been recognised by another package.
1001 %%
1002 %%
1003 %% These point size options need another package file which really
1004 %% isn't ready to be released yet - so don't expect them to work.
1005 %%
1006 %% If you really, really, really want to use these extra point sizes,
1007 %% I'll send you the extra files if you ask nicely.
1008 %%
1009 \providecommand{\RM@ptsize}{666}
1010 \DeclareOption{14pt}{\ifnum\RM@ptsize=666\def\RM@ptsize{14}\def\@ptsize{2}\fi}
1011 \DeclareOption{24pt}{\ifnum\RM@ptsize=666\def\RM@ptsize{24}\def\@ptsize{2}\fi}
1012 \DeclareOption{36pt}{\ifnum\RM@ptsize=666\def\RM@ptsize{36}\def\@ptsize{2}\fi}
1013 %%
1014 %% Don't do anything to the file above this point except these things:
1015 %% comment out whole options,
1016 %% uncomment out whole options,
1017 %% and change the identifying comments and commands at the start of the file.
1018 %% Disobeying this order will result in a squadron of highly-trained
1019 %% killer gerbils attacking your toenails each night; the cost in
1020 %% pedicurist bills will be crippling.
1021 %%
1022 %%
1023 %% LOCAL CODE BELOW HERE PLEASE
1024 %% ============================
1025 %%
1026 %%
1027 %% Add your options in the section marked out below.
1028 %%
1029 %%
1030 %% BEGIN LOCAL OPTION DECLARATION
1031 %% ==============================
1032 %%
1033
1034 %%
1035 %%
1036 %% END LOCAL OPTION DECLARATION
1037 %% ============================
1038 %%
1039 %%
1040 %% DEFAULT OPTION SETTING
1041 %% ======================
1042 %%
1043 %% Default options for any class---the \ExecuteOptions statement below
1044 %% should contain the default settings you want for all documents.
1045 %% Remember these options can always be over-ridden by class-specific
1046 %% code and options used in a document.
1047 %%
1048 %% Check the statement below about default option settings; things
1049 %% change, y'know.
1050 %%
1051 %% rmpage sets things up so that these options are used by default:
1052 %%
1053 %% noheaders,footers,notcentre,oneside,portrait,onecolumn,normalaltitude,
1054 %% normalcolumnsep,normalheadsep,normalfootskip,normalmparsep,
1055 %% normallength,normalwidth,normaloffset,generalprinter,
1056 %% noadaptivecolumnsep,nastydate,taciturn
1057 %%
1058 %% The (USA) letterpaper option is specified by the standard classes;
1059 %% rmpage defaults to undefinedpaper (a real papertype in my
1060 %% book, which I wouldn't recommend unless you like error messages).
1061 %%
1062 %% Either the stdmargins or notstdmargins option should be executed, to
1063 %% avoid (admittedly unlikely) mis-understandings over the placement of
1064 %% marginal notes. I think I've changed rmpage so there shouldn't be
1065 %% a problem with this; notstdmargins is the default setting.
1066 %%
1067 %% If no config file is found by rmpagenew, the notstdmargins option
1068 %% is executed using \ExecuteOptions.
1069 %%
1070 %%
1071 %% CHANGE THE COMMAND BELOW TO MATCH YOUR LOCAL PREFERENCES
1072 %% --------------------------------------------------------
1073 %%
1074 % \ExecuteOptions{R+R-dw520printer,a4paper,notstdmargins,nicedate,noheaders}
1075 \ExecuteOptions{generalprinter,letterpaper,stdmargins,usdate,noheaders}
1076 %%
1077 %% --------------------------------------------------------
1078 %%
1079 %%
1080 %% DEFAULT OPTIONS FOR PARTICULAR CLASSES.
1081 %% ======================================
1082 %%
1083 %% Don't set default options in local classes using
1084 %% \PassOptionsToPackage{rmpage}{...} in your class file unless you have
1085 %% a good reason to; read the note below.
1086 %%
1087 %% If you need to have rmpage \ExecuteOptions for particular classes,
1088 %% use the \RM@OnClassExecuteOptions statement in the block below.
1089 %%
1090 %% \RM@ClassExecuteOption{<class name>}{<option list>} performs
1091 %% \ExecuteOptions{<option list>} if the class called <class name> has
1092 %% been loaded.
1093 %%
1094 %% Note that if you are building one class upon another (say, nuthesis
1095 %% based on report), both classes might have been by this stage, so it is
1096 %% best to have the \RM@OnClassExecuteOptions statement for the base class
1097 %% *before* the \RM@OnClassExecuteOptions statement for the loading class.
1098 %% E.g., for nuthesis based on report, have:
1099 %% \RM@OnClassExecuteOptions{report}{...} *before*
1100 %% \RM@OnClassExecuteOptions{nuthesis}{...}
1101 %%
1102 %% Example default options for book class
1103 %%
1104 % \RM@OnClassExecuteOptions{book}
1105 % {ukdate,R+R-dw520printer,a4paper,headers,footers}
1106 %%
1107 %% Example default options for slides class
1108 %%
1109 % \RM@OnClassExecuteOptions{slides}
1110 % {centre,ukdate,R+R-dw520printer,a4paper}
1111 %%
1112 %%
1113 %% Example default options for foils class
1114 %%
1115 % \RM@OnClassExecuteOptions{foils}
1116 % {centre,ukdate,R+R-dw520printer,a4paper}
1117 %%
1118 %% Default options for ljmeepex class; ljmueepexam as was and damn
1119 %% Bill Gates. All these options are executed here so they can all
1120 %% be over-ridden by options passed by the document. Had they been
1121 %% passed from the class file by \PassOptionsToPackage, options from
1122 %% the document that are declared in rmpage after these options would
1123 %% over-ride these, and those declared before would not. Do it this
1124 %% way for consistency.
1125 %%
1126 % \RM@OnClassExecuteOptions{ljmeepex}
1127 % {centre,yorkshire,a4paper,noheaders,footers,wide,t@uchnarrower,longish}
1128 %%
1129 %%
1130 %% END DEFAULT OPTION SETTING FOR PARTICULAR CLASSES
1131 %% =================================================
1132 %%
1133 %%
1134 %% HOOKS
1135 %% =====
1136 %%
1137 %% The commands defined below: \RM@BeforeProcessOptions,
1138 %% \RM@DefineNewClasses, \RM@AfterProcessOptions,
1139 %% \RM@PrinterPaperSettings, \RM@BeforeTextheightSetting, and
1140 %% \RM@AfterWidthSetting are hooks: they are commands which
1141 %% you can define yourself, which are executed later somewhere in rmpage.
1142 %% You hang code from them, which is used later; hence hook. LaTeX2e has
1143 %% hooks like \AtBeginDocument{}, which saves its argument every time
1144 %% it's executed, so all the code ever passed to it is executed at the
1145 %% begin document command. The hooks below are just ordinary LaTeX
1146 %% commands which you define in the usual way. If you re-define them,
1147 %% the original contents are lost forever. So add stuff to the
1148 %% definitions here, don't re-define them later unless you have a good
1149 %% reason to do so. By the way, these hooks don't have to be defined:
1150 %% rmpage can work without them quite happily.
1151 %%
1152 %%
1153 %% Use this one for playing about if you have to.
1154 \newcommand{\RM@BeforeProcessOptions}{}% end\RM@BeforeProcessOptions
1155 %%
1156 %%
1157 %% Use this one for setting up things for particular classes; classes
1158 %% that are based on other classes should appear in this list
1159 %% \emph{after} the classes they are based on. That is, the class
1160 %% bithesis (which is based on report), comes after report. This is
1161 %% easily arranged, because all the standard classes have their class
1162 %% type number defined before the \RM@DefineNewClasses hook is executed.
1163 %% You can define your own class types; the current list of class type
1164 %% numbers is:
1165 %%
1166 %% 0=unknown, 1=article, 2=report, 3=letter, 4=book, 5=slides,
1167 %% 10=ltxdoc, 11=ltxguide,
1168 %% 20=rmcv, 21=rmletter, 22=bithesis, 23=ljmueepexam
1169 %% 50=foils
1170 %%
1171 %% 0 - 19 standard LaTeX classes
1172 %% 20 - 49 my classes
1173 %% 50 - 99 other classes supported by standard rmpage
1174 %% 100 - maxnum local classes
1175 %%
1176 %% If you're going to define a new class type, use class type numbers
1177 %% above 100. That way you won't find a new version of rmpage usurping
1178 %% class type numbers you'd defined for your own use. And make sure
1179 %% that classes that build on other classes have higher a \RM@classtype
1180 %% than the classes they build upon. I'll probably do something more
1181 %% sophisticated one day, but this'll do for now.
1182 %%
1183 %% The \RM@LocalClassReport hook is executed by the \RM@typeclasstype
1184 %% command, which is executed by the \RM@OnClassType command if you've
1185 %% asked for garrulous reporting. It's a debugging aid to help spot
1186 %% anomalous class type number setting. Why am I doing this?
1187 %% If you do add a new class, re-define the \RM@LocalClassReport command
1188 %% here to report it. For example, if you've added the eddie class,
1189 %% given the number 666, and the orwell class, given the number 101, say:
1190 %%
1191 %% \renewcommand{\RM@LocalClassReport}{
1192 %% \RM@OnClassType{101}{\typeout{orwell class detected}}{}
1193 %% \RM@OnClassType{666}{\typeout{eddie class detected}}{}
1194 %% }
1195 %%
1196 \renewcommand{\RM@LocalClassReport}{\typeout{Undefined class detected}}
1197 %%
1198 %%
1199 %% Note that the \RM@DefineNewClasses hook is only executed if
1200 %% \RM@ClassType is less than 20.
1201 %%
1202 %% It's okay to test for a class here that will have had its class type
1203 %% number set by an option. Not fast, but okay. Note that the
1204 %% \RM@SetClassType command will only set \RM@ClassType to a value larger
1205 %% than the current one; this is so that subsequent detection (for
1206 %% example) of the report class on which you have built the nuthesis
1207 %% class cannot set \RM@classtype to 2.
1208 %%
1209 %%
1210 %% The new classes below are some that I've defined; I've left them
1211 %% in so you don't pinch the numbers and to give a real-life example.
1212 %% Most of these classes are a bit rough and not generally useful,
1213 %% so I'm keeping them to myself; although if you want a
1214 %% Bolton Institute thesis class file, I'll send you mine if you ask me
1215 %% for it.
1216 %%
1217 \newcommand{\RM@DefineNewClasses}{
1218 \RM@SetClassType{rmcv} {20}
1219 \RM@SetClassType{rmletter} {21}
1220 \RM@SetClassType{bithesis} {22}
1221 \RM@SetClassType{ljmueepexam}{23}
1222 \RM@SetClassType{ljmeepex} {23}
1223 }%% end\RM@DefineNewClasses
1224 %%
1225 %%
1226 %% AfterProcessOptions is useful for setting up things for particular
1227 %% classes using the \RM@OnClassType command
1228 %%
1229 %%
1230 %% I've left in the code I wrote for my class files as examples; the
1231 %% code for ltxdoc is required if you insist on using rmpage with it.
1232 %%
1233 \newcommand{\RM@AfterProcessOptions}{
1234 % % \renewcommand{\RM@mintextheight}{730pt}% For testing only
1235 % % \renewcommand{\RM@maxtextheight}{9000pt}
1236 %
1237 % class type 10=ltxdoc
1238 %
1239 \RM@OnClassType{10}{
1240 \RM@oclwarninfo{3}
1241 {ltxdoc and rmpage don't go well together}
1242 % \RM@ocl{2}{\typeout{Set \protect\normalmarginpar}}{}
1243 % % Try to make mpars appear in alternating margins
1244 % \ifRM@twoside\@mparswitchtrue\fi
1245 % % Try to make mpars appear in default margin
1246 % \normalmarginpar
1247 % Ensure \textwidth is at least the required width
1248 \def\RM@mintextwidth{355pt}
1249 }{}
1250 %
1251 % class type 20=rmcv
1252 %
1253 \RM@OnClassType{20}{
1254 \RM@oclwarninfo{3}
1255 {I don't do much for rmcv yet,
1256 and if you specified\MessageBreak
1257 some options that don't get used, I won't complain}
1258 }{}
1259 %
1260 % class type 22=bithesis
1261 %
1262 \RM@OnClassType{22}{
1263 % Set minimum margins as specified in the regulations.
1264 % Everything else is done by the class file. These commands are
1265 % defined to be 0pt at the start of rmpage, so they can't be set in
1266 % the class file.
1267 \RM@DefLengthAtLeast{\RM@minoutsidemargin}{15mm}
1268 \RM@DefLengthAtLeast{\RM@mininsidemargin} {40mm}
1269 \RM@DefLengthAtLeast{\RM@mintopmargin} {15mm}
1270 \RM@DefLengthAtLeast{\RM@minbottommargin} {15mm}
1271 }{}
1272 %
1273 % Add more here
1274 %
1275 }% end\RM@AfterProcessOptions
1276 %%
1277 %%
1278 %% The \[email protected] commands take two compulsory arguments, and
1279 %% one optional arguments. The optional argument is the long paper
1280 %% size code. The default value is 0, meaning `not long'.
1281 %% -1 = any long size
1282 %% 0 = not long only (or 1-long)
1283 %% 1 = 7/8 2 = 3/4 3 = 2/3 4 = 5/8 5 = 1/2
1284 %% 6 = 3/8 7 = 1/3 8 = 1/4 9 = 1/8
1285 %%
1286 %% The first compulsory argument is the paper size code; you can look
1287 %% them up elsewhere.
1288 %%
1289 %% If the paper size specified in the arguments to a \[email protected]
1290 %% command is the selected paper size, the third argument is executed.
1291 %%
1292 %%
1293 %% Add setting for local printer/paper combinations here; new printers
1294 %% should be declared using \DeclareOption above. Have a look in
1295 %% rmpage.dtx, at the code above the point where this hook is
1296 %% executed, to get a better idea of what's going on.
1297 \newcommand*{\RM@PrinterPaperSettings}{
1298 %%
1299 %% Note that you can print out long A3 sizes (1/2 and under) on A4
1300 %% paper, with the same minimum clearances applying to the long A3 size
1301 %% as apply to A4. So in the common case of an A4 printer, all you
1302 %% need to do is make the A3 printing limits the same as A4 printing
1303 %% limits, and Bob's yer auntie's live-in lover. What the two
1304 %% commands below do is assume that all printers are A4 printers, and
1305 %% sets the clearances accordingly. If you use a non-A4 printer, you
1306 %% might need to add code to over-ride this assumption for that
1307 %% printer, after these two commands.
1308 %%
1309 \RM@OnPortraitPaperSize[-1]{13}% size 13 = A3
1310 {
1311 \let\RM@minrightclearance\RM@ptrrportclear
1312 \let\RM@minleftclearance \RM@ptrlportclear
1313 \let\RM@minfootclearance \RM@ptrbportclear
1314 \let\RM@minheadclearance \RM@ptrtportclear
1315 }
1316 \RM@OnLandscapePaperSize[-1]{13}% size 13 = A3
1317 {
1318 \let\RM@minrightclearance\RM@ptrrlandclear
1319 \let\RM@minleftclearance \RM@ptrllandclear
1320 \let\RM@minfootclearance \RM@ptrblandclear
1321 \let\RM@minheadclearance \RM@ptrtlandclear
1322 }
1323 %%
1324 %% The code below sets up rmpage to do things the way I like if
1325 %% you've selected an HP 500 series inkjet (like my DW520).
1326 %% I print out A5 pages by using dvidvi to put two of them on an A4
1327 %% page, so A5 portrait clearances need to be A4 landscape clearances
1328 %% and vice-versa. Envelopes suffer a very large non-printing margin
1329 %% at the bottom, so this is dealt with. Note that I have to set
1330 %% both the ptrclear commands *and* the minclearance commands in this
1331 %% case, because the ptrclear commands are assumed to be set by now,
1332 %% and I have to change them.
1333 %%
1334 %% Note that I have asked rmpage to jack up any of these paper sizes that
1335 %% need it when I have specified an HP 500 series inkjet; this means that
1336 %% you can have an unexpectedly large gap at the bottom of a page without
1337 %% being warned about it, if the page layout you asked for would
1338 %% otherwise have tried to print in the asymmetrically large non-printing
1339 %% margin at the bottom of the paper. I don't mind this; if you do,
1340 %% remove the \RM@jackuptrue statements.
1341 %%
1342 \RM@OnPrinterType{11}% HP DeskWriter 500 series
1343 {
1344 \RM@OnPortraitPaperSize{14}% size 14 = A4
1345 {\RM@jackuptrue}
1346 \RM@OnPortraitPaperSize{15}% size 15 = A5
1347 {\let\RM@minrightclearance\RM@ptrrlandclear
1348 \let\RM@minleftclearance\RM@ptrrlandclear
1349 \let\RM@minfootclearance\RM@ptrblandclear
1350 \let\RM@minheadclearance\RM@ptrtlandclear}
1351 \RM@OnLandscapePaperSize{15}% size 15 = A5
1352 {\let\RM@minrightclearance\RM@ptrrportclear
1353 \let\RM@minleftclearance\RM@ptrlportclear
1354 \let\RM@minfootclearance\RM@ptrbportclear
1355 \let\RM@minheadclearance\RM@ptrtportclear}
1356 \RM@OnPortraitPaperSize[-1]{13}% size 13 = A3
1357 {\RM@jackuptrue}
1358 \RM@OnLandscapePaperSize[-1]{13}% size 13 = A3
1359 {\RM@jackupfalse}
1360 \RM@OnPaperSize{58}% size 58 = DL envelopes
1361 {\def\RM@ptrrlandclear{19mm}
1362 \def\RM@ptrrlandclear{7mm}
1363 \def\RM@ptrblandclear{4mm}% spec 3mm
1364 \def\RM@ptrtlandclear{4mm}% spec 3mm
1365 \def\RM@ptrrportclear{4mm}% spec 3mm
1366 \def\RM@ptrlportclear{4mm}% spec 3mm
1367 \def\RM@ptrbportclear{19mm}
1368 \def\RM@ptrtportclear{7mm}}
1369 \RM@OnPortraitPaperSize{58}% size 58 = DL envelopes
1370 {\let\RM@minrightclearance\RM@ptrrportclear
1371 \let\RM@minleftclearance\RM@ptrlportclear
1372 \let\RM@minfootclearance\RM@ptrbportclear
1373 \let\RM@minheadclearance\RM@ptrtportclear}
1374 \RM@OnLandscapePaperSize{58}% size 58 = DL envelopes
1375 {\let\RM@minrightclearance\RM@ptrrlandclear
1376 \let\RM@minleftclearance\RM@ptrllandclear
1377 \let\RM@minfootclearance\RM@ptrblandclear
1378 \let\RM@minheadclearance\RM@ptrtlandclear}
1379 }% end HP DeskWriter 500 series
1380 }% end\RM@PrinterPaperSettings
1381 %%
1382 %%
1383 %% Add code to select textheight setting method, and define new
1384 %% textheight setting code here
1385 \newcommand*{\RM@BeforeTextheightSetting}{}% end\RM@BeforeTextheightSetting
1386 %%
1387 %% You might add code to define \RM@widthsetter to load your own
1388 %% horizontal parameter setting code for a particular class here
1389 %% e.g., \RM@OnClassType{69}{\def\RM@widthsetter{rsw-ll.pko}}{}
1390 \newcommand*{\RM@BeforeWidthSetting}{}% end\RM@BeforeWidthSetting
1391 %%
1392 %% If you are using a class that defines \RM@textwidthgroup to 4, put
1393 %% code in this hook that defines: \RM@ptperchar to the width of one
1394 %% average character of your main body fount; \@tempdima to the
1395 %% paper-based initial \textwidth guess; \@tempdimb to the
1396 %% character-based initial \textwidth guess; and code to modify
1397 %% \columnsep if you want to.
1398 %% This hook is executed after the parameters above have been set.
1399 \newcommand*{\RM@AfterInitialTextwidthSetting}{}% end\RM@AfterInitialTextwidthSetting
1400 %%
1401 %% Do what preventest thou from wilting\ldots For symmetry's sake is
1402 %% this here.
1403 %%
1404 \newcommand*{\RM@AfterWidthSetting}{}% end\RM@AfterWidthSetting
1405 %%
1406 %%
1407 \endinput