I need to add quite a few extra pdf files at the end of my report. Is there a way to create a list of these pages (named list of evidence) following the table of contents?

Edit to question: I have realised how obscure it may all look now if you look at comments below. Let me clarify what it is that I'm after. I'm writing a report that needs numbered paragraphs. I also need to mark what paragraphs contain mention of evidence to statements in the report. This needs to be marked on the RHS in the margin (I'm doing that with the \ev command) The evidence needs to be added in a sequence of mention in the report at the end of the report. All of my evidence are pdf files (usually 1-5 pages long). So what I originally was after is a way to include a list of that evidence in the TOC (as sections), so that I can have a name of each evidence in section name to appear in the TOC and in the footer to identify it for the reader. I also don't want the evidence section heading to appear in the text (hence \invisiblesection). Hope this makes it a bit clearer now. Apologise for any confusion caused.

The intended ToC should look something like that


  1. Section...................................2

    1.1 Subsection..............................2

    1.2 Subsection..............................3

    1.2.1 Subsubsection...............4



    List of Evidence

    Evidence 1....................40

    Evidence 2.....................41

    Evidence 3.....................46


Code EDIT#2


 %to get para numbers in the margins

\usepackage{lipsum} % for dummy text


 %evidence counter

 Headerline 1\\Headerline2




  \rfoot{Page \thepage}



  \def\evidence#1{%#2{ %#3{%



  \section{A sectoion}
  \np text
  \np text \ev
  \np text \ev
  \subsection{A subsection}
Main text of the report
End of text 

\evidence{evi:abstract}\invisiblesection{EV1}\includepdf[scale=0.92,pages=1,pagecommand=    {\pagestyle{fancy}}]{evidence1.pdf}  



1 Answer 1


This solution was posted before the detailed clarification from the OP and may not reflect the actual output intended

Solution Idea

Simply include the exhibits each as a separate chapter. This takes care of the primary issue of adding to TOC as well as other formatting issues. A small macro can be written to simplify the usage.





% \evidence{chapter heading}{label}{file}




\chapter{First Chapter}


\chapter{Second Chapter}








enter image description here


  1. \startevidence starts the evidence part. This is just like the \appendix command, but it puts an extra page indicating the start of evidence. This is added to the TOC as well.

  2. Use macro \evidence to actually include each pdf file. This macro needs three arguments, name of the evidence which is more like a chapter heading, label for that chapter for later references, name of the pdf file.


If you want the pdf files not to be added as chapters rather want to add them as sections, simply modify the \evidence macro.

  • hi MMA that's a good idea I have altered the code to better fit my document, but I've got a slight problem. In the toc evidence number starts from 0, and I'm struggling to find how to fix it. Ideally I wouldn't want to have a numbered subsection in the toc for evidence.
    – user43528
    Jan 8, 2014 at 16:27
  • @user43528 Does tweaking \setcounter{chapter}{0} or \setcounter{section}{0} help? Simply comment out these two and see what happens. Then you can simply uncomment one at a time then again see what happens.
    – Masroor
    Jan 8, 2014 at 16:35
  • I was thinking of reducing depth of the toc from \startevidence to 1 (to number just sections) but that doesnt work either
    – user43528
    Jan 8, 2014 at 16:40
  • @user43528 This is difficult to comment without seeing your code, but perhaps you will want not to use \startevidence at all and then change \chapter in the definition of \evidence to \section. But again, it is very difficult to correct a code from remote.
    – Masroor
    Jan 8, 2014 at 16:49
  • i've put the most updated code into the question at the top of the page
    – user43528
    Jan 8, 2014 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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