Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX: avoid quotes and TeX ligature replacements in PDF output #6891

Merged
merged 2 commits into from
Dec 15, 2019

Commits on Dec 15, 2019

  1. LaTeX: avoid quotes and TeX ligature replacements in PDF output

    Refs: sphinx-doc#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.
    
    latex3/hyperref#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 sphinx-doc#6888) to this effect,
    
    then this should be added to LaTeX preamble:
    
        \def\sphinxhyphen#1{-}% (\protected is now not needed)
        \let\sphinxhyphenforbookmarks\sphinxhyphen
    jfbu committed Dec 15, 2019
    Configuration menu
    Copy the full SHA
    30b26dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e49e98a View commit details
    Browse the repository at this point in the history