Debian Codegraph @

texmf-dist/doc/texlive/texlive-en/archive/bvoutln.sty

raw
1 % extracts of baskerville.cls for use with the tex-live documentation
2 % when we're producing a bv issue with it.
3
4 % ****************************************
5 % * PAGE LAYOUT *
6 % ****************************************
7 %
8 % SIDE MARGINS:
9 \oddsidemargin -2.5pc \evensidemargin -2.5pc
10 \marginparwidth 4pc % don't use marginal notes...
11 \marginparsep 0.5pc % ...in the UK TUG newsletter
12
13 % VERTICAL SPACING:
14 \topmargin -3pc
15 \headheight 12\p@
16 \headsep 15\p@
17 \topskip 10\p@
18 \footskip 15\p@
19
20 % DIMENSION OF TEXT:
21
22 \textheight 250mm % height of text on a page (A4 paper)
23 \textwidth 180mm % total width of a page
24 \columnseprule 0.5\p@ % width of line in the inter-column gutter
25 \columnsep 10mm % space between columns
26 \tolerance 9999 % make those columns justify
27
28 % FOOTNOTES:
29 \footnotesep 6\p@
30 \skip\footins 19.5\p@ plus 12\p@ \@minus 1\p@
31
32 % FLOATS:
33 \floatsep 12\p@ plus 5.5\p@ \@minus 1\p@
34 \textfloatsep 15\p@ plus 4.5\p@ \@minus 3\p@
35 \intextsep 12\p@ plus 5.5\p@ \@minus 2\p@
36 \dblfloatsep 12\p@ plus 5.5\p@ \@minus 2\p@
37 \dbltextfloatsep 15\p@ plus 4.5\p@ \@minus 3\p@
38 \@fptop 0\p@ plus 0fil
39 \@fpsep 12\p@ plus 0fil
40 \@fpbot 0\p@ plus 3fil
41 \@dblfptop 0\p@ plus 0fil
42 \@dblfpsep 12\p@ plus 0fil
43 \@dblfpbot 0\p@ plus 3fil
44 \marginparpush 5\p@
45
46 % ****************************************
47 % * TITLES AND ABSTRACT *
48 % ****************************************
49 %
50
51 %% Volume Number (ie Year - 1990)
52 \def\BASKvol#1{\gdef\BASK@vol{#1}}
53 \BASKvol{?}
54
55 %% Issue Number (ie Month/2, roughly)
56 \def\BASKno#1{\gdef\BASK@no{#1}}
57 \BASKno{?}
58
59 % Editor, Star form for Guest editor
60 \def\BASKed{\@ifstar{\BASK@ed{Guest }}{\BASK@ed{}}}
61 \def\BASK@ed#1#2{\gdef\BASK@editor{#1Editor: #2}}
62 \BASKed{????????}
63
64 %% Year (4 digits)
65 \def\BASKyear#1{\gdef\thisyear{#1}}
66 \BASKyear{????}
67
68 % Month (as a Word)
69 \def\BASKmonth#1{\gdef\thismonth{#1}}
70 \BASKmonth{?????}
71
72 \def\makeBSKtitle{\par
73 \begingroup
74 \vspace*{-\headheight}%
75 \@maketitle
76 \bigskip\hrule\bigskip
77 \thispagestyle{plain}
78 \endgroup
79 \let\maketitle\relax
80 \let\@maketitle\relax
81 }
82 \newbox\BSKbox
83 \def\@maketitle{%
84 \centerline{\BASK@titleline}%
85 \medskip
86 \hbox to \textwidth{\bfseries The Annals of the UK \TeX\ Users
87 Group\hfill \BASK@editor\hfill Vol.~\BASK@vol\ No.~\BASK@no}%
88 \smallskip\hbox to \textwidth{\bfseries ISSN 1354--5930
89 \hfill \thismonth\ \thisyear}%
90 \medskip
91 \noindent\ignorespaces
92 \BASK@headparone}
93
94 % The Journal title command.
95 % You probably only want to change this if you want to use a design-size
96 % font rather than let \scaletowidth scale for some special issue.
97 \def\BASKtitle#1{\gdef\BASK@titleline{#1}}
98 \let\scaletowidth=\resizebox% added by Sean K. Harbour for Textures
99 \BASKtitle{%
100 \fontfamily{mbvx}\bfseries
101 \scaletowidth{\textwidth}{!}{% modified by Sean K. Harbour
102 B\,a\,s\,k\,e\,r\,v\,i\,l\,l\,e}}
103
104
105 % The first paragraph. Needs to be reset if a special issue used a
106 % different font set.
107 \def\BASKheadparone#1{\gdef\BASK@headparone{#1}}
108 \BASKheadparone{%
109 This issue of \BV\ is set in \@BASKfonts, and printed on a Xerox Docutech. Production and distribution is
110 undertaken in Cambridge by Robin Fairbairns. }
111
112
113 \def\BASKfonts#1{\gdef\@BASKfonts{#1}}
114 \BASKfonts{Monotype Baskerville, with Computer Modern Typewriter for
115 literal text}
116
117 %
118 % for \Dings
119 \RequirePackage{pifont}
120 %
121 % available for inter-article dinglines
122 %
123 \def\Dings{\nopagebreak{\footnotesize\dingline{167}}}
124
125 %
126 % hack representation of appendices
127 \let\BV@@appendix\appendix
128 \renewcommand{\appendix}{\BV@@appendix
129 \renewcommand\@seccntformat[1]{\@ifundefined{@seccnt@##1}%
130 {\csname the##1\endcsname\quad}%
131 {\csname @seccnt@##1\endcsname}}
132 \newcommand\@seccnt@section{Appendix~\thesection~}
133 }
134
135 %
136 % page styles
137 %
138 % \ps@empty defined in LATEX.TEX
139 %
140 \def\ps@plain{\let\@mkboth\markboth
141 \def\@oddhead{}
142 \def\@evenhead{}
143 \def\@oddfoot{\rm \hfil --\thepage--\hfil}
144 \def\@evenfoot{\rm \hfil --\thepage--\hfil}
145 }
146 \def\ps@headings{\let\@mkboth\markboth
147 \def\@oddhead{\hfill\emph{\@title}\hfill}
148 \def\@oddfoot{\rm \hfil --\thepage--\hfil}
149 \def\@evenhead{\it Baskerville \hfill
150 Volume \BASK@vol, Number \BASK@no}
151 \def\@evenfoot{\rm \hfil --\thepage--\hfil}
152 }
153
154 %
155 % allow setting of pagehead title
156 \def\title{\@ifnextchar [{\@titletwo}{\@titleone}}
157 \def\@titletwo[#1]#2{\gdef\@title{#1}\gdef\@longtitle{#2}}
158 \def\@titleone#1{\gdef\@title{#1}\gdef\@longtitle{#1}}
159
160 %
161 % more exciting page parameters
162 \@twosidetrue
163 \pagestyle{headings}
164
165 \providecommand{\ukt}{UK \acro{TUG}}
166
167 \newcommand{\standardtitles}{%
168 \def\section{%\typeout{** section!}%
169 \@startsection {section}{1}{\z@}
170 {-12\p@ \@plus -6\p@ \@minus -.1\p@}
171 {6\p@}
172 {\raggedright\large\bfseries}}
173 \def\subsection{\@startsection{subsection}{2}{\z@}
174 {-4\p@ \@plus -2\p@ \@minus -.1\p@}
175 {0.1\p@ \@plus 2\p@}
176 {\raggedright\normalsize\itshape}}
177 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}
178 {-6\p@ \@plus -3\p@ \@minus -1\p@}
179 {0.1\p@ \@plus 2\p@}
180 {\raggedright\normalsize\it}}
181 \def\paragraph{\@startsection{paragraph}{4}{\z@}
182 {12\p@ \@plus 2.25\p@ \@minus -1\p@}
183 {-0.5em}
184 {\normalsize\bfseries}}
185 \def\subparagraph{\@startsection{subparagraph}{5}{\z@}
186 {12\p@ \@plus 2.25\p@ \@minus 1\p@}
187 {-0.5em}
188 {\normalsize\it}}
189 \setcounter{secnumdepth}{-1}
190 }
191
192 \endinput
193