I am trying to add a few pdf pages in my LaTeX file and have them shown in the table of contents. My file is as follows:





\section{Itinerário de Formação, Aperfeiçoamento e Titulação}


\includepdf[pages={1-3},landscape=true,addtotoc{1,section,1,{Pontuação para RSC I},app1}]{form-pontos.pdf}


And when compiled with pdflatex it gives me the following error message:

! Illegal parameter number in definition of \AM@temp.

What am I doing wrong? How do I fix it?


P.S. BTW, without the addtotoc option, the includepdf macro works as intended and the pages are included in the document.

  • 2
    There is an equal sign missing after addtotoc. Feb 4, 2015 at 16:31

1 Answer 1

 addtotoc={1,section,1,{Pontuação para RSC I},app1}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .