diff --git a/CHANGES b/CHANGES index 3122c33b3..3692108a3 100644 --- a/CHANGES +++ b/CHANGES @@ -81,6 +81,8 @@ Bugs fixed include this match. * #6848: config.py shouldn't pop extensions from overrides * #6867: text: extra spaces are inserted to hyphenated words on folding lines +* #6886: LaTeX: xelatex converts straight double quotes into right curly ones + (shows when :confval:`smartquotes` is ``False``) * #6876: LaTeX: multi-line display of authors on title page has ragged edges Testing diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 4c07e552d..7cefa5a6d 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -194,7 +194,8 @@ ADDITIONAL_SETTINGS = { 'latex_engine': 'xelatex', 'polyglossia': '\\usepackage{polyglossia}', 'babel': '', - 'fontenc': '\\usepackage{fontspec}', + 'fontenc': ('\\usepackage{fontspec}\n' + '\\defaultfontfeatures[\\rmfamily,\\sffamily,\\ttfamily]{}'), 'fontpkg': XELATEX_DEFAULT_FONTPKG, 'textgreek': '', 'utf8extra': ('\\catcode`^^^^00a0\\active\\protected\\def^^^^00a0' @@ -205,7 +206,7 @@ ADDITIONAL_SETTINGS = { 'polyglossia': '\\usepackage{polyglossia}', 'babel': '', 'fontenc': ('\\usepackage{fontspec}\n' - '\\defaultfontfeatures[\\rmfamily,\\sffamily]{}'), + '\\defaultfontfeatures[\\rmfamily,\\sffamily,\\ttfamily]{}'), 'fontpkg': LUALATEX_DEFAULT_FONTPKG, 'textgreek': '', 'utf8extra': ('\\catcode`^^^^00a0\\active\\protected\\def^^^^00a0'