Open main menu

Changes

1,536 bytes added ,  21:53, 28 October 2023
some fixes
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setuppagenumber</syntax>
== [[Help:Reference|Syntax]] ==
</tr>
<tr valign="top" class="first">
<td class="cmd">way</td> <td>'''bytext''' byblock bychapter ... — ''reset the counter to one at the start of the text / every block/chapter/section/...</td> </tr> <tr valign="top" class="first"> <td class="cmd">prefix</td> <td>'''no''' yes — ''add the current [[Commandprefixset] number as a prefix</td> </tr> <tr valign="top" class="first"> <td class="cmd">prefixset</td> <td>'''part''' chapter section ... — ''write the part/chapter/keyword:... number|as a prefix to the page number]]''</td> </tr> <tr valign="top" class="first"> <tdclass="cmd">[[Commandprefixconnector</value:td> <td>'''\endash''' — ''mark to separate the prefix from the page number|number]] ''</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:state|state]]</td> <td>[[Command/value{| class=wikitable|- style="vertical-align:top"| '''start''' ||start]] [[Command/resume page numbering on this page, at the last counter value|- style="vertical-align:top"| stop || stop placing page numbers, and stop]] [[Commandincrementing the counter.|} </td> </value:keep|keep]] tr> <tr valign="top" class="first"> <td class="cmd">number</td> <td>1 2 3 ... — ''Set the page number. Mkii only.''</td>
</tr>
</table>
== Description ==
== Description == Setup the way the pages are numbered.  The option number=NUMBER, where NUMBER is To manually set the pagenumber at which the document starts, is gone and replaced by \: {{cmd|setcounter|[userpage][NUMBER4] (mkiv)}}.
In MkII, this was: {{cmd|setuppagenumber|2=[number=4]}}.
== Example ==
<!texcode>% mode=mkiv\setuppagenumber [way=bytext, prefix=yes, prefixset=section, prefixconnector=\endash, state=start] \setuppapersize[A7]\showframe[] \starttext\section{One by one (fragment)} \startlinesone by oneour friendsfilled with joy and questbegin to arrive one by one our friendsthe worshipers of ecstasybegin to arrive more friends and sweetheartsfilling you with loveare on their way\stoplines \rightaligned{-- Please fill in an example if you can --Rumi, {\it trans.} Nader Khalili}\stoptext </texcode>
== See also ==
<!-- something like * {{cmd|gotosetuppagenumber}}* {{cmd|setupuserpagenumber}}* {{cmd|setupsubpagenumber}}* {{cmd|setuppagenumbering}}* {{cmd|setupcounter}}* {{cmd|setcounter}} -->
== Help from ConTeXt-Mailinglist/Forum ==