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...@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/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...@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/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-/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.com.
For more options, visit https://groups.google.com/d/optout.