Changes

Jump to navigation Jump to search
148 bytes added ,  09:26, 15 September 2008
* <cmd>startregister</cmd><tt>[index][mymouse]{mouse}</tt> ... <cmd>stopregister</cmd><tt>[index][mymouse]</tt>: to mark several pages for the same entry; becomes e.g. "mouse 12--16". Note that if you have two or more of these ranges, you need them to have different <tt>[key]</tt> values to stop the system treating them as part of a great big range. So, use <cmd>startregister</cmd><tt>[index][mymouse1]{mouse}</tt> ... <cmd>stopregister</cmd><tt>[index][mymouse1]</tt> and then <cmd>startregister</cmd><tt>[index][mymouse2]{mouse}</tt> ... <cmd>stopregister</cmd><tt>[index][mymouse2]</tt> to get two independent ranges in the list. <cmd>startregister</cmd> takes four arguments, of which two are mandatory: <cmd>startregister</cmd><tt>[NAME_OF_REGISTER]{ENTRY_NAME}</tt>. The other arguments are <tt>[KEY_FOR_RANGE]</tt> and <tt>[KEY_FOR_SORTING]</tt>. To give an example: <cmd>startregister</cmd><tt>[index][levi][Levi-Strauss]{Lévi|-|Strauss}</tt>. This will start a range with the key <tt>levi</tt> which will put the entry "Lévi-Strauss" in the register "index" (the "normal" register) and sort it under "Levi-Strauss." To mark the end of the range, you write <cmd>stopregister</cmd><tt>[index][levi]</tt>.
* Automatically collapse page ranges: <cmd>placeindex[compress=yes]</cmd>
* <cmd>writetoregister</cmd> (sometimes needed to avoid macro expansion issues)
* A register per chapter: <cmd>placeregister</cmd><tt>[index][criterium=chapter]</tt>
* Place a word in text ''and'' index: <tt>\def\Tindex#1{\index{#1}#1}</tt> -- Please someone enhance this to get space correction, [] sorting etc.!
* Cross reference: <cmd>seeindex{senatus populusque romanus }{SPQR}</cmd>
* The name that you will get in the head of \completeregister can be set with: \setupheadtext[register=My new index]
Anonymous user

Navigation menu