Changes

Jump to navigation Jump to search
1,584 bytes added ,  00:17, 23 September 2021
Added reference to setupuserpagenumber
|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 In mkii, this command can be used to manually set the page number: {{cmd|setuppagenumber|2=NUMBER, where NUMBER is the pagenumber at which the document starts, is gone and replaced by \setcounter[userpage][NUMBERnumber=4] (mkiv)}}.
To manually set the pagenumber in mkiv: {{cmd|setcounter|[userpage][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}} is a synonym for {{cmd|setupuserpagenumber}}* {{cmd|setupsubpagenumber}}* {{cmd|setuppagenumbering}}* {{cmd|setcounter}} -->
== Help from ConTeXt-Mailinglist/Forum ==
93

edits

Navigation menu