blob: b70b5b3e6ba85747dc13b0233c138ce818e0d304 (
plain)
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
|
%% LaTeX2e file `nrcdoc.sty'
%% generated by the `filecontents' environment
%% from source `userguide' on 2003/01/04.
%%
\ProvidesPackage{nrcdoc}[2002/03/14 v2.3 collection of commands for
NRC documentation]
%
\newcommand\checkNRCDOCdate[1]{\@ifl@ter{sty}{nrcdoc}{#1}%
{}%
{\ClassWarningNoLine{nrcdoc}{An old version of nrcdoc.sty has been detected%
\MessageBreak %
Please *delete* nrcdoc.sty, to allow LaTeX to
\MessageBreak generate a new version}}%
}
% converted to a 2e package, rf 1998/04/05
% also added \Status and provision for dealing with pdf output
%
% usage:
% <processor> "\def\Status{<value>} \input <file>"
%
% for example:
% pdflatex "\def\Status{1} \input user_guide"
%
% (that's un*x syntax, but the intent is (i hope) plain
\providecommand{\Status}{0}
\ifcase\Status
% default case (0): using ordinary latex
\PackageInfo{nrcdoc}{Regular LaTeX run}
\def\href#1#2{#2}
\or
% case 1: using pdflatex to generate a copy of the file
\PackageInfo{nrcdoc}{Generating hypertext pdf output}
\RequirePackage[pdftex]{hyperref}
\fi
\RequirePackage{url}
\newcommand{\email}{\begingroup \urlstyle{tt}\Url}
%
\def\EmailURL#1{\href{mailto:#1}{\email{#1}}}
\def\ctanaddr#1{\href{ftp://ctan.tug.org/tex-archive/#1}{\path{#1}}}
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{{\sl\rightmark}\hfil \rm\thepage}%
\def\@oddfoot{Nov. 2002\hfill}%
\def\@evenhead{\rm \thepage\hfil\sl\leftmark}%
\def\@evenfoot{Oct. 2002\hfill}%
\def\sectionmark##1{}\def\subsectionmark##1{}}
\pagestyle{myheadings}
\markboth{{\rm NRC:} \LaTeX{} User Guide for Journals}
{{\rm NRC:} \LaTeX{} User Guide for Journals}
%% Dimensions:
%% CT> to get holes at left without touching text, changed
%% a. margins from -3.5pc to -2pc
%% b. textheight from 23cm to 24cm
%% CT> 28 SEP 00: makes no sense to use these margins for the version
%% to be posted on CTAN. Dimens now revert to original
%% value of -3.5pc for left/rightmargins. The
%% textheight, however, will remain at 24cm.
%%
\setlength{\textwidth}{19cm}
\setlength{\textheight}{24cm}
\setlength{\oddsidemargin}{-3.5pc}
\setlength{\evensidemargin}{-3.5pc}
\setlength{\headsep}{12pt}
\setlength{\topmargin}{-3.5pc}
\setlength{\columnsep}{1.5pc}
%% Something Robin doesn't like but it's handy for tables:
%% Spacing commands for {tabular} (from TTN 2,3:10 -- Claudio
%% Beccari):
\newcommand\T{\rule{0pt}{2.6ex}} % = `top' strut
\newcommand\B{\rule[-1.2ex]{0pt}{0pt}} % = `bottom' strut
%% Fonts:
\font\bfsl=cmssi17
\font\sectiontt=cmtt12 scaled\magstep1
\font\stt=cmtt10 scaled 850
%% Macros:
\newcommand{\NRC}{{\small NRC}}
\newcommand{\blash}{{\stt\char'134}}
\newcommand{\creditline}{{\footnotesize
Carleton Production Centre (9/00)}}
%% def'n for \LaTeXe taken from TUGboat's tugboat.cmn file:
\newcount\TestCount \newbox\TestBox
\def\La{\TestCount=\the\fam \leavevmode L%
\setbox\TestBox=\hbox{$\fam\TestCount\scriptstyle A$}%
\kern-.5\wd\TestBox\raise.42ex\box\TestBox}
\def\LaTeX{\La\kern-.15em\TeX}
\def\LaTeXe{\LaTeX{}\kern.05em2$_{\textstyle\varepsilon}$}
%% \let-statements:
\let\en=\enspace
\let\nl=\newline
|