问题 I'm trying to use pandoc to generate a PDF from Markdown source. I'd like the output to use only sans-serif fonts. Input: # Hello This is a test. Command line: pandoc -o output.pdf input.md --variable=fontfamily:arev I get a fine-looking PDF, but the text is serif. Output: I tried many different command lines, but the font (family) never changes. I'm using Ubuntu 14.04. I installed pandoc via apt-get. 回答1: I had to install arev, bera and mathdesign fonts first, but your command worked fine