Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have merged three external pdf files. Now I want to create table of contents of this resultant pdf file. Here \tablesofcontentsis not working.

\documentclass{article}
\usepackage{pdfpages}
\begin{document}

\includepdf[pages={1,2,3-30}]{myfile1.pdf}
\includepdf[pages={1,2,7-40}]{myfile2.pdf}
\includepdf[pages={990}]{myfile3.pdf}

\end{document}
share|improve this question
6  
Please (other have also asked you this) include your questions in the same place you place your code and not as a separate comment. – Gonzalo Medina Mar 22 at 17:39
2  
Use \tableofcontents and addtotoc={<page number>,<section>,<level>,<heading>,<label>} in the optional argument of \includepdf. – Gonzalo Medina Mar 22 at 17:41
2  
I have down-voted your question for the simple reason of politeness. Many comments have been made to you, without respond. Please respond so that we at least know whether there is a barrier of some sort that does not enable you to respond to our messages. Kind regards (please at me in the chat if anybody think I am wrong in doing this) – zeroth Mar 22 at 19:14

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.