PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : hyperref Warnung



Craig
13-08-2009, 12:55
Hallo zusammen,
ich habe einen neuen PC gekauft. Dort Miktex 2.7 und den aktuellen Texniccenter installiert. Dann habe ich meinen Ordner Diplomarbeit auf den neuen PC kopiert. Beim kompilieren bekomm ich eine Warnung nicht weg. Und ehrlich gesagt, versteh ich sie nicht da alles 1:1 übernommen wurde, bis auf die Miktex/Texniccenter Version.

Warnung:
Package hyperref Warning: You have enabled option 'breaklinks' .
(hyperref) but driver 'hdvips.def' does not support this.
(hyperref) Exept trouble with the link areas of broken link

Danke
Cu craig

u_fischer
13-08-2009, 13:11
(Sehr) alte Versionen von hyperref hatten als Defaulttreiber hypertex, der akzeptierte die Option breaklinks, heutzutage benutzt hyperref bei LaTeX-Läufen den dvips-Treiber und mit dem geht breaklinks halt nicht. Wenn du deine Endversion mit LaTeX->dvips erstellen willst: Nimm breaklinks raus.

Frageling
23-07-2011, 15:46
Hallo zusammen,

bei mit tritt das selbe Problem auf, ganz konkret machen die Zweizeiler im Abbildungsverzeichnis Probleme. Da ist die "Linkfläche" nur ganz schmal zwischen den beiden Zeilen.

Gibt es vielleicht mittlerweile eine Lösung? Ich habe bisher nur rausgefunden, dass man das Problem mit der hyperref-Option linktocpage umgehen kann, aber ich hätte schon lieber die Beschreibung als Link als nur die Seitennummer.

Vielen Dank im Voraus
Fabian

mechanicus
23-07-2011, 15:49
Nutze das Paket hypdvips.

Marco

Frageling
23-07-2011, 16:37
Hallo Marco,

na das nenn ich mal ne schnelle Antwort, vielen Dank.

Leider ist das Problem nicht ganz verschwunden. Zwar funktionieren jetzt beide Zeilen als Link, dafür bekomme ich jede Menge Fehler, die ich mir nicht erklären kann.

Hier ein Minimalbeispiel, bei dem die selben Fehler auftreten:

\documentclass{scrreprt}

\usepackage[breaklinks=true]{hyperref}
\usepackage[german=true]{hypdvips}

\begin{document}

\tableofcontents

\chapter{Testkapitel}
\section{Testsection}

\end{document}

mechanicus
23-07-2011, 17:12
Hi,

die Fehler wären interessant. Nutze mal folgendes MB:

\listfiles
\documentclass{scrreprt}

%\usepackage[breaklinks=true]{hyperref}
\usepackage{hyperref}
\usepackage[german=true]{hypdvips}
\hypersetup{breaklinks=true}
\begin{document}

\tableofcontents

\chapter{Testkapitel}
\section{Testsection}

\end{document}
Die Anweisung \listfiles gibt dir eine Liste mit allen verwendeten Paketen in der log-Datei aus. Bei mir ist das Ergebnis:

