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

* Re: disappearing headers
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-02-08 16:57 UTC (permalink / raw)


At 07:39 PM 2/4/2003 -0700, you wrote:
>Dear crew,
>
>Another e-TeX culprit? Try this in plain tex mode: the heading
>corresponding to \title disappears, but works in pdfetex:

Did you try eomega? The otp mechanism seems to dislike the \dorecurse line

[i wonder if you could use the latest enctex mechanism for your 
applications, since it has a similar mapping functionality [multiple chars 
onto one, with output mapping as well] but seems less sensitive to 
lookahead problems

also, if you want a chap start dependent header:

   \setuphead[chapter][style=\sc,header=high]

now your headertext only 'disappears' at the first page

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: disappearing headers
  2003-02-08 16:57 ` Hans Hagen
@ 2003-02-09 22:28   ` Idris S Hamid
  2003-02-13 23:24     ` Idris S Hamid
  0 siblings, 1 reply; 6+ messages in thread
From: Idris S Hamid @ 2003-02-09 22:28 UTC (permalink / raw)


Hans Hagen wrote:

> At 07:39 PM 2/4/2003 -0700, you wrote:
> >Dear crew,
> >
> >Another e-TeX culprit? Try this in plain tex mode: the heading
> >corresponding to \title disappears, but works in pdfetex:
>
> Did you try eomega? The otp mechanism seems to dislike the \dorecurse line

I am waiting for Fabrice to make eomega 1.15 binaries (he said he would
try to
do something this week). If he takes too long I'll have to install
MiKTeX or
beg Thomas Esser to make Linux binaries. Then I have to test eomega to
make sure it at least does exhibit any fatal bugs above what already in
Omega1.15. But the journal sponsors will not be
able  to wait for all that;-) If there's anyway to get patches for the
relevant eTeX stuff I'll be quite grateful:-) 

In any case, this particular problem is apparently not Omega-related.
See
below.


> [i wonder if you could use the latest enctex mechanism for your
> applications, since it has a similar mapping functionality [multiple chars
> onto one, with output mapping as well] but seems less sensitive to
> lookahead problems

Could you give me an example to try?

> also, if you want a chap start dependent header:
>
>    \setuphead[chapter][style=\sc,header=high]
>
> now your headertext only 'disappears' at the first page

This does not solve my problem. Try running the following in plain tex
mode:
the title/chapter headings will not appear:

texexec --tex=tex test
==========test.tex=======
\setuphead[chapter][style=\sc,header=high]

\setuphead[title][%numberstyle=normal,
                    style=\sc,
                    alternative=middle,
                    %page=right,
                    %number=no,
                    %ownnumber=no,
                    %incrementnumber=no,
                    %continue=no,
                    header=high%,
                    %text=high,
                    %footer=empty,
                    %command=\tfc,
                    %after={\blank[small]%
                    %\blank[big,small]%
                    %\blank[disable]
                    %\placelogos[ijss]}%
                    ]

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

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

\starttext

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

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

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

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

As always, thnx 4 your help. I hope this is soluble;-)

Best
Idris

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

* Re: disappearing headers
  2003-02-09 22:28   ` Idris S Hamid
@ 2003-02-13 23:24     ` Idris S Hamid
  0 siblings, 0 replies; 6+ messages in thread
From: Idris S Hamid @ 2003-02-13 23:24 UTC (permalink / raw)


Headers are driving me crazy;-)

Consider the test file at the end of this mail: It is designed so that every new
chapter (\title since journal articles need no numbering) begins on an odd page.
I tried localizing the headers with \start and \stop. Here is what happens

1. On page five (odd, last page of Test~1) we are still in chapter Test~1, yet
the heading for Test~2 appears;
2. The blank page before the beginning of Chapter Test~2 has a heading and a
footer. How can I automatically make it completely empty of header and footer (I
know about \noheaderandfooterlines but I have had no luck positioning it just
right to get the effect I want);
3. On page ten (even, last page of Test~2), the heading reads Author~3, when it
should read Author~2.

How do I get things right here? I'm truly desperate on this one. I found clever
(or clunky) workarounds to some of my other problems (I processed my tables in
pdfetex and turned them into eps files for the Gamma run, for instance) but this
one is really driving me bats.

While I would still like to fix the original problem in Gamma where the global
setting of

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

makes the title disappear, even the global setting in pdfetex creates similar
problems. Problem~1
disappears but problems 2 & 3 remain.

Please help!

Best
Idris

======================
\setuphead[title][numberstyle=normal,
                    style=\scb,
                    alternative=middle,
                    page=right,
                    number=no,
                    ownnumber=no,
                    incrementnumber=yes,
                    continue=no,
                    header=high,
                    text=high,
                    footer=empt%
                    ]

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

%\setupheadertexts%                        % uncomment
%[][title][\Author][]%                       % for global version
%\setupheader[style=\sc,state=high] % title will disappear
%                                                     % in Plain

\starttext

\start
\setupheadertexts%
[]%
[Test 1]
[Author 1]%
[]%

\def\Author{Author 1}

\title{Test 1}

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

\stop

\start
\setupheadertexts%
[]%
[Test 2]
[Author 2]%
[]%

\def\Author{Author 2}

\title{Test 2}

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

\stop

\start
\setupheadertexts%
[]%
[Test 3]
[Author 3]%
[]%

\def\Author{Author 3}

\title{Test 3}

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

\stop

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

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

* Re: Disappearing headers
  2004-07-23 22:55 Disappearing headers Matt Gushee
@ 2004-07-28  8:54 ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2004-07-28  8:54 UTC (permalink / raw)


Matt Gushee wrote:

>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
>  
>
i need a small doc with dummy text to see the effect -)

>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.
>  
>
those things are related to when marks are set/reset; tricky sync stuff

how about playing a bit with \definetext

\starttext

\setuphead [chapter] [page=right,header=chapter]
\setuphead [title]   [page=right,header=]
\setuppagenumbering [alternative=doublesided,location=margin]

\definetext[chapter][header][title][]

\setupheadertexts[title][chapter]

\title{title 1} test \page test \chapter{chapter 1} test \page test
\title{title 2} test \page test \chapter{chapter 2} test \page test
\title{title 3} test \page test \chapter{chapter 3} test \page test

\stoptext

>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.
>  
>
The default settings are: 

  \setuphead[chapter][page=right] 

when you change this to 

  \setuphead[chapter][page=yes] 

you get what you want

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ 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).