From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13538 Path: news.gmane.org!not-for-mail From: Andrew Dunning Newsgroups: gmane.text.pandoc Subject: Re: Specifying location of bibliography in document Date: Sun, 30 Aug 2015 13:06:47 -0700 (PDT) Message-ID: References: <20150829140403.GA47273@MacBook-Air.local> <20150829142113.GA47586@MacBook-Air.local> <20150829154527.GA49705@MacBook-Air.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2286_420372746.1440965207615" X-Trace: ger.gmane.org 1440965224 4867 80.91.229.3 (30 Aug 2015 20:07:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2015 20:07:04 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD5MBWVZ3IBRBZWERWXQKGQELDIDZ3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 30 22:07:03 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ig0-f184.google.com ([209.85.213.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZW8sZ-0005Eq-Ag for gtp-pandoc-discuss@m.gmane.org; Sun, 30 Aug 2015 22:07:03 +0200 Original-Received: by igbuu8 with SMTP id uu8sf16121679igb.1 for ; Sun, 30 Aug 2015 13:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=dY60ACcd5NTZDTNU6IROiQMrNc1NOrKwBiF+FUaNZ7s=; b=SkplZOopjcBgaXAteZkNNFflzqmhQktAyr8+KZe8ukPN7rZISjW3cWL13dfY9hyVOe FV8ZPJsLLB/Vp1+LPg1HCSGoYZs2Vs57+WSwp1aVTySHcdHxT4Kqh8Iiqf8oJxgkYtld ImK7B0U4ZOvFa0XTYZX7fbGtuhO0lYw+8KkL76xf2mVQLVPcdhxePhHfrqofybutT7FP qWjR9BNgZ9FO8ku4o8bll+pygdzgdKhMLa8dnaCZ3irkwAp/GlCP3vg0p6uwxGmcUQlx Hv2WWDE8FTm05spRKh+CDnGSy9YYtcvUKx3eV3y8XwrMlXE72lc2/BpXdxkw7flUW1l9 RuPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=dY60ACcd5NTZDTNU6IROiQMrNc1NOrKwBiF+FUaNZ7s=; b=vinELmI1SKUess628VEl14UpJPLxdcUOpoDAVcc1MPuftHDCYPqrReyuQAtMYeU2C6 YjjX0GyZTUBg7RdArto/tE7J/3S+JG7G2nds/CjttdUufYAGE0AV5N25XN4V125tLgck Ij5pTNuyCVhCR1OVsYffVJ9lTiCjVD3ONg5EpvQY7sfJGrM9YYJF2Y7fY680yA/8oT+c A/zS90uvOBp4PahI11jJ3XZEb0OfgfRpE2JmROs08YoOUqw4MJn7bhhotr/UHSu9SUL1 kZTJgVguCtisi9i7lyHQX+d67H6F51Ch9mEN04qIqotByBvAGRA61QLRuYm9Djlx/unI WWcQ== X-Received: by 10.182.240.227 with SMTP id wd3mr294053obc.3.1440965223006; Sun, 30 Aug 2015 13:07:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.232.201 with SMTP id tq9ls2921775obc.70.gmail; Sun, 30 Aug 2015 13:07:02 -0700 (PDT) X-Received: by 10.182.114.196 with SMTP id ji4mr280628obb.11.1440965222478; Sun, 30 Aug 2015 13:07:02 -0700 (PDT) In-Reply-To: <20150829154527.GA49705-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org> X-Original-Sender: andunning-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13538 Archived-At: ------=_Part_2286_420372746.1440965207615 Content-Type: multipart/alternative; boundary="----=_Part_2287_1793829028.1440965207615" ------=_Part_2287_1793829028.1440965207615 Content-Type: text/plain; charset=UTF-8 Will this also allow for the insertion of extra markup through a template? (For instance, a LaTeX class I am using wants the bibliography to be surrounded by \begin{thebibliography}...\end{thebibliography}, and it would be fantastic to be able to achieve that.) On Saturday, August 29, 2015 at 11:45:42 AM UTC-4, John MacFarlane wrote: > > I've implemented this in the dev version. You can > pull from github and install using `stack install` > or `cabal install` if you want to try it. > > > +++ John MacFarlane [Aug 29 15 07:21 ]: > >Followup: I think it makes more sense to use a div > >with id="references" rather than a section. That gives > >maximum flexibility; e.g. you can insert the bibliography > >without a section header, or under a header and some > >preliminary text. So the proposal is that if the document > >contains a Div with id "references", the bibliography > >is inserted there; otherwise at the end of the document > >(in which case it is also put in a special Div, as it > >is now). > > > > > > > >+++ John MacFarlane [Aug 29 15 07:04 ]: > >>>Is there a way to specify a location other than the end of > >>>the document for insertion of the bibliography? There > >>>might, for example, need to be appendices or other material > >>>following the list of references. > >> > >>Currently you can only do this by generating the > >>bibliography as a separate document, and inserting it > >>manually (e.g. using a template). > >> > >>There's a proposal in > >>https://github.com/jgm/pandoc/issues/771 that I think should > >>probably be implemented. The idea is that pandoc-citeproc > >>would look for a header with id "references". If it finds > >>one, it inserts the bibliography there. If it doesn't, > >>it behaves like it currently does and appends the > >>bibliography to the end of the document. As far as I can > >>see, this would be pretty easy to implement. > >> > >>https://github.com/jgm/pandoc/issues/1612 makes a similar > >>proposal for table of contents, and > >>https://github.com/jgm/pandoc/issues/1720 for footnotes, > >>but those are independent and could be done separately > >>or not at all. > >> > >>-- > >>You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > >>To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > >>To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > >>To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/20150829140403.GA47273%40MacBook-Air.local. > > >>For more options, visit https://groups.google.com/d/optout. > > > >-- > >You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > >To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > >To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/20150829142113.GA47586%40MacBook-Air.local. > > >For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a0b4a70c-7667-4bd1-9c6c-436546d70ddd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2287_1793829028.1440965207615 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Will this also allow for the insertion of extra markup thr= ough a template? (For instance, a LaTeX class I am using wants the bibliogr= aphy to be surrounded by=C2=A0\begin{thebibliography}...\end{thebibliography}, and it woul= d be fantastic to be able to achieve that.)

