Command/setupregister
< Command
Jump to navigation
Jump to search
Contents
\setupregister
Summary
The command \setupregister is used for the settings of an index.
Settings
| \setupregister[...][...=...,...] | |
| [...] | name name:number |
| referencemethod | forward |
| expansion | yes no xml |
| ownnumber | yes no |
| xmlsetup | name |
| alternative | a b A B |
| method | default before after first last ch mm zm pm mc zc pc uc |
| compress | yes no all packed text |
| check | yes no |
| criterium | local text current previous all section |
| pageprefixseparatorset | command |
| pageprefixconversionset | name |
| pageprefixstarter | command processor->command |
| pageprefixstopper | command processor->command |
| pageprefixset | name |
| pageprefixsegments | number number:number number:* number:all section section:section section:* section:all current |
| pageprefixconnector | command |
| pageprefix | yes no |
| pageseparatorset | name |
| pageconversionset | name |
| pagestarter | command processor->command |
| pagestopper | command processor->command |
| pagesegments | number number:number number:* number:all |
| maxwidth | dimension |
| indicator | yes no |
| before | command |
| after | command |
| command | oneargument |
| textcommand | oneargument |
| deeptextcommand | oneargument |
| pagecommand | oneargument |
| distance | dimension |
| interaction | text pagenumber |
| pagenumber | yes no |
| symbol | a n none 1 2 command |
| language | default DIN␣5007-1 DIN␣5007-2 Duden de-DE de-CH de-AT ru-iso9 ocs-scn language |
| style | style command |
| color | color |
| textstyle | style command |
| textcolor | color |
| pagestyle | style command |
| pagecolor | color |
| pageleft | command |
| pageright | command |
| n | number |
| balance | yes no |
| align | see \setupalign |
| numberorder | numbers |
| pagemethod | page section |
| Option | Explanation | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| expansion |
| ||||||||||||||
| method |
| ||||||||||||||
| compress |
| ||||||||||||||
| check |
| ||||||||||||||
| criterium |
| ||||||||||||||
| maxwidth |
| ||||||||||||||
| indicator |
| ||||||||||||||
| before |
| ||||||||||||||
| textcommand |
| ||||||||||||||
| pagecommand |
| ||||||||||||||
| distance |
| ||||||||||||||
| interaction |
| ||||||||||||||
| symbol |
| ||||||||||||||
| language |
| ||||||||||||||
| style |
| ||||||||||||||
| textstyle |
| ||||||||||||||
| pagestyle |
| ||||||||||||||
| pageleft |
| ||||||||||||||
| pageright |
| ||||||||||||||
| n |
| ||||||||||||||
| balance |
| ||||||||||||||
| align |
| ||||||||||||||
Settings argument
| \setupregister[...,...][...,...][...=...,...] | |
| [...,...] | name |
| [...,...] | number |
| referencemethod | forward |
| expansion | yes no xml |
| ownnumber | yes no |
| xmlsetup | name |
| alternative | a b A B |
| method | default before after first last ch mm zm pm mc zc pc uc |
| compress | yes no all packed text |
| check | yes no |
| criterium | local text current previous all section |
| pageprefixseparatorset | command |
| pageprefixconversionset | name |
| pageprefixstarter | command processor->command |
| pageprefixstopper | command processor->command |
| pageprefixset | name |
| pageprefixsegments | number number:number number:* number:all section section:section section:* section:all current |
| pageprefixconnector | command |
| pageprefix | yes no |
| pageseparatorset | name |
| pageconversionset | name |
| pagestarter | command processor->command |
| pagestopper | command processor->command |
| pagesegments | number number:number number:* number:all |
| maxwidth | dimension |
| indicator | yes no |
| before | command |
| after | command |
| command | oneargument |
| textcommand | oneargument |
| deeptextcommand | oneargument |
| pagecommand | oneargument |
| distance | dimension |
| interaction | text pagenumber |
| pagenumber | yes no |
| symbol | a n none 1 2 command |
| language | default DIN␣5007-1 DIN␣5007-2 Duden de-DE de-CH de-AT ru-iso9 ocs-scn language |
| style | style command |
| color | color |
| textstyle | style command |
| textcolor | color |
| pagestyle | style command |
| pagecolor | color |
| pageleft | command |
| pageright | command |
| n | number |
| balance | yes no |
| align | see \setupalign |
| numberorder | numbers |
| pagemethod | page section |
Description
For setting the pagestyle, and more, see the material on \defineprocessor that is on this page.
Examples
Own register
\defineregister[nickname] \setupregister [nickname] [partnumber=no,alternative=A,criterium=all,n=3,balance=yes,pagestyle=normal] \setupregister [nickname][foto][pagestyle=bold] \starttext Text about Mamut\nickname{Mamut}. \placefigure[] {Kuba\nickname[foto::]{Kuba} on the photo.} {\externalfigure[kuba][width=0.2\textwidth]} \page And text about Kuba\nickname{Kuba}. \completenickname \stoptext
yields

right-aligned page number
\setupregister[index] [pageleft=\hfilll, pageright=\frozen\parfillleftskip 0pt plus 1fill\frozen\parfillrightskip 0pt\par]
MkII approach, might still work:
\setupregister[index][pageleft=\wordright\bgroup,pageright=\egroup]