File: special-latex-entries.patch

package info (click to toggle)
epydoc 3.0.1%2Bdfsg-14
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 17,540 kB
  • ctags: 30,686
  • sloc: python: 14,373; sh: 97; makefile: 59
file content (20 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Do a better job of handling latex special entities.
 Mike's original problem was handling special << >> quote characters, i.e.
 from a French keyboard.  He solved this problem by adding the fontenc
 package.  In testing, I found that this change caused a HUGE slowdown for
 PostScript and PDF output, i.e. on the order of several minutes for dvips
 to render the result.  After digging around on Google, I added the lmodern
 package and that seems to have solved the problems I observed.
Bug-Debian: http://bugs.debian.org/614570
Author: Kenneth J. Pronovici <pronovic@debian.org>, Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/epydoc/docwriter/latex.py
+++ b/epydoc/docwriter/latex.py
@@ -29,6 +29,8 @@
         "\\documentclass{article}",
         "\\usepackage{alltt, parskip, fancyhdr, boxedminipage}",
         "\\usepackage{makeidx, multirow, longtable, tocbibind, amssymb}",
+        "\\usepackage[T1]{fontenc}",
+        "\\usepackage{lmodern}",
         "\\usepackage{fullpage}",
         "\\usepackage[usenames]{color}",
         # Fix the heading position -- without this, the headings generated