Changes

Jump to navigation Jump to search
1,771 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.
To manually set the pagenumber: {{cmd|setcounter|[userpage][4]}}.
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 ==
<!-* {{cmd|setuppagenumber}}* {{cmd|setupuserpagenumber}}* {{cmd|setupsubpagenumber}}* {{cmd|setuppagenumbering}}* {{cmd|setupcounter}}* {{cmd|setcounter}} == Help from ConTeXt- something like [[cmdMailinglist/Forum ==All issues with:goto{{Forum|\goto]] -->{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Numbers|setuppagenumber]]

Navigation menu