If you want to give Lua filters a try after all, have a look at jkr's section-ref filter: https://github.com/jkr/lua-filters/tree/master/filters/section-refs It has more features and is much cleaner than what I posted. On Tuesday, January 9, 2018 at 8:23:50 AM UTC+1, Stefan Stiene wrote: > > Dear John and Albert, > thanks for your solutions! > > I will go for Johns solution as I'm pandoc newbie and a little bit afraid > that lua filters will raise 5 additional questions ;-) > > Thanks > Stefan > > Am Donnerstag, 4. Januar 2018 21:21:09 UTC+1 schrieb Albert Krewinkel: >> >> Forgot to add the link: >> >> https://gist.github.com/tarleb/febcc78e5c7f6384299297232ab7dfe2 >> >> > As usual, I'd like to propose a lua-filter solution – I don't really >> > suggest using it though, as it's far too hacky in its current state. >> > >> > The filter splits the document in multiple sub-documents, runs >> > pandoc-citeproc on each of these, and then combines them back into a >> big >> > document. It's not fully tests, doesn't work with metadata specified >> on >> > the command line (use YAML values instead), and is generally not useful >> > other than demonstrating the feasibility of using Lua filters for this. >> >> -- >> Albert Krewinkel >> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >> > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e2045875-ea80-46fe-94d7-9ef9f857fb0e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.