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?
Add this to your sphinx conf.py
(or append to latex_preamble if it is already set):
latex_preamble = """
\usepackage{upquote}
"""
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With