Files
sphinx/doc
jfbu 30b26dd6a1 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
2019-12-15 14:19:50 +01:00
..
2019-12-13 23:27:04 +01:00
2014-09-21 20:23:24 +02:00
2014-09-19 13:18:29 +02:00
2019-01-10 18:08:12 +01:00
2008-06-23 12:35:22 +00:00
2019-07-07 16:08:54 +09:00
2019-10-26 17:21:57 +09:00
2018-06-17 15:24:23 +09:00
2018-06-21 15:11:35 +01:00
2019-05-30 01:07:05 +09:00
2019-05-26 10:53:53 +09:00