Almost all templates I tried have an indentation for all paragraphs. How do I remove the spaces before the first paragraph only?
\documentclass[12pt]{amsart}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amscd}
\usepackage[latin2]{inputenc}
\usepackage{t1enc}
\usepackage[mathscr]{eucal}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{pict2e}
\usepackage{epic}
\numberwithin{equation}{section}
\usepackage[margin=2.6cm]{geometry}
\usepackage{epstopdf}
\def\numset#1{{\\mathbb #1}}
\theoremstyle{plain}
\newtheorem{Th}{Theorem}[section]
\newtheorem{Lemma}[Th]{Lemma}
\newtheorem{Cor}[Th]{Corollary}
\newtheorem{Prop}[Th]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{Conj}[Th]{Conjecture}
\newtheorem{Rem}[Th]{Remark}
\newtheorem{?}[Th]{Problem}
\newtheorem{Ex}[Th]{Example}
\newcommand{\im}{\operatorname{im}}
\newcommand{\Hom}{{\rm{Hom}}}
\newcommand{\diam}{{\rm{diam}}}
\newcommand{\ovl}{\overline}
%\newcommand{\M}{\mathbb{M}}
\begin{document}
\title{example}
\begin{abstract} a aaaaaaaaaaaaaa aaaaaa aaaaaa aaaaa aaaaaaa aaaaaaaaaaaa aaaaa aaaa aa aaaaaaaaaaaaaaaaaa aaaaaa aaaaa aaaaaaaaaaa aaaaaaaaaa aaaaa aaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa
\end{abstract}
\maketitle
\section{Prelim}
I was often using any of the available “lorem ipsum” generators on the web while testing different things in LaTeX until I discovered that the Latex distribution provides packages generating blind text, which is definitely more convenient. With just a few lines of code, these packages will generate paragraphes, even whole documents with sections, paragraphs of text, lists, etc.
The first package that I will introduce is the “blindtext” package. First the language option as well as the package have to be loaded. Make sure you get the order right, otherwise your text might appear in latin by default.
\medskip
\section*{Reference}
\end{document}
\noindentat the start of any paragraph to suppress the indent for that paragraph. – David Purton Aug 04 '17 at 02:29indentfirst. That's what I use to get the non-default behaviour you describe. – cfr Aug 04 '17 at 03:03indentfirst, I think it might also be language-specific babel/polyglossia modules that follow their respective typographic style, according to egreg's answer at No indent in the first paragraph in a section? – ShreevatsaR Aug 04 '17 at 06:23\documentclassand ends with\end{document}, and remove all the stuff that you see has no impact on your output (which could be considered extraneous to the problem). – Werner Aug 04 '17 at 08:05\end{document}. You still have a bunch of unnecessary stuff included in your code that does not pertain to the problem. Do you use any theorems? No. So remove that content. Do you use\ovlanywhere? No. So remove that. What about\imor\Homor...? No. So remove that as well. Do you need anabstractor a\titleand the accompanying\maketitle? No. Why? Because it has nothing to do with the indentation of a paragraph. What about packages likepict2eorepicorgraphicxor...? Remove them, since they have nothing to do with the problem... – Werner Aug 04 '17 at 08:44indentfirstwhich does exactly what it states - it indents the first paragraph after a section. If you had gone through the process of providing a minimal example, you would most likely have identified this as the problem. – Werner Aug 04 '17 at 08:47t1encis a compatibility package only. You should replace it by\usepackage[T1]{fontenc}. You don't need to loadgraphicsaftergraphicx. Almost nobody usesepicfor decades. Even the extendedeepicis outdated. In our days, we usetikzorpstricks. – Schweinebacke Aug 04 '17 at 09:15amsartalready includes most AMS-packages. – Schweinebacke Aug 04 '17 at 09:43