Sphinx PDF 输出:python 源代码中的撇号被右单引号替换
我使用 文档 作为 PDF 输出a href="https://www.sphinx-doc.org" rel="nofollow noreferrer">Sphinx。一切都很好,除了当 python 源代码输出时,然后单引号(unicode U+0027)输出为右单引号(U+2019),看起来很尴尬。
有人知道如何纠正这个问题吗?
I am outputting some documentation as PDF using Sphinx. It's all very fine except for when python source code are output, then single quotes (unicode U+0027) are output as right single quotes (U+2019) which look awkward.
Here are images of the glyphs in question and here is my generated PDF.
Does anybody know how to correct this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其添加到您的 sphinx
conf.py
(或附加到 latex_preamble< /a> 如果已经设置):Add this to your sphinx
conf.py
(or append to latex_preamble if it is already set):