From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39837 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: t-bib: URL and '%'; spacing between number and text Date: Fri, 04 Apr 2008 14:52:28 +0200 Message-ID: <47F6248C.70104@net-b.de> References: <47EA8C68.4010203@net-b.de> <47F0F274.40501@elvenkind.com> <47F55D35.7030401@net-b.de> <47F5F754.1010204@elvenkind.com> <47F60504.5090701@net-b.de> <47F608AD.1060505@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020607060102050903030204" X-Trace: ger.gmane.org 1207313673 15873 80.91.229.12 (4 Apr 2008 12:54:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 12:54:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 04 14:55:05 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JhlRa-0005uc-Vx for gctc-ntg-context-518@m.gmane.org; Fri, 04 Apr 2008 14:54:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 882B21FC61; Fri, 4 Apr 2008 14:54:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00977-01-7; Fri, 4 Apr 2008 14:53:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A4AE21FB38; Fri, 4 Apr 2008 14:53:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C50431FA2B for ; Fri, 4 Apr 2008 14:53:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00884-01-4 for ; Fri, 4 Apr 2008 14:53:04 +0200 (CEST) Original-Received: from mail1.physik.fu-berlin.de (mail1.physik.fu-berlin.de [160.45.35.12]) by ronja.ntg.nl (Postfix) with ESMTP id E8A861FC57 for ; Fri, 4 Apr 2008 14:52:36 +0200 (CEST) Original-Received: from ith.physik.fu-berlin.de ([160.45.32.115] helo=[127.0.0.1]) by mail1.physik.fu-berlin.de with esmtp (Exim 4.63) (envelope-from ) id 1JhlPB-0003Rz-M3; Fri, 04 Apr 2008 14:52:36 +0200 User-Agent: Thunderbird 2.0.0.12 (X11/20071114) In-Reply-To: <47F608AD.1060505@elvenkind.com> X-ZEDV-Virus-Scanned: No viruses found. [ClamAV 0.92/6581/Fri Apr 4 14:08:16 2008] X-ZEDV-Spam-Level: -- X-ZEDV-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on zs01.physik.fu-berlin.de X-ZEDV-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 X-ZEDV-Spam-Report: * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Scan-Signature: c223992c703eb079acf831b1e8246b2b X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:39837 Archived-At: This is a multi-part message in MIME format. --------------020607060102050903030204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Taco Hoekwater wrote: >> It does not seem to work here :-( >> > It redefines the bbl loader, so inlined \startpublication blocks > will not work. It should work if your publications are in the bbl > file. > OK. That works for my minimal example, though I have to postprocess the *.bbl file as BibTeX converts "longline" into long% line which of cause gives the wrong result here. I use perl for this, which seems to work just fine and has, as I believe, no side effects: $line =~ s/%\n//sg; However, it fails with my big file (see attachment for a reduced example). If I simply include the file without using \environment etc., it works. Any idea? >>> Not too hard, if you don't mind editting the bib / bbl a bit; >>> making it truly automatic and still configurable would be hard. >>> Example attached. >>> Now it works well. Thanks. * * * I have another tricky question related to t-bib: I want to use in the text references of the type [1-2], [3] and at the end of each chapter I do a \placepublication[criterium=chapter], however, at the very end I want to have a full authorlist ordered by authoryears (with the page numbers). Well, I failed to switch to authornames -- I always get a numbered list at the end. Tobias --------------020607060102050903030204 Content-Type: application/x-tex; name="test2b.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test2b.tex" \startproject test2b \environment environment %\input environment \starttext \cite[DiracQuote] \placepublications \stoptext \startproject test2b --------------020607060102050903030204 Content-Type: application/x-tex; name="environment.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="environment.tex" \startenvironment environment \usemodule[bib] \setupbibtex[database=test2b] \setuppublications[alternative=aps] \setuppublications[numbering=yes,refcommand=num] %,numbercommand=\MyBibNumber] %,refcommand=number|num] % start fix % Allow '%' in URLs, see ntg-context, 4 April 2008, 11:39 CEST % Needs to come after \usemodule[bib] \unprotect \def\dousepublications#1% {\doonlyonce {#1.\f!bibextension} {\readfile{#1.\f!bibextension} {\catcode`\%=12 \showmessage\m!bib{4}{#1.\f!bibextension}} {\showmessage\m!bib{2}{#1.\f!bibextension}}}} % end fix \protect \stopenvironment \endinput --------------020607060102050903030204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------020607060102050903030204--