ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* page=yes often ignored
@ 2008-01-06 21:50 Mojca Miklavec
  2008-01-06 22:08 ` Mojca Miklavec
  2008-01-07 11:52 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Mojca Miklavec @ 2008-01-06 21:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I often have problems with page breaks in ConTeXt (section titles are
often placed at the bottom of the page, but changing anything there
might lead to strange side-effects), but perhaps this specific problem
is solvable somehow:

\setuphead
	[section]
	[page=yes]
\setuphead
	[subsection]
	[page=yes]

\starttext

\section{a}
\input tufte

% I would expect a page break here without having to say \page
\subsection{b}
\input tufte

\stoptext

Thanks a lot,
    Mojca
___________________________________________________________________________________
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] 7+ messages in thread

* Re: page=yes often ignored
  2008-01-06 21:50 page=yes often ignored Mojca Miklavec
@ 2008-01-06 22:08 ` Mojca Miklavec
  2008-01-07  0:44   ` Hans Hagen
  2008-01-07 11:52 ` Wolfgang Schuster
  1 sibling, 1 reply; 7+ messages in thread
From: Mojca Miklavec @ 2008-01-06 22:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Jan 6, 2008 10:50 PM, Mojca Miklavec wrote:
> Hello,
>
> I often have problems with page breaks in ConTeXt (section titles are
> often placed at the bottom of the page, but changing anything there
> might lead to strange side-effects), but perhaps this specific problem
> is solvable somehow:
>
> \setuphead
>         [section]
>         [page=yes]
> \setuphead
>         [subsection]
>         [page=yes]
>
> \starttext
>
> \section{a}
> \input tufte
>
> % I would expect a page break here without having to say \page
> \subsection{b}
> \input tufte
>
> \stoptext

Hmmm ... Hans, you have answered two of my questions in the same sentence :)

I have solved this by using
   before=\page
instead of
   page=yes

Thanks again for the magic answers :),

Mojca
___________________________________________________________________________________
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] 7+ messages in thread

* Re: page=yes often ignored
  2008-01-06 22:08 ` Mojca Miklavec
@ 2008-01-07  0:44   ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2008-01-07  0:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mojca Miklavec wrote:
> On Jan 6, 2008 10:50 PM, Mojca Miklavec wrote:
>> Hello,
>>
>> I often have problems with page breaks in ConTeXt (section titles are
>> often placed at the bottom of the page, but changing anything there
>> might lead to strange side-effects), but perhaps this specific problem
>> is solvable somehow:
>>
>> \setuphead
>>         [section]
>>         [page=yes]
>> \setuphead
>>         [subsection]
>>         [page=yes]
>>
>> \starttext
>>
>> \section{a}
>> \input tufte
>>
>> % I would expect a page break here without having to say \page
>> \subsection{b}
>> \input tufte
>>
>> \stoptext
> 
> Hmmm ... Hans, you have answered two of my questions in the same sentence :)
> 
> I have solved this by using
>    before=\page
> instead of
>    page=yes

continue=yes|no

quite old feature -)

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: page=yes often ignored
  2008-01-06 21:50 page=yes often ignored Mojca Miklavec
  2008-01-06 22:08 ` Mojca Miklavec
@ 2008-01-07 11:52 ` Wolfgang Schuster
  2008-01-30 14:39   ` suppressing page number on an empty page Jörg Hagmann
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2008-01-07 11:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Jan 6, 2008 10:50 PM, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> Hello,
>
> I often have problems with page breaks in ConTeXt (section titles are
> often placed at the bottom of the page, but changing anything there
> might lead to strange side-effects), but perhaps this specific problem
> is solvable somehow:
>
> \setuphead
>         [section]
>         [page=yes]
> \setuphead
>         [subsection]
>         [page=yes]
>
> \starttext
>
> \section{a}
> \input tufte
>
> % I would expect a page break here without having to say \page
> \subsection{b}
> \input tufte
>
> \stoptext

This is a feature in ConTeXt but you could disable it,

