Hi,

maybe it may look like an overengineering, but you could use this Lua filter: https://github.com/cdivita/pandoc-curly-switch (disclaimer: I'm the author).

It allows to reference variables defined in the YAML metadata block in your document, so you can print the value of the title variable referencing it as ${title} in your document.

Cheers,

Claudio


Il giorno martedì 27 dicembre 2022 alle 17:16:54 UTC+1 Seagoon ha scritto:
Hello,

I have set the value of title: in my YAML header to a .md file. Is it possible to print the value of that variable in the document body? I have used \let\maketitle\relax in my header to suppress the default template \maketitle, but would like to print the title elsewhere in the document body.

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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/02843fb1-466a-407a-8a38-7c72d1720939n%40googlegroups.com.