mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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 |
||
---|---|---|
.. | ||
_static | ||
_templates | ||
_themes/sphinx13 | ||
development/tutorials | ||
extdev | ||
man | ||
usage | ||
authors.rst | ||
changes.rst | ||
conf.py | ||
contents.rst | ||
develop.rst | ||
devguide.rst | ||
examples.rst | ||
faq.rst | ||
glossary.rst | ||
intro.rst | ||
latex.rst | ||
make.bat | ||
Makefile | ||
templating.rst | ||
theming.rst |