Even more interesting is that it changes my { = { SectionPages } - 1 } to output: { NumPages - 1 } Tested with Pandoc 2.1.3 on macOS High Sierra 10.13.4 pandoc 2.1.3 Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.1, skylighting 0.7.1 On Thursday, 19 April 2018 09:40:47 UTC-7, John MacFarlane wrote: > > > Can you upload or link to your reference.docx (or one like it > that shows the problem), so we can have a look? > > Paul Adams > writes: > > > I've a DOCX reference doc that I'm using for MD to DOCX conversion. In > the > > reference DOCX I created a footer field > > > > Page { PAGE } of { = { NUMPAGES } - 1 } > > > > > > But in my output DOCX the footer field looks like this > > > > Page { PAGE } of { NUMPAGES - 1 } > > > > > > Which does not render the correct number of pages in the document. > > > > Is this a bug or a feature? If it's a feature, does anyone have the > > incantation that *will* work as intended? > > > > Thanks! > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/bdab5071-abd5-47b4-9c71-cdc13ba99f99%40googlegroups.com. > > > For more options, visit https://groups.google.com/d/optout. > -- 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/3c87d182-9aa3-455c-ad32-605ca500e1c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.