ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: page numbering question
  2008-04-09 14:29 page numbering question David C. Walden
@ 2008-04-09 14:04 ` Jörg Hagmann
  2008-04-09 14:14 ` Wolfgang Schuster
  2008-04-09 14:39 ` Aditya Mahajan
  2 siblings, 0 replies; 7+ messages in thread
From: Jörg Hagmann @ 2008-04-09 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

\definepagebreak[chapter][yes,footer,right]

(or:  \definepagebreak[chapter][yes,header,right])

Jörg

David C. Walden wrote:
> Hi,
>
> I have been searching contextgarden.net and the
> manuals at the Pragma website for more than an hour
> now, and I have yet to find a way to have ConTeXt
> decide in two-sided mode that the last page
> of a book chapter is a even numbered page without
> anything on it and therefore will also not have
> a page number.  I probably can manually effect
> this by carefully inserting \setuppagenumber
> commands which start and stop the state, but
> that's not a very general solution.  Will
> someone please point me to appropriate documentation
> or an example.
>
> Thanks, Dave
>
>
> --
> home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168
> email address:  dave@walden-family.com; 
> website(s):  http://www.walden-family.com/
>
>
> ___________________________________________________________________________________
> 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] 7+ messages in thread

* Re: page numbering question
  2008-04-09 14:29 page numbering question David C. Walden
  2008-04-09 14:04 ` Jörg Hagmann
@ 2008-04-09 14:14 ` Wolfgang Schuster
  2008-04-09 14:39 ` Aditya Mahajan
  2 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2008-04-09 14:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Apr 9, 2008 at 4:29 PM, David C. Walden <dave@walden-family.com> wrote:
> Hi,
>
> I have been searching contextgarden.net and the
> manuals at the Pragma website for more than an hour
> now, and I have yet to find a way to have ConTeXt
> decide in two-sided mode that the last page
> of a book chapter is a even numbered page without
> anything on it and therefore will also not have
> a page number.  I probably can manually effect
> this by carefully inserting \setuppagenumber
> commands which start and stop the state, but
> that's not a very general solution.  Will
> someone please point me to appropriate documentation
> or an example.

You could insert a empty page with \page[empty] or
\startstandardmakeup ... \stopsatndardmakeup.

Yould integrate this in the normal document structure.

\startcomponent test

\setuppagenumbering[alternative=doublesided]

\startfrontmatter

\startstandardmakeup
Title Page
\stopstandardmakeup

\stopfrontmatter

\startbodymatter

.. document ...

\stopbodymatter

\startbackmatter

\startstandardmakeup
\stopstandardmakeup

\stopbackmatter

\stopcomponent

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

* page numbering question
@ 2008-04-09 14:29 David C. Walden
  2008-04-09 14:04 ` Jörg Hagmann
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David C. Walden @ 2008-04-09 14:29 UTC (permalink / raw)
  To: ntg-context

Hi,

I have been searching contextgarden.net and the
manuals at the Pragma website for more than an hour
now, and I have yet to find a way to have ConTeXt
decide in two-sided mode that the last page
of a book chapter is a even numbered page without
anything on it and therefore will also not have
a page number.  I probably can manually effect
this by carefully inserting \setuppagenumber
commands which start and stop the state, but
that's not a very general solution.  Will
someone please point me to appropriate documentation
or an example.

Thanks, Dave


--
home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168
email address:  dave@walden-family.com; 
website(s):  http://www.walden-family.com/


___________________________________________________________________________________
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 numbering question
  2008-04-09 14:29 page numbering question David C. Walden
  2008-04-09 14:04 ` Jörg Hagmann
  2008-04-09 14:14 ` Wolfgang Schuster
@ 2008-04-09 14:39 ` Aditya Mahajan
  2008-04-09 15:24   ` David C. Walden
  2 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2008-04-09 14:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi David,

On Wed, 9 Apr 2008, David C. Walden wrote:

> Hi,
>
> I have been searching contextgarden.net and the
> manuals at the Pragma website for more than an hour
> now, and I have yet to find a way to have ConTeXt
> decide in two-sided mode that the last page
> of a book chapter is a even numbered page without
> anything on it and therefore will also not have
> a page number.

I am not sure what you want. Do you want the last page of chapters to be 
numbered or do you want them to be completely empty?

Aditya
___________________________________________________________________________________
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 numbering question
  2008-04-09 14:39 ` Aditya Mahajan
