Thanks Albert, Unfortunately, none of the snippets above worked :( The more conservative one removed the title pages as well. Hmm... I will simply my files and test again! Danke!! k On Monday, July 25, 2022 at 11:49:51 AM UTC+1 Albert Krewinkel wrote: > > 'Krisztián Hofstädter' via pandoc-discuss > writes: > > > Brilliant! Thanks Albert :-) > > You're welcome, happy it works 😊 > > > 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.) > > The Lua filter is a bit too eager and also parses LaTeX blocks that > should be consumed by pandoc-crossref. Try to modify it like this: > > ``` > if raw.format:match 'tex' and not raw.text:match '\\listof' then > return pandoc.read(raw.text, 'latex').blocks > end > ``` > > or, more conservatively > > ``` > if raw.format:match 'tex' and raw.text:match '\\begin%{figure%}' then > return pandoc.read(raw.text, 'latex').blocks > end > ``` > > -- > 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/b7ff6d15-f0cc-4d97-9b14-91ea92218edfn%40googlegroups.com.