Yes, one can do this. As the user's guide notes: > produce the custom docx reference file with the terminal command `pandoc -o custom-reference.docx --print-default-data-file reference.docx`. Then open custom-reference.docx in Word, modify the styles as you wish, and save the file. To achieve your desired change, in Word go to Format > Style... , and then under the Styles list in the window that pops up scroll down to select `Table`. Then click `Modify...` From there you can format aspects of the custom-reference docx's table, choosing either to apply the formatting to the whole table or to just a part of it. You can use this method to make just your header rows have green backgrounds. (I assume that whatever formatting you choose here, it will be applied to all tables in your document and that there's no way to have different formatting for different tables.) When you're ready to convert your source document to docx with pandoc, add `--reference-doc=` this to your terminal command, with the path to your updated custom-reference docx following the `=`. On Thursday, July 13, 2023 at 2:24:02 PM UTC-5 Zaur Molotnikov wrote: > Thanks for the hints. > > I'd like to get some more advice from the authors is the docx writer. > > With the rest of the styles, the answer above works for me. But not with > tables. I'm not sure, which table style is used by default and how to > change it. > > On Thu, Jul 13, 2023, 8:21 PM John MacFarlane wrote: > >> See https://pandoc.org/MANUAL.html#option--reference-doc >> >> The only way to customize docx output is to adjust the styles listed >> there in a referenece.docx. I imagine the Table style is the one you want >> to adjust, but I'm not a Word user so I can't give further details, nor am >> I sure that this particular customization is possible. >> >> >> > On Jul 13, 2023, at 5:56 AM, Zaur Molotnikov wrote: >> > >> > Hello all. I would highly appreciate a hint from the group, on how to >> give some styling to MS Words tables. In particular, I'd like the header >> rows to have green background. Is there a way to achieve it? >> > >> > -- >> > 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/7234d3c7-0325-40ad-a10d-3d9b70de9ef0n%40googlegroups.com >> . >> >> -- >> > You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/e9wZSf1pBbc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/30740175-CAF1-4423-A413-F6DF4A05D2D9%40gmail.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/58ee6de7-40ad-4728-a784-76d96c046a32n%40googlegroups.com.