ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: bibmodule acquired problem
Date: Sun, 25 Sep 2011 17:58:55 +0000	[thread overview]
Message-ID: <116E73AB-3E37-4E22-964C-25C62D70EE1F@uva.nl> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2011-09-25 17:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-25 17:58 Meer, H. van der [this message]
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

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=116E73AB-3E37-4E22-964C-25C62D70EE1F@uva.nl \
    --to=h.vandermeer@uva.nl \
    --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).