问题
I am trying to learn Basics of Markdown and Pandoc to speed up my academic writing.
I would like to ask whether it possible to define font family and font size, when converting from Markdown (.md) file to Word-2016 (.docx) file? I tried two methods:
- I added
---
mainfont: "Palatino"
---
to the *.md file.
- I tried to add
-- variable mainfont="Palatino"
to the command line when converting files.
Neither method produces desired font change. Could anyone advise on the proper method of setting the font, if it is possible to do so during the conversion procedure?
Edit: I have followed guidelines presented in the article "Sustainable Authorship" on programminghistorian.org, where they suggest using mainfont: times
in YAML. I would like to know why it is not working for me.
My question is not duplicate, I do not need different fonts/styles for text body and headings. I need to have everything uniformly converted into "Arial" or "Palatino".
来源:https://stackoverflow.com/questions/62098746/change-font-family-and-size-when-converting-from-markdown-to-word