Paul Ebermann
2010-02-13 21:25:36 UTC
Hallo,
ich habe bei einem meiner Projekte gemerkt, dass die mit
\hypertarget{}{} und \hyperlink{}{} erstellten internen
Links beim Klicken immer eine Zeile zu tief ankommen
(d.h. die Zeile mit dem Target ist immer gerade so nicht
zu sehen - bis auf die Bögen der "g" bzw. der unterste
Millimeter der eckigen Klammern).
Untenstehendes Minimalbeispiel zeigt dieses Verhalten
beim Durchlauf mit pdflatex. ([1] zu meinem Debug-Vorgang.)
Es ist nicht ganz minimal, weil ich ursprünglich annahm,
dass das daran lag, dass meine Targets in den \item[]s einer
description-Umgebung waren - aber auch das Target 0 ganz oben
wird falsch angesprungen.
Das gleiche Verhalten tritt auch mit article statt srcartcl
und mit latex -> dvips -> ps2pdf auf. (xdvi springt einfach
nur die Seite an, da kann man das nicht wirklich beobachten).
Soll das so sein (ich glaube nicht), und woran kann das liegen?
Paul
-------------
\listfiles
\documentclass{scrartcl}
\usepackage{hyperref}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\begin{document}
\blindtext \hypertarget{xxx}{Target 0.}
\begin{description}
\item[\hypertarget{blub}{1. Target}] \blindtext\
[[[[[[[\hypertarget{bla}{noch ein Target}]]]]]]
\blindtext
\blindtext
\item[kein Target]
\blindtext
\blindtext
\hyperlink{blub}{siehe oben} und \hyperlink{bla}{das zweite} und
\hyperlink{xxx}{das dritte}.
\blindtext
\end{description}
\end{document}
------------
*File List*
scrartcl.cls 2009/07/24 v3.04a KOMA-Script document class (article)
scrkbase.sty 2009/07/24 v3.04a KOMA-Script package
(KOMA-Script-dependent ba
sics and keyval usage)
scrbase.sty 2009/07/24 v3.04a KOMA-Script package
(KOMA-Script-independent
basics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty 2009/06/08 v3.03b KOMA-Script package (handling
toc-files)
scrsize11pt.clo 2009/07/24 v3.04a KOMA-Script font size class option
(11pt)
typearea.sty 2009/07/24 v3.04a KOMA-Script package (type area)
hyperref.sty 2010/02/08 v6.80e Hypertext links for LaTeX
kvsetkeys.sty 2010/01/28 v1.8 Key value parser (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
etexcmds.sty 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
pdfescape.sty 2007/11/11 v1.8 Provides hex, PDF name and string
conversions
(HO)
pdftexcmds.sty 2009/12/12 v0.7 Utility functions of pdfTeX for LuaTeX
(HO)
ifluatex.sty 2009/04/17 v1.2 Provides the ifluatex switch (HO)
ltxcmds.sty 2010/01/28 v1.2 LaTeX kernel commands for general use
(HO)
ifpdf.sty 2010/01/28 v2.1 Provides the ifpdf switch (HO)
ifvtex.sty 2008/11/04 v1.4 Switches for detecting VTeX and its
modes (HO)
ifxetex.sty 2009/01/23 v0.5 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)
pd1enc.def 2010/02/08 v6.80e 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
kvoptions.sty 2009/12/08 v3.6 Keyval support for LaTeX options (HO)
url.sty 2005/06/27 ver 3.2 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 2009/12/02 v1.10 At begin shipout hook (HO)
hpdftex.def 2010/02/08 v6.80e Hyperref driver for pdfTeX
atveryend.sty 2010/01/25 v1.4 Hooks at very end of document (HO)
rerunfilecheck.sty 2010/01/25 v1.3 Rerun checks for auxiliary files (HO)
uniquecounter.sty 2009/12/18 v1.1 Provides unlimited unique counter (HO)
babel.sty 2005/11/23 v3.8h The Babel package
ngermanb.ldf 2004/02/20 v2.6m new German support from the babel system
blindtext.sty 2006/11/21 V1.7 blindtext-Package
xspace.sty 2006/05/08 v1.12 Space after command names (DPC,MH)
nameref.sty 2010/01/25 v2.36 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)
hyperitems.out
hyperitems.out
***********
-----------
$ pdflatex -v
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX using libpoppler copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX using libpoppler source.
Primary author of pdfTeX using libpoppler: Peter Breitenlohner
(eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with libpng 1.2.37; using libpng 1.2.37
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
Compiled with libpoppler version 0.12.0
-----------
[1] Ich stellte dann fest, dass ich eine hyperref-Version von
Februar 2007 habe (was bei TeXlife in Ubuntu dabei ist).
Also entpackte ich mir hyperref.tds.zip in meinen persönlichen
texmf-Baum, und auch noch oberdiek.tds.zip (weil das Fehlen von
ifvtex beklagt wird). Dann musste ich noch ifxetex installieren,
und dann gab es einige weitere Fehlermeldungen, die durch eine
neue Version von KOMA-Script zu beheben waren.
Die oben beschriebenen Symptome blieben aber ...
ich habe bei einem meiner Projekte gemerkt, dass die mit
\hypertarget{}{} und \hyperlink{}{} erstellten internen
Links beim Klicken immer eine Zeile zu tief ankommen
(d.h. die Zeile mit dem Target ist immer gerade so nicht
zu sehen - bis auf die Bögen der "g" bzw. der unterste
Millimeter der eckigen Klammern).
Untenstehendes Minimalbeispiel zeigt dieses Verhalten
beim Durchlauf mit pdflatex. ([1] zu meinem Debug-Vorgang.)
Es ist nicht ganz minimal, weil ich ursprünglich annahm,
dass das daran lag, dass meine Targets in den \item[]s einer
description-Umgebung waren - aber auch das Target 0 ganz oben
wird falsch angesprungen.
Das gleiche Verhalten tritt auch mit article statt srcartcl
und mit latex -> dvips -> ps2pdf auf. (xdvi springt einfach
nur die Seite an, da kann man das nicht wirklich beobachten).
Soll das so sein (ich glaube nicht), und woran kann das liegen?
Paul
-------------
\listfiles
\documentclass{scrartcl}
\usepackage{hyperref}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\begin{document}
\blindtext \hypertarget{xxx}{Target 0.}
\begin{description}
\item[\hypertarget{blub}{1. Target}] \blindtext\
[[[[[[[\hypertarget{bla}{noch ein Target}]]]]]]
\blindtext
\blindtext
\item[kein Target]
\blindtext
\blindtext
\hyperlink{blub}{siehe oben} und \hyperlink{bla}{das zweite} und
\hyperlink{xxx}{das dritte}.
\blindtext
\end{description}
\end{document}
------------
*File List*
scrartcl.cls 2009/07/24 v3.04a KOMA-Script document class (article)
scrkbase.sty 2009/07/24 v3.04a KOMA-Script package
(KOMA-Script-dependent ba
sics and keyval usage)
scrbase.sty 2009/07/24 v3.04a KOMA-Script package
(KOMA-Script-independent
basics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty 2009/06/08 v3.03b KOMA-Script package (handling
toc-files)
scrsize11pt.clo 2009/07/24 v3.04a KOMA-Script font size class option
(11pt)
typearea.sty 2009/07/24 v3.04a KOMA-Script package (type area)
hyperref.sty 2010/02/08 v6.80e Hypertext links for LaTeX
kvsetkeys.sty 2010/01/28 v1.8 Key value parser (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
etexcmds.sty 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
pdfescape.sty 2007/11/11 v1.8 Provides hex, PDF name and string
conversions
(HO)
pdftexcmds.sty 2009/12/12 v0.7 Utility functions of pdfTeX for LuaTeX
(HO)
ifluatex.sty 2009/04/17 v1.2 Provides the ifluatex switch (HO)
ltxcmds.sty 2010/01/28 v1.2 LaTeX kernel commands for general use
(HO)
ifpdf.sty 2010/01/28 v2.1 Provides the ifpdf switch (HO)
ifvtex.sty 2008/11/04 v1.4 Switches for detecting VTeX and its
modes (HO)
ifxetex.sty 2009/01/23 v0.5 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)
pd1enc.def 2010/02/08 v6.80e 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
kvoptions.sty 2009/12/08 v3.6 Keyval support for LaTeX options (HO)
url.sty 2005/06/27 ver 3.2 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 2009/12/02 v1.10 At begin shipout hook (HO)
hpdftex.def 2010/02/08 v6.80e Hyperref driver for pdfTeX
atveryend.sty 2010/01/25 v1.4 Hooks at very end of document (HO)
rerunfilecheck.sty 2010/01/25 v1.3 Rerun checks for auxiliary files (HO)
uniquecounter.sty 2009/12/18 v1.1 Provides unlimited unique counter (HO)
babel.sty 2005/11/23 v3.8h The Babel package
ngermanb.ldf 2004/02/20 v2.6m new German support from the babel system
blindtext.sty 2006/11/21 V1.7 blindtext-Package
xspace.sty 2006/05/08 v1.12 Space after command names (DPC,MH)
nameref.sty 2010/01/25 v2.36 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)
hyperitems.out
hyperitems.out
***********
-----------
$ pdflatex -v
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX using libpoppler copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX using libpoppler source.
Primary author of pdfTeX using libpoppler: Peter Breitenlohner
(eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with libpng 1.2.37; using libpng 1.2.37
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
Compiled with libpoppler version 0.12.0
-----------
[1] Ich stellte dann fest, dass ich eine hyperref-Version von
Februar 2007 habe (was bei TeXlife in Ubuntu dabei ist).
Also entpackte ich mir hyperref.tds.zip in meinen persönlichen
texmf-Baum, und auch noch oberdiek.tds.zip (weil das Fehlen von
ifvtex beklagt wird). Dann musste ich noch ifxetex installieren,
und dann gab es einige weitere Fehlermeldungen, die durch eine
neue Version von KOMA-Script zu beheben waren.
Die oben beschriebenen Symptome blieben aber ...