You can always use raw tex for these things.

https://pandoc.org/MANUAL.html#extension-raw_tex

 

Or, you can use a filter which is maybe too much for this case.

 

 

 

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Ashok Koyi
Gesendet: Montag, 27. September 2021 17:07
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Pandoc convention to follow to write frontmatter, body & backmatter of a book in markdown

 

I am writing a book in markdown & use pandoc to convert the book to pdf (pandoc internally uses pdflatex/xelatex/lualatex) & epub

Is there a way to specify in the markdown document that a given section (# Preface/# Dedication) belongs to frontmatter & # Appendix belongs to the backmatter?

Please note that I want to write frontmatter, backmatter & mainbody all in markdown

PS: In the documentation, I see an option for epub, but not for pdf

(I have already posted this question in tex stackexchage forum)

--
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/792a6eb6-14cf-4549-ab91-5679fb96c93fn%40googlegroups.com.

--
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/85025fff8fb94d74adfc79fc90c8653c%40unibe.ch.