Take the 2-minute tour ×
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 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.