• No results found

Two pagestyles for underlining headers

N/A
N/A
Protected

Academic year: 2021

Share "Two pagestyles for underlining headers"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Two pagestyles for underlining headers

Rainer Sch¨

opf

1997/02/16

Abstract

This package implements two new pagestyles underline and myunderline that are similar to the standard headings and myheadings pagestyles but provide a horizontal line just below the head line.

The purpose of this package file is to provide a way to underline a running head. This is done by redefining the \@evenhead and \@oddhead macros. To understand this you must know that whenever a given pagestyle (say ‘xxx’) is selected by a \pagestyle{xxx} command the macro \ps@xxx is executed. Therefore we define a macro \ps@underline which is called when you say \pagestyle{underline}. To provide for a rule with user-defined headings we also define the pagestyle ‘myun-derline’ , i.e. the macro \ps@myunderline.

1

Implementation

1h∗packagei

\ps@underline The first thing the macro \ps@underline does is to call \ps@headings to set up everything like the ‘headings’ pagestyle does. Here we do not need to dis-tinguish onesided and twosided printing since this is already done correctly by \ps@headings.

2\def\ps@underline{\ps@headings

Then we redefine \@evenhead. The first part is a copy of the definition in \ps@headings. This has the advantage that this style option works with doc-ument styles ‘article’, ‘report’, and ‘book’.

3 \def\@evenhead{\thepage\hfil\slshape\leftmark\null

\null is defined to be \hbox{} in the LATEX kernel file ltplain.dtx. Additionally

we include a \vadjust primitive. The effect of this primitive is to add its argument after the current \hbox to the enclosing vertical list.

4 \vadjust{\vskip .3ex\hrule}}%

The \@oddhead macro is constructed analogously.

5 \def\@oddhead{\null{\slshape \rightmark}\hfil\thepage

6 \vadjust{\vskip .3ex\hrule}}}

This file has version number v1.01, last revised 1997/02/16.

(2)

1 IMPLEMENTATION 2

\ps@myunderline The macro \ps@myunderline for underlining user defined running heads is con-structed analogously.

7\def\ps@myunderline{\ps@myheadings

8 \def\@oddhead{\null{\slshape\rightmark}\hfil

9 \rm\thepage\vadjust{\vskip .3ex\hrule}}%

10 \def\@evenhead{\thepage\hfil\slshape \leftmark \null

11 \vadjust{\vskip .3ex\hrule}}}

Referenties

GERELATEERDE DOCUMENTEN

• You must not create a unit name that coincides with a prefix of existing (built-in or created) units or any keywords that could be used in calc expressions (such as plus, fil,

cluster bootstrap, delta method, Mokken scale analysis, rater effects, standard errors, two-level scalability coefficients1. In multi-rater assessments, multiple raters evaluate

Aliquam congue, enim et auctor dignissim, neque libero tincidunt libero, eget sagittis tortor urna vitae ligula.. Aliquam

Although the following opportunities actually stem from the Indian macroenvironment, they will be seen as originating from its microenvironment since they influence the potential

In the next section, we define the model free energy that we use to obtain the exact expressions for the interfacial density profiles and the surface tensions of the three two-

Tijdens het korven in het najaar van 2002 zijn 16 kreeften aangetroffen, die zijn overgezet naar een geschikt bevonden vijver elders op het Landgoed.. Volgens extrapolatie kwam

Furthermore, as we consider an infinite time horizon and no economic dependence between the machines, if machine 1 is in the failed state it is always optimal to initiate