Commits

Dmitry Shachnev committed 20f8bc0

LaTeX writer: include cmap package by default.
Also, fix a small typo in config.rst.

Comments (0)

Files changed (2)

         "Rejne".  You can also set this to ``''`` to disable fncychap.
      ``'preamble'``
         Additional preamble content, default empty.
-     ``'footer'```
+     ``'footer'``
         Additional footer content (before the indices), default empty.
 
    * Keys that don't need be overridden unless in special cases are:
      ``'inputenc'``
         "inputenc" package inclusion, default
         ``'\\usepackage[utf8]{inputenc}'``.
+     ``'cmappkg'``
+        "cmap" package inclusion, default ``'\\usepackage{cmap}'``.
      ``'fontenc'``
         "fontenc" package inclusion, default ``'\\usepackage[T1]{fontenc}'``.
      ``'maketitle'``

sphinx/writers/latex.py

 \documentclass[%(papersize)s,%(pointsize)s%(classoptions)s]{%(wrapperclass)s}
 %(inputenc)s
 %(utf8extra)s
+%(cmappkg)s
 %(fontenc)s
 %(babel)s
 %(fontpkg)s
         'extraclassoptions': '',
         'inputenc':        '\\usepackage[utf8]{inputenc}',
         'utf8extra':       '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}',
+        'cmappkg':         '\\usepackage{cmap}\n',
         'fontenc':         '\\usepackage[T1]{fontenc}',
         'babel':           '\\usepackage{babel}',
         'fontpkg':         '\\usepackage{times}',