I have the following code to create table of contents:
\documentclass{article}
\begin{document}
\tableofcontents
\section{section A}
\addcontentsline{toc}{section}{section B}
\section*{section B}
\end{document}
Section B does appear in the TOC, but it appears unaligned with the text from section A, because there is no number preceding it. Is there a way to make section B go forward a bit, so that it is aligned?
EDIT: I would rather have someone that is "truly" aligned, instead of pushing it forward with blank spaces...


indentunnumberedshould do the trick just fine. – Johannes_B Nov 16 '14 at 09:05