From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/490 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Mon, 22 Nov 2010 08:36:18 -0800 Message-ID: <20101122163618.GC3709@protagoras.phil.berkeley.edu> References: <20101121193229.GB25657@protagoras.phil.berkeley.edu> <0ebd5c02-7660-4f20-8da0-ee93a034850a@w2g2000yqb.googlegroups.com> <4CEA93FE.8070502@trizeps.ch> 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 1290443793 29274 80.91.229.12 (22 Nov 2010 16:36:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2010 16:36:33 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBCEuKrnBBoEjJZV3g-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 22 17:36:29 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pw0-f58.google.com ([209.85.160.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKZNU-0005aZ-8T for gtp-pandoc-discuss@m.gmane.org; Mon, 22 Nov 2010 17:36:28 +0100 Original-Received: by pwj10 with SMTP id 10sf593558pwj.3 for ; Mon, 22 Nov 2010 08:36:27 -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:date:from:to:subject :message-id:references:mime-version:in-reply-to: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=ZNZO2yMB3/cAcaHYOKoSd74+CYXik711U6LKV1Vfrmw=; b=Nuji/EMPa9cIbNgzNc3rKrOO7sOV2ASR347JH4ukLjm7MAmHQtgRgxrk12935D52NP /7dHY25fr/eoe3bVwohOWDGM2aZN6rUI/QSvWbN0HaiBiIdj9BZ8d1IbFE+A8rsL2FeP Plq5m0DhPHQ51Njs7H922mUCqE6jzzOIAq5uA= 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-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=s981uL1ovcYDyXOfx4UbJjjkUUGfzQZMPOACNVMzgCNhT8Rbkiv++fmX3t03jJLhdr GZtiwOIqnzGfbbU66hiGZShK8uYgnozcwrI1cH9vYO0/zIXLJNjxYooNw3zvn1dxPl5K aRhkP5N/A57+Qdk3BhOe4wDLe76utOq2XMGXo= Original-Received: by 10.143.20.28 with SMTP id x28mr245604wfi.61.1290443780102; Mon, 22 Nov 2010 08:36:20 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.2.41 with SMTP id 41ls1311045wfb.0.p; Mon, 22 Nov 2010 08:36:19 -0800 (PST) Original-Received: by 10.142.187.3 with SMTP id k3mr3829578wff.74.1290443779614; Mon, 22 Nov 2010 08:36:19 -0800 (PST) Original-Received: by 10.142.187.3 with SMTP id k3mr3829577wff.74.1290443779581; Mon, 22 Nov 2010 08:36:19 -0800 (PST) Original-Received: from cm01fe.IST.Berkeley.EDU (cm01fe.IST.Berkeley.EDU [169.229.218.142]) by gmr-mx.google.com with ESMTP id p40si7828235wfc.2.2010.11.22.08.36.19; Mon, 22 Nov 2010 08:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.142 as permitted sender) client-ip=169.229.218.142; Original-Received: from protagoras.phil.berkeley.edu ([128.32.137.142]) by cm01fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1PKZNK-0005TF-4X for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Mon, 22 Nov 2010 08:36:19 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id 3268E131AD3; Mon, 22 Nov 2010 08:36:18 -0800 (PST) In-Reply-To: <4CEA93FE.8070502-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.142 as permitted sender) smtp.mail=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:490 Archived-At: +++ Nathan Gass [Nov 22 10 17:02 ]: > On 21.11.10 22:46, Bruce wrote: > > > > > >On Nov 21, 2:32 pm, John MacFarlane wrote: > >>Currently pandoc inserts the list of works cited at the end > >>of the document. (You can provide a label like > >> > >> # References > >> > >>at the end if you like; the references will be placed after > >>this.) > >> > >>This doesn't offer much flexibility. In particular: > >> > >>(1) The writer doesn't know which part is a bibliography and > >>can't style it differently or even offer the option to do so through > >>CSS, etc. (Unlike the footnotes...) > >> > >>(2) You can't choose not to include the works cited. > >> > >>(3) You can't have per-section bibliographies in your document; > >>the bibliography only comes at the very end, even if you've got > >>a long book. > >> > >>(4) There's currently no way to include items you didn't cite, > >>or suppress items you did cite. > > > >There's another issue that will inevitably come up, so I should > >mention it now: > > > >(5) You can't have multiple sections per bibliography. Common use case > >is you need a section for legal cases, another for primary documents, > >and a third (which we might call default) of the secondary academic > >literature. > > > >I believe there are one or more LaTeX packages that support this sort > >of thing, but I don't recall their solution. And IIRC, discussion > >around this in the CSL world has tended to center around bib groups, > >where you might optionally assign references to a named group, which > >would correspond to an equivalent names section. > > As I understand the common use case, the section a reference belongs > into is given by the type of the reference? So this info could > actually be encoded in the bibliography? Pandoc then only needs a > way to add all needed bibliography sections, and not a way to mark > references belonging to a specific section. How individual are this > sections named? I ask this because currently I consider attaching > the bibliographic info to specific named sections the best solution. > For this to work we need to cover most/all possible names for such a > section. > > This way we don't need any new syntax to support this use case. > Legal cases would be marked as such in the bibliography file, and > pandoc would attach the rendered bibliographic info to a differently > named section if it finds such a section in the text. I'm not sure from Bruce's message whether CSL yet supports named groups, but that seems the way to go in the future. So the bibliography file would say that the entry belongs to the "primary" group, and then in your pandoc document you'd have something like: I agree that we don't want to clutter up the actual in-document citation syntax with syntax for groups. John