ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	David Walther <david@clearbrookdistillery.com>
Subject: Re: how to put page X of N in header or top space?
Date: Tue, 14 Aug 2018 21:32:29 +0200	[thread overview]
Message-ID: <a5e6cdf7-3f0b-e4b3-4501-309b9ce665bf@gmail.com> (raw)
In-Reply-To: <20180814162843.GA28118@reactor-core.org>

\setuppagenumbering
   [alternative=doublesided,               % doublesided layout
   %alternative={singlesided,doublesided}, % singlesided layout with 
left/right pages
    location=none]

\setupheadertexts [My Spreadsheet]

\setupheadertexts
   [] [Page \userpagenumber\ of \lastuserpagenumber]
   [Page \userpagenumber\ of \lastuserpagenumber] []

\starttext
\dorecurse{10}{\page[dummy]}
\stoptext


Wolfgang


David Walther schrieb am 14.08.18 um 18:28:
> Hi, I am slowly learning ConTeXt.  I am generating tables and 
> spreadsheets, and
> transforming them into ConTeXt, finally got it working after a lot of
> mysterious errors about missing } as macro arguments.
>
> I have read this page carefully:  http://wiki.contextgarden.net/Layout
>
> How can I alter the page number?  Is it in the header, or is it in the
> topspace?
>
> I want this to be at the top of each page of my spreadsheet:
>
> My Spreadsheet (centered) Page 1 of 3 (right justified)
>
> And on even pages, the other way around:
>
> Page 2 of 3 (left justified) My Spreadsheet (centered)
>
> What is the right way to do this?  Is there an override and a blob of 
> code I need to put into one of the boxes in the Layout?
>
> David
> ___________________________________________________________________________________ 
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-08-14 19:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14 16:28 David Walther
2018-08-14 19:32 ` Wolfgang Schuster [this message]
2018-08-14 20:44   ` David Walther
2018-08-14 20:58     ` Alan Braslau
2018-08-14 21:19       ` David Walther
2018-08-14 21:40         ` Alan Braslau
2018-08-15  3:41     ` Wolfgang Schuster
2018-08-15  5:29       ` David Walther

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a5e6cdf7-3f0b-e4b3-4501-309b9ce665bf@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=david@clearbrookdistillery.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).