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

1 Answer 1

up vote 9 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.