From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/538 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, 24 Nov 2010 21:51:14 +0100 Message-ID: <20101124205114.GB23284@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> 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 1290631892 23015 80.91.229.12 (24 Nov 2010 20:51:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 20:51:32 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCNzq99GEChDG9bXnBBoEmaEkOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 24 21:51:28 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 1PLMJJ-0006wH-TG for gtp-pandoc-discuss@m.gmane.org; Wed, 24 Nov 2010 21:51:25 +0100 Original-Received: by wyb36 with SMTP id 36sf95951wyb.3 for ; Wed, 24 Nov 2010 12:51:25 -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=W03jGGE8r7w3ERRQVeNaOjOeOkxybrgRLSxqJRekZmg=; b=YdX42ti0LEcP+qd+M0X0EnOOvE0ldjNKqXgnIfMRp2UT7cfxJg+If7AHJUZuQOuHvN l4942c95cDrEe5HCYqKEIyIRG00I6GSUHzXKU/sAwI1wg5b1lN4yb94EBlm69Mg0ZYOL xlIUA8JTCOt5vItXdLbR0fypU7G5Vnd71ngt4= 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=1lH9nxOB+3YjVUsTFy47FHxLbpS58Vtx2+SWrcPOWlYPIXfzlp0s1p8kmF3Vz4BUiL 9BC1q5Y7awnvziPM7JMfo8je9BEjP7s3Mg1hby4ODobx4NpWqh1zBr2q/kRvZ5dUtfHQ 45tyFdef7vyyHZKGi7GVvuA6zu7AO8WHbwlsY= Original-Received: by 10.216.187.5 with SMTP id x5mr546610wem.25.1290631878702; Wed, 24 Nov 2010 12:51:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.227.198.213 with SMTP id ep21ls441307wbb.2.p; Wed, 24 Nov 2010 12:51:17 -0800 (PST) Original-Received: by 10.227.146.130 with SMTP id h2mr412313wbv.22.1290631877532; Wed, 24 Nov 2010 12:51:17 -0800 (PST) Original-Received: by 10.227.146.130 with SMTP id h2mr412312wbv.22.1290631877496; Wed, 24 Nov 2010 12:51:17 -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 h9si1081028wbe.0.2010.11.24.12.51.17; Wed, 24 Nov 2010 12:51:17 -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 oAOKpGar032594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Nov 2010 21:51:16 +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 oAOKpFux018819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 24 Nov 2010 21:51:15 +0100 Original-Received: (from andrea@localhost) by eeepc.nowhere.net (8.14.4/8.14.4/Submit) id oAOKpE4D018818 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Wed, 24 Nov 2010 21:51:14 +0100 In-Reply-To: <20101124050631.GA28014-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:538 Archived-At: On Tue, Nov 23, 2010 at 09:06:32PM -0800, John MacFarlane wrote: > PS. I'm sorely tempted to put off implementing these complexities > til later, and release a simple version of pandoc/citeproc that just > constructs a bibliography of works cited in the document and puts > them at the end, more or less the way it does now. The one twist > I'd add would be this: the bibliography is inserted only if the > document ends with a Header. That way you could suppress the > bibliography by not ending with a Header. If you do not want a bibliography you can just remove the element from a style. This is the cleaner way to do it I think. > We could keep this convention later even if we implemented a > element. So existing documents would not break. > > What we'd be missing: > > - ability to have multiple bibliographies > - ability to include works not cited in bibliographies > - ability to suppress works cited in bibbliographies > - ability to filter bibliographies by fields (e.g. source=primary) > > These things would be nice for some users, but they add a lot of > complexity and could be implemented later. I'm working to get the filtering options done. citeproc type signature must be changed and I'd prefer to do it before a new release (since the API has already been changed). citeproc would become: citeproc :: ProcOpts -> Style -> [Reference] -> Citations -> BiblioData with data ProcOpts = ProcOpts { bibOpts :: [BibOpts] } (the record could be extended at a later time). And: data BibOpts = Select [(String, String)] | Include [(String, String)] | Exclude [(String, String)] | Quash [(String, String)] (the tuple is (field,value)) Multiple bibliographies would require calling citeproc for everyone. This means splitting the pandoc document - in other words, partially rewriting Pandoc.Biblio. Can we do it now? If no I'm not going to work on the citeproc side any longer for the time being. For the syntax: I like the xml syntax you proposed. Andrea