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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have include PDF file in latex but I want to know that is there any method that table of content can automatically be updated after importing the PDF file. I searched a lot but can't find any thing useful.

share|improve this question
up vote 8 down vote accepted

You can use the addtotoc option like this:

\includepdf[...,addtotoc={1,section,1,{A Title},sec.1},...]{pdffilename}

The syntax is addtotoc={<page number>,<section>,<level>,<heading>,<label>}

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.