From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/523 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Tue, 23 Nov 2010 19:33:15 -0800 Message-ID: <20101124033315.GC25133@protagoras.phil.berkeley.edu> References: <20101121193229.GB25657@protagoras.phil.berkeley.edu> <4CE9AABB.1070705@informatik.uni-marburg.de> <4CEC6A61.1000309@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 1290569614 26283 80.91.229.12 (24 Nov 2010 03:33:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 03:33:34 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBD-jrLnBBoE2f5x5w-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 24 04:33:30 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pz0-f58.google.com ([209.85.210.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PL66o-0007QB-Jw for gtp-pandoc-discuss@m.gmane.org; Wed, 24 Nov 2010 04:33:26 +0100 Original-Received: by mail-pz0-f58.google.com with SMTP id 12sf312693pzk.3 for ; Tue, 23 Nov 2010 19:33:26 -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=w2qdBX2xAkvJ6wojbIeUloJH+gzrO5/IUzzpgIQXDxE=; b=DRN1jurnOwLZ27lSQoP054empksF+jL64wLyABwG84QdlNX9TSBlczKlRXHxWeg+M0 njqdm2li5NM+cypZ3nqggR72vu8YwTu4qxSRa4BFZWkPwmg036k+lZthsi/TDPoGxYNT pqlVnLOgh/6VMpG+QeBDEThwkFrfVwe2IxHzw= 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=Qqu6c+AfwU7J/SGGt5T1mUCCkv1hiueSBYGoT7U4VkgK+tPPKLrxnlll3aUuuo9VYB QJTw9SwvPo7dU03ywb3C/1KLALyuTp3sMcyN5KSNI34z4tWM1iPW3SlUpb/Rv7BHxm3p S85NjKeTqYlSJQtRNes6zWCHlFW2y8QD7XUOs= Original-Received: by 10.142.151.42 with SMTP id y42mr443214wfd.46.1290569598981; Tue, 23 Nov 2010 19:33:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.78.15 with SMTP id a15ls307798wfb.2.p; Tue, 23 Nov 2010 19:33:18 -0800 (PST) Original-Received: by 10.142.49.8 with SMTP id w8mr3993156wfw.12.1290569597793; Tue, 23 Nov 2010 19:33:17 -0800 (PST) Original-Received: by 10.142.49.8 with SMTP id w8mr3993154wfw.12.1290569597767; Tue, 23 Nov 2010 19:33:17 -0800 (PST) Original-Received: from cm05fe.IST.Berkeley.EDU (cm05fe.IST.Berkeley.EDU [169.229.218.146]) by gmr-mx.google.com with ESMTP id n6si9938560wfl.3.2010.11.23.19.33.17; Tue, 23 Nov 2010 19:33:17 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.146 as permitted sender) client-ip=169.229.218.146; Original-Received: from protagoras.phil.berkeley.edu ([128.32.137.142]) by cm05fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1PL66e-0002XX-GP for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Tue, 23 Nov 2010 19:33:17 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id CED351317C2; Tue, 23 Nov 2010 19:33:15 -0800 (PST) In-Reply-To: <4CEC6A61.1000309-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.146 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:523 Archived-At: +++ Nathan Gass [Nov 24 10 02:29 ]: > On 22.11.10 00:26, Tillmann Rendel wrote: > >John MacFarlane wrote: > >>There's a proposal at > >> > >>http://gitit.net/PandocCitationGrammar > >> > >>that would address (2-4) by requiring the user to put an explicit > >> > >> > >> > >>tag where the bibliography goes;[...] > > > >I like the idea of explicitly specifying where the bibliography goes. I > >don't like that syntax too much, however, because > > > >(a) it is HTML-focused, so it might look awkward in LaTeX-target > >markdown files with lots of literal LaTeX code > > > >(b) it looks like literal HTML, but is actually (pandoc extended) > >markdown, which might be confusing > > I just wanted to add that I completely agree here. I find syntax > which looks like html, but actually is not pass-through html but > special markdown syntax confusing. > > > > > > >I had a similar problem in my use of pandoc. I want to insert > >system-generated content, such as a table of contents, at a specific > >point in the document. So I decided to write a script which replaces a > >whole section (or subsection etc.) with system-generated content, based > >on the name of the section. So for example, the snippet: > > > >Table of Contents > >================= > > > >It doesn't matter what you write here > > > >Introduction > >============ > > > >would get translated to something like: > > > >\tableofcontents > >\section{Introduction} > > > >I think this would work well for references, too. > > > > > >The main benefit is that one can use the input format's syntax for > >headings to specify "special sections" like table of contents or > >references. The input document therefore looks natural. (One could even > >have one's editor and pandoc automatically fill in the section content > >with a textual version of the system-generated data, for some kind of > >semi-WYSIWYG effect). > > > >The main drawback is that the name of the section is relevant, so this > >introduces a language dependency. For my scripts, I just have a > >command-line flag for the various special sections: > > > >"--toc=Table of Contents" > > > > Other possibilities would be to add some label syntax, similar to > the \label{} of latex, to just recognize most or even all possible > headers for such a section, or use a special code block, which is at > least clearly markdown syntax. Actually, when I think about it, the > last one strikes me as a very good alternative. So instead of > > > some config > > > we simply use > > ~~~~~~~~~~ {.reference} > some config > ~~~~~~~~~~ I'm open to suggestions other than the HTMLish syntax. But I don't think this is obviously better. For one thing, it looks like a code block. And we'd have to implement some mini-language inside the block to specify the includes, excludes, source, etc. If we use XML, we're using something that's already familiar. One possibility would be a special attribute on a header: # Works cited {.bibliography src="mybib.json"} # References {.bibliography src="foo.bib" include="item2,item3" omit="item4" if-year="1999" only-if-type="primary"} John