Is there a way to manually create a Table of Contents (by writing each item one by one), instead of using \tableofcontents which automatically generates one?

Here is why I need this. I need to compile several different PDF files into one single one. And those files are written by different document classes and in different settings; it is hard to put them into one single LaTeX file. So, I will put those PDF files together and only change page numbers. But then I need a table of contents page and I need to create this one out of nothing.

• You can do that, for sure. How are you combining the final PDF? Will it use pdfpages? What \documentclass will you be using? – Werner Dec 14 '16 at 3:00
• I am kind of low-key. so I am just thinking to use acrobat to compile those pdf files into a single one, and directly revise the page number on that pad file... It is a job application, so basically I need to combine a cover letter, CV, and some other materials together. – H.Hong Dec 14 '16 at 3:05

Assume you have files file1.pdf (3 pages), file2.pdf (6 pages) and file3.pdf (9 pages) that you want to compile into a single PDF containing 19 pages, where the first page is a Table of Contents.

Construct the contents using a set of manual function for (say) \sections and \subsections. The idea would be to write directly to the .toc file the sectional unit number, title and page number:

\documentclass{article}

\usepackage[margin=1in]{geometry}
\pagestyle{empty}

% file1.pdf: pages  1- 3
% file2.pdf: pages  4- 9
% file3.pdf: pages 10-18

\begin{document}

% Construct contents