jgm/citeproc

Custom template: How to place CSLReferences at a different part of a document?

Closed this issue · 2 comments

Hi,

I'm writing a custom pandoc template based on my university's thesis guidelines that will convert Markdown to PDF. The guideline requires that I need to put appendices after the Reference section. I'm very new to Latex and not sure which control sequence allows me to put the CSLReferences at a specific part of the document when using --citeproc.

e.g.

\begin{document}
$body$
% What control sequence? \CSLBlock , \CSLReferences \citeproc \bibliography does not work
\appendix
\input{appendix1}
\end{document}

Thanks for the link! @njbart

Leaving it here for those who had the same problem.

I added the following at the top of my Markdown file

---
refs: |
   ::: {#refs}
   :::
---
...

As for the pandoc template,

\begin{document}
$body$
\chapter{References}
$refs$
\appendix
\input{appendix1}
\end{document}

We can also do this in markdown

# References
::: {#refs}
:::