From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/574 Path: news.gmane.org!not-for-mail From: Andrea Rossato Newsgroups: gmane.text.pandoc Subject: Re: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Wed, 1 Dec 2010 14:03:17 +0100 Message-ID: <20101201130317.GI10338@eeepc.istitutocolli.org> References: <20101121193229.GB25657@protagoras.phil.berkeley.edu> <4CE9AABB.1070705@informatik.uni-marburg.de> <4CEC6A61.1000309@trizeps.ch> <20101124033315.GC25133@protagoras.phil.berkeley.edu> <20101124050631.GA28014@protagoras.phil.berkeley.edu> <4CF43B30.9050400@trizeps.ch> <20101201032556.GA28952@protagoras.phil.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291208617 31467 80.91.229.12 (1 Dec 2010 13:03:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 13:03:37 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCNzq99GEChCZj9nnBBoEb1L1KQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 01 14:03:29 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wy0-f186.google.com ([74.125.82.186]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNmLI-0007Qt-T6 for gtp-pandoc-discuss@m.gmane.org; Wed, 01 Dec 2010 14:03:28 +0100 Original-Received: by wyb36 with SMTP id 36sf5379995wyb.3 for ; Wed, 01 Dec 2010 05:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received:received:date:from:to :subject:message-id:references:mime-version:in-reply-to :x-pgp-fingerprint:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=tC1OvV7Tej4uA2+oo5nMumoCjIjiquJCdFjsisv4EMc=; b=y59E6FYsaGsGAiXIlFdwMQw61K23JkQwEjhr8kA2JnVBRpU3UAR3X0iHc/f/R1snwQ WeGGQS4RWnEV9Pz93UsLSdwMaY03PJCpAxtxDCJJJKoBy0JACzQCRRmpAhK8t1Yis9N3 fkyr1mciYo4DnXjPKsVF+c/8sSRR1ynDsVBtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id:references :mime-version:in-reply-to:x-pgp-fingerprint:x-pgp-key:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-disposition; b=4bllAjVSfZFv5F5ihK3FzNH5jMfhoX2xbtfBAl+Kc8eMzORK9OPpWREMa3FiBzievo xMiIOa7n3BK3g1qN/8qAX+/ejcBgKP93ERN2Rsb2jEIUcwfN33TunhQ4QW6FUDlnEdsh 9r2ymGSBwmw0rFjE63F+RZoUCWmGsgO+jMSMU= Original-Received: by 10.216.237.132 with SMTP id y4mr1070674weq.16.1291208601390; Wed, 01 Dec 2010 05:03:21 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.216.62.75 with SMTP id x53ls3154158wec.3.p; Wed, 01 Dec 2010 05:03:20 -0800 (PST) Original-Received: by 10.216.173.67 with SMTP id u45mr524377wel.7.1291208600193; Wed, 01 Dec 2010 05:03:20 -0800 (PST) Original-Received: by 10.216.173.67 with SMTP id u45mr524376wel.7.1291208600140; Wed, 01 Dec 2010 05:03:20 -0800 (PST) Original-Received: from gorgias.mine.nu (host118-2-static.225-95-b.business.telecomitalia.it [95.225.2.118]) by gmr-mx.google.com with ESMTP id c2si15545wer.10.2010.12.01.05.03.19; Wed, 01 Dec 2010 05:03:20 -0800 (PST) Received-SPF: neutral (google.com: 95.225.2.118 is neither permitted nor denied by best guess record for domain of andrea.rossato-3IIOeSMMxS4@public.gmane.org) client-ip=95.225.2.118; Original-Received: from eeepc.nowhere.net (localhost [127.0.0.1]) by gorgias.mine.nu (8.14.3/8.14.3) with ESMTP id oB1D3JgC021244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Dec 2010 14:03:19 +0100 Original-Received: from eeepc.nowhere.net (localhost [127.0.0.1]) by eeepc.nowhere.net (8.14.4/8.14.3) with ESMTP id oB1D3Hen011735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 1 Dec 2010 14:03:18 +0100 Original-Received: (from andrea@localhost) by eeepc.nowhere.net (8.14.4/8.14.4/Submit) id oB1D3HCt011733 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Wed, 1 Dec 2010 14:03:17 +0100 In-Reply-To: <20101201032556.GA28952-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> X-PGP-Fingerprint: 6FB5 7A1A C6CB 9136 A001 4E7C 3329 A039 8964 D6D3 X-PGP-Key: http://www.istitutocolli.org/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: andrea.rossato-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 95.225.2.118 is neither permitted nor denied by best guess record for domain of andrea.rossato-3IIOeSMMxS4@public.gmane.org) smtp.mail=andrea.rossato-3IIOeSMMxS4@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:574 Archived-At: On Tue, Nov 30, 2010 at 07:25:56PM -0800, John MacFarlane wrote: > I guess I'm tempted to: > - allow multiple bibliographies That would be easy, indeed. > - specify the source file in the markdown text, as above keep in mind that multiple bibliographic databases should be allowed (for instance to mix bibtex and json data). > I'm not positive this will work, though. As I mentioned, there are technical > hurdles to having the bibliography file specified in the text. The markdown > reader itself can't do IO, so it can't read the file. So we can't read the > bibliography (or even verify that it can be found) until we've parsed the > markdown source. That means that we can't check potential citations as we > parse, to see if they're in the bibliography; instead, we have to parse > everything that might be a citation as a citation. But what if we have a > citation with id "foo" (from "@foo" in the text), but the bibliography > contains no corresponding item? Then we need to reinsert the literal text. > It's easy enough to generate "@foo" from a Cite inline, but what if the Cite > was generated by parsing latex + bibtex? This gets complicated. > > I did think of one solution, which I'd like to get Andrea's feedback on (as > it might require citeproc changes). Currently when we parse a citation, we > just leave the [Inline] part empty; this gets filled in by citeproc when it > processes the citations with the bibliography. > > My suggestion: instead of leaving it empty, fill in the [Inline] part of the > Cite with the literal text that should be included in the document if the > citation isn't found in the database. This way, if citeproc doesn't find the > item, it can simply leave the Cite alone (rather than raising an error). That > seems simple; it just adds a bit of complexity to the parsers, which have to > generate the "replacement text" when they parse a Cite. > > Thoughts? That would be fine with me. But I just wanted to let you know, though, that I modified citeproc so that, when a citation is not found in the bibliographic data, an error is emitted: "[CSL BIBLIOGRAPHIC DATA ERROR: reference " ++ show (citationId c) ++ " not found.]" I don't know if this is going to solve your problem. More generally I'd prefer the metadata approach you were talking about. If this requires more time to get mature I think we could now stick with the present approach: a single bibliography automatically added at the end of the Pandoc document, and multiple bibliographic databases via the command line --bibliography option. That would leave us free to take every possible path for implementing multiple bibliographies and for setting the source biblio data in the source document. These are my preferences but I'll just followed your directions. Andrea