From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/519 Path: news.gmane.org!not-for-mail From: Nathan Gass Newsgroups: gmane.text.pandoc Subject: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Wed, 24 Nov 2010 02:29:05 +0100 Message-ID: <4CEC6A61.1000309@trizeps.ch> References: <20101121193229.GB25657@protagoras.phil.berkeley.edu> <4CE9AABB.1070705@informatik.uni-marburg.de> 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; format=flowed X-Trace: dough.gmane.org 1290562161 578 80.91.229.12 (24 Nov 2010 01:29:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 01:29:21 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCMXB5ZuNCxDk1LHnBBoE7G9anw-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 24 02:29:16 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-fx0-f58.google.com ([209.85.161.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PL4Ae-0006aB-HV for gtp-pandoc-discuss@m.gmane.org; Wed, 24 Nov 2010 02:29:16 +0100 Original-Received: by mail-fx0-f58.google.com with SMTP id 13sf351638fxm.3 for ; Tue, 23 Nov 2010 17:29:16 -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:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to: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; bh=Mo8fHQJ7ECt5UPSOm/UrdLBkUgJkrxzo7+MCnAeMl7Q=; b=ybvNMMNMFyAneP+OKT6S9MZHE0tNy98eq1kQL4qYZfmmCoUmxCQHJ7E6zVLXGJZIhn wOsMAOC42pk6lycz5WOxGU5hlDI2Hznu5XuWkD8FbWWWcw5ht/4ekjl5zplPP/4mgs1Z BM/Ono7e9YxCv+J0UmJNtRawAQkDS2onu9uak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to: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; b=3710bMDqOPNXCJRkcopmuIChmjSczZsRsGSTwwEFoJ9cKX6i1DEoKfcw/XGzIkcONh iDqVkhbRjIc+4vKluD1iVtV9+zTTYZlmQJiZMnxs5witJav5xXWsMLAr34DCtNTvv5Ep rztdB8KEPEFDCVjXhQw3yWqlnDZ6mo3BI5Ljs= Original-Received: by 10.223.83.4 with SMTP id d4mr452987fal.11.1290562148917; Tue, 23 Nov 2010 17:29:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.204.81.69 with SMTP id w5ls30401bkk.2.p; Tue, 23 Nov 2010 17:29:07 -0800 (PST) Original-Received: by 10.204.177.148 with SMTP id bi20mr699954bkb.22.1290562147003; Tue, 23 Nov 2010 17:29:07 -0800 (PST) Original-Received: by 10.204.177.148 with SMTP id bi20mr699953bkb.22.1290562146950; Tue, 23 Nov 2010 17:29:06 -0800 (PST) Original-Received: from lvps178-77-97-180.dedicated.hosteurope.de (lvps178-77-97-180.dedicated.hosteurope.de [178.77.97.180]) by gmr-mx.google.com with ESMTP id w9si1090624bkz.4.2010.11.23.17.29.06; Tue, 23 Nov 2010 17:29:06 -0800 (PST) Received-SPF: neutral (google.com: 178.77.97.180 is neither permitted nor denied by best guess record for domain of xabbu-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org) client-ip=178.77.97.180; Original-Received: from 75-100.199-178.cust.bluewin.ch ([178.199.100.75] helo=vroomfondel.local) by lvps178-77-97-180.dedicated.hosteurope.de with esmtpsa (SSL3.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PL4AU-0008V0-EO for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Wed, 24 Nov 2010 02:29:06 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: <4CE9AABB.1070705-jNDFPZUTrfTbB13WlS47k8u21/r88PR+s0AfqQuZ5sE@public.gmane.org> X-Original-Sender: xabbu-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 178.77.97.180 is neither permitted nor denied by best guess record for domain of xabbu-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org) smtp.mail=xabbu-8UOIJiGH10pyDzI6CaY1VQ@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: , Xref: news.gmane.org gmane.text.pandoc:519 Archived-At: 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 ~~~~~~~~~~ Nathan > > Of course, I can easily extend my script to translate a > "References"-section into a "" marker, so I don't the mind > the concrete syntax too much. > > Just wanted to share my thoughts. > > Tillmann >