I am compiling a longish project report which should go in the IEEEtran format. Since the document runs into 100+ pages, we felt it is better to write it like a thesis than a research paper. Basically, we want to break it down into several chapters.

However, as per my understanding, the \chapter environment is available only in document type report (and perhaps scrreprt). IEEEtran format, on the other hand, is meant for research articles which are broken down in several 'sections', but not 'chapters'. I am unable to make chapters work in it.

How do I acommplish the needful?

  • Why does this require to go in the IEEEtran format? It is a matter of appearance just because you like it and you will publish it only as a PDF or it is required by a publisher? I ask this because the answer changes. – Astrinus Jun 11 '15 at 7:27
  • @Astrinus It is a report for a funded project. The format is prescribed by our funding agency. – pnp Jun 11 '15 at 7:56
  • What should you provide? The PDF or the LaTeX source? – Astrinus Jun 11 '15 at 7:59
  • @Astrinus Just the PDF – pnp Jun 11 '15 at 7:59
  • Ok, then you can borrow from report or book document classes the macros \chapter and \l@chapter and all their dipendencies. – Astrinus Jun 11 '15 at 8:02

Try to insert this in the preamble (not tested, so maybe it will mess all up):



  \ifCLASSOPTIONconference% compsoc conference
  \else% compsoc not conferencs


    % V1.6 add some rubber space here and provide a command trigger
    \footnotesize\vskip 0.3\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip%
    \itemsep \IEEEbibitemsep\relax
\def\newblock{\hskip .11em plus .33em minus .07em}%
% originally:
%   \sloppy\clubpenalty4000\widowpenalty4000%
% by adding the \interlinepenalty here, we make it more
% difficult, but not impossible, for LaTeX to break within a reference.
% IEEE almost never breaks a reference (but they do it more often with
% technotes). You may get an underfull vbox warning around the bibliography, 
% but the final result will be much more like what IEEE will publish. 
% MDS 11/2000

\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter
        \vskip 20\p@
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  {\parindent \z@ \raggedright
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@

  \ifnum \c@tocdepth >\m@ne
    \vskip 1.0em \@plus\p@
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \hskip -\leftskip
      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par


I copied some code from book.cls and adapted some of che code of IEEEtran.cls to use chapters rather than sections.

Appendices won't typeset in the right way.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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