diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:53 +0000 |
commit | c2fb94df4016f1de338c9f57899b5b0c755ff87b (patch) | |
tree | cd42089b0f10af3ddafc0a90f7ef41c5d5622a89 /Master/texmf-dist/tex/latex/nrc/nrcdoc.sty | |
parent | 90bfe7ab0718d7fe0df62567df246fbfd5d7fda8 (diff) |
nrc
git-svn-id: svn://tug.org/texlive/trunk@1144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nrc/nrcdoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nrc/nrcdoc.sty | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nrc/nrcdoc.sty b/Master/texmf-dist/tex/latex/nrc/nrcdoc.sty new file mode 100644 index 00000000000..b70b5b3e6ba --- /dev/null +++ b/Master/texmf-dist/tex/latex/nrc/nrcdoc.sty @@ -0,0 +1,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 + |