From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19464 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Problem with the bib module (yeah, so what else is new) Date: Wed, 30 Mar 2005 18:17:29 +0200 Message-ID: <20050330161729.GE5793@puritan.pcp.ath.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112199473 6842 80.91.229.2 (30 Mar 2005 16:17:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 16:17:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 18:17:51 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGfrt-0006HD-81 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2005 18:16:33 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03125128DE; Wed, 30 Mar 2005 18:17:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20043-06-3; Wed, 30 Mar 2005 18:17:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD3F2128D9; Wed, 30 Mar 2005 18:17:30 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 112A5128D9 for ; Wed, 30 Mar 2005 18:17:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20043-06-2 for ; Wed, 30 Mar 2005 18:17:28 +0200 (CEST) Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by ronja.ntg.nl (Postfix) with ESMTP id 28664128D4 for ; Wed, 30 Mar 2005 18:17:28 +0200 (CEST) Original-Received: from puritan.pcp.ath.cx ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050330161727.OHMC25559.mxfep01.bredband.com@puritan.pcp.ath.cx> for ; Wed, 30 Mar 2005 18:17:27 +0200 Original-Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id C9ED7AF75C; Wed, 30 Mar 2005 18:17:29 +0200 (CEST) Original-To: NTG-context List Mail-Followup-To: NTG-context List Content-Disposition: inline User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19464 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19464 OK, another one of those "hey, the bib module has an issue"-kind of mails. The problem is that \bibdoif and its relatives don't work. They always evaluate to true. I have tried to figure out why this is so, but I'm just not good enough at reading TeX macros (yet). The main problem is that I want to do something like this for my \setuppublicationlist: \doglobal\newif\ifBIBLoutputbeforesurname \global\BIBLoutputbeforesurnamefalse \def\BIBLwholename#1#2#3#4#5% {\bibdoif{#1}{#1\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}% \bibdoif{#4}{#4\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}% \bibdoif{#2}{#2\unskip\bibalternative\c!vonsep\BIBLoutputbeforesurnametrue}% \ifBIBLoutputbeforesurname \else \unskip% \BIBLoutputbeforesurnamefalse% \fi #3\bibalternative\c!surnamesep% \bibdoif{#5}{#5\unskip}} The problem is that one can't have \author[]{}[]{}{Organization} without extra spaces appearing before the Organization. Another issue is that extra spaces occur between the first and last name in the \normalauthor style, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}