Changes

Jump to navigation Jump to search
669 bytes added ,  11:28, 30 August 2020
m
fix link to register command
< [[Structurals]] | [[References]] > (It's also in the manual at "Registers")
 
=Basics=
<context mode=mkiv source=yes>
\setuppapersize[A10][A7,landscape]
 
\setuppaper[nx=4, ny=2]
\setuplayout[location=middle,marking=on]
\setuparranging [XY]
 
\definefontfeature [textfigures] [onum=yes]
finally, ''pagestyle'' sets the page number references (slanted).
=== Individiual Individual Entries ===
Better granularity regarding the formatting of individual entries can
be achieved through the ''three-argument'' version of
=More Registers=
<{{cmd>|index</cmd> }} is only one special case of <cmd>{{gen|register</cmd>}}. You can define as much different registers as you like:
<{{cmd>|defineregister</cmd>}}<tt>[singular name][plural name]</tt>, e.g.
<texcode>
\defineregister[mouse][mice]
=Sorting=
The sorting of the index is influenced by the current [[Language CodesLanguages#Language_tags|languagetag]]. You can override that with the {{key|language}} key of {{cmd|setupregister}}.
There are a few additional "languages" for sorting, as defined in {{src|sort-lan.mkiv}}:
* <tt>DIN 5007-1</tt> (German) normal sorting, ß = ss
Note the two possible definitions, and the pitfalls with each one. If you are still having trouble with specific {{cmd|index}} commands, try using the alternative definition. When they are used in the right context, these three possible ways of placing an index term (the plain {{cmd|index}}, or it wrapped in one of the two possible {{cmd|doflushatpar}}s, should solve any problem.
 
=Impact on hyphenation, and on line breaking as a consequence=
 
{{cmd|index}} is attached to a word, so it modifies the word boundaries. That influences its hyphenation and likely the paragraph's line breaking. To prevent that, you can write:
 
<texcode>
This is an indexed term\wordboundary\index{Term}. % instead of simply ... term\index{Term}.
</texcode>
 
That way, ConTeXt knows that the word "term" is ended by the "m" and not by something attached to it by {{cmd|index}}, and the effect on hyphenation and line breaking is the same as if we wrote:
 
<texcode>
This is an indexed term.
</texcode>
 
[[Category:Basics]]

Navigation menu