\setuphead[section,subsection][page=yes,continue=no]

Wolfgang
___________________________________________________________________________________
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] 7+ messages in thread

* suppressing page number on an empty page
  2008-01-07 11:52 ` Wolfgang Schuster
@ 2008-01-30 14:39   ` Jörg Hagmann
  2008-01-30 15:05     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Jörg Hagmann @ 2008-01-30 14:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list members,

I want to suppress page numbers on empty left pages before a new 
chapter. I tried:

\setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]

This works, but messes up the layout.

I then tried to do it manually:

\page[empty]
or
\page\noheaderandfooterlines

at the appropriate places, but this also completely changes page 
breaking in the following chapters (e.g. text running down over and 
beyond the pagenumber at the bottom with \page[empty], or just breaking 
a page at a different position, which would force me to reposition all 
the margin figures etc..

Is there a trick to avoid this behaviour? Thanks for your help,

Jörg
___________________________________________________________________________________
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] 7+ messages in thread

* Re: suppressing page number on an empty page
  2008-01-30 14:39   ` suppressing page number on an empty page Jörg Hagmann
@ 2008-01-30 15:05     ` Wolfgang Schuster
  2008-01-30 15:36       ` Jörg Hagmann
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2008-01-30 15:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Jan 30, 2008 3:39 PM, Jörg Hagmann <joerg.hagmann@unibas.ch> wrote:
> Dear list members,
>
> I want to suppress page numbers on empty left pages before a new
> chapter. I tried:
>
> \setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]
>
> This works, but messes up the layout.
>
> I then tried to do it manually:
>
> \page[empty]
> or
> \page\noheaderandfooterlines
>
> at the appropriate places, but this also completely changes page
> breaking in the following chapters (e.g. text running down over and
> beyond the pagenumber at the bottom with \page[empty], or just breaking
> a page at a different position, which would force me to reposition all
> the margin figures etc..
>
> Is there a trick to avoid this behaviour? Thanks for your help,

\definepagebreak[chapter][yes,header,right]
\setuphead[chapter][page=chapter]

Wolfgang
___________________________________________________________________________________
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] 7+ messages in thread

* Re: suppressing page number on an empty page
  2008-01-30 15:05     ` Wolfgang Schuster
@ 2008-01-30 15:36       ` Jörg Hagmann
  0 siblings, 0 replies; 7+ messages in thread
From: Jörg Hagmann @ 2008-01-30 15:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank you Wolfgang! It works (of course).
The book will be published in March (by Orell Füssli and UTB) and will 
make use of several solutions I owe to you.

Cheers, Jörg

Wolfgang Schuster wrote:
> On Jan 30, 2008 3:39 PM, Jörg Hagmann <joerg.hagmann@unibas.ch> wrote:
>   
>> Dear list members,
>>
>> I want to suppress page numbers on empty left pages before a new
>> chapter. I tried:
>>
>> \setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]
>>
>> This works, but messes up the layout.
>>
>> I then tried to do it manually:
>>
>> \page[empty]
>> or
>> \page\noheaderandfooterlines
>>
>> at the appropriate places, but this also completely changes page
>> breaking in the following chapters (e.g. text running down over and
>> beyond the pagenumber at the bottom with \page[empty], or just breaking
>> a page at a different position, which would force me to reposition all
>> the margin figures etc..
>>
>> Is there a trick to avoid this behaviour? Thanks for your help,
>>     
>
> \definepagebreak[chapter][yes,header,right]
> \setuphead[chapter][page=chapter]
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
>   

-- 
Prof.Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
Centre of Biomedicine, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2008-01-30 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-06 21:50 page=yes often ignored Mojca Miklavec
2008-01-06 22:08 ` Mojca Miklavec
2008-01-07  0:44   ` Hans Hagen
2008-01-07 11:52 ` Wolfgang Schuster
2008-01-30 14:39   ` suppressing page number on an empty page Jörg Hagmann
2008-01-30 15:05     ` Wolfgang Schuster
2008-01-30 15:36       ` Jörg Hagmann

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