5

By default, the paragraph starts after \maketitle will be indented. But, I do not need the indentation after \maketitle.

Could anyone suggest us how to control this in the template. I have attached the screenshot for your reference

enter image description here

\documentclass{article}

\begin{document}

\title{Title page}

\author{Author name}

\maketitle

This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

\end{document}
  • 2
    If you have only one title, you could just add \noindent before the first line. – MarcoG Jun 15 '15 at 8:51
3

In your example the following works. But it will fail if you use the titlepage option. I also didn't test it with every class ...

\documentclass{article}

\usepackage{etoolbox}
\makeatletter
\appto\@maketitle{\aftergroup\@afterindentfalse\aftergroup\@afterheading}
\makeatother
\begin{document}

\title{Title page}

\author{Author name}

\maketitle

This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

\end{document}

enter image description here

3

You could use \noindent right before the first paragraph after \maketitle. This method requires no extra packages, and it should work with just about any document class, i.e., any document class that doesn't modify the meaning of \noindent.

enter image description here

\documentclass{article}
\begin{document}

\title{Title page}
\author{Author name} 
\maketitle

\noindent  % insert this instruction before the first text paragraph
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.
This is a sample text. This is a sample text. This is a sample text. This is a sample text.

\end{document}
0

Alternatively you could insert

\parindent 0 pt 

in your preamble

  • This will remove indentation from all paragraphs, not just the one following the title as requested. Anyway, this type of change should usually be combined with adding some vertical space between paragraphs, in which case the parskip package is the way to go. – Andrew Swann Jun 15 '15 at 13:01
  • The syntax is also not recommended for use with LaTeX. Better use \setlength{\parindent}{0pt}. – Johannes_B Jun 16 '15 at 14:39

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.