Closed queirozfcom closed 6 months ago
I'm trying to tinker with the lua code to see if I can debug this
One way to (temporarily) fix this would be to run another Lua filter after this one:
function Div (div)
div.classes = div.classes:filter(function (cls) return cls == 'unnumbered' end)
return div
end
This should drop the unnumbered
class from all headings.
We could make this configurable and include it in this filter.
The alternative solution is to manually add a heading at the end of each section. The filter will not add a new bibliography heading if the last element in a section is a heading. E.g.:
## Summary
Text goes here.
### References
The alternative solution is to manually add a heading at the end of each section. The filter will not add a new bibliography heading if the last element in a section is a heading. E.g.:
## Summary Text goes here. ### References
This worked thanks!
Hi. I managed to generate the per-chapter references but the header will not follow the proper numbering. In the example below, it should be numbered as 2.8
Here is the relevant part of the config file: