pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
602 stars 165 forks source link

Place references before other content when using the section-refs.lua filter #222

Closed mattwarkentin closed 2 years ago

mattwarkentin commented 2 years ago

Hi,

I am using the section-refs.lua filter to create reference sections for separately for each chapter of my thesis. Is is possible to also place the reference section within the chapter using the standard pandoc syntax? I want to place tables and figures after the reference section, but I don't know enough Lua to make much sense of the filter.

For example, what I hope to achieve:

# Chapter 1

## References
::: {#refs-1}
:::

## Tables and Figures

# Chapter 2

## References
::: {#refs-2}
:::

## Tables and Figures