Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6b341d

Browse files
jfbuQuLogic
authored andcommitted
LaTeX: backport sphinx-doc/sphinx/pull/6888 to fix double quote issue
1 parent 8d9ebb5 commit e6b341d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ def _check_dependencies():
352352
latex_elements['babel'] = r'\usepackage{babel}'
353353

354354
# Font configuration
355+
# Fix fontspec converting " into right curly quotes in PDF
356+
# cf https://github.com/sphinx-doc/sphinx/pull/6888/
357+
latex_elements['fontenc'] = r'''
358+
\usepackage{fontspec}
359+
\defaultfontfeatures[\rmfamily,\sffamily,\ttfamily]{}
360+
'''
355361
# Sphinx 2.0 adopts GNU FreeFont by default, but it does not have all
356362
# the Unicode codepoints needed for the section about Mathtext
357363
# "Writing mathematical expressions"

0 commit comments

Comments
 (0)