ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Matthias Wächter" <matthias@waechter.wiz.at>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Fun with Bibtex
Date: Thu, 25 Sep 2008 09:58:11 +0200	[thread overview]
Message-ID: <48DB4493.1000806@waechter.wiz.at> (raw)
In-Reply-To: <20080924210128.18790@gmx.net>

On 9/24/2008 11:01 PM, Peter Daum wrote:
> Hi all
> 
> I'm using Taco's Bibtex module and got some problems with it.
> 
> \setupbibtex[database=xxxxxx,sort=author]
> \setuppublications[alternative=apa-de,refcommand=authoryear,monthconversion=month]
> \placepublications[criterium=all]
> 
> ... works fine. The references list contains only publications referenced in the document.
> 
> Unfortunately, I was forced to use a special bst file, since I needed to change the fields of the entrytype "misc". As I didn't find a way to make ConTeXt or texexec aware of this new file living in my document's directory, I deleted the database parameter, customised the aux file and ran bibtex by myself.
> 
> The problem is, that, with the new method, only a very small subset of the referenced publication makes it into the list. If I add "criterium=all" to the setuppublications command, I get the whole database, whether the pub is referenced or not.
> 
> Any ideas?

After reading t-bib.tex:

[…]
\def\setupbibtex{\dosingleempty\dosetupbibtex}

\def\dosetupbibtex[#1]%
  {\let\@@pbdatabase\empty
   \let\@@pbsort    \empty
   \getparameters[\??pb][#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}]%
   \ifx\@@pbdatabase\empty\else \writeauxfile \fi}

[…]

I would suggest you put your .bst into, say, cont-my.bst and issue
the command

\def\bibstyle{cont-my}

right after executing \setupbibtex

- Matthias
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2008-09-25  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 21:01 Peter Daum
2008-09-24 22:29 ` Mojca Miklavec
2008-09-25  7:58 ` Matthias Wächter [this message]
2008-09-25  8:07   ` Taco Hoekwater
2008-09-25  9:37     ` Matthias Wächter
2008-09-25  9:47       ` Taco Hoekwater

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=48DB4493.1000806@waechter.wiz.at \
    --to=matthias@waechter.wiz.at \
    --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).