PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : hyperref vs. minitoc Lesezeichen im Acrobat weg



kcalive
19-08-2008, 17:56
Hey,

also hab nich wirklich n vergleichbares problem bzw. eine lösung im forum gefunden. deswegen jetzt mal so:



\documentclass[a4paper]{scrreprt}

\usepackage{hyperref}
\usepackage{minitoc}

\begin{document}

\doparttoc
\tableofcontents

\chapter{bla}
\section{blabla}
\chapter{2}
\section{blabla}

\appendix
\addcontentsline{toc}{chapter}{Anlagenverzeichnis}
\addtocontents{toc}{\protect\setcounter{tocdepth}{-2}}

\part{Anhang}
\parttoc
\chapter{Anlage A}
\chapter{Anlage B}

\end{document}

bei diesem Minimalbeispiel gibts keine lesezeichen mehr in der acrobatleiste. warum? es scheint an dem minitoc-part-zeug zu liegen. aber durch ausklammern bin ich nich ganz dahintergestiegen, woran nun genau. mal gings, und mal nich.

hatte das problem schonmal einer von euch?

kcalive
20-08-2008, 06:59
hm, keine ne idee? gibts n problem mit dem mb?

jeebee
20-08-2008, 07:56
hyperref sollte immer (gibt afaik ein paar Ausnahmen) als letztes Paket geladen werden. Dann gehts auch mit den Links.

kcalive
20-08-2008, 08:06
guten morgen :-)

also selbst, wenn ich hyperref als letztes einbinde... funkts nich wirklich. es gibt keine lesezeichen im acrobat.

erst wenn ich den minitoc-mist rauswerfe funktionierts wieder. aber eben ohne die gewünschte minitoc

jeebee
20-08-2008, 09:50
\documentclass[a4paper]{scrreprt}

\usepackage{minitoc}
\usepackage{hyperref}

\begin{document}

\doparttoc
\tableofcontents

\chapter{bla}
\section{blabla}
\chapter{2}
\section{blabla}

\appendix
\addcontentsline{toc}{chapter}{Anlagenverzeichnis}
\addtocontents{toc}{\protect\setcounter{tocdepth}{-2}}

\part{Anhang}
\parttoc
\chapter{Anlage A}
\chapter{Anlage B}

\end{document}
produziert bei mir das angehängte PDF.

Gruss
jeebee

edit:
$ pdflatex -v
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
Copyright (C) 1997-2004 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfeTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfeTeX source.
Primary author of pdfeTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry and others.

Aus dem log:
Package: minitoc 2004/12/20 v40 Package minitoc, compatible with hyperref
Package: hyperref 2003/11/30 v6.74m Hypertext links for LaTeX

kcalive
20-08-2008, 09:57
na wie geil....

wenn man es zweimal kompiliert, funkt alles. jagt man es ein drittes mal durch hat sich das mit den lesezeichen erledigt....

folgende meldung hab ich gefunden:


Package minitoc Info: I0001
(minitoc) *** minitoc package, version 57 ***.
\tf@mtc=\write3
\mtcindent=\skip47
\mtcskipamount=\skip48
Package minitoc Info: I0005
(minitoc) compatible with hyperref.
Package minitoc Info: I0023
(minitoc) part level macros available.
Package minitoc Info: I0003
(minitoc) chapter level macros available.
\mtc@toks=\toks15
\mtc@strutbox=\box27
\mtc@hstrutbox=\box28
Package minitoc Info: I0002
(minitoc) Autoconfiguration of extensions.
(inhalt3.mtc0)
Package minitoc Info: I0012
(minitoc) Long extensions (Unix-like) will be used.
Package minitoc Info: I0031
(minitoc) ==> this version is configured for UNIX-like
(minitoc) (long extensions) file names.

und


("D:\Latex\MiKTeX 2.7\tex\latex\00miktex\hyperref.cfg"
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
("D:\Latex\MiKTeX 2.7\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
)
Package hyperref Info: Hyper figures OFF on input line 2892.
Package hyperref Info: Link nesting OFF on input line 2897.
Package hyperref Info: Hyper index ON on input line 2900.
Package hyperref Info: Plain pages OFF on input line 2907.
Package hyperref Info: Backreferencing OFF on input line 2912.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 3071.
("D:\Latex\MiKTeX 2.7\tex\latex\ltxmisc\url.sty"
\Urlmuskip=\muskip10
Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 3255.

("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\bitset.sty"
Package: bitset 2007/09/28 v1.0 Data type bit set (HO)

("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\intcalc.sty"
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
)
("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\bigintcalc.sty"
Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations (HO)

("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions
(HO)
Package pdftexcmds Info: LuaTeX not detected on input line 139.
)))
("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2007/09/29 v1.3 Key value parser with default handler suppor
t (HO)
)
\Fld@menulength=\count95
\Field@Width=\dimen104
\Fld@charsize=\dimen105
\Field@toks=\toks16
Package hyperref Info: Hyper figures OFF on input line 4169.
Package hyperref Info: Link nesting OFF on input line 4174.
Package hyperref Info: Hyper index ON on input line 4177.
Package hyperref Info: backreferencing OFF on input line 4184.
Package hyperref Info: Link coloring OFF on input line 4189.
Package hyperref Info: Link coloring with OCG OFF on input line 4194.
Package hyperref Info: PDF/A mode OFF on input line 4199.

("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\atbegshi.sty"
Package: atbegshi 2007/09/09 v1.6 At begin shipout hook (HO)

("D:\Latex\MiKTeX 2.7\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.

kompilier das file mal ein drittes mal :-) ich hoffe, die auszüge aus der log helfen weiter. ich versteh sie nich :-)

kcalive
20-08-2008, 11:36
hat denn noch nie einer das problem gehabt? sachen gibts...

kcalive
20-08-2008, 16:37
ich habs rausbekommen und wollt die welt an der lösung teilhaben lassen :-)


\documentclass[a4paper]{scrreprt}

\usepackage{minitoc}
\usepackage{hyperref}

\begin{document}

\doparttoc
\tableofcontents
\setcounter{tocdepth}{1}

\chapter{bla}
\section{blabla}
\chapter{2}
\section{blabla}

\appendix
\addcontentsline{toc}{chapter}{Anlagenverzeichnis}
\addtocontents{toc}{\protect\setcounter{tocdepth}{-2}}

\part{Anhang}
\parttoc
\chapter{Anlage A}
\chapter{Anlage B}

\end{document}