ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Pagenumbering with \setupcounter[userpagenumber]
@ 2020-07-29 19:43 Willi Egger
  2020-07-29 20:05 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger @ 2020-07-29 19:43 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Good evening!

I am trying to make use of the userpagenumber counter. I have a book at hand, where I need to adjust the start of the pagenumbering.

It appears to me, that the \setupcounter[userpagenumber[state=stop] and later the \setupcounter[userpagenumber][state=start,start=7] is not giving the expected result.

MWE:

% Context file

\mainlanguage[en]

\usetypescript[termes]
\setupbodyfont[termes,9pt]

\setuppapersize [A5][A5]


\setuppagenumbering[location=,alternative=doublesided]

\setupheadertexts
	[text]
	[]
	[\userpagenumber]
	[\userpagenumber]
	[{\getmarking[chapter]}]

\setupfootertexts
	[]
	[\pagenumber]
	[\pagenumber]
	[]
	
\setupmakeup[standard][top=,bottom=,doublesided=yes]

\setupcounter[userpagenumber][state=stop]
	
\starttext

\startstandardmakeup[page=yes,doublesided=yes]
\strut
\godown[.2\textheight]
\rightaligned{Bramble-Bees}
\stopstandardmakeup

\startstandardmakeup[doublesided=yes,page=yes]
\strut
\godown[.1\textheight]
\startalignment[middle]
	{\bfb BRAMBLE-BEES AND OTHER} 
	\blank[line]
	{\bfa by J. HENRI FABRE}
	\stopalignment
	\vfill
	\startalignment[middle]
	{TRANSLATED BY ALEXANDER TEIXEIRA DE MATTOS, F.Z.S.}
\stopalignment
\stopstandardmakeup


\starttitle[title={TRANSLATOR'S NOTE.}]
	\input ward
\stoptitle


\setupcounter[userpagenumber][state=start,number=7]

\starttitle[title=Contents]
	\placelist[chapter]
\stoptitle

\startchapter[title=Ward]
	\input ward
\stopchapter

\startchapter[title=Knuth]
	\input knuth
\stopchapter

\stoptext


Is this a bug or do I miss something?

Kind regards

Willi
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-07-29 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 19:43 Pagenumbering with \setupcounter[userpagenumber] Willi Egger
2020-07-29 20:05 ` Wolfgang Schuster

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