On Saturday, Augu= st 29, 2015 at 11:45:42 AM UTC-4, John MacFarlane wrote:
I've implemented this in the dev version. = =C2=A0You can
pull from github and install using `stack install`
or `cabal install` if you want to try it.


+++ John MacFarlane [Aug 29 15 07:21 ]:
>Followup: =C2=A0I think it makes more sense to use a div
>with id=3D"references" rather than a section. =C2=A0That = gives
>maximum flexibility; e.g. you can insert the bibliography
>without a section header, or under a header and some
>preliminary text. =C2=A0So the proposal is that if the document
>contains a Div with id "references", the bibliography
>is inserted there; otherwise at the end of the document
>(in which case it is also put in a special Div, as it
>is now).
>
>
>
>+++ John MacFarlane [Aug 29 15 07:04 ]:
>>>Is there a way to specify a location other than the end of
>>>the document for insertion of the bibliography? There
>>>might, for example, need to be appendices or other material
>>>following the list of references.
>>
>>Currently you can only do this by generating the
>>bibliography as a separate document, and inserting it
>>manually (e.g. using a template).
>>
>>There's a proposal in
>>https://github.com/jgm/pandoc/issues/771 that I think should
>>probably be implemented. =C2=A0The idea is that pandoc-citeproc
>>would look for a header with id "references". =C2=A0I= f it finds
>>one, it inserts the bibliography there. =C2=A0If it doesn't= ,
>>it behaves like it currently does and appends the
>>bibliography to the end of the document. =C2=A0As far as I can
>>see, this would be pretty easy to implement.
>>
>>https://github.com/jgm/<= wbr>pandoc/issues/1612 makes a similar
>>proposal for table of contents, and
>>https://github.com/jgm/<= wbr>pandoc/issues/1720 for footnotes,
>>but those are independent and could be done separately
>>or not at all.
>>
>>--=20
>>You received this message because you are subscribed to the Goo= gle Groups "pandoc-discuss" group.
>>To unsubscribe from this group and stop receiving emails from i= t, send an email to pandoc-discus...@googlegroups.com.
>>To post to this group, send email to pandoc-...@googlegroups.co= m.
>>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discu= ss/20150829140403.GA47273%40MacBook-Air.local.
>>For more options, visit https://group= s.google.com/d/optout.
>
>--=20
>You received this message because you are subscribed to the Google = Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, s= end an email to pandoc-discus...@googlegroups.com.
>To post to this group, send email to pandoc-...@googlegroups.com.
>To view this discussion on the web visit
https://groups.google.com/d/msgid/pandoc-discuss/<= wbr>20150829142113.GA47586%40MacBook-Air.local.
>For more options, visit https://groups.goo= gle.com/d/optout.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/a0b4a70c-7667-4bd1-9c6c-436546d70ddd%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2287_1793829028.1440965207615-- ------=_Part_2286_420372746.1440965207615--