(j3.2006) 007 formatting

Van Snyder van.snyder
Tue Mar 6 21:13:33 EST 2007

On Mon, 2007-03-05 at 09:15 +0900, Malcolm Cohen wrote:
> Hmm, "reply" wants to send this both to Van and the list.
> Isn't that going to give Van two copies of the reply?
> (I'll go back to editing the headers manually, but I thought
> we changed so as to avoid having to do that.)
> > On Fri, 2007-03-02 at 18:22 +0900, Malcolm Cohen wrote:
> > > > 2.  If you want it, do you want it centered in the footer, or on the
> > > > interior edge (the page number goes on the outer edge)?
> > > 
> > > Interior edge, no question.
> > > 
> > > > 3.  Do you want (part of) the subclause title too?  This might be
> > > handy
> > > > in Clause 13.  I could do it only for the intrinsic procedure names
> > > and
> > > > not for anything else if that would be helpful.
> > > 
> > > Clause title would be ok.  Centred.
> > > Some of our clause titles could be snappier.
> > > (And some clauses could be split, e.g. c07.)
> Van Snyder said:
> ...
> > So we either get the subclause number and title on the inner edge, or we
> > get both of them centered.
> Not so.  It's (almost) trivial to do what I wrote.
> Note well that I wrote ***clause title*** not subclause title.
> Just put \cfoot into the \chapter macro.

Ah yes, upon reading more carefully I see "clause title."  Putting
\cfoot into the \chpater macro could occasionally cause the title of
chapter n+1 to appear in the footer for the last page of chapter n, so I
set up \chaptermark to \markboth{#1}{\thechapter}, set up \cfoot to use
\leftmark, and set up \lfoot and \rfoot to use \rightmark.  This puts
the clause title in the footer center and the subclause number in the
footer inner edge.

I set up \insubsection (the macro used to set intrinsic procedure
subsections -- which is also used in Clause 14) to mark footers with the
subclause number and the procedure name, which I found to be very handy
when scanning for a particular procedure.  Unfortunately, there isn't
always room for both the clause title and the procedure name, so I set
it up not to put the clause title in the footer in these cases.  Do you
prefer to have the clause title in the footer?

I've turned off footer labeling altogether in the frontmatter.

I've turned off putting the subclause number into the footer in the
backmatter, except in Annex C, since there isn't much subdivision in the

I assume that footer labeling will be turned off in the ISO edition,
since they want their copyright at the inner edge of the footer, and
there isn't room for it and some of our clause titles.  Maybe we could
put their copyright in the center and keep the subclause number at the
inner edge.

I've figured out how to do automatic paragraph numbering.  This entailed
subverting some "standard" macros, and explicitly turning off paragraph
numbering in several places.  The paragraph number counter is restarted
at every document subdivision.  It appears in the left (not inner)
margin, to the left of the line number, as an arabic number in
parentheses (it's trivial to change the style, but not the position).
The places that don't get paragraph numbers are

page headings and footings
chapter, section, subsection, etc. titles
list items (both enum and itemize)
syntax rules
notes (unfortunately I couldn't make this work sensibly)
backmatter except Annex C.

In the case of a paragraph split by something like a note, the
continuation gets a number, but I think this is harmless.

It would be useful to retain the paragraph numbers in the ISO edition,
since can't have line numbers.  It will be useful as a finest-scale
reference for corrigenda.

The attachment shows one page with paragraph numbers, line numbers, and
decorated page footer.

Paragraph numbering and whether the footer is decorated are controlled
by switches, so it's simple to turn these features on and off.

Malcolm will ultimately publish 07-007r1 after he passes his editor's
eye over my typists job.  He will need to know what styles you prefer.
If you don't speak up, he'll make his own choices.

More information about the J3 mailing list