diff options
| author | jfbu <jfbu@free.fr> | 2019-12-05 18:19:38 +0100 |
|---|---|---|
| committer | jfbu <jfbu@free.fr> | 2019-12-15 14:19:50 +0100 |
| commit | 30b26dd6a12de641776d871f9291de556de093fd (patch) | |
| tree | a01f40bab8951f46785d56b38681a1fabc3e619d /doc/extdev | |
| parent | 2ec6ce85ef781795dcfb63ccef736b33c6ac96a2 (diff) | |
| download | sphinx-git-30b26dd6a12de641776d871f9291de556de093fd.tar.gz | |
LaTeX: avoid quotes and TeX ligature replacements in PDF output
Refs: #6890
The comma character is not TeX-escaped because it is frequent in general
text and escaping it would make the LaTeX output larger for only dealing
with the problem of the LaTeX-ligature of ,, into a single character.
And one there is problem with the commas in options to Verbatim from
PygmentsBridge.
The hyphen character is escaped (not in ids and URIs!) to
\sphinxhyphen{} for both Unicode and non-Unicode engines. This is needed
to work around hyperref transforming -- and --- from section titles into
EN DASH resp. EM DASH in PDF bookmarks.
https://github.com/latex3/hyperref/issues/112
Note to expert LaTeX users: if Sphinx latex user with xelatex has
- turned off Smart Quotes for some reason,
- but does want TeX ligatures and thus overrode Sphinx
latex_elements['fontenc'] default (since #6888) to this effect,
then this should be added to LaTeX preamble:
\def\sphinxhyphen#1{-}% (\protected is now not needed)
\let\sphinxhyphenforbookmarks\sphinxhyphen
Diffstat (limited to 'doc/extdev')
| -rw-r--r-- | doc/extdev/deprecated.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/extdev/deprecated.rst b/doc/extdev/deprecated.rst index 958f4ee4d..482cb50bb 100644 --- a/doc/extdev/deprecated.rst +++ b/doc/extdev/deprecated.rst @@ -51,6 +51,11 @@ The following is a list of deprecated interfaces. - 4.0 - ``sphinx.util.texescape.hlescape()`` + * - ``sphinx.writers.latex.LaTeXTranslator.no_contractions`` + - 2.3 + - 4.0 + - N/A + * - ``sphinx.domains.math.MathDomain.add_equation()`` - 2.2 - 4.0 |
