ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* disappearing headers
@ 2003-02-05  2:39 Idris S Hamid
  2003-02-08 16:57 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Idris S Hamid @ 2003-02-05  2:39 UTC (permalink / raw)


Dear crew,

Another e-TeX culprit? Try this in plain tex mode: the heading
corresponding to \title disappears, but works in pdfetex:

===========
\starttext

\setupheadertexts%
[][title][\Author][]%
\setupheader[style=\sc,state=high]

\setuppagenumbering[alternative=doublesided,
                    location={footer,marginedge}]

\title{Test Chapter1}
\def\Author{Author 1}

\dorecurse{10}{\input tufte \input knuth \par}

\title{Test Chapter2}
\def\Author{Author 1}

\stoptext
===========

A related problem: I tried doing each article manually, e.g.,

\setupheadertexts%
[][An Article][\Author][]%

but the headings start 2 pages earlier than needed. So the last few
pages of Article~1 contain the headings for Article~2! Aside from fixing
the original problem I'd like to be understand how to handle this
manually as well.

Idris

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Disappearing headers
@ 2004-07-23 22:55 Matt Gushee
  2004-07-28  8:54 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Gushee @ 2004-07-23 22:55 UTC (permalink / raw)


Hello, all--

I am trying to format a book such that the book title appears in the
header of each left-hand page, and the chapter title appears in the
header of each right-hand page. I think (though I haven't decided for
sure) that I want each chapter to start on a right-hand page. It seems
that, when chapters are forced to begin on right-hand pages, the book
title fails to appear on the first blank page inserted to move the
chapter start, and on all subsequent pages.

Here are the commands I am using related to headers:

    \setuphead [title] 
        [align=left,textstyle={\switchtobodyfont[BernhardModern]\bf}]
    \setuphead [chapter] 
        [page=right,head=nomarking,after=\blank]
    \setuppagenumbering [alternative=doublesided,location=margin]
    \setupheader [style=\it]
    \setupheadertexts [] [chapter] [title] [] 
        % reverse order, as mentioned in my earlier post

With all these commands enabled, I get the effect I want: chapters begin
on righthand pages, the title and chapter title appear, respectively, in
the left and right page headers (adjacent to the page numbers, with the
page numbers toward the outside edge of the page). But, as I said, the
book title stops appearing as soon as a blank page is inserted to move
the chapter start to the right.

If I comment out *both* the \setuphead [chapter] command and the
\setuppagenumbering command, the title continues to be displayed
throughout the text. If I enable either of the two, the title disappears
again. By the way, it appears that this \setuppagenumbering command has
a side-effect of forcing chapters to begin on the right. Is that really
a good idea? It's certainly surprising to me.

So, am I doing something wrong, or is this a bug?

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-28  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05  2:39 disappearing headers Idris S Hamid
2003-02-08 16:57 ` Hans Hagen
2003-02-09 22:28   ` Idris S Hamid
2003-02-13 23:24     ` Idris S Hamid
2004-07-23 22:55 Disappearing headers Matt Gushee
2004-07-28  8:54 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).