citeproc icon indicating copy to clipboard operation
citeproc copied to clipboard

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

Open hambergerpls opened this issue 9 months ago • 1 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}

hambergerpls avatar May 05 '24 05:05 hambergerpls

Instructions are available here: https://pandoc.org/MANUAL.html#placement-of-the-bibliography

njbart avatar May 05 '24 06:05 njbart

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}
:::

hambergerpls avatar May 05 '24 06:05 hambergerpls