Change font family and size when converting from Markdown to Word?

ぃ、小莉子 提交于 2020-06-01 05:07:52

问题


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:

  1. I added
---
mainfont: "Palatino"
---

to the *.md file.

  1. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!