In an article class:

  • How to make the chapter heading centered?
  • The command \section or \chapter is come with the error "undefined control sequence" when it is compiled.

How to overcome this?


The titlesecpackage is there for that. This should do it just fine :

| improve this answer | |
  • But you should use titlesec only, if you use a class to which it is really compatible. titlesec is not compatible with all article classes. – Schweinebacke Jun 28 '17 at 10:18
  • Of course, I assumed a standard class was used – Rémi Nazin Jul 7 '17 at 8:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.