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

How do I use the titlesec package if I am under \documentclass[conference]{IEEEtran} ?

I got the following error:

  !Undefined control sequence.

  <argument> \subparagraph
share|improve this question
up vote 14 down vote accepted

The titlesec package assumes all of the section levels provided by the standard classes are present. This includes the subparagraph level. The IEEEtrans class doesn't define a level subparagraph so titlesec doesn't know what to do when it tries to redefine it. The simple solution is to simply add the line

\newcommand{\subparagraph}{}

to your preamble before loading the titlesec package. If you need to actually have it work, you will then need to provide its definition via the regular titlesec methods.

share|improve this answer
    
Cool, it works, thanks Alan – koko Jan 6 '11 at 3:24
1  
I was using sig-alternate.cls from ACM. This solves my pain. – Jinghao Shi Sep 29 '14 at 17:13
    
Same problem and solution for the Springer svjour3 class – andybuckley Feb 8 at 22:02

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.