ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* picture before \chapter breaking \header \footer setup
@ 2008-10-23 12:35 Jelle Huisman
  2008-10-23 13:40 ` Aditya Mahajan
  2008-10-23 13:59 ` Taco Hoekwater
  0 siblings, 2 replies; 4+ messages in thread
From: Jelle Huisman @ 2008-10-23 12:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

Another question, this time about \headers and \footers. On the first 
page of the chapter I have the page number in the footer and on all 
other pages they are in the header. This works fine, as expected. 
However I have to include an \externalfigure *before* the \chapter 
command and I discovered that I have to use \startcombination because 
otherwise the \chapter moves to the next page. However, when I use 
\startcombination ... etc \chapter is not longer the first thing on the 
page and the special header/footer setup is not triggered (apparently 
\chapter has to come first for that to happen). See sample code:

% sample
\definetext[mychapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=mychapter]
\showframe
\starttext

%\startcombination[1*1]{\externalfigure}{ % uncomment to see problem
\chapter{first}
%}\stopcombination % uncomment to see problem

\dorecurse{20}{\input tufte \relax}
\chapter{second} \dorecurse{20}{\input tufte \relax} % this works as 
expected
\stoptext
% sample

Is it possible to make this work? (maybe an extra \chapter command 
before the combination that triggers the header-footer setup, but that 
is not printed after all?)

Thanks for any help.

Jelle
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: picture before \chapter breaking \header \footer setup
  2008-10-23 12:35 picture before \chapter breaking \header \footer setup Jelle Huisman
@ 2008-10-23 13:40 ` Aditya Mahajan
  2008-10-23 13:59 ` Taco Hoekwater
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2008-10-23 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 23 Oct 2008, Jelle Huisman wrote:

> Hi all,
>
> Another question, this time about \headers and \footers. On the first
> page of the chapter I have the page number in the footer and on all
> other pages they are in the header. This works fine, as expected.
> However I have to include an \externalfigure *before* the \chapter
> command and I discovered that I have to use \startcombination because
> otherwise the \chapter moves to the next page. However, when I use
> \startcombination ... etc \chapter is not longer the first thing on the
> page and the special header/footer setup is not triggered (apparently
> \chapter has to come first for that to happen). See sample code:

You can try to play around with \setuphead[chapter][command=\something] 
and make sure that \something puts a figure where you want. You will need 
to specify the figure by other mechanism (define a command, pass two 
arguments trough one argument, etc).

Aditya

> % sample
> \definetext[mychapter][footer][pagenumber]
> \setuphead[chapter][header=high,footer=mychapter]
> \showframe
> \starttext
>
> %\startcombination[1*1]{\externalfigure}{ % uncomment to see problem
> \chapter{first}
> %}\stopcombination % uncomment to see problem
>
> \dorecurse{20}{\input tufte \relax}
> \chapter{second} \dorecurse{20}{\input tufte \relax} % this works as
> expected
> \stoptext
> % sample
>
> Is it possible to make this work? (maybe an extra \chapter command
> before the combination that triggers the header-footer setup, but that
> is not printed after all?)
>
> Thanks for any help.
>
> Jelle
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
>
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: picture before \chapter breaking \header \footer setup
  2008-10-23 12:35 picture before \chapter breaking \header \footer setup Jelle Huisman
  2008-10-23 13:40 ` Aditya Mahajan
@ 2008-10-23 13:59 ` Taco Hoekwater
  2008-10-23 14:48   ` Jelle Huisman
  1 sibling, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2008-10-23 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Jelle Huisman wrote:
> 
> Is it possible to make this work? (maybe an extra \chapter command 
> before the combination that triggers the header-footer setup, but that 
> is not printed after all?)

I would put the externalfigure in the before= of the chapter head,
maybe wrapped in some form of \doifelse.

Best wishes,
Taco




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: picture before \chapter breaking \header \footer setup
  2008-10-23 13:59 ` Taco Hoekwater
@ 2008-10-23 14:48   ` Jelle Huisman
  0 siblings, 0 replies; 4+ messages in thread
From: Jelle Huisman @ 2008-10-23 14:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]

Taco Hoekwater wrote:
>> Is it possible to make this work? (maybe an extra \chapter command 
>> before the combination that triggers the header-footer setup, but that 
>> is not printed after all?)
>>     
>
> I would put the externalfigure in the before= of the chapter head,
> maybe wrapped in some form of \doifelse.

I managed to get it working, thanks again Taco. (Once this project is 
finished I'll add stuff like this to the wiki.)

Groeten,

Jelle

[-- Attachment #1.2: Type: text/html, Size: 854 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2008-10-23 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-23 12:35 picture before \chapter breaking \header \footer setup Jelle Huisman
2008-10-23 13:40 ` Aditya Mahajan
2008-10-23 13:59 ` Taco Hoekwater
2008-10-23 14:48   ` Jelle Huisman

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