[NTG-context] Registers and getparameters

Otared Kavian otared at gmail.com
Tue Jan 23 05:12:28 CET 2018

Hi Wolfgang,

Thanks a lot! Indeed with removing the \doflushatpar and putting the page reference out of the tabulate solves all the problems.

Have a nice day: Otared K.

> On 22 Jan 2018, at 22:38, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:
>> Otared Kavian <mailto:otared at gmail.com> 22. Januar 2018 um 21:39
>> Hi Wolfgang,
>> Thank you very much for your reply and your wise advice to use the \setvariable mechanism. It is indeed much more convenient to use for what I intend to do.
>> The only remaining problem is that when several talks are included in my file (in the following example there three of them), then the entries to the register are correct but the associated pagenumbers are incorrect and are given the last pagenumber: in the following example all three talks are given the pagenumber 4 in the register. Is there something I am doing wrong?
> I moved the link for the page number to the next paragraph because putting the reference command into the tabulate environment hasn’t worked but in your example the first paragraph starts on the last page. This was necessary because the \pagereference starts a new paragraph which results in an empty line before the table. A way to fix the page number is to omit the \doflushatpar command, the table itself can be moved upwards by a line with a negative vertical skip (\vskip-<dimension>).
> \startbuffer[pagetalk]
>  %\blank
>   \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}%
>   \expanded{\speakers{\getvariable{talk}{speakername}}}%
>   \vskip-\lineheight
>   \starttabulate[|f{\bi}l|p|][before=]%
>   \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
>   \NC Title   \EQ \getvariable{talk}{title}       \NC\NR
>   \NC Time    \EQ \getvariable{talk}{time}        \NC\NR
>   \NC Room    \EQ \getvariable{talk}{room}        \NC\NR
>   \HL
>   \stoptabulate
> \stopbuffer
> Wolfgang
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180123/3604d552/attachment.html>

More information about the ntg-context mailing list