获取Pandoc以使用Sans-Serif字体家族生成PDF [英] Get pandoc to generate PDF with sans-serif font family
问题描述
我正在尝试使用pandoc从Markdown来源生成PDF.我希望输出仅使用sans-serif字体.输入:
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.
命令行:
pandoc -o output.pdf input.md --variable=fontfamily:arev
我得到了一个精美的PDF,但是文本是衬线.输出:
I get a fine-looking PDF, but the text is serif. Output:
我尝试了许多不同的命令行,但是字体(字体)从未改变.
I tried many different command lines, but the font (family) never changes.
我正在使用Ubuntu 14.04.我通过apt-get安装了pandoc.
I'm using Ubuntu 14.04. I installed pandoc via apt-get.
推荐答案
我必须先安装arev,bera和mathdesign字体,但是您的命令对我来说效果很好:
I had to install arev, bera and mathdesign fonts first, but your command worked fine for me:
对于Ubuntu和TeXLive,这些字体位于软件包 texlive-fonts-extra
For Ubuntu and TeXLive these fonts are located in the package texlive-fonts-extra
Ubuntu存储库中的版本很旧,因此最好先在此处安装Debian软件包中的最新版本.
The version from the Ubuntu repositories is quite old, so better first go here and install the latest from the Debian package.
这篇关于获取Pandoc以使用Sans-Serif字体家族生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!