I'd like to include some pdfs in my file and make a table of contents with hyperlinks to the individual pages. I almost got it to work with \phantomsection and \addcontentsline however if i click the on the link in the table of contents I get directed to the right page but it jumps to the middle of the page and not to the start. How can I fix this?
In order to compile the document you will need pdf files with the corresponding names in your directory. The document is compileable however I get a miktex package manager windows every time I compile it and I get this message "Process started
Unfortunately, the package xcolor could not be installed.
Please check the log file: C:/Users/Tim/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log"
Edit: Dear Christian Hupfer. Since I don't have enough reputation to comment this is the only way I know how to communicate with you. How can I improve my question so you can help me?
Code:
\documentclass[12pt]{article}
\usepackage{cite}
\usepackage[german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\usepackage[bookmarks,hypertexnames=false,debug]{hyperref}
\usepackage{bookmark}
\begin{document}
\section*{test}
\tableofcontents
\newpage
\phantomsection
\addcontentsline{toc}{section}{Section without standard heading1}
\includepdf[pages=-]{asdf}
\newpage
\phantomsection
\includepdf[pages=-]{asdf2}
\addcontentsline{toc}{section}{Section without standard heading2}
\newpage
\phantomsection
\includepdf[pages=-]{asdf3}
\addcontentsline{toc}{section}{Section without standard heading3}
\end{document}
ngermanoption tobabel, but that's not the cause of your problem. Also your document is not compilable – May 22 '16 at 21:52pdfpagesmanual, it has an interface for adding stuff to the toc. You have issues here as\includepdfstarts a new page, so your\addcontentslinepotentially ends on the wrong page – daleif May 23 '16 at 09:43