TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 all parts of my thesis (introduction/body/results ) etc. in the table of contents. Right before the introduction I have an image (on a separate page) which currently has no title. I have been asked to give it a title/heading such that it gets included in the table of contents. I dont want to make it a chapter. How can I include it in the table of contents?

share|improve this question
up vote 10 down vote accepted

Add in the preamble of your document

\providecommand\phantomsection{}% for hyperref

Then before the picture

% Add the title here, maybe \chapter*{My image title} ????
\addcontentsline{toc}{chapter}{My image title}
%Your image here ....
share|improve this answer
Thanks Danie Els works perfectly – rty Jun 28 '11 at 5:31
The \providecommand\phantomsection{} is not needed if someone uses hyperref, isn't it? – Martin Scharrer Jun 28 '11 at 8:15
@Martin Scharrer: It is nessesary if you use hyperref to put an anchor position. Without \phantomsection hyperref will jump to the previous sectioning position. – Danie Els Jun 28 '11 at 11:02
I understand the need of \phantomsection, but my point is: If you use \usepackage{hyperref} you don't need to add the \providecommand\phantomsection{} line. So simply commenting the \phantomsection line with "Needed if hyperref is used" would be actually clearer, wouldn't it? – Martin Scharrer Jun 28 '11 at 11:05
@Martin Scharrer: My view is it good practise to always put \phantomsection before all \addcontentslines. If you add hyperref later then you do not have to change anything. Therefor the \providecommand to always provide it. – Danie Els Jun 28 '11 at 11:13

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.