ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bibmodule acquired problem
@ 2011-09-25 17:58 Meer, H. van der
  2011-09-27  8:03 ` Hans van der Meer
  0 siblings, 1 reply; 13+ messages in thread
From: Meer, H. van der @ 2011-09-25 17:58 UTC (permalink / raw)
  To: NTG ConTeXt

I used the following macro for typsetting literature references in footnotes. It worked without problems until now, but then I didn't use the bib module for some time.
It looks like a problem has crept in with the <inproceedings> type.

the macro setup:

\usepublications	[literature]
\setuppublications	[alternative=apa]
\setuppublications	[numbering=short,refcommand=data]
\setuppublicationlist [%
	editor=\normalauthor,%
	author=\normalauthor,%
	artauthor=\normalauthor]
\setuppublicationlist[firstnamesep={ },surnamesep={}]
\def\bibentry#1{\bibentrypar
	\doifemptyelse{#1}{\def\bibentryspace{}}{\def\bibentryspace{\ }}%
	\cite[data][#1]\strut}
\def\footnotecite{\dodoubleargument\dofootnotecite}
\def\dofootnotecite[#1][#2]{%
	\def\bibentrypar{\def\bibentrypar{\par}}%
	\unskip\footnote{\processcommalist[#1]\bibentry
	\doifnotempty{#2}{\bibentryspace#2\strut\par}} }

It fails for the following entry:
\startpublication[k=campbell:92,t=inproceedings,
a={{Campbell},{Wiener}},y=1992,
n=54,s=CW92]
\author[]{K.~W.}[K.~W.]{}{Campbell}
\author[]{M.~J.}[M.~J.]{}{Wiener}
\pubyear{1992}
\arttitle{{DES is not a group}}
\crossref{crypto92}
\pages{512--517}
\pubname{Springer-Verlag}
\stoppublication

But it works ok when <inproceedings> is replaced by <book>.

The error message:
<to be read again> 
                   \pbd: 
\bibgetvart #1->\csname pbd:#1\endcsname 
                                         \plussix 
\bibalternative ... \??pv \@@currentalternative #1
                                                  \endcsname 
\dotypesetapublication ...ative {\bibgetvart {#1}}
                                                  \removeunwantedspaces \egr...
\next3 #1,->\dobibdata {#1}
                           \doprocesscommaitem 
\doprocesscommalist ...item \gobbleoneargument #1,
                                                  ]\relax \global \advance \...
...
l.34 \par

Hans van der Meer

___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-09-27 14:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 17:58 bibmodule acquired problem Meer, H. van der
2011-09-27  8:03 ` Hans van der Meer
2011-09-27  8:07   ` Meer, H. van der
2011-09-27  8:41     ` Meer, H. van der
2011-09-27 10:09       ` Stefan Müller
2011-09-27 10:35         ` Meer, H. van der
2011-09-27 10:50           ` Stefan Müller
2011-09-27 11:33             ` Meer, H. van der
2011-09-27 12:12               ` Stefan Müller
2011-09-27 12:51               ` Meer, H. van der
2011-09-27 12:56                 ` Taco Hoekwater
2011-09-27 13:07                   ` Stefan Müller
2011-09-27 14:23                     ` Meer, H. van der

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