On 9/25/2008 10:07 AM, Taco Hoekwater wrote:
Matthias Wächter wrote:
I would suggest you put your .bst into, say, cont-my.bst and issue the command
\def\bibstyle{cont-my}
right after executing \setupbibtex
That won't work, the .aux file is written by \writeauxfile.
For whatever reason, the .aux file contained \bibstyle{cont-my} in my tests …
But you could replace the whole \setupbibtex command with this:
\unprotect \def\@@pbdatabase{..your bib file ..} \def\bibstyle{cont-my} \writeauxfile \protect
right. So the attached would be an appropriate long-term patch then?
- Matthias
--- texmf-context/doc/context/bib/bibmod-doc.tex.orig 2006-09-15 11:52:34.000000000 +0200
+++ texmf-context/doc/context/bib/bibmod-doc.tex 2008-09-25 11:33:30.828125000 +0200
@@ -353,6 +353,7 @@
`author' (\type{cont-au.bst}) sorts alphabetically on author and within that on year,
`title' (\type{cont-ti.bst}) sorts alphabetically on title and then on author and
year, and `short' (\type{cont-ab.bst}) sorts on the short key that is generated
+ by \BIBTEX. If \type{FILE} is given, it specifies an individual \type{.bst} file name used
by \BIBTEX.\NC\NR
\stoptabulate
--- texmf-context/tex/context/bib/t-bib.tex.orig 2008-04-17 17:02:02.000000000 +0200
+++ texmf-context/tex/context/bib/t-bib.tex 2008-09-25 11:15:01.734375000 +0200
@@ -300,15 +300,14 @@
\def\dosetupbibtex[#1]%
{\let\@@pbdatabase\empty
- \let\@@pbsort \empty
- \getparameters[\??pb][#1]%
+ \getparameters[\??pb][sort=\s!default,#1]%
\expanded{\processaction[\@@pbsort]}
[ \v!no=>\def\bibstyle{cont-no},
\v!author=>\def\bibstyle{cont-au},
\v!title=>\def\bibstyle{cont-ti},
\v!short=>\def\bibstyle{cont-ab},
\s!default=>\def\bibstyle{cont-no},
- \s!unknown=>\def\bibstyle{cont-no}]%
+ \s!unknown=>\def\bibstyle{\@@pbsort}]%
\ifx\@@pbdatabase\empty\else \writeauxfile \fi}
\dosetupbibtex[bibtex=bibtex]
--- texmf-context/tex/context/interface/t-bib.xml.orig 2006-09-15 11:52:06.000000000 +0200
+++ texmf-context/tex/context/interface/t-bib.xml 2008-09-25 11:27:16.953125000 +0200
@@ -266,6 +266,7 @@