* Bib: Cite with alternative=data fails
@ 2009-10-31 13:01 Andreas Schneider
2009-10-31 15:03 ` Taco Hoekwater
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schneider @ 2009-10-31 13:01 UTC (permalink / raw)
To: ntg-context
In the context minimals' bib mod, \cite[alternative=data][...] fails with
the following error:
! Undefined control sequence.
\@@pvdatainbook ... }{\egroup . }{\insertcrossref
{ in~}{}{. }}}
{\insertseri...
\dotypesetapublication ...ve {\getvalue {pbdt-#1}}
\fi \egroup
\next1 #1,->\dobibdata {#1}
\doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
]\relax \global \advance
\...
\bibdataref ...e \processcommalist [#1]\dobibdata
\bibalternative \v!right
\docite ...alue {bib\@@currentalternative ref}[#2]
\else \processcommalist
[#...
l.158 ...alternative=data][lippe_evolutionre_2006]
Is that still supposed to work and/or is there another alternative to
display the full citation info?
Btw. the current beta minimals don't contain the bib documentation (at least
there is no PDF regarding bib in my whole context tree).
Thanks in advance,
Andreas Schneider.
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Bib: Cite with alternative=data fails
2009-10-31 13:01 Bib: Cite with alternative=data fails Andreas Schneider
@ 2009-10-31 15:03 ` Taco Hoekwater
2009-10-31 15:39 ` Andreas Schneider
0 siblings, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2009-10-31 15:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
Andreas Schneider wrote:
> In the context minimals' bib mod, \cite[alternative=data][...] fails with
> the following error:
>
> ! Undefined control sequence.
> \@@pvdatainbook ... }{\egroup . }{\insertcrossref
> { in~}{}{. }}}
> {\insertseri...
Did this work earlier? It wouldn't surprise me if it was broken
in older versions as well.
As usual, a small selfcontained test file would be most helpful and
would increase the chance of an actual solution by a fair amount.
Best wishes,
Taco
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Bib: Cite with alternative=data fails
2009-10-31 15:03 ` Taco Hoekwater
@ 2009-10-31 15:39 ` Andreas Schneider
2009-11-01 7:54 ` Taco Hoekwater
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schneider @ 2009-10-31 15:39 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
Taco Hoekwater wrote:
> Did this work earlier? It wouldn't surprise me if it was broken
> in older versions as well.
Sorry, I didn't want to imply that the problem was introduced in the latest
version - it might as well be there for some time now. The last time I
compiled the document in question was end of July.
I attached a representative example document.
Since details often matter: I need alternative=data to put the whole
citation information into footnotes. So if alternative=data is not the right
approach, I would be happy to learn how to do it better :)
Best regards,
Andreas.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: bibtest.tex --]
[-- Type: text/x-tex; name="bibtest.tex", Size: 903 bytes --]
\mainlanguage[de]
\enableregime[utf]
\usemodule[bib]
\setuppublications[alternative=apa-de]
\setuppublicationlist[artauthor=\invertedshortauthor,author=\invertedshortauthor]
\startpublication[k=cheng_tutorial_1999,t=article,
a={{Cheng},{Gen}},y=1999,
u={http://search.ebscohost.com/login.aspx?direct=true\&db=bth\&AN=2204993\&sit%
e=ehost-live},
n=2,s=CG99]
\artauthor[]{Runwei}[R.]{}{Cheng}
\artauthor[]{Mitsuo}[M.]{}{Gen}
\pubyear{1999}
\arttitle{A tutorial survey of job-shop scheduling problems using genetic
algorithms}
\journal{Computers \& Industrial Engineering}
\issn{0360-8352}
\volume{36}
\pages{343-364}
\month{4}
\keywords{Genetic algorithms}
\biburl{http://search.ebscohost.com/login.aspx?direct=true\&db=bth\&AN=2204993%
\&site=ehost-live}
\stoppublication
\starttext
This is some short test.
\cite[alternative=data][cheng_tutorial_1999]
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bib: Cite with alternative=data fails
2009-10-31 15:39 ` Andreas Schneider
@ 2009-11-01 7:54 ` Taco Hoekwater
2009-11-01 11:03 ` Andreas Schneider
2009-11-01 18:31 ` Hans Hagen
0 siblings, 2 replies; 6+ messages in thread
From: Taco Hoekwater @ 2009-11-01 7:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
Andreas Schneider wrote:
>
> Sorry, I didn't want to imply that the problem was introduced in the latest
> version - it might as well be there for some time now. The last time I
> compiled the document in question was end of July.
Looks like a conversion error in the core module. The token list
\initializebibdefinitions
should not be executed at the start of \typesetpubslist, but at the
start of every separate \dotypesetapublication. The two affected macros
should ook like this for mark iv (bibl-tra.mkiv):
\def\typesetpubslist
{\dobeginoflist
% \the\initializebibdefinitions % COMMENTED
\edef\currentlist{pubs}%
\doif{\listparameter\c!criterium}\v!cite
{\setuplist[pubs][\c!criterium=\v!here]}%
\ctxlua{bibtex.hacks.reset(\number\bibtexoncemode)}%
\placestructurelist{pubs}%
{\listparameter\c!criterium}{\listparameter\c!number}%
\ctxlua{bibtex.hacks.flush("\@@pbsorttype")}%
\doendoflist}
\def\dotypesetapublication#1%
{\bgroup
\the\initializebibdefinitions % NEW
\def\@@currentalternative{:l:}%
\presetbibvariables
\let\biblanguage\empty
\ignorespaces
\bibgetvard{#1}%
\bibalternative{\bibgetvart{#1}}%
\egroup}
The change for mkii is similar but the macros are a bit different
(bibl-tra.mkii)
If you wrap these two definitions in \unprotect ... \protect, you can
add them to your document preamble until the change appears in the next
update.
Best wishes,
Taco
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Bib: Cite with alternative=data fails
2009-11-01 7:54 ` Taco Hoekwater
@ 2009-11-01 11:03 ` Andreas Schneider
2009-11-01 18:31 ` Hans Hagen
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schneider @ 2009-11-01 11:03 UTC (permalink / raw)
To: ntg-context
Taco Hoekwater wrote:
> Looks like a conversion error in the core module. The token list
> ...
> If you wrap these two definitions in \unprotect ... \protect, you can
> add them to your document preamble until the change appears in the next
> update.
Thank you for fixing this so fast :)
The support for ConTeXt is really impressive and imho much better then most
commercial "alternatives" (although there probably is no real alternative to
the typesetting capabilities of TeX).
Thanks again and best regards,
Andreas.
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Bib: Cite with alternative=data fails
2009-11-01 7:54 ` Taco Hoekwater
2009-11-01 11:03 ` Andreas Schneider
@ 2009-11-01 18:31 ` Hans Hagen
1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2009-11-01 18:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Taco Hoekwater wrote:
> The change for mkii is similar but the macros are a bit different
> (bibl-tra.mkii)
hopefully fixed right in the beta
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2009-11-01 18:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-31 13:01 Bib: Cite with alternative=data fails Andreas Schneider
2009-10-31 15:03 ` Taco Hoekwater
2009-10-31 15:39 ` Andreas Schneider
2009-11-01 7:54 ` Taco Hoekwater
2009-11-01 11:03 ` Andreas Schneider
2009-11-01 18:31 ` Hans Hagen
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).