@ 2008-04-09 15:24   ` David C. Walden
  2008-04-09 16:20     ` Aditya Mahajan
  0 siblings, 1 reply; 7+ messages in thread
From: David C. Walden @ 2008-04-09 15:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


>I am not sure what you want. Do you want the last page of chapters to be
>numbered or do you want them to be completely empty?

I want even numbered last pages of chapters which have no text
or images on them to be completely empty.

I tried various versions of the code for "Truly empty page
breaks" at http://wiki.contextgarden.net/Titles that
Jörg's message about \definepagebreak led me to, and I
tried various versions of the additional discussion
about "Again: How to make empty pages by default empty?"
from November 2003 in the NTG-context archives.  I couldn't
make any of that work within the last half hour or so.
Thus, I have now changed my macro which begins chapters
so it turns off page numbering before the \chapter call
and turns page numbering back on after some text has
been place on the first page of the chapter and that
now does what I want.  So, that's kind of a brute
force approach to getting these completely blank
pages "automatically."  Thanks everyone for your
suggestions.   -Dave


___________________________________________________________________________________
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 numbering question
  2008-04-09 15:24   ` David C. Walden
@ 2008-04-09 16:20     ` Aditya Mahajan
  2008-04-09 17:16       ` David C. Walden
  0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2008-04-09 16:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1758 bytes --]

On Wed, 9 Apr 2008, David C. Walden wrote:

>
>> I am not sure what you want. Do you want the last page of chapters to be
>> numbered or do you want them to be completely empty?
>
> I want even numbered last pages of chapters which have no text
> or images on them to be completely empty.
>
> I tried various versions of the code for "Truly empty page
> breaks" at http://wiki.contextgarden.net/Titles that
> Jörg's message about \definepagebreak led me to, and I
> tried various versions of the additional discussion

Does this do what you want (at least in this test case)

  \definepagebreak
     [mychapterpagebreak]
      [yes,header,footer,right]

  \setuphead
    [chapter]
    [page=mychapterpagebreak]


  \setuppagenumbering[alternative=doublesided,location={header,margin}]
  \setupheadertexts[{My special headertext}]
  \setupfootertexts[This is a text in the footer]

  \starttext
      \chapter {testA} \dorecurse{10}{\input tufte }
      \chapter {testB} \dorecurse{10}{\input tufte }
      \chapter {testC} \dorecurse{10}{\input tufte }
  \stoptext

Notice that the pages at the end of the chapters are empty.


> about "Again: How to make empty pages by default empty?"
> from November 2003 in the NTG-context archives.  I couldn't
> make any of that work within the last half hour or so.
> Thus, I have now changed my macro which begins chapters
> so it turns off page numbering before the \chapter call
> and turns page numbering back on after some text has
> been place on the first page of the chapter and that
> now does what I want.  So, that's kind of a brute
> force approach to getting these completely blank
> pages "automatically."  Thanks everyone for your
> suggestions.   -Dave

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

* Re: page numbering question
  2008-04-09 16:20     ` Aditya Mahajan
@ 2008-04-09 17:16       ` David C. Walden
  0 siblings, 0 replies; 7+ messages in thread
From: David C. Walden @ 2008-04-09 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


>Does this do what you want (at least in this test case)
>
>  \definepagebreak
>     [mychapterpagebreak]
>      [yes,header,footer,right]
>
>  \setuphead
>    [chapter]
>    [page=mychapterpagebreak]
>
>
>  \setuppagenumbering[alternative=doublesided,location={header,margin}]
>  \setupheadertexts[{My special headertext}]
>  \setupfootertexts[This is a text in the footer]
>
>  \starttext
>      \chapter {testA} \dorecurse{10}{\input tufte }
>      \chapter {testB} \dorecurse{10}{\input tufte }
>      \chapter {testC} \dorecurse{10}{\input tufte }
>  \stoptext


I thought I tried that on my book and it didn't work.
My actual situation is more complicated with declarations
of front matter, depositing of \completecontent, etc.
However, I have now done it with the test case expanded
to mimic my real situation and it does seem to work.
I'll try it in my real file (again?). 


___________________________________________________________________________________
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-04-09 17:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09 14:29 page numbering question David C. Walden
2008-04-09 14:04 ` Jörg Hagmann
2008-04-09 14:14 ` Wolfgang Schuster
2008-04-09 14:39 ` Aditya Mahajan
2008-04-09 15:24   ` David C. Walden
2008-04-09 16:20     ` Aditya Mahajan
2008-04-09 17:16       ` David C. Walden

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