On a book with many chapters (each chapter a separate file) beginning with the following code: \documentclass[nt.tex]{subfiles} \begin{document} \newif\ifepub \epubfalse \ifepub Is there a way to make pandoc think \epubfalse is \epubtrue in all the subfiles so I don't have to manually edit each subfile when I want to create an epub book? Louis -- 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/74247f37-347c-4a3d-a115-4ed0cd731aa5n%40googlegroups.com.