Brilliant! Thanks Albert :-) Now that I'm on it, .... how could I also convert the Contents, List of Figures and Tables when making the docx file? (When converting to PDF they are all there.) I use these lines to add them to the pages: ``` \setcounter{tocdepth}{5} \tableofcontents \listoffigures \listoftables ``` And I think the only relevant lines in the front matter (YAML) are: ``` header-includes: - \usepackage[nottoc]{tocbibind} # adding lof/lot to toc documentclass: report sectionsDepth: 4 link-citations: true linkReferences: true nameInLink: true ``` thanks! k On Sunday, July 24, 2022 at 5:17:35 PM UTC+1 Albert Krewinkel wrote: > > 'Krisztián Hofstädter' writes: > > > You recommendations added the figure, but the cross referencing didn't > > come through: > > 1. there is no figure number before the figure's caption > > > > 2. there is no reference in the text to the figure either > > The Lua filter should run before pandoc-crossref runs; the order in > which filters are run is the order in which they are given on the > command line. Try this: > > > % pandoc -L parse-latex.lua -F pandoc-crossref ... > > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1d05b65b-70c3-41f4-b4be-b1578db89f55n%40googlegroups.com.