Package: linuxdoc-tools
Version: 0.9.21
Severity: normal
Tags: patch
The LaTeX input files generated with sgml2latex contain obsolete or
unnecessary code. In particular,
- instead of t1enc, [T1]{fontenct} should be used (see
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=t1enc); this is of
minor importance (the URL says:
,----
| So, unless you have program-generated T1 input, use
| \usepackage[T1]{fontenc} rather than \usepackage{t1enc}.
`----
This of course assumes that the program that generates the input knows
what it does; it might be easier to use fontenc.sty once you have the
first input files in UTF-8 and also use the respective inputenc
option.
- The package gives hyperref.sty an explicit "pdftex" option if PDF is
produced. This isn't necessary, since hyperref detects the engine by
itself. Furthermore, hyperref is disabled for dvi output. I don't
know why this has been done, but for sure it isn't necessary. Note
that xdvi and probably other dvi viewers have hyperlink support
built-in, so it is useful even if no pdf is produced. Only if dvipdfm
is to be used for processing the dvi output, you need to pass hyperref
the respective option.
I attach a patch that fixes these issues.
- the epsfig package is horribly outdated, and should be replaced by
graphicx (the successor of its successor). However, this is not
trivial because the syntax for file inclusion has changed; therefore
the patch keeps epsfig.sty.
Regards, Frank
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-386
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages linuxdoc-tools depends on:
ii gawk 1:3.1.4-2 GNU awk, a pattern scanning and pr
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii mawk 1.3.3-11 a pattern scanning and text proces
ii perl 5.8.4-8 Larry Wall's Practical Extraction
ii sgml-base 1.26 SGML infrastructure and SGML catal
ii sgml-data 2.0.3 common SGML and XML data
ii sp 1.3.4-1.2.1-43 James Clark's SGML parsing tools
-- no debconf information
--
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer
diff -Nur linuxdoc-tools-0.9.21.orig/lib/dist/linuxdoc-tools/latex2e/mapping linuxdoc-tools-0.9.21/lib/dist/linuxdoc-tools/latex2e/mapping
--- linuxdoc-tools-0.9.21.orig/lib/dist/linuxdoc-tools/latex2e/mapping 2002-01-28 18:44:44.000000000 +0100
+++ linuxdoc-tools-0.9.21/lib/dist/linuxdoc-tools/latex2e/mapping 2005-08-08 18:29:09.192574941 +0200
@@ -18,13 +18,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -46,13 +42,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -75,13 +67,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -105,13 +93,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
diff -Nur linuxdoc-tools-0.9.21.orig/lib/dist/linuxdoc-tools/latex2e/tr-mapping linuxdoc-tools-0.9.21/lib/dist/linuxdoc-tools/latex2e/tr-mapping
--- linuxdoc-tools-0.9.21.orig/lib/dist/linuxdoc-tools/latex2e/tr-mapping 2002-01-28 18:44:45.000000000 +0100
+++ linuxdoc-tools-0.9.21/lib/dist/linuxdoc-tools/latex2e/tr-mapping 2005-08-08 18:30:46.457045658 +0200
@@ -18,13 +18,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -46,13 +42,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -75,13 +67,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
@@ -105,13 +93,9 @@
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
- "\\ifpdf\n"
- " \\usepackage\[pdftex,colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
- " \\pdfcompresslevel=9\n"
- "\\else\n"
- " \\usepackage{t1enc}\n"
- "%% \\usepackage\[dvips\]{hyperref}\n"
- "\\fi\n"
+ "\\usepackage[T1]{fontenc}\n"
+ "\\usepackage\[colorlinks=true,urlcolor=blue,linkcolor=blue\]{hyperref}\n"
+ "\\pdfcompresslevel=9\n"
"\\usepackage\[english\]{babel}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"