[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#97057: hyperref error: ! LaTeX Error: Missing \begin{document}.



Package: tetex-extra
Version: 1.0.2+20000804-7
Severity: normal

Lauching pdflatex gives the following output:
This is pdfTeX, Version 3.14159-14f-released-20000525 (Web2C 7.3.1)
(principal.tex{pdftex.cfg}
LaTeX2e <1999/12/01> patch level 1
Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/koma-script/scrbook.cls
Document Class: scrbook 1999/12/29 v2.5h LaTeX2e KOMA document class
(/usr/share/texmf/tex/latex/base/bk11.clo)
(/usr/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea, Copyright (C) Frank Neukam, 1992-1994
                   Copyright (C) Markus Kohm, 1994-1999
)) (/usr/share/texmf/tex/latex/psnfss/times.sty)
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/latex/ntgclass/a4.sty)
(/usr/share/texmf/tex/latex/misc/geometry.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/config/geometry.cfg))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/english.ldf
(/usr/share/texmf/tex/generic/babel/babel.def))
(/usr/share/texmf/tex/generic/babel/frenchb.ldf))
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/pdftex.def))
(/usr/share/texmf/tex/latex/latex2html/url.sty)
(/usr/share/texmf/tex/latex/tools/verbatim.sty)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty)
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.1478 \ProcessOptionsWithKV{Hyp}



=============================
HERE, I PRESS ENTER
=============================




?
Implicit mode ON; LaTeX internals redefined
)
*hyperref using driver hpdftex*
(/usr/share/texmf/tex/latex/hyperref/hpdftex.def
(/usr/share/texmf/tex/latex/psnfss/pifont.sty
(/usr/share/texmf/tex/latex/psnfss/upzd.fd)
(/usr/share/texmf/tex/latex/psnfss/upsy.fd)))
Overfull \hbox (684.96745pt too wide) in paragraph at lines 1478--53
[]/ecrm1095/Hy@autorefamericanamerican

==============================
and so on

The PDF file is correctly created BUT one page is wrongly inserted before the first one, including a page number and this text: Hy@autorefamericanamerican

I noticed that is I comment the line "\ProcessOptionsWithKV{Hyp" in hyperref.sty, the error disappear but hyperref packages options are not taken into account.

Below is the header of my .tex file:


===========================
%% LyX 1.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[11pt,oneside,american,french]{scrbook}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{a4}
\usepackage{geometry}
\geometry{verbose,letterpaper}
\usepackage{babel}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\usepackage[pdftex]{graphics}
\IfFileExists{url.sty}{\usepackage{url}}
                      {\newcommand{\url}{\texttt}}

\makeatletter


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\newcommand{\noun}[1]{\textsc{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \usepackage{verbatim}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

\newif\ifpdf
\ifx\pdfoutput\undefined
  \pdffalse
\else
 \pdfoutput=1
 \pdftrue
\fi
 \ifpdf

     \usepackage[pdftex]{graphicx}
    \pdfcompresslevel=9
    \pdfinfo
    {   /Title      (Mémoire de Gaël Fraiteur)
        /Author   (Gaël Fraiteur, gfraiteur@sequoia.be)
       /Subject  (Identification et contrôle de la température sur une table de refroidissement de laminoir)
    }

    \usepackage
    [pdftex,
        colorlinks=true,
        linkcolor=blue,
        urlcolor=blue,
        pagecolor=blue]
    {hyperref}


\fi
\makeatother

\begin{document}


=======================================================




-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux gfraiteur 2.4.2 #2 Thu Apr 12 11:10:52 CEST 2001 i686

Versions of packages tetex-extra depends on:
ii  dpkg                    1.8.3.1          Package maintenance system for Deb
ii  gsfonts                 5.10a-2          Fonts for the ghostscript interpre
ii  perl-base [perl5-base]  5.6.0-21         The Pathologically Eclectic Rubbis
ii  tetex-base              1.0.2+20000804-7 basic teTeX library files         
ii  tetex-bin               1.0.7+20000807-8 teTeX binary files                




Reply to: