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.

So I'm using algorithmicx to define some algorithms. It looks great, but I have one problem. When I use \listofalgorithms a page is created with the captions and links to the algorithms. However, there is no "List of algorithms" section in the contents section of the document. "List of tables" and "List of figures" are there just as expected.

Any ideas on why?

share|improve this question
1  
List of figures and tables usually do not show up in the table of contents. So you're probably using some package or class file that makes them appear there, it would be helpful if you tell us that bit of information. –  Juan A. Navarro Sep 28 '10 at 15:16
    
Yes, I'm using a custom template made for the university called usthesis. It's in the Ubuntu repositories. I'm replicating the table and figure snippets of code in the .sty and .cls file for algorithm. But no luck so far. Will keep at it. –  Peter Hayward Sep 29 '10 at 9:05
add comment

1 Answer

You can manually add the list of algorithms to the table of contents using the \addcontentsline command. Immediately after \listofalgorithms in your code, include

\addcontentsline{toc}{section}{List of algorithms}

(and make sure to compile it a couple of times until the output stops changing). By changing section in that command to chapter, subsection, etc., you can affect what level it displays at in the table of contents (i.e. how big it is, whether it's bold, if it's indented below another higher item).

share|improve this answer
add comment

Your Answer

 
discard

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.