I've been trying to work on Basic Academic Journal Article Template featured by Overleaf.
Although $$ a + b = c$$ is centered, the following equations are not centered:
\[ a + b = c \]
\begin{equation*}
a + b = c
\end{equation*}
\begin{equation}
a + b = c
\end{equation}
How do I revise the template to make all these equations centered by default?
Here is my project, which can be edited by anyone with the link. The original code in the project link is as follows.
\documentclass[fleqn,10pt,lineno]{olplainarticle}
\title{Example Article Title}
\author[1]{First Author}
\affil[1]{Address of first author}
\keywords{Keyword1, Keyword2, Keyword3}
\begin{abstract}
abstract
\end{abstract}
\begin{document}
\flushbottom
\maketitle
\thispagestyle{empty}
\section*{Mathematics}
$$ a + b = c $$
[ a + b = c ]
\begin{equation}
a + b = c
\end{equation}
\begin{equation}
a + b = c
\end{equation}
\end{document}

$$in LaTeX documents. For a longer discussion of this subject, please see the queries Why is\[ ... \]preferable to$$ ... $$? and What are the differences between$$,\[,align,equationanddisplaymath? The incompatibility of$$with thefleqnoption is noted in the most-upvoted answer to the former query. – Mico Feb 05 '24 at 01:35