I am trying to change the fontfamily for a paragraph using markdown and pandoc with xetex. I couldn't find references to this online.

I am currently setting my main font using this answer:

mainfont: DejaVuSerif.ttf
sansfont: DejaVuSans.ttf
monofont: DejaVuSansMono.ttf 
mathfont: texgyredejavu-math.otf 

I am looking for this pseudocode

# Chapter 1

{\setFontFamily{DejaVu} %%%% EDIT: \setFontFamily is a name example. I don't know if it exists.%%%%

paragraph 1

paragraph 2

Thank you

  • Where did you find \setFontFamily? fontspec provides \setfontfamily which is used completely different – DG' Feb 28 at 20:16
  • 1
    sorry, I probably didn't put it clear enough. I said it was pseudocode so the intention was clear, but I have no clue which command can be used. I made up \setFontFamily. I will try to edit the question. Sorry once again – manolius Mar 1 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.