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?

  • 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
    Commented Apr 6, 2011 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.
    Commented Apr 6, 2011 at 6:26

1 Answer 1


Load natbib before algorithm2e.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .