From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55047 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: bibliography authoryears problem Date: Fri, 04 Dec 2009 19:32:42 +0100 Message-ID: <4B1955CA.4000307@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259951584 13912 80.91.229.12 (4 Dec 2009 18:33:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2009 18:33:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 04 19:32:57 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGcxd-0005Q0-0O for gctc-ntg-context-518@m.gmane.org; Fri, 04 Dec 2009 19:32:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9252C9D08; Fri, 4 Dec 2009 19:29:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nYiz45HmwhfX; Fri, 4 Dec 2009 19:29:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 686ADC9CEC; Fri, 4 Dec 2009 19:29:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 713FFC9CEC for ; Fri, 4 Dec 2009 19:29:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ld1I+m6RQixH for ; Fri, 4 Dec 2009 19:29:31 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 05CA4C9CE8 for ; Fri, 4 Dec 2009 19:29:30 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 9951-1713362 for ; Fri, 04 Dec 2009 19:31:21 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55047 Archived-At: Michael Green wrote: > On Dec 4, 2009, at 3:00 AM, ntg-context-request@ntg.nl wrote: > >> >> Message: 4 >> Date: Fri, 04 Dec 2009 09:23:13 +0100 >> From: Taco Hoekwater >> To: mailing list for ConTeXt users >> Subject: Re: [NTG-context] bibliography authoryears problem >> Message-ID: <4B18C6F1.5090803@elvenkind.com> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> >> Hi, >> >> Michael Green wrote: >>> When using refcommand=authoryears and Mk IV the first reference is >>> formatted incorrectly. >>> >>> There is the left parenthesis, then a line break, then the rest of the >>> reference followed by the right parenthesis. >> >> Here is the cause: the first \cite in mkiv internally runs >> \usepublications[\jobname]. This inputs bib-test.bbl, which >> contains a \par, and that is where the new line comes from. >> >> A workaround is to add >> >> \usepublications[\jobname] >> >> in the document preamble. >> >> It works in mkii because in mkii, that command is executed at >> \starttext. >> >> For Hans: perhaps \usemodule[bib] should run the command? I know that >> is supposed to be obsolete, but I assume you do not want to use the >> odd logic from mkii in mkiv. >> >> Best wishes, >> Taco >> > > That solves both the problems I noted. Thanks! \unprotect \def\dousepublications#1% {\doonlyonce{#1.\f!bibextension} {\let\@@savedpar\par \let\par\ignorespaces \ifhmode\kern\zeropoint\fi \readfile{#1.\f!bibextension} {\showmessage\m!publications{4}{#1.\f!bibextension}} {\showmessage\m!publications{2}{#1.\f!bibextension}}% \ifhmode\removeunwantedspaces\fi \let\par\@@savedpar}} \protect should also work ... the reason for the automatic loading is that it circumvents problems with projects, products, components etc where settings can come after teh first starttext so that's not the best hook then of course implicit loading as suggested by taco is the best ----------------------------------------------------------------- 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 ___________________________________________________________________________________