*File List*
scrreprt.cls 2011/04/02 v3.09 KOMA-Script document class (report)
scrkbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2011/03/09 v3.09 KOMA-Script package (loading files)
tocbasic.sty 2011/03/23 v3.09 KOMA-Script package (handling toc-files)
scrsize11pt.clo 2011/04/02 v3.09 KOMA-Script font size class option (11pt)
typearea.sty 2011/04/02 v3.09 KOMA-Script package (type area)
hyperref.sty 2011/04/17 v6.82g Hypertext links for LaTeX
hobsub-hyperref.sty 2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty 2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)
hobsub.sty 2011/04/23 v1.4 Subsetting bundle oberdiek (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
ltxcmds.sty 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
ifvtex.sty 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
etexcmds.sty 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
kvsetkeys.sty 2011/04/07 v1.13 Key value parser (HO)
kvdefinekeys.sty 2011/04/07 v1.3 Defining keys (HO)
pdftexcmds.sty 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
pdfescape.sty 2011/04/04 v1.12 Provides string conversions (HO)
bigintcalc.sty 2011/01/30 v1.2 Expandable big integer calculations (HO)
bitset.sty 2011/01/30 v1.1 Data type bit set (HO)
uniquecounter.sty 2011/01/30 v1.2 Provides unlimited unique counter (HO)
letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
hopatch.sty 2011/01/30 v1.0 Wrapper for package hooks (HO)
xcolor-patch.sty 2011/01/30 xcolor patch
atveryend.sty 2011/04/23 v1.7 Hooks at very end of document (HO)
atbegshi.sty 2011/01/30 v1.15 At begin shipout hook (HO)
refcount.sty 2010/12/01 v3.2 Data extraction from references (HO)
hycolor.sty 2011/01/30 v1.7 Color options of hyperref/bookmark (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
kvoptions.sty 2010/12/23 v3.10 Keyval support for LaTeX options (HO)
pd1enc.def 2011/04/17 v6.82g Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
hdvips.def 2011/04/17 v6.82g Hyperref driver for dvips
pdfmark.def 2011/04/17 v6.82g Hyperref definitions for pdfmark specials
rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
hypdvips.sty 2010/09/08 v2.02 Hyperref extensions for use with dvips
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
zref.sty 2011/03/18 v2.21 New reference scheme for LaTeX2e (HO)
zref-base.sty 2011/03/18 v2.21 Module base for zref (HO)
auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
zref-totpages.sty 2011/03/18 v2.21 Module totpages for zref (HO)
zref-abspage.sty 2011/03/18 v2.21 Module abspage for zref (HO)
zref-lastpage.sty 2011/03/18 v2.21 Module lastpage for zref (HO)
bookmark.sty 2011/04/21 v1.21 PDF bookmarks (HO)
bkm-dvips.def 2011/04/21 v1.21 bookmark driver for dvips (HO)
hypcap.sty 2011/02/16 v1.11 Adjusting anchors of captions (HO)
puenc.def 2011/04/17 v6.82g Hyperref: PDF Unicode definition (HO)
nameref.sty 2010/04/30 v2.40 Cross-referencing by name of section
gettitlestring
Im speziellen heiß das:


hyperref.sty 2011/04/17 v6.82g Hypertext links for LaTeX
hdvips.def 2011/04/17 v6.82g Hyperref driver for dvips
pdfmark.def 2011/04/17 v6.82g Hyperref definitions for pdfmark specials
rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
hypdvips.sty 2010/09/08 v2.02 Hyperref extensions for use with dvips

Marco

Frageling
23-07-2011, 17:31
Hallo,

ich erhalte:

*File List*
scrreprt.cls 2011/04/02 v3.09 KOMA-Script document class (report)
scrkbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2011/03/09 v3.09 KOMA-Script package (loading files)
tocbasic.sty 2011/03/23 v3.09 KOMA-Script package (handling toc-files)
scrsize11pt.clo 2011/04/02 v3.09 KOMA-Script font size class option (11pt)
typearea.sty 2011/04/02 v3.09 KOMA-Script package (type area)
hyperref.sty 2011/03/09 v6.82d Hypertext links for LaTeX
ltxcmds.sty 2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
ifpdf.sty 2010/01/28 v2.1 Provides the ifpdf switch (HO)
pdftexcmds.sty 2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
kvsetkeys.sty 2010/03/01 v1.9 Key value parser (HO)
etexcmds.sty 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
pdfescape.sty 2010/03/01 v1.9 Provides hex, PDF name and string conversions
(HO)
ifvtex.sty 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
hycolor.sty 2009/12/12 v1.6 Color options of hyperref/bookmark (HO)
xcolor-patch.sty 2009/12/12 xcolor patch
letltxmacro.sty 2008/06/24 v1.3 Let assignment for LaTeX macros (HO)
kvoptions.sty 2010/02/22 v3.7 Keyval support for LaTeX options (HO)
pd1enc.def 2011/03/09 v6.82d Hyperref: PDFDocEncoding definition (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations (HO)
atbegshi.sty 2010/03/25 v1.12 At begin shipout hook (HO)
hdvips.def 2011/03/09 v6.82d Hyperref driver for dvips
pdfmark.def 2011/03/09 v6.82d Hyperref definitions for pdfmark specials
rerunfilecheck.sty 2010/03/16 v1.6 Rerun checks for auxiliary files (HO)
atveryend.sty 2010/03/24 v1.5 Hooks at very end of document (HO)
uniquecounter.sty 2009/12/18 v1.1 Provides unlimited unique counter (HO)
hypdvips.sty 2011/06/07 v2.03 Hyperref extensions for use with dvips
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
zref.sty 2010/05/01 v2.17 New reference scheme for LaTeX2e (HO)
zref-base.sty 2010/05/01 v2.17 Module base for zref (HO)
auxhook.sty 2009/12/14 v1.2 Hooks for auxiliary files (HO)
zref-totpages.sty 2010/05/01 v2.17 Module totpages for zref (HO)
zref-abspage.sty 2010/05/01 v2.17 Module abspage for zref (HO)
zref-lastpage.sty 2010/05/01 v2.17 Module lastpage for zref (HO)
bookmark.sty 2010/04/08 v1.12 PDF bookmarks (HO)
bkm-dvips.def 2010/04/08 v1.12 bookmark driver for dvips (HO)
hypcap.sty 2008/09/08 v1.10 Adjusting anchors of captions (HO)
puenc.def 2011/03/09 v6.82d Hyperref: PDF Unicode definition (HO)
nameref.sty 2010/04/30 v2.40 Cross-referencing by name of section
refcount.sty 2008/08/11 v3.1 Data extraction from references (HO)
gettitlestring.sty 2009/12/18 v1.3 Cleanup title references (HO)
***********

Ist das das, was du brauchst?

mechanicus
23-07-2011, 18:12
Hi,

und welche Fehler? Ich habe keine.

Gruß
Marco

Frageling
23-07-2011, 18:47
Ich hoffe das hier sind die Fehler :)

(D:\Minimalbeispiel\LaTeX1.toc
! Undefined control sequence.
<argument> ...erline {1}Testkapitel\Hy@xspace@end
\Hy@LinkMath \Hy@SaveSpace...
l.1 ...}{\numberline {1}Testkapitel}{2}{chapter.1}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...line {1.1}Testsection\Hy@xspace@end
\Hy@LinkMath \Hy@SaveSpace...
l.2 ...umberline {1.1}Testsection}{2}{section.1.1}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

mechanicus
24-07-2011, 07:33
Hi,

ich habe eben unsere File-Lists verglichen und dabei fiel mir auf, dass einige Pakete von mir neuer sind:

Deine:

hyperref.sty 2011/03/09 v6.82d Hypertext links for LaTeX
hdvips.def 2011/03/09 v6.82d Hyperref driver for dvips

Meine

hyperref.sty 2011/04/17 v6.82g Hypertext links for LaTeX
hdvips.def 2011/04/17 v6.82g Hyperref driver for dvips


Was merkwürdig ist, in einer Version bist du auf einem aktuelleren Stand:
Deine:

hypdvips.sty 2011/06/07 v2.03 Hyperref extensions for use with dvips

Meine

hypdvips.sty 2010/09/08 v2.02 Hyperref extensions for use with dvips


Fazit: Aktualisiere auch den Rest deiner Pakete ;)

Frageling
24-07-2011, 13:36
Hallo,

ich habe alle Pakete aktualisiert und jetzt sind die Fehler weg. Danke sehr!