2

I have the following code. Why are my equations not centered, and how can I center them?

\documentclass[10pt,a4paper,fleqn]{article}
\usepackage{amsmath, amsfonts, amsthm, amssymb}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{anysize,graphicx,cite,fancyhdr}
\usepackage{mathptmx}
\usepackage{caption}
\usepackage{authblk}

\numberwithin{equation}{section}

\usepackage[T1]{fontenc}         % Not always necessary, but recommended.
% End of standard header.  What follows pertains to the problem at hand.

\marginsize{2.0cm}{2.0cm}{2.0cm}{2.0cm}
\pagestyle{fancy}
\lhead{}
\rhead{}
\chead{}
\cfoot{}
\renewcommand{\headrulewidth}{0pt}


\title{\Large \bf title}
\date{}
\author[1,*]{{author 1}}
\author[1]{author 2}
\affil[1]{\normalsize affiliation
\\ *Email: blank}
\begin{document}

\maketitle
\thispagestyle{fancy}

\noindent\textit{Keywords:Title}

\bigskip
\noindent\textbf{Abstract}\\

text text text

\section{Introduction}


\begin{align}
\ddot{\underline{\mathbf{r}}} &= \frac{d{^2}\underline{\mathbf{r}}}{dt^2}\\
                              &= 0
\end{align} 

%Equations with no numbering in specific line by using \nonumber
\begin{align}
\ddot{\underline{\mathbf{r}}} &= \frac{d{^2}\underline{\mathbf{r}}}{dt^2}\nonumber\\
                              &= 0
\end{align}



$$A(\rho,T) = A_0(\rho)+A_i(\rho,T)+A_e(\rho,T)$$


\section{Methodology}

\section{Results and Discussion}

\section{Conclusion}

\section{Acknowledgments}


\bibliographystyle{IEEEtran}
\bibliography{library}



\end{document}
3

Remove the fleqn option when loading the \documentclass.

enter image description here

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.