You could create a file which contains only the page break code and use some shell script or Makefile trickery to insert it between the other input file arguments. You could also use a shell script (untested!) echo "" > concat.md for arg in "$@" do if [ ${arg: -3} == ".md" ] then cat $arg break.md >> concat.md fi done pandoc concat.md -o output.docx rm concat.md Den tors 5 sep. 2019 21:55BPJ skrev: > https://github.com/pandoc/lua-filters/tree/master/pagebreak > > Den tors 5 sep. 2019 19:25Joseph Reagle skrev: > >> >> On 9/2/19 12:03 PM, Joseph Reagle wrote: >> > There might be some hacks I can resort to in [1], but does anyone >> > have a simple solution for ensuring there's a page break between the >> > two sources in the docx file? >> >> I could do this in the shell/script, but I assume there's no inbuilt way >> to append a file like page-break.md to *each* of the input files, rather >> than the output file? >> >> >> ╰─➤ cat page-break.md >> ```{=openxml} >> >> ``` >> >> ``` >> ╭─reagle@hom ~/joseph/2019/09 >> ╰─➤ pandoc -f markdown+raw_attribute --toc -A page-break.md -i >> 1-chap.md 2-chap.md >> ``` >> >> -- >> 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/db6ee278-4ed8-6e81-e42e-5c155c412795%40reagle.org >> . >> > -- 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/CADAJKhCuGvDDSueCMNS%2BE6EW2cboz5LVQBSjPR7KmRo0Lic5bQ%40mail.gmail.com.