Skip to content

what should I do if I want to change the color and font size when md2word #9719

Answered by jgm
xwxb asked this question in Q&A
Discussion options

You must be logged in to vote

You can adjust font size and text color. First get a copy of the default reference.docx:

$ pandoc --print-default-data-file reference.docx > ref.docx

Now open this in Word. Go to Format->Styles and modify the "Body Text" style. Change the font and Apply. You should see the font in the sample document change. Now save this document, and use it in future pandoc conversions with pandoc --reference-doc ref.docx.

To change the heading colors and font, modify "Heading 1" etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xwxb
Comment options

Answer selected by xwxb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants