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?
Asked
Active
Viewed 3,784 times
4
-
1If you're preparing a document for submission, don't bother with these problems: the journal or conference copy editors will just be annoyed by these layout changes. – egreg Mar 20 '14 at 08:51
-
Welcome to TeX.SX!. Remember that Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – karlkoeller Mar 21 '14 at 11:21
1 Answers
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:

\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}