ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Registers and getparameters
@ 2018-01-22 18:53 Otared Kavian
  2018-01-22 19:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2018-01-22 18:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I have a list of speakers (and abstracts of their talk) in a rather long document, and the name of each speaker is written to a register named speakers. 
Then with the command \getparameters[Talk] I get the name of each speaker and try to write it to the register with

	\speakers{\TalkSpeakerName}

Indeed this does not work to obtain the result I am looking for: the sorting is indeed under the letter « t », and most importantly the register gets only the last name in the list instead of getting each speaker name.

The following is a (not so minimal…) example. Can anyone help me in this matter?
Thanks in advance for your attention and time!
Best regards: OK

%%% begin register-speaker.tex
\defineregister[speakers]
\setupregister[speakers] [
	style=sansbold,   %% headings
	n=2,          %% columns
	]

\define\MakePageTalk{%
	\reference[ref:\TalkSpeakerName]{}
	{\bi Speaker~:\/} \TalkSpeakerName \speakers{\TalkSpeakerName}.\crlf
	{\bi Title :} \TalkTitle \crlf
	{\bi Time:} \TalkTime \crlf
	{\bi Room :} \TalkRoom\crlf 
	\hairline\par}
	
\starttext 
\getparameters[Talk]%
	[SpeakerName={Gauss},
	Title={Remarks on Number Theory},
	Time={10:30},
	Room={A}]
\MakePageTalk

\page

\getparameters[Talk]%
	[SpeakerName={Poincaré},
	Title={Remarks on Relativity},
	Time={16:30},
	Room={B}]
\MakePageTalk

\page

\getparameters[Talk]%
	[SpeakerName={Dirac},
	Title={Quaternions and the wave equation},
	Time={15:30},
	Room={B}]
\MakePageTalk

\page

\completeregister[speakers]

\stoptext
%%% end register-speaker.tex
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-23 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22 18:53 Registers and getparameters Otared Kavian
2018-01-22 19:26 ` Wolfgang Schuster
2018-01-22 20:39   ` Otared Kavian
2018-01-22 21:38     ` Wolfgang Schuster
2018-01-23  4:12       ` Otared Kavian
2018-01-23  9:19   ` Hans Hagen
2018-01-23 16:54     ` Otared Kavian

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).