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

How can I prevent the \listofalgorithms from being indented? I tried everything I could find on the internet, but the index of my algorithms refused to be aligned along with the title.

Here is a MWE:

    \renewcommand{\nomname}{List of Algorithms}
            \State hello world

Any help is appreciated. Thanks!

share|improve this question
up vote 7 down vote accepted

The indentation is due to how the \listof macro works; it's provided by float that's loaded by algorithm. The easiest way to remove the indent is to patch that command:


The definition of \listofalgorithms is


and \listof is


So once we know that \@dottedtocline is responsible for the typesetting of the line and 1.5em is the initial indent, we're done.

share|improve this answer
Thank you very much for the quick and accurate response! – al.schmid Nov 4 '12 at 21:35

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.