| 1 |
\documentclass[pagesize=auto, numbers=enddot]{scrartcl} |
| 2 |
|
| 3 |
\usepackage{fixltx2e} |
| 4 |
\usepackage{etex} |
| 5 |
\usepackage{xspace} |
| 6 |
\usepackage{lmodern} |
| 7 |
\usepackage[T1]{fontenc} |
| 8 |
\usepackage{textcomp} |
| 9 |
\usepackage{array} |
| 10 |
\usepackage{microtype} |
| 11 |
\usepackage{hyperref} |
| 12 |
|
| 13 |
\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} |
| 14 |
\newcommand*{\pkg}[1]{\textsf{#1}} |
| 15 |
\newcommand*{\cls}[1]{\textsf{#1}} |
| 16 |
\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} |
| 17 |
\makeatletter |
| 18 |
\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} |
| 19 |
\makeatother |
| 20 |
\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle} |
| 21 |
\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} |
| 22 |
\newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}} |
| 23 |
|
| 24 |
\addtokomafont{title}{\rmfamily} |
| 25 |
\deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark}} |
| 26 |
|
| 27 |
\title{The \pkg{section} package\thanks{This manual corresponds to \pkg{section.sty}~v1.4, dated~10 Mar 99.}} |
| 28 |
\author{Oliver Pretzel\thanks{\mail{[email protected]}}} |
| 29 |
\date{10 Mar 99} |
| 30 |
|
| 31 |
|
| 32 |
\begin{document} |
| 33 |
|
| 34 |
\maketitle |
| 35 |
|
| 36 |
\begin{abstract} |
| 37 |
\noindent |
| 38 |
Leslie Lamport in writing \LaTeX\ assumed that authors would write |
| 39 |
complete \texttt{.sty} (\texttt{.clo}) files to implement the design decisions for their |
| 40 |
publications. However, the overwhelming majority of \LaTeX\ publications use the |
| 41 |
standard styles supplied by Lamport. These implement a particular set of |
| 42 |
typographic conventions, which while consistent are not of universal validity, |
| 43 |
for instance many publishers and authors would like a full stop: |
| 44 |
`4. Introduction' |
| 45 |
rather than |
| 46 |
`4 Introduction'. |
| 47 |
|
| 48 |
This file modifies the standard classes so that other conventions can be |
| 49 |
more easily implemented. Careful use of the file will allow a greater |
| 50 |
variation in the appearance of \LaTeX\ documents. |
| 51 |
\end{abstract} |
| 52 |
|
| 53 |
|
| 54 |
\setcounter{section}{-1} |
| 55 |
\section{Changes to section implementation.} |
| 56 |
|
| 57 |
The file redefines the way \LaTeX\ deals with negative indents for section |
| 58 |
headings, placing the number in the margin and the heading itself flush |
| 59 |
with the margin. With negative indents it sets starred section headings |
| 60 |
flush (as it does when \cmd{\thesection} is empty. |
| 61 |
Standard \LaTeX\ indenting can be produced by typing |
| 62 |
% |
| 63 |
\begin{verbatim} |
| 64 |
>> \let\ifind\iffalse |
| 65 |
\end{verbatim} |
| 66 |
% |
| 67 |
This file's version can be reestablished by typing |
| 68 |
% |
| 69 |
\begin{verbatim} |
| 70 |
>> \let\ifind\ifdim |
| 71 |
\end{verbatim} |
| 72 |
|
| 73 |
The file also changes the way \LaTeX\ reacts to empty numbers when sections have |
| 74 |
non-negative indents, placing the heading where the number would go, rather |
| 75 |
than further indented (as in standard \LaTeX). |
| 76 |
This effect can be removed by redefining an internal macro \cmd{\@makesvsec} (see |
| 77 |
below). |
| 78 |
|
| 79 |
The indents, pre- and postskips for section headings are placed in registers |
| 80 |
so that they are constant throughout a document and (just as the heading sizes) |
| 81 |
do not react to surrounding size changes. You can change this back to ordinary |
| 82 |
\LaTeX\ behaviour by \cmd{\def}ing them as macros rather than setting the register |
| 83 |
values (in that case you should probably use \verb|\smaller\larger| from |
| 84 |
\pkg{SMALLER.STY} for the \cmd{\...size} commands). |
| 85 |
|
| 86 |
\emph{WARNING}\quad\LaTeX\ typesets headings that run on by manipulating \cmd{\everypar}. If you |
| 87 |
make local changes to the heading style of such a section inside braces or a |
| 88 |
group you must ensure that a non-empty paragraph occurs before the closing |
| 89 |
brace. Otherwise some strange effects may occur, because the \cmd{\everypar} tokens |
| 90 |
will be evaluated outside the group (this is a feature of \LaTeX, not of |
| 91 |
\pkg{SECTION.STY}). If your group ends with an empty section of this type just |
| 92 |
follow it with \cmd{\leavevmode} or an explicit space: \verb*|\ |. |
| 93 |
|
| 94 |
A detailed description of the format of \LaTeX\ sectioning commands is given |
| 95 |
below (in paragraph~\ref{sec:9}). This is partially taken from the file \texttt{LATEX.TEX}. |
| 96 |
We first list the macros for local control which you can use without knowing |
| 97 |
this structure. |
| 98 |
|
| 99 |
The file sets vertical distances that \LaTeX\ expressed in terms of `em's and |
| 100 |
`ex's in equivalent `\cmd{\baselineskip}'s, as `em' is a measure of the horizontal |
| 101 |
size of a font and `ex' is not a true measure of the full height of a line. |
| 102 |
Earlier vesions used `ex's. |
| 103 |
|
| 104 |
The original values are placed as comments. |
| 105 |
|
| 106 |
|
| 107 |
\section{Sizing commands for Parts, Chapters and Titles etc} |
| 108 |
|
| 109 |
These are set to \cmd{\large} or whatever |
| 110 |
% |
| 111 |
\begin{flushleft} |
| 112 |
\begin{tabular}{@{}>{\texttt{>{}> }}lll@{}} |
| 113 |
\cmd{\chsize}: & Chapter, Part Heading & (\verb|\LARGE\large|) \\ |
| 114 |
\cmd{\hdsize}: & Chapter, Part Title Text & (\verb|\Huge\huge\LARGE|) \\ |
| 115 |
\cmd{\ttsize}: & Title of Document & (\verb|\Huge\huge\LARGE|) \\ |
| 116 |
\cmd{\ausize}: & Author & (\verb|\LARGE\Large|) \\ |
| 117 |
\cmd{\dasize}: & Date. & (\verb|\Large\large|) \\ |
| 118 |
\cmd{\secsize}: & Section & (\verb|\Large\large|) \\ |
| 119 |
\cmd{\subsize}: & Subsection & (\verb|\large\normalsize|) |
| 120 |
\end{tabular} |
| 121 |
\end{flushleft} |
| 122 |
% |
| 123 |
\texttt{subsubsection} and below use \cmd{\normalsize} |
| 124 |
|
| 125 |
|
| 126 |
\section{Layout commands for headings.} |
| 127 |
|
| 128 |
\begin{itemize} |
| 129 |
\item |
| 130 |
\cmd{\hdpos}: Positioning of heading (\cmd{\raggedright}) (\cmd{\centering} \cmd{\raggedleft}) |
| 131 |
(see section~\ref{sec:9}); |
| 132 |
|
| 133 |
\item counter \texttt{hddpth} (default~0) \\ |
| 134 |
Maximum section level for \cmd{\hdpos} (chapters and parts \emph{ALWAYS} use \texttt{hdpos}). |
| 135 |
To centre section headings and above: |
| 136 |
\begin{verbatim} |
| 137 |
\let\hdpos\centering\setcounter{hddepth}{1} |
| 138 |
\end{verbatim} |
| 139 |
|
| 140 |
\item \cmd{\fpind}: Indenting of first paragraph after \cmd{\Part} \cmd{\Chapter} |
| 141 |
and also to override setting via \meta{preskip} for sections. |
| 142 |
\cmd{\let} to \cmd{\@afterindenttrue} to indent, \cmd{\@afterindentfalse} for flush, |
| 143 |
\cmd{\relax}: flush after \cmd{\Part} \cmd{\Chapter}, negative \meta{preskip}s; indented otherwise |
| 144 |
(\LaTeX\ default behaviour). |
| 145 |
\end{itemize} |
| 146 |
|
| 147 |
|
| 148 |
\section{Fonts} |
| 149 |
|
| 150 |
\begin{itemize} |
| 151 |
\item \cmd{\ttfnt}: font for title entries. |
| 152 |
\item \cmd{\hdfnt}: font for all other headings (Part, Chapter \dots\ subparagraph). |
| 153 |
\item \cmd{\fefnt}: font for theorem headings and description labels (\texttt{fe} = feature). |
| 154 |
\item \cmd{\thfnt}: font for theorem statements. |
| 155 |
\item \cmd{\pgfnt}: font for page numbers. |
| 156 |
\item \cmd{\mkfnt}: font for page headings (\texttt{mk} = mark). |
| 157 |
\item \cmd{\mkcse}: case for page headings. |
| 158 |
These can also be used to add other initial commands such as spaces or |
| 159 |
symbols. |
| 160 |
\end{itemize} |
| 161 |
|
| 162 |
|
| 163 |
\section{Optional punctuation (standard|my preference)} %| |
| 164 |
|
| 165 |
These marks are transferred via auxiliary files for tables of contents etc. |
| 166 |
They should be \cmd{\def}'d if their current value is to be transferred, and \cmd{\let} |
| 167 |
if the value in force when the file auxiliary is read should be used. |
| 168 |
|
| 169 |
\begin{flushleft} |
| 170 |
\begin{tabular}{@{}>{\texttt{>{}> }}lll@{}} |
| 171 |
\cmd{\hddot} & (\verb+{}+|\verb+.+) & (after inline headings, theorems etc) \\ %| |
| 172 |
\cmd{\cpdot} & (\verb+:+|\verb+.+) & (in figure/table captions - also apears in list of figures. \\ %| |
| 173 |
\cmd{\nmdot} & (\verb+{}+|\verb+.+) & (after section numbers etc) \\ %| |
| 174 |
\end{tabular} |
| 175 |
\end{flushleft} |
| 176 |
% |
| 177 |
If these are \cmd{\let} to a single letter they are not expanded in the |
| 178 |
\texttt{.toc}\dots\ files. So to remove \cmd{\cpdot} from list of figures: |
| 179 |
% |
| 180 |
\begin{verbatim} |
| 181 |
\let\cpdot\relax\listoffigures\let\cpdot: |
| 182 |
\end{verbatim} |
| 183 |
|
| 184 |
|
| 185 |
\section{Spacing parameters.} |
| 186 |
|
| 187 |
The macros for chapters and parts have been altered so that all the |
| 188 |
vertical spacing commands are in a single macro in each case. |
| 189 |
% |
| 190 |
\begin{itemize} |
| 191 |
\item |
| 192 |
\cmd{\part} inserts initial vertical space directly (preceded by \verb+\hbox{}+ if it |
| 193 |
is to be immovable) and passes the space between Part n and title |
| 194 |
in \cmd{\@tempskipa} and the space below the heading in \cmd{\@tempskipb}. |
| 195 |
|
| 196 |
\item |
| 197 |
Both \cmd{\chapter} and \cmd{\chapter*} call \cmd{\@makechapterhead}\marg{chaptertitle}. |
| 198 |
This passes \marg{chaptertitle} on to \cmd{\@makeschapterhead} together with the |
| 199 |
vertical spacing. Default setting is |
| 200 |
% |
| 201 |
\begin{verbatim} |
| 202 |
\def\@makechapterhead#1{% |
| 203 |
\hbox{}\@makeschapterhead{#1}{50\p@}{20\p@}{40\p@}} |
| 204 |
\end{verbatim} |
| 205 |
% |
| 206 |
\verb+\hbox{}+ makes first skip immovable, |
| 207 |
the first length is space above the heading, |
| 208 |
The second is the space between Chapter nn and the chapter title |
| 209 |
The third is the space below the heading. |
| 210 |
For both Part and Chapter the middle space is removed if either the |
| 211 |
section name or title are missing. |
| 212 |
If both are missing, the first space is also removed |
| 213 |
|
| 214 |
\item |
| 215 |
\begin{sloppypar} |
| 216 |
For sections and below the spaces are kept in registers: |
| 217 |
\cmd{\secpreskp} and \cmd{\secpsrskp} \cmd{\secindent} used for \cmd{\section} |
| 218 |
\cmd{\subpreskp} and \cmd{\subpstskp} \cmd{\subindent} used for \cmd{\subsection}/\cmd{\subsubsection} |
| 219 |
\cmd{\paragraph} uses \cmd{\subindent} \cmd{\subpreskp} \cmd{\parpstskp} |
| 220 |
\cmd{\subparagraph} uses \cmd{\parindent} \cmd{\subpreskp} \cmd{\parpstskp} |
| 221 |
\end{sloppypar} |
| 222 |
|
| 223 |
\item |
| 224 |
\cmd{\secindent} \cmd{\subindent}\quad Heading indentation |
| 225 |
|
| 226 |
\item |
| 227 |
\cmd{\secpreskp} \cmd{\subpreskp}\quad Space before |
| 228 |
|
| 229 |
\item |
| 230 |
\cmd{\secpstskp} \cmd{\subpstskp} \cmd{\parpstskp}\quad Space after. |
| 231 |
\end{itemize} |
| 232 |
|
| 233 |
|
| 234 |
\section{Internal modifications} |
| 235 |
|
| 236 |
Sections with negative indents have heading flush with margin. |
| 237 |
|
| 238 |
If \cmd{\thesection} is \cmd{\empty} |
| 239 |
% |
| 240 |
\begin{flushleft} |
| 241 |
\verb+\let\thesection\empty+ or \verb+\def\thesection{}+ |
| 242 |
\end{flushleft} |
| 243 |
% |
| 244 |
then \texttt{section} does not step the section counter. |
| 245 |
If the section produces empty output for a value then |
| 246 |
the section will start flush at the margin or \cmd{\secindent} if it is positive |
| 247 |
and there will be no \cmd{\nmdot}. |
| 248 |
It will produce (flush) page headings and a table of contents entry. |
| 249 |
Similarly if \cmd{\thechapter} or \cmd{\thepart} are defined to be empty they will |
| 250 |
suppress the heading line `Chapter\dots'\ and not step the counter. |
| 251 |
To restore standard \LaTeX\ behaviour temporarily define \cmd{\thesection} to be |
| 252 |
\cmd{\empty} |
| 253 |
% |
| 254 |
\begin{verbatim} |
| 255 |
\def\thesection{\empty} |
| 256 |
\end{verbatim} |
| 257 |
% |
| 258 |
In that case you can adjust post number spacing in the heading. |
| 259 |
% |
| 260 |
\begin{verbatim} |
| 261 |
\section[Heading]{\hskip-1em Heading} |
| 262 |
\end{verbatim} |
| 263 |
% |
| 264 |
You can also redefine \cmd{\@makesecdot} see paragraph~\ref{sec:7}. |
| 265 |
|
| 266 |
\emph{WARNING}\quad\cmd{\let}ting \cmd{\thesection} etc to an unexpandable token (like \cmd{\relax}) will |
| 267 |
cause strange effects under \LaTeX\ because its value will not be expanded. |
| 268 |
|
| 269 |
\cmd{\maketitle} suppresses page headings (\verb+\thispagestyle{empty}+) and only resets |
| 270 |
\cmd{\@title} etc locally. So place in a group if you want to preserve these for |
| 271 |
later reference (eg.\ in headers). |
| 272 |
|
| 273 |
|
| 274 |
\section{New internal macros} |
| 275 |
\label{sec:7} |
| 276 |
|
| 277 |
Place any modifications in the section \texttt{REDEFINITIONS} of the main code |
| 278 |
% |
| 279 |
\begin{itemize} |
| 280 |
\item \cmd{\@secdot} contains section number and \cmd{\nmdot} if the number is non-empty. |
| 281 |
|
| 282 |
\item \cmd{\@makesecdot}\marg{NAME} defines \cmd{\@secdot}. |
| 283 |
To make \LaTeX\ step the section counter independently of the definition |
| 284 |
of \cmd{\thesection} and always print \cmd{\nmdot}: |
| 285 |
\begin{verbatim} |
| 286 |
\def\@makesecdot#1{\refstepcounter{#1}% |
| 287 |
\edef\@secdot{\csname the#1\endcsname}} |
| 288 |
\end{verbatim} |
| 289 |
If you want \cmd{\nmdot} suppressed when \cmd{\thesection} produces no output: |
| 290 |
\begin{verbatim} |
| 291 |
\def\@makesecdot#1{\refstepcounter{#1}% |
| 292 |
\edef\@secdot{% |
| 293 |
\expandafter\@gobifnul\csname the#1\endcsname\nmdot}} |
| 294 |
\end{verbatim} |
| 295 |
|
| 296 |
\item \cmd{\@makesvsec}\marg{INDENT} defines the \cmd{\@svsec} macro used by \LaTeX\ to typeset the |
| 297 |
section number\dots Its parameter is the indent so that it can react |
| 298 |
differently to negative indents. (it does \emph{NOT} make the indent). |
| 299 |
To obtain standard \LaTeX\ behaviour: |
| 300 |
\begin{verbatim} |
| 301 |
\def\@makesvsec#1{\def\@svsec{\@secdot\quad}} |
| 302 |
\end{verbatim} |
| 303 |
To make positioning commands apply to the heading ignoring the number: |
| 304 |
\begin{verbatim} |
| 305 |
\def\@makesvsec#1{\def\@svsec{\llap{@secdot\quad}}} |
| 306 |
\end{verbatim} |
| 307 |
Do \emph{NOT} forget the \verb+#1+. |
| 308 |
|
| 309 |
\item \cmd{\@contmark}\marg{NAME}\marg{LEVEL}\marg{HEADING} makes contents line and sectionmark. |
| 310 |
\end{itemize} |
| 311 |
|
| 312 |
Contents headlines are defined by |
| 313 |
% |
| 314 |
\begin{itemize} |
| 315 |
\item \cmd{\@tocheadline}\quad |
| 316 |
This allows these lines to be adjusted similarly to the \cmd{\@dotted\-tocline} |
| 317 |
commands for other contents lines. The format of these is defined below (in |
| 318 |
paragraph~\ref{sec:11}). |
| 319 |
|
| 320 |
\item \verb+@tocpagenum#1+ sets \verb+#1+ flush right in \cmd{\@tocheadline}. \\ |
| 321 |
Redefine (\verb+\let\@tocpagenum\@gobble+) to remove page numbers. |
| 322 |
\begin{verbatim} |
| 323 |
\def\l@part{\@tocheadline{0}{2.25em}{3em}{\let\@tocpagenum\@gobble |
| 324 |
\centering\large\bf}} |
| 325 |
\end{verbatim} |
| 326 |
Centres parts lines of contents but leaves chapters unchanged |
| 327 |
\begin{verbatim} |
| 328 |
\def\l@part{\@tocheadline{0}{2.25em}{3em}{\let\@tocpagenum\@gobble |
| 329 |
\centering\def\numberline##1{\hskip-\secindent |
| 330 |
\hbox to\secindent{##1\hfil}}\large\bf}}# |
| 331 |
\end{verbatim} |
| 332 |
Same but centring ignores part number. |
| 333 |
\begin{verbatim} |
| 334 |
\def\l@part{\@tocheadline{0}{2.25em}{3em}{\let\@tocpagenum\@gobble |
| 335 |
\centering\def\numberline##1{\hfilneg |
| 336 |
\hbox to\z@{##1\hss}\hfil}\large\bf}} |
| 337 |
\end{verbatim} |
| 338 |
Centres heading with number flush left\\ |
| 339 |
Contents lines use \cmd{\secindent} as a temporary register |
| 340 |
|
| 341 |
\item \cmd{\makeheading} (set to \cmd{\section*}, \cmd{\chapter*}) |
| 342 |
Makes headings for contents, index etc. |
| 343 |
To put Contents itself in the contents list, redefine (locally): |
| 344 |
\begin{verbatim} |
| 345 |
\let\thesection\empty\let\makeheading\section |
| 346 |
\end{verbatim} |
| 347 |
\end{itemize} |
| 348 |
|
| 349 |
|
| 350 |
\section{Additional macros} |
| 351 |
|
| 352 |
\begin{itemize} |
| 353 |
\item \cmd{\@ifempty}\marg{test}\marg{yes}\marg{no} like \cmd{\@ifundefined} but tests for empty |
| 354 |
(fails iff test starts with \verb+~+ of catcode~12 (other)). |
| 355 |
\item \cmd{\@gobifnul}\marg{a}\marg{b} = \cmd{\@ifempty}\marg{a}\verb+{}{+\meta{a}\meta{b}\verb+}+. |
| 356 |
\end{itemize} |
| 357 |
|
| 358 |
|
| 359 |
\section{Description of sectioning values} |
| 360 |
\label{sec:9} |
| 361 |
|
| 362 |
\cmd{\@startsection}\marg{NAME}\marg{LEVEL}\marg{INDENT}\marg{PRESKIP}\marg{POSTSKIP} \\ |
| 363 |
\hphantom{\cmd{\@startsection}}\marg{STYLE}\meta{optional~\texttt{*}}\oarg{ALTHEADING}\marg{HEADING} \\ |
| 364 |
Generic command to start a section. |
| 365 |
% |
| 366 |
\begin{flushleft} |
| 367 |
\begin{tabular}{@{}p{0.2\linewidth}@{\makebox[0.03\linewidth]{:}}p{0.77\linewidth}@{}} |
| 368 |
\meta{NAME} & e.\,g.,\ `\texttt{subsection}' must be the name of a section counter \\ |
| 369 |
\meta{LEVEL} & a number, denoting depth of section~-- section~=~1; number increases down the hierarchy. \\ |
| 370 |
\meta{INDENT} & Indentation of heading from left margin \\ |
| 371 |
\meta{PRESKIP} & Absolute value~=~skip to leave above the heading. If negative, then paragraph indent of text following heading is suppressed. \\ |
| 372 |
\meta{POSTSKIP} & if positive, then skip to leave below heading, else negative of skip to leave to right of run-on heading. \\ |
| 373 |
\meta{ALTHEADING} & for page headings and contents. \\ |
| 374 |
\meta{STYLE} & commands to set style |
| 375 |
\end{tabular} |
| 376 |
\end{flushleft} |
| 377 |
% |
| 378 |
If `\texttt{*}' missing, then increments the counter. If it is present, then |
| 379 |
there should be no \meta{ALTHEADING} argument. |
| 380 |
Uses the counter `\texttt{secnumdepth}' whose value is the highest section |
| 381 |
level that is to be numbered and entered into \cmd{\@dottedtocline}. |
| 382 |
|
| 383 |
|
| 384 |
\section{Treatment of Section Entries} |
| 385 |
|
| 386 |
\begin{description} |
| 387 |
\item[\meta{NAME} (fixed)] |
| 388 |
Determines the counter to use. |
| 389 |
|
| 390 |
\item[\meta{LEVEL} (fixed)] |
| 391 |
If level is greater than \verb|\counter{secnumdepth}| (default~2) no |
| 392 |
indexentry or number |
| 393 |
|
| 394 |
\item[\meta{INDENTS}:] |
| 395 |
\cmd{\secindent} (sections), \cmd{\subindent} (subsections, \dots\ ,paragraphs). |
| 396 |
Subparagraphs have \cmd{\parindent} fixed. These are dimensions. |
| 397 |
|
| 398 |
Recommended: $\pm\cmd{\parindent}$ or 0\,pt |
| 399 |
|
| 400 |
If indent is negative then \pkg{SECTION.STY} causes the section number to be set |
| 401 |
flush right that distance from margin. Heading or text follows at the margin |
| 402 |
itself. |
| 403 |
|
| 404 |
Unnumbered headings are set at the margin if indent is negative. If the |
| 405 |
indent is non-negative they are set flush left with the number position. |
| 406 |
|
| 407 |
\item[\meta{PRESKIPS}] |
| 408 |
\cmd{\secpreskp} (sections), \cmd{\subpreskp} (subsections \dots\ subparagraphs) |
| 409 |
|
| 410 |
\item[\meta{POSTSKIPS}] |
| 411 |
\cmd{\secpstskp} (sections), \cmd{\subpstskp} (subsections, subsubsections) \\ |
| 412 |
\cmd{\parpstskp} (paragraphs, subparagraphs) |
| 413 |
|
| 414 |
Recommended: leave \meta{PRESKIPS}' abs values unchanged, They are set $-$ve to |
| 415 |
have flush first paragraphs. Use \cmd{\secpreskp}--\cmd{\secpreskp} to indent them. \\ |
| 416 |
Recommended: set \meta{POSTSKIPS} to $-1$\,em or $-\cmd{\parindent}$ to make sections run on. |
| 417 |
|
| 418 |
By assigning these values to registers \pkg{SECTION.STY} makes them independent of |
| 419 |
the surrounding font and size. Set the registers if you want this, redefine |
| 420 |
them as macros if you want them to be font and size dependent. |
| 421 |
|
| 422 |
\item[\meta{STYLE}] |
| 423 |
\cmd{\secsize} \cmd{\subsize} \cmd{\hdfnt} size and fonts. |
| 424 |
\cmd{\secsize} for sections, |
| 425 |
\cmd{\subsize} for subsections. |
| 426 |
Subsubsections and below have \cmd{\normalsize} (fixed). |
| 427 |
\cmd{\hdfnt} is universal for all headings. |
| 428 |
\end{description} |
| 429 |
|
| 430 |
|
| 431 |
\section{Contents entries.} |
| 432 |
\label{sec:11} |
| 433 |
|
| 434 |
\cmd{\@tocheadline}\marg{LEVEL}\marg{PRESKIP}\marg{INDENT}\marg{STYLE} \\ |
| 435 |
\hphantom{\cmd{\@tocheadline}}\marg{ENTRY}\marg{PAGENUM} \\ |
| 436 |
\cmd{\@dottedtocline}\marg{LEVEL}\marg{MARGIN}\marg{INDENT}\marg{ENTRY}\marg{PAGENUM} |
| 437 |
|
| 438 |
\begin{flushleft} |
| 439 |
\begin{tabular}{@{}p{0.145\linewidth}@{\makebox[0.03\linewidth]{:}}p{0.825\linewidth}@{}} |
| 440 |
\meta{LEVEL} & determines if entry made. \\ |
| 441 |
\meta{PRESKIP} & vertical gap above. \\ |
| 442 |
\meta{INDENT} & This must leave enough room for the chapter or section number \newline It is added to the margin for the next level. \\ |
| 443 |
\meta{MARGIN} & Left margin inherited from level above (zero for headlines). \\ |
| 444 |
\meta{STYLE} & Font sizing and setting. \\ |
| 445 |
\end{tabular} |
| 446 |
\end{flushleft} |
| 447 |
% |
| 448 |
\LaTeX\ assumes that the \meta{ENTRY} for sections be defined by a macro \cmd{\l@section}. |
| 449 |
These are defined in the standard document styles but can be changed. |
| 450 |
All entries of the \cmd{\l@section} commands are fixed. \pkg{SECTION.STY} does not |
| 451 |
change the commands using \cmd{\@dottedtocline} in the style file. Those that do |
| 452 |
not do so (\cmd{\l@part}, \cmd{\l@chapter}) are modified to use \cmd{\@tocheadline}. |
| 453 |
|
| 454 |
\meta{INDENT} for sections in \cls{article} and chapters in \cls{report} is rather tight at |
| 455 |
1.5\,em. If you increase it should also increase the \meta{MARGIN}S for lower |
| 456 |
sections. |
| 457 |
|
| 458 |
|
| 459 |
\section{The following internal \LaTeX\ macros are redefined:} |
| 460 |
|
| 461 |
\begin{flushleft} |
| 462 |
\begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.3\linewidth}p{0.67\linewidth}@{}} |
| 463 |
\cmd{\part} \cmd{\@part} \cmd{\@spart} \cmd{\@endpart} \cmd{\@chapter} \cmd{\@schapter} & (also \cs{fi} moved) \\ |
| 464 |
\cmd{\@makechapterhead} \cmd{\@makeschapterhead} & functions of these have been significantly changed. \\ |
| 465 |
\cmd{\ps@headings} \cmd{\ps@myheadings} \\ |
| 466 |
\cmd{\section} \cmd{\subsection} \cmd{\subsubsection} \cmd{\paragraph} \cmd{\subparagraph} \\ |
| 467 |
\cmd{\thebibliography} \cmd{\theindex} \\ |
| 468 |
\cmd{\@begintheorem} \cmd{\@oparbegintheorem} \\ |
| 469 |
\cmd{\@makecaption} & optional style features added \\ |
| 470 |
\cmd{\@startsection} & \cmd{\fpind} and does not pass \verb|#4| to \cmd{\@sect}, \cmd{\@ssect} \\ |
| 471 |
\cmd{\@sect}, \cmd{\@ssect} & ignored parameter removed \newline \cmd{\llap} \cmd{\@secdot} used to adjust spacing if \cmd{\p@section} defined used for number style. calls \cmd{\@makesecdot} \newline \cmd{\@sect} only: \cmd{\@makesvsec} and \cmd{\@contmark}, which is moved in \cmd{\@svsechd} so that \cmd{\unskip} in \cmd{\@xsect} works). \\ |
| 472 |
\cmd{\maketitle} \cmd{\@maketitle} & suppress page number, reset \cmd{\@title}\dots\ locally \\ |
| 473 |
\cmd{\numberline} & adds space after number, so overfull box if too close to heading. \\ |
| 474 |
\end{tabular} |
| 475 |
\end{flushleft} |
| 476 |
|
| 477 |
|
| 478 |
\section*{Changes} |
| 479 |
|
| 480 |
\begin{description} |
| 481 |
\item[Ver 1.3 (3. Apr 98)] |
| 482 |
If $\cmd{\secindent} < 0$, then \cmd{\section*} produces a flush heading, not outdented. |
| 483 |
\cmd{\hdpos} takes level as parameter and is used for all sections, not just |
| 484 |
\cmd{\part} and \cmd{\chapter}. |
| 485 |
`ex' measurements replaced by \cmd{\baselineskip} equivalents. |
| 486 |
|
| 487 |
\item[Ver 1.31] |
| 488 |
Bugfix: \cmd{\relax} added to \cmd{\@alph}, \cmd{\@Alph} to enable use with \cmd{\@ifempty} test. |
| 489 |
|
| 490 |
\item[Ver 1.32] |
| 491 |
\begin{sloppypar} |
| 492 |
Bugfixes: \cmd{\hdpos} added to \cmd{\@ssect}, unused macro \cmd{\secpos} removed, |
| 493 |
\cmd{\nobreak} added after \cmd{\thechapter} in \cmd{\makechapterhead} |
| 494 |
\end{sloppypar} |
| 495 |
|
| 496 |
\item[Ver 1.4] |
| 497 |
\cmd{\hdpos} made simple macro again. Counter \cmd{\hddepth} determines when it |
| 498 |
should be used. Functions of \cmd{\@makechapterhead}, \cmd{\@smakechapterhead} |
| 499 |
changed to make editing vertical spacing of chapters easier. |
| 500 |
\cmd{\part}\cmd{\@part}\cmd{\@spart} rewritten so that all spacing info in \cmd{\part}. |
| 501 |
\cmd{\part} calls \cmd{\@spart} which finishes off the heading. |
| 502 |
\end{description} |
| 503 |
% |
| 504 |
Memory use $< 200$ words. |
| 505 |
|
| 506 |
\end{document} |