strange index behaviour with entries inside separatedlist
Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed. The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex. I hope anyone can help to explain that functionality. Best regards Wolfgang
Am 12.04.2013 um 08:10 schrieb WolfgangZ
Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed.
The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex.
Put the text before the index entry in your definition in \Listwrong the output is correct: \define[1]\Listwrong{#1\Wrongliste{#1}} Wolfgang
On 4/12/2013 10:29 AM, Wolfgang Schuster wrote:
Am 12.04.2013 um 08:10 schrieb WolfgangZ
: Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed.
The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex.
Put the text before the index entry in your definition in \Listwrong the output is correct:
\define[1]\Listwrong{#1\Wrongliste{#1}}
indeed .. an entry needs to be bound to something and when in vmode it gets bound to the next paragraph (otherwise we get weird spacing interference) .. one of these tex-chicken-egg issues wolfgangs solution is the most efficient and definitely the way to do in when wrapping in macros in this case, the flush is delayed to the next valid paragraph ... anyway, i sort of fixed it for tables .. at some point i will revise the whole binding issue (but it's somewhat tricky as lots of mechanisms then need testing) in the next beta this works : \setupinteraction[state=start] \starttext \bTABLE \bTR \bTD \index{test 1} entry 1 \eTD \eTR \eTABLE \page \bTABLE \bTR \bTD \index{test 2} entry 2 \eTD \eTR \eTABLE \page \placeregister[index][n=1] \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 12.04.2013 10:29, schrieb Wolfgang Schuster:
Am 12.04.2013 um 08:10 schrieb WolfgangZ
: Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed.
The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex.
Put the text before the index entry in your definition in \Listwrong the output is correct:
\define[1]\Listwrong{#1\Wrongliste{#1}}
Wolfgang
Great, this solves the problem! Is it possible to explain the reason for the behavior of context to the order of the text entry and the command? Many thanks for the quick reply. Wolfgang
On 4/12/2013 12:59 PM, WolfgangZ wrote:
Am 12.04.2013 10:29, schrieb Wolfgang Schuster:
Am 12.04.2013 um 08:10 schrieb WolfgangZ
: Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed.
The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex.
Put the text before the index entry in your definition in \Listwrong the output is correct:
\define[1]\Listwrong{#1\Wrongliste{#1}}
Wolfgang
Great, this solves the problem! Is it possible to explain the reason for the behavior of context to the order of the text entry and the command?
in order to track locations we need to inject a so called whatsit which is an invivible but definitely present entity an din order to make this work: test \index{xxx} test \index will bind to the next paragraph when it's a loner otherwise we would get test <whitespace or at least valid breakpoint> \index{xxx} <whitespace or at least valid breakpoint> test which could show up as an unwanted extra whitespace and/or page break with dislocated index entry this kind of behaviour has always been part of context, as we want to be able to do \chapter{...} \index{...} \index{...} \index{...} \index{...} \index{...} some text ... Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 12.04.2013 14:07, schrieb Hans Hagen:
On 4/12/2013 12:59 PM, WolfgangZ wrote:
Am 12.04.2013 10:29, schrieb Wolfgang Schuster:
Am 12.04.2013 um 08:10 schrieb WolfgangZ
: Hello, I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed.
The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex.
Put the text before the index entry in your definition in \Listwrong the output is correct:
\define[1]\Listwrong{#1\Wrongliste{#1}}
Wolfgang
Great, this solves the problem! Is it possible to explain the reason for the behavior of context to the order of the text entry and the command?
in order to track locations we need to inject a so called whatsit which is an invivible but definitely present entity an din order to make this work:
test
\index{xxx}
test
\index will bind to the next paragraph when it's a loner
otherwise we would get
test <whitespace or at least valid breakpoint> \index{xxx} <whitespace or at least valid breakpoint> test
which could show up as an unwanted extra whitespace and/or page break with dislocated index entry
this kind of behaviour has always been part of context, as we want to be able to do
\chapter{...}
\index{...} \index{...} \index{...} \index{...} \index{...}
some text ...
Hans
Many thanks for your answers! Best regards Wolfgang
participants (4)
-
Hans Hagen
-
Wolfgang
-
Wolfgang Schuster
-
WolfgangZ