4

I am using IEEEtran and my sub subsections are indented. I tried using \parindent0pt but that removes the indentation of the paragraphs too. Any suggestion?

Werner
  • 603,163
pretty
  • 213

1 Answers1

3

IEEEtran creates the sectional units via \@startsection, but it depends on the mode you're calling the class with. Only under journal (default), conference or transmag will \subsubsection have an indent. And, based on the fact that you have a problem only with \subsubsection, it seems like you're running IEEEtran under journal (default) or conference. Here's the definition of \subsubsection under these modes (taken from IEEEtran.cls):

% journal and conference
\def\subsubsection{\@startsection{subsubsection}% name
                                 {3}% level
                                 {\parindent}% indent
                                 {0ex plus 0.1ex minus 0.1ex}% before skip
                                 {0ex}% after skip
                                 {\normalfont\normalsize\itshape}}% style

The third argument (\parindent) gives the indent associated with the sectional unit (see Where can I find help files or documentation for commands like \@startsection for LaTeX?). If you want to remove it, redefine \subsubsection in the same way except with a zero (or \z@) indent:

enter image description here

\documentclass{IEEEtran}% http://ctan.org/pkg/ieeetran

\makeatletter
% journal (default) and conference
\def\subsubsection{\@startsection{subsubsection}% name
                                 {3}% level
                                 {\z@}% indent (formerly \parindent)
                                 {0ex plus 0.1ex minus 0.1ex}% before skip
                                 {0ex}% after skip
                                 {\normalfont\normalsize\itshape}}% style
\makeatother

\begin{document}
\section{A section}
\subsection{A subsection}
\subsubsection{A subsubsection}
\end{document}
Werner
  • 603,163