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.

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

Here's a minimal example.


This produces a heading akin to


If titlesec is commented out, it fails to compile unless natbib is also commented out

If either algorithm2e or natbib are commented out, then it produces the heading


I would clearly like to see the latter. Do I need to use another pseudocode package or can this be solved?

share|improve this question
The mind works in mysterious ways! You can solve this problem: multicolumn long table or enumeration, but package loading order escaped you today. :-) – Alan Munn Apr 6 '11 at 3:49
@Alan: Ha! I didn't even think about changing package order. I was thinking about the algorithm my coauthor had written. Thanks. – TH. Apr 6 '11 at 6:26
up vote 6 down vote accepted

Load natbib before algorithm2e.

share|improve this answer

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.