ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: WolfgangZ <wollez@gmx.net>
To: ntg-context@ntg.nl
Subject: strange index behaviour with entries inside separatedlist
Date: Fri, 12 Apr 2013 08:10:26 +0200	[thread overview]
Message-ID: <kk88ge$j3c$1@ger.gmane.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

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


[-- Attachment #2: test.pdf --]
[-- Type: application/x-as400attachment, Size: 18412 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: text/plain, Size: 3553 bytes --]

\setupinteraction[state=start]
\usemodule[database]%
\mainlanguage[de] % for hyphenation
\setupbodyfont[sans,10pt]
\setuppagenumbering[alternative=doublesided] %sets doublesided print
\setuplayout[topspace=14.5mm,header=12mm,backspace=22.5mm,footer=12.6mm,height=258.2mm, footerdistance=4.3mm, rightmargin=41.05mm,headerdistance=0mm,leftmargin=6.3mm,width=131.7mm,location=doublesided,grid=yes,doublesided=yes]
% colors
\setupcolors[state=start,rgb=yes]

\startsetups[MyTable]
    \switchtobodyfont[8pt]
    \setupTABLE[frame=off,background=color,backgroundcolor=red]
    \setupTABLE[column][1][width=44.25mm,align=right]%,style=bf
    \setupTABLE[column][2][width=broad,align=right]
\stopsetups

\defineseparatedlist
  [MyTable]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTable]
   
\startsetups[MyTableWrong]
    \switchtobodyfont[8pt]
    \setupTABLE[frame=off,background=color,backgroundcolor=green]
    \setupTABLE[column][1][width=15.0mm,align=right]%,style=bf
    \setupTABLE[column][2][width=broad,align=right]
    \setupTABLE[column][3][width=17.0mm,align=right]
    \setupTABLE[column][4][width=17.0mm,align=right]
    \setupTABLE[column][5][width=25.0mm,align=right]
\stopsetups

\defineseparatedlist
  [MyTableWrong]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTableWrong]

\defineregister[Correctliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Correctliste][coupling=yes]
 \def\Listright#1{\Correctliste{#1}{#1}}

\defineregister[Wrongliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Wrongliste][coupling=yes]
 \def\Listwrong#1{\Wrongliste{#1}{#1}}

 
 
\chapter{F30000\\ asdf asdf asdf asdf}

\section{Section}
\language[DE]
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf

asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf
\section{Liste Right}
\Listright{Fux}; \Listright{Zha} 
These entries get correct page references.

\section{Liste Wrong}
\startMyTableWrong
V001	\Listwrong{ListEntry1}	09.12.2005	01.01.3000	text
V002	\Listwrong{Listentry2}	01.01.2004	01.01.3000	text
\stopMyTableWrong

% These entries are wrong, only in case that there is no further text line below. For testing, uncomment this line. 

\section{Details}
 
\startMyTable
Anm:	ABC
Andatum:	5/10/1994
Anummer:	08/545,845
Pub:	
Pubnummer:	
Ert:	12/23/1997
Ertnummer:	5,700,527
\stopMyTable

\startMyTable
Anm:	LL
Andatum:	5/10/1994
Annummer:	2303
Pub:	3/6/1996
Pubnummer:	0699257
Ert:	1/8/1997
Ertnummer:	257B1
\stopMyTable


\chapter{Index: Correct}
\placeregister[Correctliste]
  
\chapter{Index: Wrong}
\placeregister[Wrongliste]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2013-04-12  6:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12  6:10 WolfgangZ [this message]
2013-04-12  8:29 ` Wolfgang Schuster
2013-04-12  9:59   ` Hans Hagen
2013-04-12 10:59   ` WolfgangZ
2013-04-12 12:07     ` Hans Hagen
2013-04-15  6:54       ` Wolfgang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kk88ge$j3c$1@ger.gmane.org' \
    --to=wollez@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).