Difference between revisions of "Command/setupreferencestructureprefix"

From Wiki
Jump to navigation Jump to search
m (Text replacement - "</cmd>" to "}}")
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupreferencestructureprefix</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
  
Line 65: Line 67:
 
The first (and optional) argument can be used to specify the element,
 
The first (and optional) argument can be used to specify the element,
 
which reference should be customized. When “float” is used, the setting
 
which reference should be customized. When “float” is used, the setting
affects all kind of floats which are created with <cmd>definefloat</cmd> but also only certain float types can be changed when the name of the float is being used,
+
affects all kind of floats which are created with {{cmd|definefloat}} but also only certain float types can be changed when the name of the float is being used,
 
e.g. figure or table. When the layout for a heading should be changed, the name of it, e.g. chapter or section needs to be specified.
 
e.g. figure or table. When the layout for a heading should be changed, the name of it, e.g. chapter or section needs to be specified.
  
 
The second argument specifies the reference type, the values
 
The second argument specifies the reference type, the values
 
of these types are “number”, “page”, “title”, … (see above). When referring to a section
 
of these types are “number”, “page”, “title”, … (see above). When referring to a section
or float with the <cmd>in</cmd> command, context uses the “default” type and when referring using the
+
or float with the {{cmd|in}} command, context uses the “default” type and when referring using the
<cmd>at</cmd> command, it uses the “page” type.
+
{{cmd|at}} command, it uses the “page” type.
  
 
With the third argument it can be controlled which prefixes (section numbers
 
With the third argument it can be controlled which prefixes (section numbers
Line 84: Line 86:
  
 
== See also ==
 
== See also ==
[[cmd:definestructureseparatorset|\definestructureseparatorset]],
+
{{cmd|definestructureseparatorset}},
 
[[References]]
 
[[References]]
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
 
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Cross-References|setupreferencestructureprefix]]
+
[[Category:Command/Cross-References|setupreferencestructureprefix]]

Latest revision as of 13:21, 9 August 2020

\setupreferencestructureprefix

Syntax (autogenerated)

\setupreferencestructureprefix[...][...][...=...,...]
[...]name section
[...]default
prefixyes no
prefixseparatorsetname
prefixconversionname
prefixconversionsetname
prefixstartercommand processor->command
prefixstoppercommand processor->command
prefixsetname
prefixsegmentsnumber number:number number:* number:all section section:section section:* section:all current
numberconversionname
numberconversionsetname
numberstartercommand processor->command
numberstoppercommand processor->command
numbersegmentsnumber number:number number:* number:all
numberseparatorsetname
prefixconnectorcommand processor->command


Syntax

\setupreferencestructureprefix[...][...][...,...=...,...]
[...] IDENTIFIER (float, formula, figure, SECTION (e.g. section, subsection, …), …)
[...] number, page, title, text, default or realpage
prefix yes no
prefixseparatorset IDENTIFIER
prefixconversionset IDENTIFIER
prefixset IDENTIFIER
prefixsegments SEGMENTS
prefixconnector TEXT

Description

The first (and optional) argument can be used to specify the element, which reference should be customized. When “float” is used, the setting affects all kind of floats which are created with \definefloat but also only certain float types can be changed when the name of the float is being used, e.g. figure or table. When the layout for a heading should be changed, the name of it, e.g. chapter or section needs to be specified.

The second argument specifies the reference type, the values of these types are “number”, “page”, “title”, … (see above). When referring to a section or float with the \in command, context uses the “default” type and when referring using the \at command, it uses the “page” type.

With the third argument it can be controlled which prefixes (section numbers which are shown in front of a floats own counter value) are shown and how they should be formatted (see References).

Example

\setupreferencestructureprefix [default] [prefixsegments=2:4]

See also

\definestructureseparatorset, References

Help from ConTeXt-Mailinglist/Forum

All issues with: