草庐IT

Apostrophes

全部标签

python - 狮身人面像 PDF 输出 : Apostrophes in python source are replaced by right single quotes

我正在输出一些documentation使用Sphinx作为PDF.一切都很好,除了当输出python源代码时,单引号(unicodeU+0027)输出为右单引号(U+2019),看起来很尴尬。Here是相关字形的图像,here是我生成的PDF。有人知道如何纠正这个问题吗? 最佳答案 将此添加到您的sphinxconf.py(如果已设置,则附加到latex_preamble):latex_preamble="""\usepackage{upquote}""" 关于python-狮身人面像